Iot Hub Resource - Get Job

IoT hub'ından bir işin ayrıntılarını alın. Daha fazla bilgi için, bkz. 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=2018-04-01

URI Parametreleri

Name İçinde Gerekli Tür Description
jobId
path True

string

İş tanımlayıcısı.

resourceGroupName
path True

string

IoT hub'ını içeren kaynak grubunun adı.

resourceName
path True

string

IoT hub'ının adı.

subscriptionId
path True

string

Abonelik tanımlayıcısı.

api-version
query True

string

API'nin sürümü.

Yanıtlar

Name Tür Description
200 OK

JobResponse

Bu zaman uyumlu bir işlemdir. Yanıt, IoT hub'ında işin JSON serileştirilmiş açıklamasını içerir.

Other Status Codes

ErrorDetails

DefaultErrorResponse

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

IotHubResource_GetJob

Sample Request

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

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"
}

Tanımlar

Name Description
ErrorDetails

Hata ayrıntıları.

JobResponse

İş Yanıtı nesnesinin özellikleri.

JobStatus

İşin durumu.

JobType

İşin türü.

ErrorDetails

Hata ayrıntıları.

Name Tür Description
code

string

Hata kodu.

details

string

Hata ayrıntıları.

httpStatusCode

string

HTTP durum kodu.

message

string

Hata iletisi.

JobResponse

İş Yanıtı nesnesinin özellikleri.

Name Tür Description
endTimeUtc

string

İşin işlemeyi durdurduğu zaman.

failureReason

string

Durum == başarısız olursa, hatanın nedenini içeren bu dize.

jobId

string

İş tanımlayıcısı.

parentJobId

string

Varsa üst işin iş tanımlayıcısı.

startTimeUtc

string

İşin başlangıç saati.

status

JobStatus

İşin durumu.

statusMessage

string

İşin durum iletisi.

type

JobType

İşin türü.

JobStatus

İşin durumu.

Name Tür Description
cancelled

string

completed

string

enqueued

string

failed

string

running

string

unknown

string

JobType

İşin türü.

Name Tür Description
backup

string

export

string

factoryResetDevice

string

firmwareUpdate

string

import

string

readDeviceProperties

string

rebootDevice

string

unknown

string

updateDeviceConfiguration

string

writeDeviceProperties

string