创建网络设备
开发中
POST
https://api.flashcat.cloud/api/n9e-plus/network-devices
最后修改时间:2024-03-20 08:01:55
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/api/n9e-plus/network-devices' \
--header 'Content-Type: application/json' \
--data-raw '{
"group_id": 1,
"ip": "10.201.0.3",
"dc": "shanghai",
"tags": [
"aa=aa",
"bb=bb"
],
"board_url": "http://10.206.0.11:8765/dashboards/2?datasource=52&ident=${ip}",
"note": "测试",
"target_idents": [
"tt-fc-dev01.nj"
],
"snmp_tpl_ids": [
2
],
"snmp_version": 2,
"snmp_schema": "udp",
"snmp_port": 161,
"snmp_timeout": 5,
"auth": {
"community": "public"
},
"collect_disabled": 0,
"custom_thresholds": [
{
"threshold":{
"net_in_util":0.8,
"net_out_util":0.8
},
"labels":{
"snmp_index":"1.1"
}
}
]
}'
响应示例响应示例
{
"err": "string"
}
请求参数
Body 参数application/json