Iot Hub Resource - List Jobs

IoT hub'ında tüm işlerin listesini 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?api-version=2023-06-30

URI Parametreleri

Name İçinde Gerekli Tür Description
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 sürümü.

Yanıtlar

Name Tür Description
200 OK

JobResponseListResult

Bu zaman uyumlu bir işlemdir. Yanıt, IoT hub'ında tüm işlerin JSON serileştirilmiş dizisini 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_ListJobs

Sample Request

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

Sample Response

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

Tanımlar

Name Description
ErrorDetails

Hata ayrıntıları.

JobResponse

İş Yanıtı nesnesinin özellikleri.

JobResponseListResult

Sonraki bağlantıyla JobResponse nesnelerinin JSON serileştirilmiş dizisi.

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ü.

JobResponseListResult

Sonraki bağlantıyla JobResponse nesnelerinin JSON serileştirilmiş dizisi.

Name Tür Description
nextLink

string

Sonraki bağlantı.

value

JobResponse[]

JobResponse nesnelerinin dizisi.

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