:doc:`ManagedintegrationsforIoTDeviceManagement <../../iot-managed-integrations>` / Client / get_managed_thing_state

***********************
get_managed_thing_state
***********************



.. py:method:: ManagedintegrationsforIoTDeviceManagement.Client.get_managed_thing_state(**kwargs)

  

  Returns the managed thing state for the given device Id.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-managed-integrations-2025-03-03/GetManagedThingState>`_  


  **Request Syntax**
  ::

    response = client.get_managed_thing_state(
        ManagedThingId='string'
    )
    
  :type ManagedThingId: string
  :param ManagedThingId: **[REQUIRED]** 

    The id of the device.

    

  
  
  :rtype: 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** (:ref:`document<document>`) -- 

                Describe the command capability with the properties it supports.

                
          
        
      
    
  
  **Exceptions**
  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ValidationException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.InternalFailureException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ThrottlingException`

  