Menu
AWS IoT
Developer Guide

ListV2LoggingLevels

Lists logging levels.

Request syntax:

GET /v2LoggingLevel?maxResults=maxResults&nextToken=nextToken&targetType=targetType

URI Request Parameters:

Name

Type

Req?

Description

targetType

LogTargetType

no

The type of resource for which you are configuring logging. Must be THING_Group.

nextToken

NextToken

no

The token used to get the next set of results, or null if there are no additional results.

maxResults

SkyfallMaxResults

no

The maximum number of results to return at one time.

Response syntax:

Content-type: application/json { "logTargetConfigurations": [ { "logTarget": { "targetType": "string", "targetName": "string" }, "logLevel": "string" } ], "nextToken": "string" }

Response Body Parameters:

Name

Type

Req?

Description

logTargetConfigurations

LogTargetConfigurations

no

The logging configuration for a target.

nextToken

NextToken

no

The token used to get the next set of results, or null if there are no additional results.

Errors:

InternalException

An unexpected error has occurred.

HTTP response code: 500

NotConfiguredException

The resource is not configured.

HTTP response code: 404

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 list-v2-logging-levels \ [--target-type <value>] \ [--next-token <value>] \ [--max-results <value>] \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json format:

{ "targetType": "string", "nextToken": "string", "maxResults": "integer" }

cli-input-json fields:

Name

Type

Description

targetType

string

enum: DEFAULT | THING_GROUP

java class: iot.goldeneye.service.LogTargetType

The type of resource for which you are configuring logging. Must be THING_Group.

nextToken

string

The token used to get the next set of results, or null if there are no additional results.

maxResults

integer

java class: java.lang.Integer

range- max:250 min:1

The maximum number of results to return at one time.

Output:

{ "logTargetConfigurations": [ { "logTarget": { "targetType": "string", "targetName": "string" }, "logLevel": "string" } ], "nextToken": "string" }

cli output fields:

Name

Type

Description

logTargetConfigurations

list

member: LogTargetConfiguration

The logging configuration for a target.

LogTargetConfiguration

LogTargetConfiguration

logTarget

LogTarget

A log target

targetType

string

enum: DEFAULT | THING_GROUP

java class: iot.goldeneye.service.LogTargetType

The target type.

targetName

string

The target name.

logLevel

string

enum: DEBUG | INFO | ERROR | WARN | DISABLED

java class: iot.goldeneye.service.LogLevel

The logging level.

nextToken

string

The token used to get the next set of results, or null if there are no additional results.

On this page: