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

Digital Twin - Invoke Component Command

调用数字孪生体命令。

POST https://fully-qualified-iothubname.azure-devices.net/digitaltwins/{id}/components/{componentPath}/commands/{commandName}?api-version=2020-05-31-preview
POST https://fully-qualified-iothubname.azure-devices.net/digitaltwins/{id}/components/{componentPath}/commands/{commandName}?api-version=2020-05-31-preview&connectTimeoutInSeconds={connectTimeoutInSeconds}&responseTimeoutInSeconds={responseTimeoutInSeconds}

URI 参数

名称 必需 类型 说明
commandName
path True

string

componentPath
path True

string

id
path True

string

api-version
query True

string

Api 的版本。

connectTimeoutInSeconds
query

integer

int32

数字孪生命令等待答案的最大时间间隔(以秒为单位)。

responseTimeoutInSeconds
query

integer

int32

数字孪生命令等待答案的最大时间间隔(以秒为单位)。

请求正文

名称 类型 说明
payload

object

响应

名称 类型 说明
200 OK

object

返回数字孪生命令响应有效负载

Headers

  • x-ms-command-statuscode: integer
  • x-ms-request-id: string