获取网络设备列表
开发中
GET
https://api.flashcat.cloud/api/n9e-plus/network-devices
最后修改时间:2025-03-13 11:53:02
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flashcat.cloud/api/n9e-plus/network-devices?gids=1&query=&limit=10&p=1&target_idents=&snmp_tpl_ids=&sys_desc&disabled'
响应示例响应示例
{
"dat": {
"list": [
{
"id": 1,
"group_id": 56,
"ip": "10.201.0.229",
"dc": "",
"tags": [
"brand=topsec",
"community=topsecIN"
],
"board_url": "/dashboards/409?databases=11&ident=$ip",
"note": "test-demo",
"custom_thresholds": null,
"custom_thresholds_tables": [
null
],
"collect_disabled": 0,
"target_idents": [
"test-demo"
],
"snmp_tpl_ids": [
127
],
"snmp_version": 2,
"snmp_schema": "udp",
"snmp_port": 161,
"snmp_timeout": 5,
"auth": {
"community": "public"
},
"auth_toml": "community = \"public\"",
"snmp_tpl_names": [
"Linux System"
],
"sys_name": "test",
"sys_desc": "Linux-test 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64",
"sys_uptime": 0,
"sys_location": "",
"create_at": 1741066839,
"create_by": "",
"update_at": 1741866091,
"update_by": "t1@flashcat.cloud"
}
],
"total": 1
},
"err": ""
}
请求参数
Query 参数
gids
string
业务主id
示例值:
1
query
string
搜索
limit
string
每页条数
示例值:
10
p
string
页码
示例值:
1
target_idents
string
采集Agent名称
snmp_tpl_ids
string
采集模板ids
sys_desc
string
设备型号
disabled
integer
禁用启用筛选