查询通道树
开发中
GET
/devices/channels
请求参数
无
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://test-cn.your-api-server.com/devices/channels'
返回响应
🟢200成功
application/json
Body
items
array [object {19}]
必需
id
string
可选
device_id
string
可选
name
string
可选
trasnport
string
可选
stream_mode
integer
可选
ip
string
可选
port
integer
可选
is_online
boolean
可选
registered_at
string
可选
keepalive_at
string
可选
keepalives
integer
可选
expires
integer
可选
channels
integer
可选
created_at
string
可选
updated_at
string
可选
password
string
可选
address
string
可选
ext
object
可选
children
array [object {10}]
可选
total
integer
必需
示例
{"items":[{"id":"gbeusgn","device_id":"34020000001120000005","name":"","trasnport":"tcp","stream_mode":1,"ip":"","port":0,"is_online":true,"registered_at":"2025-06-14 14:07:57","keepalive_at":"2025-06-14 14:07:57","keepalives":0,"expires":120,"channels":2,"created_at":"2025-06-14 06:07:57","updated_at":"2025-06-14 14:07:59","password":"","address":"192.168.1.190:42831","ext":{"manufacturer":"Happytimesoft","model":"HTIPC","firmware":"V1.0","name":"gb28181"},"children":[{"id":"ch4x6tz","did":"gbeusgn","device_id":"34020000001120000005","channel_id":"34020000001310000001","name":"通道测试","ptztype":0,"is_online":true,"ext":{"manufacturer":"Happytimesoft","model":"IPC","firmware":"","name":""},"created_at":"2025-06-14 06:07:59","updated_at":"2025-06-14 06:07:59"},{"id":"chwocue","did":"gbeusgn","device_id":"34020000001120000005","channel_id":"34020000001310000002","name":"channel test","ptztype":0,"is_online":true,"ext":{"manufacturer":"Happytimesoft","model":"IPC","firmware":"","name":""},"created_at":"2025-06-14 06:07:59","updated_at":"2025-06-14 06:07:59"}]}],"total":1}
修改于 2025-06-14 06:01:49