Jobs - Get Import Export Job
获取 IoT 中心中的导入或导出作业的状态。 有关详细信息,请参阅 https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities。
GET https://fully-qualified-iothubname.azure-devices.net/jobs/{id}?api-version=2021-04-12
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
id
|
path | True |
string |
作业的唯一标识符。 |
|
api-version
|
query | True |
string |
Api 的版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
还行。 |
定义
| 名称 | 说明 |
|---|---|
|
Job |
|
|
Managed |
JobProperties
| 名称 | 类型 | 说明 |
|---|---|---|
| configurationsBlobName |
string |
默认为 configurations.txt。 指定导出/导入配置时要使用的 Blob 的名称。 |
| endTimeUtc |
string (date-time) |
系统生成。 创建时忽略。 作业的结束日期和时间(UTC)。 |
| excludeKeysInExport |
boolean |
对于导出作业,可选;忽略其他作业。 如果未指定,服务默认为 false。 如果为 false,则授权密钥包含在导出输出中。 否则,键将导出为 null。 |
| failureReason |
string |
系统基因。 创建时忽略。 失败的原因,如果发生故障。 |
| identity | ||
| includeConfigurations |
boolean |
默认值为 false。 如果为 true,则数据导出/导入中包含配置。 |
| inputBlobContainerUri |
string |
包含 SAS 令牌的 URI 到包含要同步的注册表数据的 Blob 容器。 |
| inputBlobName |
string |
从输入 Blob 容器导入时要使用的 Blob 名称。 |
| jobId |
string |
作业的唯一标识符。 |
| outputBlobContainerUri |
string |
用于访问 Blob 容器的 SAS 令牌。 这用于输出作业的状态和结果。 |
| outputBlobName |
string |
将在输出 Blob 容器中创建的 Blob 名称。 此 Blob 将包含 IoT 中心的导出设备注册表信息。 |
| progress |
integer (int32) |
系统生成。 创建时忽略。 作业完成百分比。 |
| startTimeUtc |
string (date-time) |
系统生成。 创建时忽略。 作业的开始日期和时间(UTC)。 |
| status |
enum:
|
系统生成。 创建时忽略。 作业的状态。 |
| storageAuthenticationType |
enum:
|
用于连接到存储帐户的身份验证类型。 |
| type |
enum:
|
作业类型。 |
ManagedIdentity
| 名称 | 类型 | 说明 |
|---|---|---|
| userAssignedIdentity |
string |