Download OpenAPI specification:
来源于 ikuai-doc/openapi_specs/monitor/。
为避免 Redoc 单页一次性加载全部 API 导致浏览器 heap 过高,部署版按分类拆分。
查询摄像头设备列表,支持分页和过滤。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 50 Example: limit=50 每页记录数 |
| order | string Default: "asc" Enum: "asc" "desc" Example: order=asc 排序方向,asc为升序(默认),desc为降序 |
| order_by | string Default: "id" Example: order_by=id 排序字段,支持id、tagname、name、ip_addr、vendor、status等字段 |
| filter | string Example: filter=status==0 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=name,ip_addr,vendor 模糊匹配字段列表,支持 tagname, name, ip_addr, vendor, version, comment |
| pattern | string Example: pattern=Hikvision 模糊匹配内容 |
{- "results": {
- "data": [
- {
- "id": 1,
- "tagname": "一楼大厅摄像头",
- "name": "Hikvision Camera",
- "vendor": "HIKVISION",
- "ip_addr": "192.168.1.100",
- "port": 80,
- "mac": "aa:bb:cc:dd:ee:ff",
- "status": 0,
- "flag": 1,
- "enabled": "yes",
- "comment": "安装在1楼大厅",
- "passwd_flag": 1
}, - {
- "id": 2,
- "tagname": "NVR主机",
- "name": "Hikvision NVR",
- "vendor": "HIKVISION",
- "ip_addr": "192.168.1.200",
- "port": 80,
- "mac": "11:22:33:44:55:66",
- "status": 0,
- "flag": 2,
- "enabled": "yes",
- "camera_count": 4
}
], - "total": 2
}
}获取当前IPv4在线终端的统计信息,包括MAC地址、SSID、IP地址、 上下行速率、连接数、厂商型号等详细信息。支持分页、过滤和模糊匹配。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 10 Example: limit=10 每页记录数 |
| order | string Default: "asc" Enum: "asc" "desc" Example: order=asc 排序方向,asc为升序(默认),desc为降序 |
| order_by | string Default: "id" Example: order_by=timestamp 排序字段,支持id、timestamp、mac、ip_addr等字段 |
| key | string Example: key=mac,ip_addr 模糊匹配字段列表,支持 ssid, mac, ip_addr, termname, client_vendor, client_model |
| pattern | string Example: pattern=08:9b:4b 模糊匹配内容 |
| filter | string Example: filter=mac==08:9b:4b:01:7e:7c 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "mac": "08:9b:4b:01:7e:7c",
- "ip_addr": "192.168.9.199",
- "ip_addr_int": 3232238023,
- "ssid": "",
- "uplink_dev": "iKuai-lpx",
- "uplink_addr": "08:9b:4b:13:35:6f",
- "webid": 0,
- "connect_num": 3,
- "total_up": 3929392,
- "total_down": 77762748,
- "upload": 0,
- "download": 0,
- "today_total": 57775943,
- "apname": "",
- "ac_gid": 0,
- "device_icon": "1_107",
- "vendor_icon": "2_998",
- "timestamp": 1763804867,
- "termname": "未知123",
- "ipv4_gnames": "",
- "ipv6_gnames": "",
- "mac_gnames": "11",
- "dtalk_name": "",
- "link_addr": "",
- "client_vendor": "路由器",
- "client_model": "test",
- "client_type": "iKuaiOS",
- "client_typeid": 107998000,
- "reject": 0,
- "comment": "123",
- "bssid": "",
- "uprate": "",
- "downrate": "",
- "enc": "",
- "static_status": 0,
- "interface": "lan1",
- "signal": "",
- "auth_type": 0,
- "vlan_id": 0,
- "uptime": "2025-11-22 17:47:47",
- "username": "",
- "ppptype": "",
- "apmac": ""
}
]
}
}获取当前IPv6在线终端的统计信息,包括MAC地址、SSID、IP地址、 上下行速率、连接数、厂商型号等详细信息。支持分页、过滤和模糊匹配。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 10 Example: limit=10 每页记录数 |
| order | string Default: "asc" Enum: "asc" "desc" Example: order=asc 排序方向,asc为升序(默认),desc为降序 |
| order_by | string Default: "id" Example: order_by=timestamp 排序字段,支持id、timestamp、mac、ip_addr等字段 |
| key | string Example: key=mac,ip_addr 模糊匹配字段列表,支持 ssid, mac, ip_addr, termname, client_vendor, client_model |
| pattern | string Example: pattern=08:9b:4b 模糊匹配内容 |
| filter | string Example: filter=mac==08:9b:4b:01:7e:7c 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "mac": "1a:00:9c:10:f1:5c",
- "ip_addr": "2408:8207:3053:bc21:1800:9cff:fe10:f15c",
- "ip_addr_int": 0,
- "ssid": "",
- "uplink_dev": "1.253",
- "uplink_addr": "00:e2:59:00:68:4e",
- "webid": 0,
- "connect_num": 0,
- "total_up": 96,
- "total_down": 110,
- "upload": 0,
- "download": 0,
- "today_total": 24514,
- "apname": "",
- "ac_gid": 0,
- "device_icon": "",
- "vendor_icon": "",
- "timestamp": 1773394260,
- "termname": "测试部Ubuntu",
- "ipv4_gnames": "",
- "ipv6_gnames": "",
- "mac_gnames": "",
- "dtalk_name": "",
- "link_addr": "fe80::1800:9cff:fe10:f15c",
- "client_vendor": "Unknown",
- "client_model": "",
- "client_type": "Unknown",
- "client_typeid": 0,
- "device_type": "",
- "reject": 0,
- "comment": "测试部Ubuntu",
- "bssid": "",
- "uprate": "",
- "downrate": "",
- "enc": "",
- "static_status": 0,
- "interface": "vlan5",
- "signal": 0,
- "channel": "--",
- "auth_type": 0,
- "vlan_id": 0,
- "uptime": "2026-03-13 17:31:00",
- "username": "",
- "ppptype": "",
- "apmac": "",
- "frequencies": ""
}
]
}
}获取IPv4离线终端的统计信息,包括MAC地址、IP地址、下线时间、 总流量统计、认证类型等详细信息。支持分页、过滤和模糊匹配。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 10 Example: limit=10 每页记录数 |
| order | string Default: "asc" Enum: "asc" "desc" Example: order=asc 排序方向,asc为升序(默认),desc为降序 |
| order_by | string Default: "id" Example: order_by=timestamp 排序字段,支持id、timestamp、mac、ip_addr等字段 |
| key | string Example: key=mac,ip_addr 模糊匹配字段列表,支持 mac, ip_addr, termname, client_vendor, client_model |
| pattern | string Example: pattern=52:83:56 模糊匹配内容 |
| filter | string Example: filter=mac==52:83:56:ef:f2:4b 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
{- "message": "Success",
- "results": {
- "total": 1,
- "offline_data": [
- {
- "id": 1,
- "mac": "52:83:56:ef:f2:4b",
- "ip_addr": "192.168.9.105",
- "username": "",
- "client_typeid": 101000299,
- "client_vendor": "Apple",
- "client_model": "",
- "static_status": 0,
- "termname": "",
- "comment": "",
- "ipv6_gnames": "",
- "today_total": 0,
- "logout_time": 1763814180,
- "total_up": 4105104,
- "total_down": 27465719,
- "client_type": "iOS",
- "ipv4_gnames": "",
- "auth": 0,
- "mac_gnames": "",
- "dtalk_name": "",
- "vlan_id": 0
}
]
}
}获取IPv6离线终端的统计信息,包括MAC地址、IP地址、下线时间、 总流量统计、认证类型等详细信息。支持分页、过滤和模糊匹配。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 10 Example: limit=10 每页记录数 |
| order | string Default: "asc" Enum: "asc" "desc" Example: order=asc 排序方向,asc为升序(默认),desc为降序 |
| order_by | string Default: "id" Example: order_by=timestamp 排序字段,支持id、timestamp、mac、ip_addr等字段 |
| key | string Example: key=mac,ip_addr 模糊匹配字段列表,支持 mac, ip_addr, termname, client_vendor, client_model |
| pattern | string Example: pattern=00:71:6f 模糊匹配内容 |
| filter | string Example: filter=mac==00:71:6f:a6:0c:2d 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
{- "message": "Success",
- "results": {
- "total": 1,
- "offline_data": [
- {
- "id": 1,
- "mac": "00:71:6f:a6:0c:2d",
- "ip_addr": "2408:8207:3053:bb90:0271:6fff:fea6:0c2d",
- "username": "",
- "client_typeid": 107998006,
- "client_vendor": "iKuai",
- "client_model": "iKuai路由器",
- "device_type": "",
- "today_total": 8370425,
- "logout_time": 1773390540,
- "total_up": 4769559,
- "total_down": 21154347,
- "client_type": "iKuaiOS",
- "ipv4_gnames": "",
- "ipv6_gnames": "",
- "mac_gnames": "",
- "auth": 0,
- "dtalk_name": "",
- "vlan_id": 0,
- "termname": "",
- "comment": "",
- "device_icon": "1_107"
}
]
}
}获取所有终端的当日流量统计信息,包括总流量、上行流量、 下行流量等汇总数据。支持分页功能,不支持key、pattern、filter。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 10 Example: limit=10 每页记录数 |
{- "message": "Success",
- "results": {
- "terminal": [
- {
- "id": 1,
- "mac": "08:9b:4b:01:7e:7c",
- "ip_addr": "192.168.9.199",
- "username": "testuser",
- "comment": "我的电脑",
- "icon": "1_107",
- "sum_total": 7006058917,
- "sum_total_up": 4546140370,
- "sum_total_down": 2459918547
}, - {
- "id": 2,
- "mac": "1a:f8:62:e6:ca:49",
- "ip_addr": "192.168.9.105",
- "username": "",
- "comment": "",
- "icon": "",
- "sum_total": 114884,
- "sum_total_up": 44004,
- "sum_total_down": 70880
}
], - "terminal_total": 2,
- "terminal_total_flow": 7006173801
}
}获取指定终端的5分钟流量负载,包含上行速率和下行速率, 5秒一个数据点,共300个数据点。ip和mac均必须输入。
| mac required | string^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ Example: mac=08:9b:4b:01:7e:7c 终端MAC地址 |
| ip required | string <ipv4> Example: ip=192.168.9.199 终端IP地址 |
{- "message": "Success",
- "results": {
- "terminal_stream_collect": [
- {
- "download": 78335,
- "conn_num": "177",
- "timestamp": 1773304236,
- "upload": 7402
}, - {
- "download": 49133,
- "conn_num": "258",
- "timestamp": 1773304241,
- "upload": 87372
}, - {
- "download": 45746,
- "conn_num": "242",
- "timestamp": 1773304246,
- "upload": 280816
}
]
}
}获取指定终端最近24小时的协议分类流量统计。 协议大类包括:网络协议、传输下载、休闲娱乐、生活服务、办公协作、 社交通讯、效率工具、网络游戏、金融理财、学习教育等。 mac和ip必须输入,不支持limit、page、key、pattern、filter。
| mac required | string^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ Example: mac=08:9b:4b:01:7e:7c 终端MAC地址 |
| ip required | string Example: ip=192.168.9.199 终端IP地址 |
| starttime | integer Example: starttime=1773304236 开始时间戳 |
| stoptime | integer Example: stoptime=1773304246 结束时间戳 |
{- "message": "Success",
- "results": {
- "data": [
- {
- "id": 1,
- "total": 2635725,
- "proto": "4:7",
- "proto_name": "未知应用"
}, - {
- "id": 2,
- "total": 3439230,
- "proto": "3500000:3999999",
- "proto_name": "效率工具"
}, - {
- "id": 3,
- "total": 69668994,
- "proto": "2500000:2999999",
- "proto_name": "传输下载"
}, - {
- "id": 5,
- "total": 267252162,
- "proto": "4000000:4499999",
- "proto_name": "办公协作"
}
]
}
}获取指定终端最近24小时的协议分类速率负载,每5分钟一个数据点, 包含各协议分类的上下行速率信息,单位字节/秒。 mac和ip必须输入,不支持limit、page、key、pattern、filter。
| mac required | string^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ Example: mac=08:9b:4b:01:7e:7c 终端MAC地址 |
| ip required | string Example: ip=192.168.9.199 终端IP地址 |
| starttime | integer Example: starttime=1773304236 开始时间戳 |
| stoptime | integer Example: stoptime=1773304246 结束时间戳 |
{- "message": "Success",
- "results": {
- "data": [
- {
- "upload": 1899,
- "proto": "1000000:1499999",
- "proto_name": "网络协议",
- "timestamp": 1773287100,
- "download": 2683,
- "id": 1
}, - {
- "upload": 0,
- "proto": "2500000:2999999",
- "timestamp": 1773287100,
- "download": 0,
- "id": 2
}, - {
- "upload": 80,
- "proto": "4000000:4499999",
- "timestamp": 1773287100,
- "download": 123,
- "id": 3
}
]
}
}查询指定终端当前访问的所有应用协议的速率和流量信息, 包括连接数、上下行速率、总流量及协议分类信息。 mac 和 ip 必须输入,支持分页。
| mac required | string Example: mac=08:9b:4b:01:7e:7c 终端MAC地址 |
| ip required | string <ipv4> Example: ip=192.168.9.199 终端IP地址 |
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 20 Example: limit=20 每页返回数量 |
{- "message": "Success",
- "results": {
- "data": [
- {
- "conn_cnt": 0,
- "upload": 0,
- "download": 0,
- "appid": 5030009,
- "app_name": "今日头条",
- "id": 1,
- "total": 170,
- "total_up": 100,
- "total_down": 70,
- "proto2_name": "5030001:5040000",
- "proto1_name": "5000000:5499999",
- "rules": { }
}, - {
- "conn_cnt": 0,
- "upload": 0,
- "download": 0,
- "appid": 5060190,
- "app_name": "谷歌通用账号",
- "id": 2,
- "total": 190,
- "total_up": 80,
- "total_down": 110,
- "proto2_name": "5060001:5070000",
- "proto1_name": "5000000:5499999",
- "rules": { }
}
]
}
}查询分流监控统计数据,包含今日、昨日、最近7天的连接数统计。
TYPE 参数:
data: 统计数据(默认)| TYPE | string Default: "data" Value: "data" 返回数据类型 |
{- "results": {
- "data": {
- "today": {
- "llb_cnt": 100,
- "port_cnt": 50,
- "proto_cnt": 30,
- "domain_cnt": 20,
- "conn_cnt": 200
}, - "yesterday": {
- "llb_cnt": 120,
- "port_cnt": 60,
- "proto_cnt": 35,
- "domain_cnt": 25,
- "conn_cnt": 240
}, - "week": {
- "llb_cnt": 700,
- "port_cnt": 350,
- "proto_cnt": 210,
- "domain_cnt": 140,
- "conn_cnt": 1400
}
}, - "clean_time": 1646822400
}
}获取所有网络接口的线路状态信息,包括线路检查结果(iface_check)和 流量统计信息(iface_stream)。包含连接状态、IP地址、网关、 线路检测结果、自动切换状态、实时流量等详细信息。 不支持query参数。
{- "message": "Success",
- "results": {
- "iface_check": [
- {
- "id": 1,
- "interface": "wan1",
- "parent_interface": "wan1",
- "ip_addr": "192.168.99.102",
- "gateway": "192.168.99.1",
- "internet": "DHCP",
- "updatetime": "1763805119",
- "auto_switch": "已启用",
- "result": "success",
- "errmsg": "线路检测成功",
- "comment": ""
}, - {
- "id": 2,
- "interface": "wan2",
- "parent_interface": "wan2",
- "ip_addr": "192.168.33.2",
- "gateway": "192.168.33.1",
- "internet": "DHCP",
- "updatetime": "1763804872",
- "auto_switch": "已启用",
- "result": "success",
- "errmsg": "线路检测成功",
- "comment": ""
}
], - "iface_stream": [
- {
- "interface": "lan1",
- "comment": "",
- "ip_addr": "192.168.9.1",
- "connect_num": "--",
- "upload": 41,
- "download": 0,
- "total_up": 18937856,
- "total_down": 99567308,
- "updropped": 0,
- "downdropped": 0,
- "uppacked": 107050,
- "downpacked": 58957
}, - {
- "interface": "wan1",
- "comment": "",
- "ip_addr": "192.168.99.102",
- "connect_num": "1",
- "upload": 2406,
- "download": 2017,
- "total_up": 52160182,
- "total_down": 198655160,
- "updropped": 0,
- "downdropped": 0,
- "uppacked": 118002,
- "downpacked": 142353
}
]
}
}获取线路最近24小时的流量统计数据,包括最大/平均上传下载速率、 丢包率、往返时延等网络质量指标。支持多线路汇总数据。 不支持limit、page、order、key、pattern、filter参数。
{- "message": "Success",
- "results": {
- "wans_stat_history": [
- {
- "max_upload": "1.22",
- "max_download": "1.08",
- "drop_rate": "0.00",
- "avg_rtt": 6.64,
- "max_rtt": 8.64,
- "id": 828,
- "timestamp": 1764152100,
- "interface": "all",
- "avg_upload": "0.95",
- "min_rtt": 5.95,
- "avg_download": "0.85"
}, - {
- "max_upload": "1.22",
- "max_download": "1.08",
- "drop_rate": "0.00",
- "avg_rtt": 6.35,
- "max_rtt": 6.69,
- "id": 826,
- "timestamp": 1764152100,
- "interface": "wan1",
- "avg_upload": "0.95",
- "min_rtt": 5.95,
- "avg_download": "0.85"
}
]
}
}获取内网(LAN)和外网(WAN)接口的配置快照信息,包括接口名称、 MAC地址、IP地址、子网掩码、网关、DNS、接入模式、绑定模式等详细配置。
{- "message": "Success",
- "results": {
- "snapshoot_lan": [
- {
- "id": 1,
- "comment": "",
- "interface": "lan1",
- "bandmode": 0,
- "linkmode": 4,
- "mac": "00:e2:59:00:68:4e",
- "member": [
- "eth0"
], - "ip_addr": "192.168.1.253",
- "netmask": "255.255.254.0"
}, - {
- "id": 2,
- "comment": "",
- "interface": "lan2",
- "bandmode": 0,
- "linkmode": 4,
- "mac": "00:e2:59:00:68:4f",
- "member": [
- "eth1",
- "eth2"
], - "ip_addr": "192.168.29.253",
- "netmask": "255.255.255.0"
}
], - "snapshoot_wan": [
- {
- "id": 1,
- "comment": "wan1",
- "interface": "wan1",
- "mac": "00:e2:59:00:68:53",
- "member": [
- "eth5"
], - "bandmode": 0,
- "linkmode": 4,
- "default_route": 1,
- "internet": 2,
- "ip_addr": "114.241.221.239",
- "netmask": "255.255.255.255",
- "gateway": "114.241.208.1",
- "dns1": "202.106.46.151",
- "dns2": "202.106.195.68",
- "count_static": 0,
- "count_dhcp": 0,
- "count_pppoe": 0,
- "count_check_fail": 0,
- "updatetime": 1773147772,
- "check_res": 0,
- "errmsg": "线路检测成功",
- "power": "",
- "isp": "",
- "imei": "",
- "qnw": "",
- "ccid": "",
- "isnr": "",
- "pcid": ""
}
]
}
}查询物理网卡列表和网卡对应的属性信息,包括驱动、网卡类型、 MAC地址、连接状态、协商速率、双工模式、网卡型号及所属接口等。
{- "message": "Success",
- "results": {
- "ether_info": {
- "eth0": {
- "driver": "igb",
- "type": "TP",
- "mac": "00:e2:69:00:89:e5",
- "link": 1,
- "speed": 100,
- "duplex": 1,
- "model": "Intel Corporation I211 Gigabit Network Connection",
- "interface": "lan1",
- "lock": 0,
- "bindmod": 0
}, - "eth1": {
- "driver": "igb",
- "type": "TP",
- "mac": "00:e2:69:00:89:e6",
- "link": 1,
- "speed": 1000,
- "duplex": 1,
- "model": "Intel Corporation I211 Gigabit Network Connection",
- "interface": "lan1",
- "lock": 0,
- "bindmod": 0
}, - "vnet": {
- "driver": "kvm",
- "type": "TP",
- "mac": "00:00:00:00:00:00",
- "link": 1,
- "speed": 1000,
- "duplex": 1,
- "model": "Kvm Virtual Bridge Enternet Controller",
- "interface": "Null",
- "lock": 0,
- "bindmod": 0
}
}
}
}查询IPv6线路详情,包括wan线路IPv6的转发流量负载, 包含连接数、上行速率、下行速率、总上行流量、总下行流量等信息。
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "download": 0,
- "interface": "vwan666",
- "conn": 0,
- "upload": 0,
- "id": 1,
- "total_upload": "0",
- "total_download": "0"
}
]
}
}{- "message": "Success",
- "results": {
- "sysinfo": {
- "cpu": [
- "12.78%",
- "15.15%",
- "12.87%",
- "12.87%",
- "12.87%"
], - "cputemp": [
- 62
], - "freq": [
- "2000",
- "2000",
- "2000",
- "2000"
], - "gwid": "dc345846a78aa2521afe00916af191d7",
- "hostname": "iKuai",
- "ip_addr": "192.168.99.1",
- "link_status": 0,
- "memory": {
- "total": 1774768,
- "available": 919360,
- "free": 966748,
- "cached": 323988,
- "buffers": 15668,
- "used": "48%"
}, - "online_user": {
- "count": 0,
- "count_2g": 0,
- "count_5g": 0,
- "count_wired": 0,
- "count_wireless": 0
}, - "stream": {
- "connect_num": 78,
- "tcp_connect_num": 48,
- "udp_connect_num": 28,
- "icmp_connect_num": 2,
- "upload": 0,
- "download": 0,
- "total_up": 22867423,
- "total_down": 180169006
}, - "uptime": 9837,
- "verinfo": {
- "modelname": "",
- "verstring": "4.0.111-beta x64 Enterprise Build202603131338",
- "version": "4.0.111",
- "build_date": 202603131338,
- "arch": "x86",
- "sysbit": "x64"
}
}
}
}获取指定时间范围内的CPU负载监控数据。 支持按小时、天、周、月进行数据聚合,可选择平均值或最大值。
| datetype required | string Enum: "hour" "day" "week" "month" Example: datetype=hour 数据聚合类型 |
| start_time required | integer <int64> Example: start_time=1763532000 开始时间戳 |
| end_time required | integer <int64> Example: end_time=1763536500 结束时间戳 |
| math required | string Enum: "avg" "max" Example: math=avg 数学计算方式 |
{- "message": "Success",
- "results": {
- "cpu": [
- {
- "cpu": 0,
- "timestamp": 1763532960
}
]
}
}获取指定时间范围内的内存使用监控数据。 支持按小时、天、周、月进行数据聚合,可选择平均值或最大值。
| datetype required | string Enum: "hour" "day" "week" "month" Example: datetype=hour 数据聚合类型 |
| start_time required | integer <int64> Example: start_time=1763532000 开始时间戳 |
| end_time required | integer <int64> Example: end_time=1763536500 结束时间戳 |
| math required | string Enum: "avg" "max" Example: math=avg 数学计算方式 |
{- "message": "Success",
- "results": {
- "memory": [
- {
- "timestamp": 1763532960,
- "memory": 1067964,
- "memory_use": 60
}
]
}
}获取指定时间范围内的磁盘空间使用监控数据。 支持按小时、天、周、月进行数据聚合,可选择平均值或最大值。
| datetype required | string Enum: "hour" "day" "week" "month" Example: datetype=hour 数据聚合类型 |
| start_time required | integer <int64> Example: start_time=1763532000 开始时间戳 |
| end_time required | integer <int64> Example: end_time=1763536500 结束时间戳 |
| math required | string Enum: "avg" "max" Example: math=avg 数学计算方式 |
{- "message": "Success",
- "results": {
- "disk_space_used": [
- {
- "timestamp": 1763532960,
- "disk_space_use": 75,
- "disk_space_used": 2543
}
]
}
}获取指定时间范围内的在线终端数监控数据。 支持按小时、天、周、月进行数据聚合,可选择平均值或最大值。
| datetype required | string Enum: "hour" "day" "week" "month" Example: datetype=hour 数据聚合类型 |
| start_time required | integer <int64> Example: start_time=1763532000 开始时间戳 |
| end_time required | integer <int64> Example: end_time=1763536500 结束时间戳 |
| math required | string Enum: "avg" "max" Example: math=avg 数学计算方式 |
{- "message": "Success",
- "results": {
- "on_terminal": [
- {
- "on_terminal": 1,
- "timestamp": 1763532960
}
]
}
}获取指定时间范围内的连接数监控数据。 支持按小时、天、周、月进行数据聚合,可选择平均值或最大值。
| datetype required | string Enum: "hour" "day" "week" "month" Example: datetype=hour 数据聚合类型 |
| start_time required | integer <int64> Example: start_time=1763532000 开始时间戳 |
| end_time required | integer <int64> Example: end_time=1763536500 结束时间戳 |
| math required | string Enum: "avg" "max" Example: math=avg 数学计算方式 |
{- "message": "Success",
- "results": {
- "conn_num": [
- {
- "conn_num": 6,
- "timestamp": 1763532960
}
]
}
}获取指定时间范围内的系统温度监控数据。 支持按小时、天、周、月进行数据聚合,可选择平均值或最大值。
| datetype required | string Enum: "hour" "day" "week" "month" Example: datetype=hour 数据聚合类型 |
| start_time required | integer <int64> Example: start_time=1763532000 开始时间戳 |
| end_time required | integer <int64> Example: end_time=1763536500 结束时间戳 |
| math required | string Enum: "avg" "max" Example: math=avg 数学计算方式 |
{- "message": "Success",
- "results": {
- "cputemp1": [
- {
- "cputemp1": 56,
- "timestamp": 1763532960
}
]
}
}获取指定时间范围内的网络负载监控数据。 支持按小时、天、周、月进行数据聚合,可选择平均值或最大值。
| datetype required | string Enum: "hour" "day" "week" "month" Example: datetype=hour 数据聚合类型 |
| start_time required | integer <int64> Example: start_time=1763532000 开始时间戳 |
| end_time required | integer <int64> Example: end_time=1763536500 结束时间戳 |
| math required | string Enum: "avg" "max" Example: math=avg 数学计算方式 |
{- "message": "Success",
- "results": {
- "rate_stat": [
- {
- "timestamp": 1764152520,
- "max_upload": 0,
- "max_download": 0,
- "rx_packages": 1534,
- "tx_packages": 752
}
]
}
}查询周边设备列表,支持分页、过滤和设备类型筛选。
设备类型筛选(device参数):
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 50 Example: limit=50 每页记录数 |
| order | string Default: "asc" Enum: "asc" "desc" Example: order=asc 排序方向,asc为升序(默认),desc为降序 |
| order_by | string Default: "id" Example: order_by=id 排序字段,支持id、name、ip_addr、status、last_time等字段 |
| filter | string Example: filter=device==camera 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=name,ip_addr 模糊匹配字段列表,支持 name, tagname, ip_addr, mac, device, access |
| pattern | string Example: pattern=192.168 模糊匹配内容 |
{- "results": {
- "total": 15,
- "data": [
- {
- "id": 1,
- "enabled": "yes",
- "name": "核心交换机",
- "tagname": "核心交换机",
- "type": 0,
- "ip_addr": "192.168.1.1",
- "mac": "",
- "port": "80",
- "protocol": "tcp",
- "autonat": 0,
- "eport": "",
- "access": "http",
- "method": "icmp",
- "device": "switches",
- "shell_port": 22,
- "last_time": 0,
- "status": 1
}, - {
- "id": 2,
- "enabled": "yes",
- "name": "监控摄像头01",
- "tagname": "监控摄像头01",
- "type": 0,
- "ip_addr": "192.168.1.100",
- "mac": "",
- "port": "554",
- "protocol": "tcp",
- "autonat": 1,
- "eport": "8554",
- "access": "",
- "method": "portscan",
- "device": "camera",
- "shell_port": 0,
- "last_time": 1678867200,
- "status": 0
}
]
}
}获取最近24小时的应用协议流量统计信息,包括应用名称、分类、 总流量、上下行流量等详细数据。支持分页查询,不支持key、pattern、filter。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 20 Example: limit=20 每页记录数 |
{- "message": "Success",
- "results": {
- "proto3_day": [
- {
- "appname": "阿里云",
- "appname_level1": "云服务",
- "appname_level2": "传输下载",
- "total": 95062858,
- "id": 2,
- "total_down": 47258077,
- "total_up": 47804781,
- "appid": 2540017
}, - {
- "appname": "HTTPS",
- "appname_level1": "基础协议",
- "appname_level2": "网络协议",
- "total": 80009645,
- "id": 3,
- "total_down": 71440106,
- "total_up": 8569539,
- "appid": 1000020
}
], - "proto3_day_total": 56,
- "proto3_day_total_flow": 733339966
}
}查询最近24小时协议分类的流量使用详情,返回各协议大类的流量汇总。 协议大类包括:网络协议、传输下载、休闲娱乐、生活服务、办公协作、 社交通讯、效率工具、网络游戏、金融理财、学习教育等。 支持时间段范围查询,不支持limit、page、key、pattern、filter。
| starttime | integer <int64> Example: starttime=1773215100 查询起始时间戳(Unix时间戳) |
| stoptime | integer <int64> Example: stoptime=1773215100 查询结束时间戳(Unix时间戳) |
{- "message": "Success",
- "results": {
- "data": [
- {
- "proto": "1000000:1499999",
- "proto_name": "网络协议",
- "total": 256535748864
}, - {
- "proto": "2500000:2999999",
- "proto_name": "传输下载",
- "total": 171852275684
}, - {
- "proto": "3000000:3499999",
- "proto_name": "休闲娱乐",
- "total": 52848833471
}, - {
- "proto": "4:7",
- "proto_name": "未知应用",
- "total": 25864048498
}
]
}
}查询最近24小时协议分类的速率使用详情,每5分钟一个数据点。 返回各协议分类的上下行速率、总流量、连接数等信息。 支持时间段范围查询(可选),不支持limit、page、key、pattern、filter。
| starttime | integer <int64> Example: starttime=1773215100 查询起始时间戳(Unix时间戳,可选) |
| stoptime | integer <int64> Example: stoptime=1773215100 查询结束时间戳(Unix时间戳,可选) |
{- "message": "Success",
- "results": {
- "data": [
- {
- "proto": "3500000:3999999",
- "proto_name": "效率工具",
- "id": 112451,
- "timestamp": 1773215100,
- "conn_cnt": 59,
- "upload": 40033,
- "download": 309602,
- "total_up": 5975668,
- "total_down": 8691312,
- "total": 14666980
}, - {
- "proto": "4:7",
- "proto_name": "未知应用",
- "id": 112452,
- "timestamp": 1773215100,
- "conn_cnt": 240,
- "upload": 4678,
- "download": 4911,
- "total_up": 2313328,
- "total_down": 18727212,
- "total": 21040540
}
]
}
}查询当前各应用协议的速率使用详情,包括当前连接数、上下行速率、总流量等。 支持分页查询,支持按上下行流量进行排序,不支持key、pattern、filter。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 20 Example: limit=20 每页记录数 |
| order | string Default: "asc" Enum: "asc" "desc" Example: order=desc 排序方向,asc为升序(默认),desc为降序 |
| order_by | string Default: "total_down" Enum: "upload" "download" "total_up" "total_down" Example: order_by=total_down 排序字段,支持按上行(upload、total_up)或下行(download、total_down)流量排序 |
{- "message": "Success",
- "results": {
- "data": [
- {
- "appid": 2580003,
- "appname": "IOS更新",
- "proto1_name": "2500000:2999999",
- "total_up": 814625315,
- "total_down": 112532061362,
- "conn_cnt": 0,
- "upload": 0,
- "download": 0,
- "id": 1,
- "total": 113346686677,
- "proto2_name": "2580001:2590000"
}, - {
- "appid": 1000024,
- "appname": "IOS更新",
- "proto1_name": "1000000:1499999",
- "total_up": 4293602113,
- "total_down": 80956644079,
- "conn_cnt": 61,
- "upload": 20077,
- "download": 434711,
- "id": 2,
- "total": 85250246192,
- "proto2_name": "1000001:1010000"
}
]
}
}查询指定应用协议的最近24小时历史速率使用详情,每5分钟一个数据点。 例如可查询微信、QQ的最近24小时历史速率负载。 支持时间段范围查询,必须指定应用协议ID(appids),支持多个ID以逗号分隔。 不支持limit、page、key、pattern、filter。
| starttime | integer <int64> Example: starttime=1773215100 查询起始时间戳(Unix时间戳,可选) |
| stoptime | integer <int64> Example: stoptime=1773215100 查询结束时间戳(Unix时间戳,可选) |
| appids required | string Example: appids=2580003,2580004 应用协议ID,必须指定,支持多个ID以逗号分隔(如 2580003,2580004) |
{- "message": "Success",
- "results": {
- "data": [
- {
- "id": 2148885,
- "timestamp": 1773216900,
- "appid": 2580003,
- "appname": "微信",
- "conn_cnt": 16,
- "upload": 1294,
- "download": 2838,
- "total_up": 2418577,
- "total_down": 216010661,
- "total": 218429238
}, - {
- "id": 2149034,
- "timestamp": 1773217200,
- "appid": 2580003,
- "appname": "微信",
- "conn_cnt": 5,
- "upload": 0,
- "download": 0,
- "total_up": 2290568,
- "total_down": 209349430,
- "total": 211639998
}
]
}
}查询有哪些终端访问过指定的应用协议,列出终端当前的上下行速率、 总流量、连接数、主机名、MAC地址等信息。 必须指定应用协议ID(appid)。 不支持limit、page、key、pattern、filter。
| appid required | integer <int64> Example: appid=2580003 应用协议ID,必须指定 |
{- "message": "Success",
- "results": {
- "data": [
- {
- "conn_cnt": 0,
- "upload": 0,
- "download": 0,
- "comment": "",
- "ipaddr_int": 3232236433,
- "hostname": "ghuadeMBP",
- "client_model": "",
- "client_type": "MacOS",
- "mac": "00:e0:4c:78:a8:06",
- "ipaddr": "192.168.3.145",
- "termname": "",
- "id": 1,
- "uptime": 1773147773,
- "total_up": 53352,
- "total_down": 138375
}, - {
- "conn_cnt": 0,
- "upload": 0,
- "download": 0,
- "comment": "",
- "ipaddr_int": 3232236548,
- "hostname": "iKuaigaideiMac2",
- "client_model": "iQOO%20Neo5%20SE",
- "client_type": "Android",
- "mac": "04:9d:05:53:46:33",
- "ipaddr": "192.168.4.4",
- "termname": "",
- "id": 2,
- "uptime": 1773147773,
- "total_up": 560,
- "total_down": 720
}
]
}
}查询云管交换机设备列表,支持分页和过滤。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 50 Example: limit=50 每页记录数 |
| order | string Default: "asc" Enum: "asc" "desc" Example: order=asc 排序方向,asc为升序(默认),desc为降序 |
| order_by | string Default: "id" Example: order_by=id 排序字段,支持id、name、ip_addr、status、connect_time等字段 |
| filter | string Example: filter=status==1 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=name,ip_addr,mac 模糊匹配字段列表,支持 name, tagname, ip_addr, mac, device, oemname |
| pattern | string Example: pattern=交换机 模糊匹配内容 |
{- "results": {
- "data": [
- {
- "id": 1,
- "name": "核心交换机",
- "tagname": "核心交换机",
- "oemname": "IK-J7052",
- "mac": "aa:bb:cc:dd:ee:ff",
- "ip_addr": "192.168.1.100",
- "netmask": "255.255.255.0",
- "version": "v1.0.0",
- "device": "IK-J7052",
- "connect_time": 1678886400,
- "type": "IK_J7052",
- "snmp_version": "v2c",
- "status": 1
}
], - "total": 5
}
}查询 MAC 终端维度的流量审计统计列表。 数据按 MAC 聚合,返回累计上行、累计下行等信息,可按时间范围查询。
| limit | string^\\d+,\\d+$ Default: "0,50" Example: limit=0,50 分页参数,格式为 offset,count |
| starttime | integer <int64> Example: starttime=1778121610 查询起始时间戳 |
| stoptime | integer <int64> Example: stoptime=1778125210 查询结束时间戳 |
{- "code": 0,
- "message": "Success",
- "results": {
- "daytime": [
- {
- "mac": "68:da:73:a1:d9:01",
- "comment": "",
- "sum_total_up": 1928782910,
- "sum_total_down": 7899352962
}, - {
- "mac": "fe:74:26:af:a4:09",
- "comment": "test001",
- "sum_total_up": 18983257,
- "sum_total_down": 759188865
}
], - "daytime_total": 9
}
}查询指定 MAC 终端的流量趋势详情。 返回 IPv4 日流量统计数据,并在存在 IPv6 统计数据时同步返回 IPv6 日流量统计数据。 终端身份由查询参数 mac 确定,结果默认按统计日期升序返回。
| mac required | string^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$ Example: mac=68:da:73:a1:d9:01 MAC 地址 |
{- "code": 0,
- "message": "Success",
- "results": {
- "daytime": [
- {
- "mac": "68:da:73:a1:d9:01",
- "base_total_up": 0,
- "base_total_down": 0,
- "total_up": 219189326,
- "total_down": 649378079,
- "auth": 0,
- "systype": "MacOS",
- "devtype": "Apple",
- "comment": "",
- "sum_total_up": 219189326,
- "sum_total_down": 649378079,
- "sum_online": 43799,
- "termname": "",
- "id": 6,
- "timestamp": 1776397741,
- "logout_time": 1776441540,
- "daytime": 1776355200,
- "online_time": 43799,
- "ip_addr": "192.168.99.102"
}
], - "daytime6": [
- {
- "auth": 0,
- "systype": "MacOS",
- "devtype": "Apple",
- "comment": "",
- "sum_total_up": 828568,
- "sum_total_down": 2772487,
- "sum_online": 13140,
- "id": 69,
- "timestamp": 1777305531,
- "logout_time": 1777305540,
- "daytime": 1777219200,
- "online_time": 9,
- "ip_addr": "fc00:78aa:2521:0001:14d7:9c58:4fc2:a58e",
- "mac": "68:da:73:a1:d9:01",
- "base_total_up": 0,
- "base_total_down": 0,
- "total_up": 1199,
- "total_down": 729
}
]
}
}查询指定 MAC 终端的应用流量明细。
| mac required | string^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$ Example: mac=68:da:73:a1:d9:01 MAC 地址 |
| method | string Default: "day" Enum: "hour" "day" Example: method=hour 应用流量统计粒度,不传时按日统计 |
| starttime | integer <int64> Example: starttime=1778083200 查询起始时间戳(仅 method=hour 时有效,不传默认为当前时间前 1 小时) |
| stoptime | integer <int64> Example: stoptime=1778169600 查询结束时间戳(仅 method=hour 时有效,不传默认为当前时间) |
{- "code": 0,
- "message": "Success",
- "results": {
- "app_data": [
- {
- "timestamp": 1778083200,
- "apps": {
- "网页浏览": "1275244107",
- "谷歌通用协议": "2182276",
- "钉钉": "1701224",
- "腾讯私有协议": "1467689"
}
}, - {
- "timestamp": 1778169600,
- "apps": {
- "HTTPS": "858993459",
- "企业微信": "419430400"
}
}
]
}
}查询认证账号维度的流量审计统计列表。 数据按账号聚合,返回累计上行、累计下行等信息,可按时间范围查询。
| limit | string^\\d+,\\d+$ Default: "0,50" Example: limit=0,50 分页参数,格式为 offset,count |
| starttime | integer <int64> Example: starttime=1778121610 查询起始时间戳 |
| stoptime | integer <int64> Example: stoptime=1778125210 查询结束时间戳 |
{- "code": 0,
- "message": "Success",
- "results": {
- "daytime_vpn": [
- {
- "mac": "vpn_user01",
- "comment": "远程办公",
- "sum_total_up": 1928782910,
- "sum_total_down": 7899352962
}
], - "daytime_vpn_total": 1
}
}查询指定认证账号的流量趋势详情,返回账号维度的日流量统计数据,结果默认按统计日期升序返回。
| username required | string Example: username=vpn_user01 认证账号名称 |
{- "code": 0,
- "message": "Success",
- "results": {
- "daytime_vpn": [
- {
- "id": 2,
- "timestamp": 1778116236,
- "logout_time": 1778125080,
- "daytime": 1778083200,
- "online_time": 8844,
- "ip_addr": "10.10.10.2",
- "mac": "vpn_user01",
- "mac_addr": "68:da:73:a1:d9:01",
- "base_total_up": 0,
- "base_total_down": 0,
- "total_up": 73861576,
- "total_down": 1320258077,
- "auth": 1,
- "systype": "Windows",
- "devtype": "PC",
- "comment": "远程办公",
- "sum_total_up": 73861576,
- "sum_total_down": 1320258077,
- "sum_online": 8844
}
]
}
}查询指定认证账号的应用流量明细。
| username required | string Example: username=vpn_user01 认证账号名称 |
| method | string Default: "day" Enum: "hour" "day" Example: method=hour 应用流量统计粒度,不传时按日统计 |
| starttime | integer <int64> Example: starttime=1778083200 查询起始时间戳(仅 method=hour 时有效,不传默认为当前时间前 1 小时) |
| stoptime | integer <int64> Example: stoptime=1778169600 查询结束时间戳(仅 method=hour 时有效,不传默认为当前时间) |
{- "code": 0,
- "message": "Success",
- "results": {
- "app_username_data": [
- {
- "timestamp": 1778083200,
- "apps": {
- "HTTPS": "209715200",
- "企业微信": "83886080",
- "远程桌面": "41943040"
}
}, - {
- "timestamp": 1778169600,
- "apps": {
- "网页浏览": "536870912",
- "钉钉": "268435456"
}
}
]
}
}{- "message": "Success",
- "results": {
- "ap_status": {
- "ap_count": 3,
- "ap_online": 3,
- "ap_offline": 0,
- "ap_perfer_5g": 3,
- "ap_roaming": 3
}, - "clt_status": {
- "clt_count": 1,
- "clt_count_2g": 0,
- "clt_count_5g": 1,
- "clt_max_online": 3,
- "clt_active": 0,
- "clt_inactive": 1
}
}
}获取最近24小时内AP设备的无线流量统计数据,包括五分钟累计流量和实时上下行速率。 可通过apmac参数过滤指定AP的数据,不提供则汇总所有AP数据。
| apmac | string^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ Example: apmac=00:00:00:00:00:00 AP设备MAC地址,不提供则汇总所有AP数据 |
{- "message": "Success",
- "results": {
- "total_count_flow": [
- {
- "id": 1,
- "timestamp": 1763804700,
- "upload": 1024,
- "download": 2048,
- "count5m_up": 0,
- "count5m_down": 0
}
]
}
}获取最近24小时内无线网络质量评分,包括用户活跃度、空口健康度、信道负载、 关联稳定度、延迟、信号覆盖度、丢包率等评分指标。
{- "message": "Success",
- "results": {
- "total_count_net_status": {
- "score_active_user": 74,
- "score_chutil_load": 95,
- "score_channf_load": 100,
- "score_conn_sta": 98,
- "delay": 0,
- "coverage": 100,
- "dropptk": 0
}
}
}获取各SSID的终端连接历史统计信息,按每小时汇总。 可通过ssid参数过滤指定SSID的数据,不提供则返回所有SSID数据。
| ssid | string <= 100 characters Example: ssid=iKuai01_2G SSID名称,不提供则返回所有SSID数据 |
{- "message": "Success",
- "results": {
- "ssid_sta_history": [
- {
- "timestamp": 1763784900,
- "ssid": "iKuai01_2G",
- "total": 1
}
]
}
}获取各信道的终端连接历史统计信息,按每小时汇总。 可通过channel参数过滤指定信道的数据,不提供则返回所有信道数据。
| channel | integer [ 1 .. 165 ] Example: channel=1 无线信道号,不提供则返回所有信道数据 |
{- "message": "Success",
- "results": {
- "channel_sta_history": [
- {
- "timestamp": 1763784900,
- "channel": 1,
- "online": 0,
- "apnum": 1
}
]
}
}