Iot Jobs Data Plane
This page documents function available when using the Iot_Jobs_Data_Plane
module, created with @service Iot_Jobs_Data_Plane
.
Index
Main.Iot_Jobs_Data_Plane.describe_job_execution
Main.Iot_Jobs_Data_Plane.get_pending_job_executions
Main.Iot_Jobs_Data_Plane.start_next_pending_job_execution
Main.Iot_Jobs_Data_Plane.update_job_execution
Documentation
Main.Iot_Jobs_Data_Plane.describe_job_execution
— Methoddescribe_job_execution(job_id, thing_name)
describe_job_execution(job_id, thing_name, params::Dict{String,<:Any})
Gets details of a job execution.
Arguments
job_id
: The unique identifier assigned to this job when it was created.thing_name
: The thing name associated with the device the job execution is running on.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"executionNumber"
: Optional. A number that identifies a particular job execution on a particular device. If not specified, the latest job execution is returned."includeJobDocument"
: Optional. When set to true, the response contains the job document. The default is false.
Main.Iot_Jobs_Data_Plane.get_pending_job_executions
— Methodget_pending_job_executions(thing_name)
get_pending_job_executions(thing_name, params::Dict{String,<:Any})
Gets the list of all jobs for a thing that are not in a terminal status.
Arguments
thing_name
: The name of the thing that is executing the job.
Main.Iot_Jobs_Data_Plane.start_next_pending_job_execution
— Methodstart_next_pending_job_execution(thing_name)
start_next_pending_job_execution(thing_name, params::Dict{String,<:Any})
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
Arguments
thing_name
: The name of the thing associated with the device.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"statusDetails"
: A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged."stepTimeoutInMinutes"
: Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling UpdateJobExecution, setting the status to INPROGRESS and specifying a new timeout value in field stepTimeoutInMinutes) the job execution status will be automatically set to TIMEDOUT. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob using field timeoutConfig).
Main.Iot_Jobs_Data_Plane.update_job_execution
— Methodupdate_job_execution(job_id, status, thing_name)
update_job_execution(job_id, status, thing_name, params::Dict{String,<:Any})
Updates the status of a job execution.
Arguments
job_id
: The unique identifier assigned to this job when it was created.status
: The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.thing_name
: The name of the thing associated with the device.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"executionNumber"
: Optional. A number that identifies a particular job execution on a particular device."expectedVersion"
: Optional. The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)"includeJobDocument"
: Optional. When set to true, the response contains the job document. The default is false."includeJobExecutionState"
: Optional. When included and set to true, the response contains the JobExecutionState data. The default is false."statusDetails"
: Optional. A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged."stepTimeoutInMinutes"
: Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by again calling UpdateJobExecution, setting the status to INPROGRESS and specifying a new timeout value in this field) the job execution status will be automatically set to TIMEDOUT. Note that setting or resetting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob using field timeoutConfig).