查询国标设备配置信息
更新时间:2022-02-17
接口描述
本接口用于查询国标设备配置信息。
请求(Request)
请求URI
GET /v1/device/{deviceId}/gbConfigDownload
参数名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
deviceId | Long | 是 | 设备ID |
请求头域
除公共头域外,无其它特殊头域。
请求体
无
响应(Response)
响应头域
除公共头域外,无其它特殊头域。
响应体
参数名称 | 类型 | 描述 |
---|---|---|
serverIp | String | ip地址 |
serverPort | Integer | 设备端口号 |
sipType | String | 设备指令传输协议 |
streamType | String | 设备推流传输协议 |
configHeartbeatInterval | Integer | 心跳间隔 |
configRegisterExpire | Integer | 注册有效期 |
configHeartbeatCount | Integer | 最大心跳超时次数 |
registerTime | Long | 最近注册时间(ms) |
aliveTime | Long | 最近心跳时间(ms) |
示例
请求示例
Plain Text
1GET /v1/device/1000763/gbConfigDownload HTTP/1.1
2x-bce-date: 2020-03-25T09:28:13Z
3host: evs.bj.baidubce.com
4content-type: application/json
5authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
响应示例
Plain Text
1HTTP/1.1 200 OK
2Transfer-Encoding: chunked
3x-bce-request-id: 012b9747-f13a-4a2c-a488-02b221844dca
4Cache-Control: no-cache
5Server: BWS
6Date: Tue, 24 Mar 202 013:34:07 GMT
7Content-Type: application/json;charset=UTF-8
8
9{
10 "serverIp": "119.249.51.157",
11 "serverPort": 1985,
12 "sipType" : "UDP",
13 "streamType": "TCP",
14 "configHeartbeatInterval": 30,
15 "configRegisterExpire": 3600,
16 "configHeartbeatCount": 3,
17 "registerTime":1618558098411,
18 "aliveTime":1618558862385
19}
错误码
错误码(code) | 消息(message) | 描述 | HTTP状态码 |
---|---|---|---|
NoSuchGBConfigDownload | no such gb config download, device id : XXX | 不存在这个国标配置 | 404 |