Skip to main content

resource_jobs

Creates, updates, deletes, gets or lists a resource_jobs resource.

Overview

Nameresource_jobs
TypeResource
Idazure.iot_hub.resource_jobs

Fields

NameDatatypeDescription
endTimeUtcstringThe time the job stopped processing.
failureReasonstringIf status == failed, this string containing the reason for the failure.
jobIdstringThe job identifier.
parentJobIdstringThe job identifier of the parent job, if any.
startTimeUtcstringThe start time of the job.
statusstringThe status of the job.
statusMessagestringThe status message for the job.
typestringThe type of the job.

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobId, resourceGroupName, resourceName, subscriptionIdGet 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.
listSELECTresourceGroupName, resourceName, subscriptionIdGet 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 }}';