curl --location --request POST 'https://api.flashcat.cloud/v1/n9e-plus/pingmesh/idcs/network/ident/ips/rule' \
--header 'Authorization: Basic cm9vdDpjY2MyNmRhN2I5YWJhNTMzY2JiMjYzYTM2YzA3ZGNjNQ==' \
--header 'X-User-Token: <api-key>' \
--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": ""
}