Delen via


Iot Hub Resource - List Jobs

Een lijst met alle taken in een IoT-hub ophalen. 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?api-version=2023-06-30

URI-parameters

Name In Vereist Type Description
resourceGroupName
path True

string

De naam van de resourcegroep die de IoT-hub bevat.

resourceName
path True

string

De naam van de IoT-hub.

subscriptionId
path True

string

De abonnements-id.

api-version
query True

string

De versie van de API.

Antwoorden

Name Type Description
200 OK

JobResponseListResult

Dit is een synchrone bewerking. Het antwoord bevat een JSON-geserialiseerde matrix van alle taken in de IoT-hub.

Other Status Codes

ErrorDetails

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_ListJobs

Voorbeeldaanvraag

GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/jobs?api-version=2023-06-30

Voorbeeldrespons

{
  "value": [
    {
      "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
ErrorDetails

Foutdetails.

JobResponse

De eigenschappen van het object Taakantwoord.

JobResponseListResult

De JSON-geserialiseerde matrix van JobResponse-objecten met een volgende koppeling.

JobStatus

De status van de taak.

JobType

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

JobStatus

De status van de taak.

statusMessage

string

Het statusbericht voor de taak.

type

JobType

Het type taak.

JobResponseListResult

De JSON-geserialiseerde matrix van JobResponse-objecten met een volgende koppeling.

Name Type Description
nextLink

string

De volgende koppeling.

value

JobResponse[]

De matrix met JobResponse-objecten.

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