resource_jobs
Creates, updates, deletes, gets or lists a resource_jobs
resource.
Overview
Name | resource_jobs |
Type | Resource |
Id | azure.iot_hub.resource_jobs |
Fields
Name | Datatype | Description |
---|---|---|
endTimeUtc | string | The time the job stopped processing. |
failureReason | string | If status == failed, this string containing the reason for the failure. |
jobId | string | The job identifier. |
parentJobId | string | The job identifier of the parent job, if any. |
startTimeUtc | string | The start time of the job. |
status | string | The status of the job. |
statusMessage | string | The status message for the job. |
type | string | The type of the job. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | jobId, resourceGroupName, resourceName, subscriptionId | Get the details of a job from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Get a list of all the jobs in an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry. |
SELECT
examples
Get a list of all the jobs in an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
SELECT
endTimeUtc,
failureReason,
jobId,
parentJobId,
startTimeUtc,
status,
statusMessage,
type
FROM azure.iot_hub.resource_jobs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';