Menu
AWS IoT
Developer Guide

GetV2LoggingOptions

Gets the fine grained logging options.

Request syntax:

GET /v2LoggingOptions

Response syntax:

Content-type: application/json { "roleArn": "string", "defaultLogLevel": "string", "disableAllLogs": "boolean" }

Response Body Parameters:

Name

Type

Req?

Description

roleArn

AwsArn

no

The IAM role ARN AWS IoT uses to write to your CloudWatch logs.

defaultLogLevel

LogLevel

no

The default log level.

disableAllLogs

DisableAllLogs

no

Disables all logs.

Errors:

InternalException

An unexpected error has occurred.

HTTP response code: 500

InvalidRequestException

The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.

HTTP response code: 400

ServiceUnavailableException

The service is temporarily unavailable.

HTTP response code: 503

CLI

Synopsis:

aws iot get-v2-logging-options \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json format:

{ }

Output:

{ "roleArn": "string", "defaultLogLevel": "string", "disableAllLogs": "boolean" }

cli output fields:

Name

Type

Description

roleArn

string

The IAM role ARN AWS IoT uses to write to your CloudWatch logs.

defaultLogLevel

string

enum: DEBUG | INFO | ERROR | WARN | DISABLED

java class: iot.goldeneye.service.LogLevel

The default log level.

disableAllLogs

boolean

Disables all logs.

On this page: