调用UnbindDevice给CDRS项目解绑一个或多个设备

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String UnbindDevice

系统规定参数。取值:UnbindDevice。

CorpId String cdrs7446408279386067

CDRS项目ID

DeviceIds String 11234567891320000038,11234567891320000041

设备ID列表,使用英文逗号分隔

返回数据

名称 类型 示例值 描述
Code String SUCCESS

业务状态码

Data Array of Datas

解绑结果列表

Code String SUCCESS

单个解绑业务状态码

DeviceId String 11234567891320000038

设备ID

Message String device successfully unbind

单个设备解绑返回结果消息

Success Boolean true

单个解绑是否成功

Message String SUCCESS

请求返回结果消息

RequestId String B33CE66A-B3D4-458B-B2DE-64E32DC54C07

请求ID

示例

请求示例

http(s)://[Endpoint]/?Action=UnbindDevice
&CorpId=cdrs7446408279386067
&DeviceIds=11234567891320000038,11234567891320000041
&<公共请求参数>

正常返回示例

XML格式

<RequestId>B33CE66A-B3D4-458B-B2DE-64E32DC54C07</RequestId>
<Message>success</Message>
<Data>
    <Message>device doesn't belong to current project or is invalid</Message>
    <DeviceId>11234567891320000038</DeviceId>
    <Code>ILLEGAL_PARAM</Code>
    <Success>false</Success>
</Data>
<Data>
    <Message>device doesn't belong to current project or is invalid</Message>
    <DeviceId>11234567891320000041</DeviceId>
    <Code>ILLEGAL_PARAM</Code>
    <Success>false</Success>
</Data>
<Code>SUCCESS</Code>

JSON格式

{
  "RequestId": "B33CE66A-B3D4-458B-B2DE-64E32DC54C07",
  "Message": "success",
  "Data": [
    {
      "Message": "device doesn't belong to current project or is invalid",
      "DeviceId": "11234567891320000038",
      "Code": "ILLEGAL_PARAM",
      "Success": "false"
    },
    {
      "Message": "device doesn't belong to current project or is invalid",
      "DeviceId": "11234567891320000041",
      "Code": "ILLEGAL_PARAM",
      "Success": "false"
    }
  ],
  "Code": "SUCCESS"
}

错误码

HttpCode 错误码 错误信息 描述
400 InternalError A system error occurred. 系统错误
401 InvalidCorpIdError The specified CorpId is invalid. 无效的项目码

访问错误中心查看更多错误码。