查询通道列表-Marker
更新时间:2022-12-13
接口描述
本接口用于查询用户空间下面所有的通道列表,按marker分页方式查询。
请求(Request)
请求URI
GET /v1/device/channel?listChannelByMarker&marker={marker}&maxSize={maxSize}&spaceId={spaceId}&deviceId={deviceId}&channelName={channelName}
请求头域
除公共头域外,无其它特殊头域。
请求体
参数名称 | 类型 | 是否必选 | 描述 |
---|---|---|---|
spaceId | Long | 是 | 空间ID |
deviceId | Long | 否 | 设备ID |
channelName | String | 否 | 通道名称,只支持前缀模糊匹配 |
marker | Long | 是 | 1.初次查询marker需要值为空,键必须存在(可参考示例);2.如果返回值中nextMarker不为空,则下次查询时,将nextMarker赋值给listChannelByMarker,如此往复;3.如果返回值中nextMarker不存在,则表示已查询完所有数据 |
maxSize | Integer | 是 | 查询结果最大条数 |
响应(Response)
响应头域
除公共头域外,无其它特殊头域。
响应体
参数名称 | 类型 | 描述 |
---|---|---|
data | Array | 空间信息列表 |
+ deviceId | Long | 设备ID |
+ channelId | Long | 通道ID |
+ channelName String 通道名称 | ||
+ channelStatus | String | 通道状态,STREAMING(拉流中)、DISABLE(禁止拉流)、FREE(空闲)、DISABLE(禁止拉流) |
+ manufacturer | String | 设备厂商 |
+ appStream | Integer | 设备推流标识ID |
+ frameStatus | String | 抽帧盒子拉流状态 |
+ gbInfo | Object | 抽帧盒子国标信息 |
+ + storeId | String | 门店ID |
+ + gbDeviceId | String | 国标设备ID |
+ + gbChannelId | String | 国标通道ID |
+ rtspInfo | Object | 抽帧盒子rtsp信息 |
+ +rtspAddr | String | rtsp地址 |
+ +username | String | 用户名 |
+ +password | String | 密码 |
marker | String | 本次查询的起点 |
nextMarker | String | 下一次查询的起点,为空表示已经返回所有结果 |
truncated | Boolean | 指明是否所有查询都返回了;false:本次已经返回所有结果,true:本次还没有返回所有结果 |
示例
请求示例
GET /v1/device/channel?listChannelByMarker=1&spaceId=1002649&deviceId=1003303&channelName&maxSize=1
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;host;x-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
{
"channelId": 1031080,
"aiConfigs": [
{
"appId": "app-cmay9f7h2xu93txx",
"type": "AI020",
"appTypeName": "020",
"appConfig": {
"interval": 30000,
"effectiveTimes": [
{
"effectiveTimeStart": "00:00:01",
"effectiveTimeEnd": "23:59:59"
}
],
"lifecycle": 7,
"confidence": 0.51,
"callback": {
"enabled": true,
"authEnabled": false,
"endpoint": "http://user.service/callback"
},
"aiSourceType": "PICTURE"
}
},
{
"appId": "app-cmbte8e342p4d6zw",
"type": "AI020",
"appTypeName": "020",
"appConfig": {
"interval": 30000,
"effectiveTimes": [
{
"effectiveTimeStart": "00:00:01",
"effectiveTimeEnd": "23:59:59"
}
],
"lifecycle": 7,
"confidence": 0.51,
"callback": {
"enabled": true,
"authEnabled": false,
"endpoint": "http://user.service/callback"
},
"aiSourceType": "PICTURE"
}
},
{
"appId": "app-cmcr33s5pwxczutm",
"type": "AI022",
"appTypeName": "022",
"appConfig": {
"interval": 30000,
"effectiveTimes": [
{
"effectiveTimeStart": "00:00:01",
"effectiveTimeEnd": "23:59:59"
}
],
"lifecycle": 7,
"confidence": 0.51,
"callback": {
"enabled": true,
"authEnabled": false,
"endpoint": "http://user.service/callback"
},
"aiSourceType": "PICTURE"
}
},
{
"appId": "app-cmcr5q4szj05dhca",
"type": "AI023",
"appTypeName": "023",
"appConfig": {
"interval": 30000,
"effectiveTimes": [
{
"effectiveTimeStart": "00:00:01",
"effectiveTimeEnd": "23:59:59"
}
],
"lifecycle": 7,
"confidence": 0.51,
"callback": {
"enabled": true,
"authEnabled": false,
"endpoint": "http://user.service/callback"
},
"aiSourceType": "PICTURE"
}
},
{
"appId": "app-cmcr6vapvs4vmf6e",
"type": "AI021",
"appTypeName": "021",
"appConfig": {
"interval": 30000,
"effectiveTimes": [
{
"effectiveTimeStart": "00:00:01",
"effectiveTimeEnd": "23:59:59"
}
],
"lifecycle": 7,
"confidence": 0.51,
"callback": {
"enabled": true,
"authEnabled": false,
"endpoint": "http://user.service/callback"
},
"aiSourceType": "PICTURE"
}
}
]
}