查询通道列表-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:本次还没有返回所有结果 |
示例
请求示例
Plain Text
1GET /v1/device/channel?listChannelByMarker=1&spaceId=1002649&deviceId=1003303&channelName&maxSize=1
2 HTTP/1.1
3x-bce-date: 2020-03-25T09:28:13Z
4host: evs.bj.baidubce.com
5content-type: application/json
6authorization: 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 "channelId": 1031080,
11 "aiConfigs": [
12 {
13 "appId": "app-cmay9f7h2xu93txx",
14 "type": "AI020",
15 "appTypeName": "020",
16 "appConfig": {
17 "interval": 30000,
18 "effectiveTimes": [
19 {
20 "effectiveTimeStart": "00:00:01",
21 "effectiveTimeEnd": "23:59:59"
22 }
23 ],
24 "lifecycle": 7,
25 "confidence": 0.51,
26 "callback": {
27 "enabled": true,
28 "authEnabled": false,
29 "endpoint": "http://user.service/callback"
30 },
31 "aiSourceType": "PICTURE"
32 }
33 },
34 {
35 "appId": "app-cmbte8e342p4d6zw",
36 "type": "AI020",
37 "appTypeName": "020",
38 "appConfig": {
39 "interval": 30000,
40 "effectiveTimes": [
41 {
42 "effectiveTimeStart": "00:00:01",
43 "effectiveTimeEnd": "23:59:59"
44 }
45 ],
46 "lifecycle": 7,
47 "confidence": 0.51,
48 "callback": {
49 "enabled": true,
50 "authEnabled": false,
51 "endpoint": "http://user.service/callback"
52 },
53 "aiSourceType": "PICTURE"
54 }
55 },
56 {
57 "appId": "app-cmcr33s5pwxczutm",
58 "type": "AI022",
59 "appTypeName": "022",
60 "appConfig": {
61 "interval": 30000,
62 "effectiveTimes": [
63 {
64 "effectiveTimeStart": "00:00:01",
65 "effectiveTimeEnd": "23:59:59"
66 }
67 ],
68 "lifecycle": 7,
69 "confidence": 0.51,
70 "callback": {
71 "enabled": true,
72 "authEnabled": false,
73 "endpoint": "http://user.service/callback"
74 },
75 "aiSourceType": "PICTURE"
76 }
77 },
78 {
79 "appId": "app-cmcr5q4szj05dhca",
80 "type": "AI023",
81 "appTypeName": "023",
82 "appConfig": {
83 "interval": 30000,
84 "effectiveTimes": [
85 {
86 "effectiveTimeStart": "00:00:01",
87 "effectiveTimeEnd": "23:59:59"
88 }
89 ],
90 "lifecycle": 7,
91 "confidence": 0.51,
92 "callback": {
93 "enabled": true,
94 "authEnabled": false,
95 "endpoint": "http://user.service/callback"
96 },
97 "aiSourceType": "PICTURE"
98 }
99 },
100 {
101 "appId": "app-cmcr6vapvs4vmf6e",
102 "type": "AI021",
103 "appTypeName": "021",
104 "appConfig": {
105 "interval": 30000,
106 "effectiveTimes": [
107 {
108 "effectiveTimeStart": "00:00:01",
109 "effectiveTimeEnd": "23:59:59"
110 }
111 ],
112 "lifecycle": 7,
113 "confidence": 0.51,
114 "callback": {
115 "enabled": true,
116 "authEnabled": false,
117 "endpoint": "http://user.service/callback"
118 },
119 "aiSourceType": "PICTURE"
120 }
121 }
122 ]
123}