Lists jobs.Requires permission to access the ListJobs action.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request GET 'https://api.iotwireless.{region}.amazonaws.com/jobs'
Response Response Example
200 - Example 1
{"jobs":[],"nextToken":"string"}
Request
Query Params
status
stringÂ
optional
An optional filter that lets you search for jobs that have the specified status.
targetSelection
stringÂ
optional
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
maxResults
integerÂ
optional
The maximum number of results to return per request.
nextToken
stringÂ
optional
The token to retrieve the next set of results.
thingGroupName
stringÂ
optional
A filter that limits the returned jobs to those for the specified group.
thingGroupId
stringÂ
optional
A filter that limits the returned jobs to those for the specified group.
namespaceId
stringÂ
optional
The namespace used to indicate that a job is a customer-managed job.When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
Responses
🟢200Success
application/json
Body
jobs
array[object (JobSummary) {8}]Â
optional
A list of jobs.
jobArn
stringÂ
optional
The job ARN.
jobId
stringÂ
optional
The unique identifier you assigned to this job when it was created.
>= 1 characters<= 64 characters
Match pattern:
[a-zA-Z0-9_-]+
thingGroupId
stringÂ
optional
The ID of the thing group.
>= 1 characters<= 128 characters
Match pattern:
[a-zA-Z0-9\-]+
targetSelection
enum<string>Â
optional
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
Allowed values:
CONTINUOUSSNAPSHOT
status
enum<string>Â
optional
The job summary status.
Allowed values:
IN_PROGRESSCANCELEDCOMPLETEDDELETION_IN_PROGRESS
createdAt
string <date-time>
optional
The time, in seconds since the epoch, when the job was created.
lastUpdatedAt
string <date-time>
optional
The time, in seconds since the epoch, when the job was last updated.
completedAt
string <date-time>
optional
The time, in seconds since the epoch, when the job completed.
nextToken
stringÂ
optional
The token for the next set of results, or null if there are no additional results.