Device - AWS IoT 1-Click

Device

Represents a device given the device's ID.

URI

/devices/deviceId

HTTP methods

GET

Operation ID: DescribeDevice

Given a device ID, returns a DescribeDeviceResponse object describing the details of the device.

Path parameters
NameTypeRequiredDescription
deviceIdStringTrue

The unique identifier of the device.

Responses
Status codeResponse modelDescription
200 DescribeDeviceResponse

200 response

400InvalidRequestException

400 response

404ResourceNotFoundException

404 response

500InternalFailureException

500 response

OPTIONS

Responses
Status codeResponse modelDescription
200None

200 response

Schemas

Response bodies

{ "deviceDescription": { "remainingLife": number, "attributes": { }, "type": "string", "arn": "string", "deviceId": "string", "enabled": boolean } }
{ "code": "string", "message": "string" }
{ "code": "string", "message": "string" }
{ "code": "string", "message": "string" }

Properties

DescribeDeviceResponse

PropertyTypeRequiredDescription
deviceDescription

DeviceDescription

False

Device details.

DeviceAttributes

DeviceAttributes is a string-to-string map specified by the user.

PropertyTypeRequiredDescription

*

string

False

DeviceDescription

PropertyTypeRequiredDescription
arn

string

False

The ARN of the device.

attributes

DeviceAttributes

False

An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.

deviceId

string

False

The unique identifier of the device.

enabled

boolean

False

A Boolean value indicating whether or not the device is enabled.

remainingLife

number

Minimum: 0.0

Maximum: 100.0

False

A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.

type

string

False

The type of the device, such as "button".

InternalFailureException

PropertyTypeRequiredDescription
code

string

False

500

message

string

False

The 500 error message returned by the web server.

InvalidRequestException

PropertyTypeRequiredDescription
code

string

False

400

message

string

False

The 400 error message returned by the web server.

ResourceNotFoundException

PropertyTypeRequiredDescription
code

string

False

404

message

string

False

The requested device could not be found.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

DescribeDevice