修改摄像头(好望云平台)(API名称:updateDevice)
功能介绍
用于与客户系统对接修改摄像头(好望云平台)。
相关接口
| 接口名称 | 调用说明 |
|---|---|
| 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
| 请求方式 | HTTPS地址 | 服务架构 | 消息体类型 |
|---|---|---|---|
| POST | https://isdp+域名/openapi/v1/ivmRemote/updateDevice | OpenAPI | application/json |
请求头
| KEY | VALUE | 是否必填 | 描述 |
|---|---|---|---|
| Content-Type | application/json | 是 | 无 |
| Authorization | bearer ${access_token} | 是 | bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| deviceId | String | 是 | 设备编号 |
| isdpDeviceId | String | 是 | Isdp设备唯一标识 |
| deviceName | String | 否 | 设备名称 |
| deviceAddress | String | 否 | 设备地址 |
| projectName | String | 否 | 项目名称 |
| model | String | 否 | 设备型号 |
| deviceType | String | 是 | 设备类型 |
| deviceManageState | String | 否 | 设备管理状态 |
| deviceSubType | String | 否 | 子设备类型 |
| manufacture | String | 否 | 生产厂商 |
| description | String | 否 | 描述 |
| deviceAddressNumber | String | 否 | 设备地址编码 |
| projectNumber | String | 否 | 项目编码 |
| autoJoin | String | 否 | 是否主动入会 |
| ownnerId | String | 否 | 设备责任人ID |
响应参数
| 参数 | 类型 | 描述 |
|---|---|---|
| isdpDeviceId | String | isdp唯一设备ID |
| deviceId | String | 设备ID |
| channelId | String | 通道ID |
| deviceName | String | 设备名称 |
| deviceState | String | 设备状态 |
| accessProtocol | String | 接入协议 |
| deviceType | String | 设备类型 |
| deviceSystemState | String | 设备管理状态 |
| description | String | 描述 |
| model | String | 设备型号 |
| manufacture | String | 生产厂商 |
| channelTotal | int | 通道总数 |
| streamTotal | int | 每个通道码流数量 |
| firmware | String | 摄像头固件版本号 |
| deviceAbility | String | 能力集 |
| mac | String | mac地址 |
| createTime | String | 创建时间 |
| updateTime | String | 更新时间 |
| protocolVersion | String | 协议版本 |
| deviceIp | String | 设备ip |
| devicePort | String | 设备端口 |
| projectName | String | 项目名称 |
| projectNumber | String | 项目编码 |
| deviceAddress | String | 设备地址 |
| fileId | String | 图片编号 |
| sysType | String | 系统类型 |
| fileSize | String | 文件大小 |
| fileName | String | 文件名称 |
| fileExt | String | 文件扩展名 |
| deviceAddressNumber | String | 设备地址编号 |
| deviceSubType | String | 子设备类型 |
| deviceAlarmStatus | String | 设备告警状态 |
| autoJoin | String | 是否主动入会 |
| battery | String | 电量 |
| ownnerId | String | 设备责任人ID |
| longitude | String | 经度 |
| latitude | String | 纬度 |
| chatJid | String | IM群组ID |
| chatId | String | IM聊天ID |
| liveChannelId | String | 频道播放ID |
| userName | String | 设备使用人名称 |
| ownnerName | String | 设备责任人名称 |
| webPlayUrl | String | web播放地址 |
请求示例
{
"deviceId": "device1230",
"isdpDeviceId":"device1230--1",
"deviceName": "1231234",
"deviceAddress": "",
"projectName": "发放",
"model": "v2",
"deviceType": "WEBCAM",
"deviceManageState": "ACTIVATION",
"manufacture": "hw",
"description": "asdsad",
"deviceAddressNumber": "",
"projectNumber": "354653",
"autoJoin": "Y"
} 响应示例
{
"status": 1,
"message": "SUCCESS",
"error": null,
"data":{
"deviceId": "device1230",
"deviceName": "1231234",
"deviceState": null,
"deviceType": null,
"description": "asdsad",
"createTime": null,
"updateTime": null,
"accessProtocol": null,
"manufacture": "hw",
"channelTotal": 0,
"streamTotal": 0,
"deviceSystemState": null,
"model": "v2",
"firmware": null,
"deviceAbility": null,
"mac": null,
"protocolVersion": null,
"deviceIp": null,
"devicePort": null,
"tenantId": 0,
"lastUpdatedBy": 0,
"createdBy": 0,
"projectNumber": "354653",
"projectName": "发放",
"deviceAddress": "",
"deviceAddressNumber": "",
"fileId": null,
"sysType": null,
"fileSize": null,
"fileName": null,
"fileExt": null,
"webPlayUrl": null,
"verificationCode": null,
"password": null,
"isdpDeviceId": "device1230--1",
"channelId": null,
"deviceAlarmStatus": null,
"deviceManageState": "ACTIVATION",
"deviceSubType": null,
"sort": null,
"sortBy": null,
"autoJoin": "Y",
"battery": null,
"ownnerName": null,
"ownnerId": null,
"longitude": null,
"latitude": null,
"chatJid": null,
"chatId": null,
"liveChannelId": null,
"createState": null,
"filter": null,
"helmetFilter": null,
"platFilter": null
},
"timestamp": "2020-12-30T13:51:57.316+0800"
} 状态码
状态码请参见状态码。
错误码
错误码请参见错误码。