根据设备状态查询设备列表
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | GetDeviceInfo |
系统规定参数。取值:GetDeviceInfo。 |
| Status | String | 否 | onLine |
状态(onLine 或者 offLine) |
| IsvId | String | 否 | 3564709601720928646 |
租户ID |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Code | Integer | 200 |
响应状态码 |
| Data | Array of Record |
返回结果 |
|
| CapturedPictureId | String | 256 |
捕获图片ID |
| CorpId | String | 3411176664338530689 |
空间ID |
| CreateTime | String | 2021-04-23 17:33:00 |
创建时间 |
| DeviceAddress | String | 北京市朝阳区望京大厦 |
设备地址 |
| DeviceId | String | 125 |
设备ID |
| DeviceName | String | IPC01 |
设备名称 |
| DeviceType | String | IPC |
设备类型 |
| InProtocol | String | http |
协议 |
| Latitude | String | 119.99 |
所要注册设备所在的纬度 |
| Longitude | String | 90.11 |
所要注册设备所在的经度 |
| Status | String | onLine |
状态 |
| Vendor | String | 宇视 |
厂家 |
| Message | String | success |
返回信息 |
| RequestId | String | 366978F5-A9D2-4711-8213-E2F686B62302 |
请求ID |
示例
请求示例
{ "Status":"onLine", "IsvId":"3564709601720928646" }
正常返回示例
XML格式
<Message>success</Message>
<RequestId>366978F5-A9D2-4711-8213-E2F686B62302</RequestId>
<Data>
<Status>onLine</Status>
<InProtocol>http</InProtocol>
<DeviceType>IPC</DeviceType>
<CorpId>3411176664338530689</CorpId>
<CapturedPictureId>256</CapturedPictureId>
<DeviceAddress>北京市朝阳区望京大厦</DeviceAddress>
<DeviceId>125</DeviceId>
<CreateTime>2021-04-23 17:33:00</CreateTime>
<Latitude>119.99</Latitude>
<Vendor>宇视</Vendor>
<Longitude>90.11</Longitude>
<DeviceName>IPC01</DeviceName>
</Data>
<Code>200</Code>
JSON格式
{
"Message": "success",
"RequestId": "366978F5-A9D2-4711-8213-E2F686B62302",
"Data": {
"Status": "onLine",
"InProtocol": "http",
"DeviceType": "IPC",
"CorpId": 3411176664338531000,
"CapturedPictureId": 256,
"DeviceAddress": "北京市朝阳区望京大厦",
"DeviceId": 125,
"CreateTime": "2021-04-23 17:33:00",
"Latitude": 119.99,
"Vendor": "宇视",
"Longitude": 90.11,
"DeviceName": "IPC01"
},
"Code": 200
}
错误码
| HttpCode | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 500 | InternalError | An internal error occurred. | 内部错误 |
访问错误中心查看更多错误码。
访问错误中心查看更多错误码。