WorkLink / Client / list_devices

list_devices#

WorkLink.Client.list_devices(**kwargs)#

Retrieves a list of devices registered with the specified fleet.

Danger

This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.

See also: AWS API Documentation

Request Syntax

response = client.list_devices(
    FleetArn='string',
    NextToken='string',
    MaxResults=123
)
Parameters:
  • FleetArn (string) –

    [REQUIRED]

    The ARN of the fleet.

  • NextToken (string) – The pagination token used to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

  • MaxResults (integer) – The maximum number of results to be included in the next page.

Return type:

dict

Returns:

Response Syntax

{
    'Devices': [
        {
            'DeviceId': 'string',
            'DeviceStatus': 'ACTIVE'|'SIGNED_OUT'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • Devices (list) –

      Information about the devices.

      • (dict) –

        The summary of devices.

        • DeviceId (string) –

          The ID of the device.

        • DeviceStatus (string) –

          The status of the device.

    • NextToken (string) –

      The pagination token used to retrieve the next page of results for this operation. If there are no more pages, this value is null.

Exceptions

  • WorkLink.Client.exceptions.UnauthorizedException

  • WorkLink.Client.exceptions.InternalServerErrorException

  • WorkLink.Client.exceptions.InvalidRequestException

  • WorkLink.Client.exceptions.ResourceNotFoundException

  • WorkLink.Client.exceptions.TooManyRequestsException