Menu
AWS IoT
Developer Guide

ListThingTypes

Lists the existing thing types.

Request syntax:

GET /thing-types?maxResults=maxResults&nextToken=nextToken&thingTypeName=thingTypeName

URI Request Parameters:

Name

Type

Req?

Description

nextToken

NextToken

no

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

maxResults

RegistryMaxResults

no

The maximum number of results to return in this operation.

thingTypeName

ThingTypeName

no

The name of the thing type.

Response syntax:

Content-type: application/json { "thingTypes": [ { "thingTypeName": "string", "thingTypeArn": "string", "thingTypeProperties": { "thingTypeDescription": "string", "searchableAttributes": [ "string" ] }, "thingTypeMetadata": { "deprecated": "boolean", "deprecationDate": "timestamp", "creationDate": "timestamp" } } ], "nextToken": "string" }

Response Body Parameters:

Name

Type

Req?

Description

thingTypes

ThingTypeList

no

The thing types.

nextToken

NextToken

no

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

Errors:

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

ThrottlingException

The rate exceeds the limit.

HTTP response code: 429

UnauthorizedException

You are not authorized to perform this operation.

HTTP response code: 401

ServiceUnavailableException

The service is temporarily unavailable.

HTTP response code: 503

InternalFailureException

An unexpected error has occurred.

HTTP response code: 500

CLI

Synopsis:

aws iot list-thing-types \ [--next-token <value>] \ [--max-results <value>] \ [--thing-type-name <value>] \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json format:

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

cli-input-json fields:

Name

Type

Description

nextToken

string

The token for 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 in this operation.

thingTypeName

string

length max:128 min:1

pattern: [a-zA-Z0-9:_-]+

The name of the thing type.

Output:

{ "thingTypes": [ { "thingTypeName": "string", "thingTypeArn": "string", "thingTypeProperties": { "thingTypeDescription": "string", "searchableAttributes": [ "string" ] }, "thingTypeMetadata": { "deprecated": "boolean", "deprecationDate": "timestamp", "creationDate": "timestamp" } } ], "nextToken": "string" }

cli output fields:

Name

Type

Description

thingTypes

list

member: ThingTypeDefinition

java class: java.util.List

The thing types.

ThingTypeDefinition

ThingTypeDefinition

thingTypeName

string

length max:128 min:1

pattern: [a-zA-Z0-9:_-]+

The name of the thing type.

thingTypeArn

string

The thing type ARN.

thingTypeProperties

ThingTypeProperties

The ThingTypeProperties for the thing type.

thingTypeDescription

string

length max:2028

pattern: [\\p{Graph} ]*

The description of the thing type.

searchableAttributes

list

member: AttributeName

java class: java.util.List

A list of searchable thing attribute names.

AttributeName

string

length max:128

pattern: [a-zA-Z0-9_.,@/:#-]+

thingTypeMetadata

ThingTypeMetadata

The ThingTypeMetadata contains additional information about the thing type including: creation date and time, a value indicating whether the thing type is deprecated, and a date and time when it was deprecated.

deprecated

boolean

Whether the thing type is deprecated. If true, no new things could be associated with this type.

deprecationDate

timestamp

The date and time when the thing type was deprecated.

creationDate

timestamp

The date and time when the thing type was created.

nextToken

string

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

On this page: