---
title: "GET /v2LoggingOptions"
method: GET
path: "/v2LoggingOptions"
---

# GET /v2LoggingOptions

`GET /v2LoggingOptions`

Gets the fine grained logging options.

Requires permission to access the [GetV2LoggingOptions](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Response `200`

Success

- GetV2LoggingOptionsResponse
  - `roleArn` string — The IAM role ARN IoT uses to write to your CloudWatch logs.
  - `defaultLogLevel` 'DEBUG' | 'INFO' | 'ERROR' | 'WARN' | 'DISABLED' — The default log level.
  - `disableAllLogs` boolean — Disables all logs.

## Other responses

- `480` — InternalException
- `481` — NotConfiguredException
- `482` — ServiceUnavailableException

---

[API](https://skmtc.net/aws/apis/iot.md) · [All operations](https://skmtc.net/aws/apis/iot/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iot/revisions/deef5c4b09f0/schema)
