:doc:`SagemakerEdgeManager <../../sagemaker-edge>` / Client / get_device_registration

***********************
get_device_registration
***********************



.. py:method:: SagemakerEdgeManager.Client.get_device_registration(**kwargs)

  

  Use to check if a device is registered with SageMaker Edge Manager.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeviceRegistration>`_  


  **Request Syntax**
  ::

    response = client.get_device_registration(
        DeviceName='string',
        DeviceFleetName='string'
    )
    
  :type DeviceName: string
  :param DeviceName: **[REQUIRED]** 

    The unique name of the device you want to get the registration status from.

    

  
  :type DeviceFleetName: string
  :param DeviceFleetName: **[REQUIRED]** 

    The name of the fleet that the device belongs to.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'DeviceRegistration': 'string',
          'CacheTTL': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DeviceRegistration** *(string) --* 

        Describes if the device is currently registered with SageMaker Edge Manager.

        
      

      - **CacheTTL** *(string) --* 

        The amount of time, in seconds, that the registration status is stored on the device’s cache before it is refreshed.

        
  
  **Exceptions**
  
  *   :py:class:`SagemakerEdgeManager.Client.exceptions.InternalServiceException`

  