文档
测试

/api/v1/device/channellist

GET
/api/v1/device/channellist

接口描述

设备信息 - 查询设备通道列表

请求参数

参数名
类型
描述
必填
serial
String
设备编号
必填
start
Number
分页开始,从零开始
可选
limit
Number
分页大小
可选
q
String
搜索关键字
可选
online
Boolean
在线状态 允许值: true, false
可选
userId
String
用户id
必填
token
String
验证码
必填
state(页面)
String
状态 0全部1在线2离线
可选
keyword(页面)
String
关键字查询
必填

响应参数

参数名
类型
描述
必填
ChannelCount
Number
通道数
必填
ChannelList
Array
通道列表
必填
ID
String
通道序列号
必填
DeviceID
String
设备编号
必填
Channel
Number
通道号
必填
Name
String
通道名称
必填
SubCount
Number
子节点数, SubCount > 0 表示该通道为子目录
必填
Manufacturer
String
设备厂家
必填
Model
String
设备型号
必填
CreatedAt
String
创建日期
必填
ChannelOnline
Number
在线状态 允许值: 0, 1
必填
CreatedAt
String
设备创建日期
必填
DeviceOnline
Number
是否在线 0 不在线 1在线
必填
ID
String
设备ID
必填
Manufacturer
String
设备厂家
必填
MediaTransport
String
设备传输协议
必填
Name
String
设备名称
必填
Online
Boolean
是否在线 true false
必填
Password
String
设备加密码
必填
RemoteIP
String
设备地址IP
必填
RemotePort
String
设备地址端口
必填
UpdatedAt
String
最后更新时间
必填

说明 / 示例

http://192.168.1.136:7171/api/v1/device/channellist?userId=1&token=25d7f43a63baeaa8df3646a24aff0060&serial=34020000001320000005 返回值 {"ChannelCount":1,"ChannelList":[{"Channel":1,"ChannelOnline":1,"ChannelTotal":0,"CreatedAt":"2019-09-18 11:57:55","DeviceID":"34020000001320000005","DownloadSpeed":"","ID":"34020000001310000005","Latitude":0,"Longitude":0,"Manufacturer":"Dahua","Model":"IPC-HFW4436M-I2","Name":"方讯技术1","NumOutputs":0,"PTZType":0,"ParentID":null,"Parental":"0","RegisterWay":1,"SnapURL":"","Status":"ON","StreamID":"","SubCount":0,"is_lx":1,"live_reid":"d32baa8e78d85a33e6b3dbe995574414"}],"CreatedAt":"2019-09-18 11:57:54","DeviceOnline":1,"DeviceTotal":0,"ID":"34020000001320000005","Manufacturer":"Dahua","MediaTransport":"","Name":null,"Online":true,"Password":"","RemoteIP":"192.168.1.201","RemotePort":"5061","Type":"","UpdatedAt":"2019-09-19 12:14:46"}