你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

充当事件网格源的 Azure Data Box

本文提供 Azure Data Box 事件的属性和架构。 有关事件架构的简介,请参阅 Azure 事件网格事件架构

Data Box 事件

事件名称 说明
Microsoft.DataBox.CopyStarted 从设备开始复制并复制数据副本的第一个字节时触发。
Microsoft.DataBox.CopyCompleted 从设备完成复制时触发。
Microsoft.DataBox.OrderCompleted 当命令完成复制且副本日志可用时触发。

示例事件

Microsoft.DataBox.CopyStarted 事件

[{
  "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.DataBox/jobs/{your-resource}",
  "subject": "/jobs/{your-resource}",
  "type": "Microsoft.DataBox.CopyStarted",
  "time": "2022-10-16T02:51:26.4248221Z",
  "id": "049ec3f6-5b7d-4052-858e-6f4ce6a46570",
  "data": {
    "serialNumber": "SampleSerialNumber",
    "stageName": "CopyStarted",
    "stageTime": "2022-10-12T19:38:08.0218897Z"
  },
  "specVersion": "1.0"
}]

Microsoft.DataBox.CopyCompleted 事件

{
  "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.DataBox/jobs/{your-resource}",
  "subject": "/jobs/{your-resource}",
  "type": "Microsoft.DataBox.CopyCompleted",
  "time": "2022-10-16T02:51:26.4248221Z",
  "id": "759c892a-a628-4e48-a116-2e1d54c555ce",
  "data": {
    "serialNumber": "SampleSerialNumber",
    "stageName": "CopyCompleted",
    "stageTime": "2022-10-12T19:38:08.0218897Z"
  },
  "specVersion": "1.0"
}

Microsoft.DataBox.OrderCompleted 事件

[{
  "source": "/subscriptions/{subscription-id}/resourceGroups/{your-rg}/providers/Microsoft.DataBox/jobs/{your-resource}",
  "subject": "/jobs/{your-resource}",
  "type": "Microsoft.DataBox.OrderCompleted",
  "time": "2022-10-16T02:51:26.4248221Z",
  "id": "5eb07c79-39a8-439c-bb4b-bde1f6267c37",
  "data": {
    "serialNumber": "SampleSerialNumber",
    "stageName": "OrderCompleted",
    "stageTime": "2022-10-12T19:38:08.0218897Z"
  },
  "specVersion": "1.0"
}]

后续步骤