pingmesh-idc网络规则注册(From CMDB)
测试中
POST
https://api.flashcat.cloud/v1/n9e-plus/pingmesh/idcs/network/ident/ips/rule
pingmesh
最后修改时间:2024-03-08 11:32:02
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/v1/n9e-plus/pingmesh/idcs/network/ident/ips/rule' \
--header 'Authorization: Basic cm9vdDpjY2MyNmRhN2I5YWJhNTMzY2JiMjYzYTM2YzA3ZGNjNQ==' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"name": "idc1",
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "tcp",
"ports": [
"2324"
]
}
],
"idents": [
{
"net_ident": "rack1#1f_11",
"ident_ips": [
{
"ip": "10.206.0.16",
"hostname": "tt-fc-dev01.nj"
}
]
}
],
"server_percent": 40
},
{
"name": "idc2",
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "tcp",
"ports": [
"main:9099",
"8080"
]
}
],
"idents": [
{
"net_ident": "rack2#2f-22",
"ident_ips": [
{
"ip": "10.206.0.13",
"hostname": "tt-fc-es02.nj"
}
]
}
],
"server_percent": 40
},
{
"name": "idc3",
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "tcp",
"ports": [
"8089"
]
},
{
"protocol": "icmp",
"ports": []
}
],
"idents": [
{
"net_ident": "rack3#3f-33",
"ident_ips": [
{
"ip": "10.206.16.8",
"hostname": "tt-fc-log00.nj"
}
]
}
],
"server_percent": 40
},
{
"name": "idc4",
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "udp",
"ports": [
"8080"
]
}
],
"idents": [
{
"net_ident": "rack4#4f-44",
"ident_ips": [
{
"ip": "10.206.16.17",
"hostname": "VM-16-17-centos"
}
]
}
],
"server_percent": 40
},
{
"name": "idc5",
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "udp",
"ports": [
"8080"
]
}
],
"idents": [
{
"net_ident": "rack5#5f-55",
"ident_ips": [
{
"ip": "10.206.16.7",
"hostname": "VM-16-7-centos"
}
]
}
],
"server_percent": 40
}
]'
响应示例响应示例
{
"err": ""
}
请求参数
Header 参数
Authorization
string
必需
示例值:
Basic cm9vdDpjY2MyNmRhN2I5YWJhNTMzY2JiMjYzYTM2YzA3ZGNjNQ==
Body 参数application/json