List tasks by status
Use the list-tasks
command to return a list of tasks from the devices in the Amazon Region where the command is run.
To filter the results by IN_PROGRESS
, COMPLETED
, or CANCELED
status, use the --state
parameter. --max-results
and --next-token
are optional. For more information, see
Using Amazon CLI pagination options
in the "Amazon Command Line Interface User Guide".
To list tasks by status, use the following command. Replace each
with your own
information.user input placeholder
Command
aws snow-device-management list-tasks \ --state
IN_PROGRESS
\ --next-tokenK8VAMqKiP2Cf4xGkmH8GMyZrgOF8FUb+d1OKTP9+P4pUb+8PhW+6MiXh4=
\ --max-results10
Exceptions
ValidationException InternalServerException ThrottlingException AccessDeniedException
Output
{ "tasks": [ { "state": "IN_PROGRESS", "tags": {}, "taskId": "st-ficthmqoc2phtlef", "taskArn": "arn:aws:snow-device-management:us-west-2:000000000000:task/st-ficthmqoc2phtlef" } ] }