Download OpenAPI specification:
来源于 ikuai-doc/openapi_specs/log/。
为避免 Redoc 单页一次性加载全部 API 导致浏览器 heap 过高,部署版按分类拆分。
获取ARP日志记录列表。 支持过滤和分页功能,可以查询ARP地址欺骗等安全事件。
| 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=asc 排序方向 |
| order_by | string Default: "id" Enum: "id" "timestamp" Example: order_by=timestamp 排序字段 |
| key | string Example: key=content 模糊匹配字段列表,支持 content |
| pattern | string Example: pattern=地址欺骗 模糊匹配内容 |
| filter | string Example: filter=id==1 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
{- "message": "Success",
- "results": {
- "total": 2,
- "data": [
- {
- "content": "检测到一个ARP地址欺骗在接口(eth0): 192.168.0.14 08:9b:4b:44:ec:b6->88:68:4b:e4:f8:ef",
- "id": 1,
- "timestamp": 1736472037
}, - {
- "content": "检测到一个ARP地址欺骗在接口(_vlan31): 192.168.31.6 24:14:07:0f:5c:f3->f2:a5:cf:d3:fd:6c",
- "id": 2,
- "timestamp": 1736472041
}
]
}
}获取用户认证日志记录列表。 支持过滤和分页功能,可以查询不同类型的VPN认证记录。
| 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 排序方向 |
| order_by | string Default: "id" Enum: "id" "timestamp" "username" Example: order_by=timestamp 排序字段 |
| key | string Example: key=username,macip 模糊匹配字段列表,支持 username, macip, ip_addr |
| pattern | string Example: pattern=test001 模糊匹配内容 |
| filter | string Example: filter=ppptype==l2tp 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
{- "message": "Success",
- "results": {
- "total": 2,
- "data": [
- {
- "id": 1,
- "timestamp": 1736474741,
- "username": "test001",
- "macip": "123.116.190.223",
- "ppptype": "l2tp",
- "result": "认证成功",
- "ip_addr": "192.168.30.101",
- "webid": 0,
- "event": "--",
- "interface": "--"
}, - {
- "id": 2,
- "timestamp": 1736527419,
- "username": "test002",
- "macip": "37.19.205.242",
- "ppptype": "l2tp",
- "result": "认证成功",
- "ip_addr": "192.168.30.106",
- "webid": 0,
- "event": "--",
- "interface": "--"
}
]
}
}获取动态域名日志记录列表。 支持过滤和分页功能,可以查询动态域名解析等记录。
| 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=timestamp 排序字段,支持id、timestamp、status等字段 |
| filter | string Example: filter=status==success 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=domain,status 模糊匹配字段列表,支持 domain, status, message |
| pattern | string Example: pattern=example.com 模糊匹配内容 |
{- "message": "Success",
- "results": {
- "total": 25,
- "data": [
- {
- "id": 1,
- "timestamp": 1761842271,
- "domain": "example.com",
- "status": "success",
- "ip_addr": "192.168.1.100",
- "message": "解析成功"
}
]
}
}获取DHCP日志记录列表。 支持过滤和分页功能,可以查询DHCP协议交互等记录。
| 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=timestamp 排序字段,支持id、timestamp、msgtype、interface等字段 |
| filter | string Example: filter=msgtype==DHCPACK 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=msgtype,interface 模糊匹配字段列表,支持 msgtype, interface, ip_addr, mac |
| pattern | string Example: pattern=DHCPACK 模糊匹配内容 |
{- "message": "Success",
- "results": {
- "total": 3,
- "data": [
- {
- "id": 4241,
- "timestamp": 1761842271,
- "msgtype": "DHCPACK",
- "event": "--",
- "interface": "lan1",
- "ip_addr": "192.168.9.106",
- "mac": "a6:8d:9a:61:96:90"
}
]
}
}获取消息中心通知列表。 支持按消息类型、已读状态、时间戳等字段过滤,也支持按标题、详情等字段模糊搜索。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 50 Example: limit=50 每页记录数 |
| order | string Default: "desc" Enum: "asc" "desc" Example: order=desc 排序方向,asc为升序,desc为降序 |
| order_by | string Default: "timestamp" Example: order_by=timestamp 排序字段,支持 id、timestamp、type、status、title |
| filter | string Example: filter=status==0 过滤条件,支持精确匹配、范围匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=title,detail 模糊搜索字段名,与 pattern 联合使用,支持 title、detail |
| pattern | string Example: pattern=升级 模糊搜索关键词,与 key 联合使用 |
{- "code": 0,
- "message": "Success",
- "results": {
- "total": 2,
- "data": [
- {
- "id": 1,
- "timestamp": 1778763600,
- "title": "发现新版本",
- "type": 1,
- "detail": "检测到可升级版本 4.0.111",
- "image": "",
- "status": 0
}, - {
- "id": 2,
- "timestamp": 1778756400,
- "title": "自动备份成功",
- "type": 2,
- "detail": "配置文件自动备份已完成",
- "image": "",
- "status": 1
}
]
}
}获取推送通知日志记录列表。 支持过滤和分页功能,可以查询各类推送通知记录。
| 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=timestamp 排序字段,支持id、timestamp、type、ip_addr等字段 |
| filter | string Example: filter=type==email 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=type,event 模糊匹配字段列表,支持 type, ip_addr, event |
| pattern | string Example: pattern=通知 模糊匹配内容 |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "timestamp": 1762342517,
- "type": "email",
- "ip_addr": "192.168.1.100",
- "event": "通知发送成功"
}
]
}
}获取外网拨号日志记录列表。 支持过滤和分页功能,可以查询PPP连接状态等信息。
| 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=timestamp 排序字段,支持id、timestamp、interface等字段 |
| filter | string Example: filter=interface==adsl1 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=interface,content 模糊匹配字段列表,支持 interface, content |
| pattern | string Example: pattern=pppd 模糊匹配内容 |
{- "message": "Success",
- "results": {
- "total": 3,
- "data": [
- {
- "id": 1,
- "timestamp": 1762342517,
- "interface": "adsl1",
- "content": "pppd 2.4.7 started by root, uid 0"
}
]
}
}获取系统日志记录列表。 支持过滤和分页功能,可以查询系统运行状态等记录。
| 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=timestamp 排序字段,支持id、timestamp、level、module等字段 |
| filter | string Example: filter=level==error 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=level,module 模糊匹配字段列表,支持 level, module, message, process |
| pattern | string Example: pattern=error 模糊匹配内容 |
{- "message": "Success",
- "results": {
- "total": 25,
- "data": [
- {
- "id": 1,
- "timestamp": 1763450144,
- "level": "info",
- "module": "kernel",
- "message": "系统启动完成",
- "process": "systemd"
}
]
}
}获取终端上下线日志记录列表。 支持分页、排序、过滤、时间范围查询和模糊匹配。
| 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=desc 排序方向,asc为升序(默认),desc为降序 |
| order_by | string Default: "id" Example: order_by=timestamp 排序字段,支持id、timestamp、logout_time、date_time、online_time、ip_addr、mac等字段 |
| filter | string Example: filter=ip_addr==192.168.1.100 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=ip_addr,mac,username 模糊匹配字段列表,支持 mac, ip_addr, systype, devtype, client_model, comment, username, termname |
| pattern | string Example: pattern=192.168.1 模糊匹配内容 |
| starttime | integer <int64> Example: starttime=1761842000 查询开始时间,Unix 时间戳,非必填,用于限定查询时间范围 |
| stoptime | integer <int64> Example: stoptime=1761843000 查询结束时间,Unix 时间戳,非必填,用于限定查询时间范围 |
{- "code": 0,
- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "comment": "",
- "id": 47,
- "timestamp": 1778232965,
- "logout_time": 1778233560,
- "online_time": 595,
- "ip_addr": "192.168.99.102",
- "username": "",
- "mac": "68:da:73:a1:d9:01",
- "total_up": 743721,
- "total_down": 1953505,
- "ipv4_gnames": "",
- "date_time": "2026-05-08 17:36:05",
- "termname": "",
- "mac_gnames": "",
- "ipv6_gnames": "",
- "icon": "1_102",
- "auth": 0,
- "systype": "MacOS",
- "today_total": 0,
- "devtype": "Apple",
- "vlan_id": 0,
- "client_model": "",
- "client_typeid": 102000104
}
]
}
}获取终端网址浏览记录列表。 支持分页、时间范围查询和关键词搜索。 limit 默认 20,最大 500,超过最大值时按 500 处理。 未传入时间范围时默认查询当天 00:00 至当前时间;最大查询跨度为 7 天,超出时自动按 stoptime 向前截取 7 天。 当 limit、starttime 或 stoptime 不符合查询约束时,接口不会直接返回参数错误,而是按上述规则自动调整后再查询。 时间范围较大时,请使用分页参数分批获取,避免单次返回数据过大。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer [ 1 .. 500 ] Default: 20 Example: limit=20 每页记录数,默认 20,最大 500;超过最大值时服务端按 500 处理 |
| pattern | string Example: pattern=example.com 搜索关键词,根据索引自动匹配终端 IP、MAC、访问主机名或终端备注 |
| starttime | integer <int64> Example: starttime=1761842000 查询开始时间,Unix 时间戳,非必填;缺失、格式不合法或晚于 stoptime 时,服务端会自动调整为 stoptime 所在日期的 00:00 |
| stoptime | integer <int64> Example: stoptime=1761843000 查询结束时间,Unix 时间戳,非必填;缺失、格式不合法或晚于当前时间时,服务端会自动调整为当前时间 |
{- "code": 0,
- "message": "Success",
- "results": {
- "data": [
- {
- "id": 2001,
- "timestamp": 1761842271,
- "ip_addr": "192.168.1.100",
- "mac": "08:9b:4b:00:10:6e",
- "host": "www.example.com",
- "uri": "/news/detail?id=1",
- "comment": "办公终端",
- "appname": "浏览器",
- "icon": "browser",
- "client_model": "ThinkPad",
- "client_type": "PC"
}
]
}
}获取设备告警信息列表。 支持按告警类型、告警事件、告警等级、已读状态、时间戳等字段过滤。
| page | integer >= 1 Default: 1 Example: page=1 页码(从1开始) |
| limit | integer >= 1 Default: 50 Example: limit=50 每页记录数 |
| order | string Default: "desc" Enum: "asc" "desc" Example: order=desc 排序方向,asc为升序,desc为降序 |
| order_by | string Default: "timestamp" Example: order_by=timestamp 排序字段,支持 id、timestamp、type、event、level、status、title |
| filter | string Example: filter=status==0 过滤条件,支持精确匹配、范围匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=title,detail 模糊搜索字段名,与 pattern 联合使用,支持 event、title、detail、customize |
| pattern | string Example: pattern=CPU 模糊搜索关键词,与 key 联合使用 |
{- "code": 0,
- "message": "Success",
- "results": {
- "total": 2,
- "data": [
- {
- "id": 1,
- "timestamp": 1778763600,
- "event": "CPU",
- "title": "CPU使用率过高",
- "type": 1,
- "level": 2,
- "detail": "CPU使用率持续超过阈值",
- "customize": "",
- "status": 0
}, - {
- "id": 2,
- "timestamp": 1778756400,
- "event": "AP_CHUTIL",
- "title": "AP信道利用率过高",
- "type": 2,
- "level": 1,
- "detail": "AP信道利用率超过阈值",
- "customize": "00:11:22:33:44:55",
- "status": 1
}
]
}
}获取用户WEB操作日志记录列表。 支持过滤和分页功能,可以查询用户登录、配置操作等记录。
| 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=timestamp 排序字段,支持id、timestamp、username、event等字段 |
| filter | string Example: filter=event==登录 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
| key | string Example: key=username,event 模糊匹配字段列表,支持 username, ip_addr, function, event |
| pattern | string Example: pattern=登录 模糊匹配内容 |
{- "message": "Success",
- "results": {
- "total": 2,
- "data": [
- {
- "id": 363,
- "timestamp": 1763779604,
- "username": "admin",
- "ip_addr": "192.168.99.101",
- "function": "--",
- "event": "登录"
}
]
}
}获取无线终端连接/断开日志记录列表。 支持过滤和分页功能,可以查询客户端的连接状态和信号信息。
| 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=asc 排序方向 |
| order_by | string Default: "id" Enum: "id" "timestamp" "mac" "ssid" Example: order_by=timestamp 排序字段 |
| key | string Example: key=mac,ssid 模糊匹配字段列表,支持 mac, ssid, errmsg, mac_comment, apmac_comment |
| pattern | string Example: pattern=5G:IK-Work 模糊匹配内容 |
| filter | string Example: filter=action==login 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
使用示例:
|
{- "message": "Success",
- "results": {
- "total": 2,
- "data": [
- {
- "action": "login",
- "id": 1,
- "timestamp": 1763450144,
- "mac": "de:8e:d0:1f:c1:d6",
- "apmac": "08:9b:4b:11:22:33",
- "bssid": "08:9b:4b:33:44:55",
- "ssid": "5G:IK-Work",
- "errmsg": "成功",
- "signal": -48,
- "mac_comment": "--",
- "apmac_comment": "销售-X7",
- "errid": 0
}, - {
- "action": "logout",
- "id": 2,
- "timestamp": 1763450154,
- "mac": "46:61:43:b4:f6:07",
- "apmac": "08:9b:4b:11:22:33",
- "bssid": "08:9b:4b:33:44:55",
- "ssid": "5G:IK-Work",
- "errmsg": "成功",
- "signal": 0,
- "mac_comment": "--",
- "apmac_comment": "销售-X7",
- "errid": 0
}
]
}
}