Iot Hub Resource - Get Job
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.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs/{jobId}?api-version=2023-06-30
Name | In | Required | Type | Description |
---|---|---|---|---|
job
|
path | True |
string |
The job identifier. |
resource
|
path | True |
string |
The name of the resource group that contains the IoT hub. |
resource
|
path | True |
string |
The name of the IoT hub. |
subscription
|
path | True |
string |
The subscription identifier. |
api-version
|
query | True |
string |
The version of the API. |
Name | Type | Description |
---|---|---|
200 OK |
This is a synchronous operation. The response contains a JSON-serialized description of the job in the IoT hub. |
|
Other Status Codes |
DefaultErrorResponse |
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Sample request
Sample response
{
"jobId": "test",
"startTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
"endTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
"type": "unknown",
"status": "unknown"
}
Name | Description |
---|---|
Error |
Error details. |
Job |
The properties of the Job Response object. |
Job |
The status of the job. |
Job |
The type of the job. |
Error details.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
details |
string |
The error details. |
httpStatusCode |
string |
The HTTP status code. |
message |
string |
The error message. |
The properties of the Job Response object.
Name | Type | 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 |
The status of the job. |
|
statusMessage |
string |
The status message for the job. |
type |
The type of the job. |
The status of the job.
Value | Description |
---|---|
cancelled | |
completed | |
enqueued | |
failed | |
running | |
unknown |
The type of the job.
Value | Description |
---|---|
backup | |
export | |
factoryResetDevice | |
firmwareUpdate | |
import | |
readDeviceProperties | |
rebootDevice | |
unknown | |
updateDeviceConfiguration | |
writeDeviceProperties |