Iot Hub Resource - Get Job
Haal de details van een taak op uit een IoT-hub. Zie https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry voor meer informatie.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs/{jobId}?api-version=2023-06-30
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
job
|
path | True |
string |
De taak-id. |
resource
|
path | True |
string |
De naam van de resourcegroep die de IoT-hub bevat. |
resource
|
path | True |
string |
De naam van de IoT-hub. |
subscription
|
path | True |
string |
De abonnements-id. |
api-version
|
query | True |
string |
De versie van de API. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Dit is een synchrone bewerking. Het antwoord bevat een JSON-geserialiseerde beschrijving van de taak in de IoT-hub. |
|
Other Status Codes |
DefaultErrorResponse |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | uw gebruikersaccount imiteren |
Voorbeelden
IotHubResource_GetJob
Voorbeeldaanvraag
Voorbeeldrespons
{
"jobId": "test",
"startTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
"endTimeUtc": "Thu, 15 Jun 2017 19:20:58 GMT",
"type": "unknown",
"status": "unknown"
}
Definities
Name | Description |
---|---|
Error |
Foutdetails. |
Job |
De eigenschappen van het object Taakantwoord. |
Job |
De status van de taak. |
Job |
Het type taak. |
ErrorDetails
Foutdetails.
Name | Type | Description |
---|---|---|
code |
string |
De foutcode. |
details |
string |
De foutdetails. |
httpStatusCode |
string |
De HTTP-statuscode. |
message |
string |
Het foutbericht. |
JobResponse
De eigenschappen van het object Taakantwoord.
Name | Type | Description |
---|---|---|
endTimeUtc |
string |
Het tijdstip waarop de taak is gestopt met verwerken. |
failureReason |
string |
Als de status == mislukt is, bevat deze tekenreeks de reden voor de fout. |
jobId |
string |
De taak-id. |
parentJobId |
string |
De taak-id van de bovenliggende taak, indien van toepassing. |
startTimeUtc |
string |
De begintijd van de taak. |
status |
De status van de taak. |
|
statusMessage |
string |
Het statusbericht voor de taak. |
type |
Het type taak. |
JobStatus
De status van de taak.
Name | Type | Description |
---|---|---|
cancelled |
string |
|
completed |
string |
|
enqueued |
string |
|
failed |
string |
|
running |
string |
|
unknown |
string |
JobType
Het type taak.
Name | Type | Description |
---|---|---|
backup |
string |
|
export |
string |
|
factoryResetDevice |
string |
|
firmwareUpdate |
string |
|
import |
string |
|
readDeviceProperties |
string |
|
rebootDevice |
string |
|
unknown |
string |
|
updateDeviceConfiguration |
string |
|
writeDeviceProperties |
string |