curl --location --request POST 'https://api.flashcat.cloud/api/n9e-plus/pingmesh/idcs/ping/rule' \
--header 'X-User-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"default": true,
"source_idc_id": -1,
"target_idc_id": -1,
"settings": [
{
"protocol": "icmp",
"ports": []
},
{
"protocol": "tcp",
"ports": [
"normal:8080"
]
}
],
"net_ident_percent": 30
}'
{
"dat": [
{
"id": 13,
"default": true,
"source_idc_id": -1,
"source_idc_name": "",
"target_idc_id": -1,
"target_idc_name": "",
"settings": [
{
"protocol": "icmp",
"ports": []
},
{
"protocol": "tcp",
"ports": [
"normal:8080"
]
}
],
"net_ident_percent": 100,
"create_time": 1696833394,
"update_time": 1696833394,
"create_by": "root",
"update_by": "root"
}
],
"err": ""
}