Digital Twin - Invoke Component Command
调用数字孪生命令。
POST https://fully-qualified-iothubname.azure-devices.net/digitaltwins/{id}/components/{componentPath}/commands/{commandName}?api-version=2021-04-12POST https://fully-qualified-iothubname.azure-devices.net/digitaltwins/{id}/components/{componentPath}/commands/{commandName}?api-version=2021-04-12&connectTimeoutInSeconds={connectTimeoutInSeconds}&responseTimeoutInSeconds={responseTimeoutInSeconds}URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 | 
|---|---|---|---|---|
| command | path | True | string | |
| component | path | True | string | |
| id | path | True | string | |
| api-version | query | True | string | Api 的版本。 | 
| connect | query | integer (int32) | 数字孪生命令等待答案的最大时间间隔(以秒为单位)。 | |
| response | query | integer (int32) | 数字孪生命令等待答案的最大时间间隔(以秒为单位)。 | 
请求正文
| 名称 | 类型 | 说明 | 
|---|---|---|
| payload | object | 
响应
| 名称 | 类型 | 说明 | 
|---|---|---|
| 200 OK | object | 返回数字孪生命令响应有效负载 标头 
 |