查询GB28181设备的摄像机已下载到云端的录像列表
更新时间:2022-02-17
接口描述
本接口用于查询GB28181设备的本地的录像中,已经下载到云端的录像列表。
请求(Request)
请求URI
GET /v1/device/channel/{channelId}/localRecording?downloaded&marker={marker}&maxSize={maxSize}
参数名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
channelId | Long | 是 | 国标设备通道ID |
marker | String | 否 | 本次查询的marker,为空则从头开始查询 |
maxSize | Integer | 是 | 本次查询的结果最大个数 |
请求头域
除公共头域外,无其它特殊头域。
请求体
无。
响应(Response)
响应头域
除公共头域外,无其它特殊头域。
响应体
参数名称 | 类型 | 描述 |
---|---|---|
channelId | Long | 通道ID |
marker | String | 本次查询的起点 |
nextMarker | String | 下一次查询的起点,为空表示已经返回所有结果 |
truncated | Boolean | 指明是否所有查询都返回了;false:本次已经返回所有结果,true:本次还没有返回所有结果 |
| data | Array | 信息列表 | | + key | String | 设备录像文件key | | + downloadUrl | String | 录像文件下载链接 | | + size | Long | 录像文件大小,单位:Byte |
示例
请求示例
GET /v1/device/channel/1000001/localRecording?downloaded&maxSize=2&marker=evs/localrecord/1000046/31011402601318800157@34020000001310000002_download_1623240000_1623240060/1623243999.mp4 HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;hostx-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
响应示例
HTTP/1.1 200 OK
Transfer-Encoding: chunked
x-bce-request-id: 012b9747-f13a-4a2c-a488-02b221844dca
Cache-Control: no-cache
Server: BWS
Date: Tue, 24 Mar 202 013:34:07 GMT
Content-Type: application/json;charset=UTF-8
{
"truncated": true,
"maxSize": 0,
"channelId": 1000046,
"marker": "evs/localrecord/1000046/31011402601318800157@34020000001310000002_download_1623240000_1623240060/1623243999.mp4",
"nextMarker": "evs/localrecord/1000046/31011402601318800157@34020000001310000002_download_1623240000_1623240061/1623244415.mp4",
"data": [
{
"title": "2021.06.09 20:02:00-20:03:00",
"key": "evs/localrecord/1000046/31011402601318800157@34020000001310000002_download_1623219222_1623221826/1623240476.mp4",
"downloadUrl": "http://xxxxx/xxxxx",
"size": 204939636
},
{
"title": "2021.06.09 20:02:00-20:03:00",
"key": "evs/localrecord/1000046/31011402601318800157@34020000001310000002_download_1623240000_1623240060/1623243999.mp4",
"downloadUrl": "http://xxxxx/xxxxx",
"size": 32196847
}
]
}
错误码
参考公共错误码。