ListWorkers - AWS IoT RoboRunner

ListWorkers

List workers.

Request Syntax

GET /listWorkers?fleet=fleet&maxResults=maxResults&nextToken=nextToken&site=site&state=state HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

fleet

Worker fleet Amazon Resource Name (ARN).

Length Constraints: Minimum length of 1. Maximum length of 1011.

Pattern: arn:aws:iotroborunner:[\w-]+:\w+:site/[\w-]+/worker-fleet/.*

maxResults

Maximum number of results to retrieve in a single call.

Valid Range: Minimum value of 1. Maximum value of 25.

nextToken

Pagination token returned when another page of data exists. Provide it in your next call to the API to receive the next page.

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: [a-zA-Z0-9_.-/+=]*

site

Site Amazon Resource Name (ARN).

Length Constraints: Minimum length of 1. Maximum length of 1011.

Pattern: arn:aws:iotroborunner:[\w-]+:\w+:site/.*

Required: Yes

state

Worker state.

Valid Values: ENABLED | DISABLED | BUSY | DECOMMISSIONED

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "nextToken": "string", "workers": [ { "additionalInformation": "string", "arn": "string", "createdAt": number, "fleet": "string", "id": "string", "name": "string", "site": "string", "state": "string", "status": "string", "updatedAt": number } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

nextToken

Pagination token returned when another page of data exists. Provide it in your next call to the API to receive the next page.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: [a-zA-Z0-9_.-/+=]*

workers

List of workers.

Type: Array of Worker objects

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

Exception thrown if the user does not have sufficient access to perform this action.

HTTP Status Code: 403

InternalServerException

Exception thrown if something goes wrong within Iot RoboRunner.

HTTP Status Code: 500

ResourceNotFoundException

Exception thrown if a resource referenced in the request doesn't exist.

HTTP Status Code: 404

ThrottlingException

Exception thrown if the API is called too quickly.

HTTP Status Code: 429

ValidationException

Exception thrown if the API parameters do not pass validation.

HTTP Status Code: 400

See Also

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