ManagedintegrationsforIoTDeviceManagement / Client / get_managed_thing_state
get_managed_thing_state#
- ManagedintegrationsforIoTDeviceManagement.Client.get_managed_thing_state(**kwargs)#
Returns the managed thing state for the given device Id.
See also: AWS API Documentation
Request Syntax
response = client.get_managed_thing_state( ManagedThingId='string' )
- Parameters:
ManagedThingId (string) –
[REQUIRED]
The id of the device.
- Return type:
dict
- Returns:
Response Syntax
{ 'Endpoints': [ { 'endpointId': 'string', 'capabilities': [ { 'id': 'string', 'name': 'string', 'version': 'string', 'properties': {...}|[...]|123|123.4|'string'|True|None }, ] }, ] }
Response Structure
(dict) –
Endpoints (list) –
The device endpoint.
(dict) –
Describe the endpoint with an Id, a name, and the relevant capabilities for reporting state
endpointId (string) –
Numeric identifier of the endpoint
capabilities (list) –
Describe the endpoint with an id, a name, and the relevant capabilities for the reporting state.
(dict) –
State capabilities added for the managed thing.
id (string) –
The id of the managed thing in the capability report.
name (string) –
Name for the Amazon Web Services capability.
version (string) –
Version for the Amazon Web Services capability.
properties (document) –
Describe the command capability with the properties it supports.
Exceptions
ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ValidationException
ManagedintegrationsforIoTDeviceManagement.Client.exceptions.AccessDeniedException
ManagedintegrationsforIoTDeviceManagement.Client.exceptions.InternalFailureException
ManagedintegrationsforIoTDeviceManagement.Client.exceptions.UnauthorizedException
ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ServiceUnavailableException
ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ResourceNotFoundException
ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ThrottlingException