Jobs - Query Scheduled Jobs

IoT Hub クエリを使用してジョブに関する情報を取得します。 詳細については、「 https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language 」を参照してください。

GET https://fully-qualified-iothubname.azure-devices.net/jobs/v2/query?api-version=2021-04-12
GET https://fully-qualified-iothubname.azure-devices.net/jobs/v2/query?jobType={jobType}&jobStatus={jobStatus}&api-version=2021-04-12

URI パラメーター

名前 / 必須 説明
api-version
query True

string

Api のバージョン。

jobStatus
query

string

ジョブの状態。 使用可能な状態の一覧については、「」を参照してください https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs#querying-for-progress-on-jobs

jobType
query

string

ジョブの種類。 使用可能なジョブの種類の一覧については、以下を参照してください https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-jobs#querying-for-progress-on-jobs

応答

名前 説明
200 OK

QueryResult

OK です。

定義

QueryResult

クエリ結果。

名前 説明
continuationToken

string

継続トークンです。

items

object[]

コレクションとしてのクエリ結果項目。

type enum:
  • deviceJob
  • deviceRegistration
  • enrollment
  • enrollmentGroup
  • jobResponse
  • raw
  • twin
  • unknown

クエリ結果の種類。