pingmesh-idc间ping规则配置注册
POST
https://api.flashcat.cloud/api/n9e-plus/pingmesh/idcs/ping/rule
pingmesh
最后修改时间:2024-03-08 11:32:02
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/api/n9e-plus/pingmesh/idcs/ping/rule' \
--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": ""
}
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6IjRlNzYxNmY2LWFjZGUtNGNlNS04MmE3LTBiMTgyYzJjYzQ2ZiIsImF1dGhvcml6ZWQiOnRydWUsImV4cCI6MTcwMDA0NjQxNiwidXNlcl9pZGVudGl0eSI6IjEtcm9vdCJ9.Xe_fI7H2tUnLtnwe7fkI4wT0DBYetLkUWG2O_0KuoYM
Body 参数application/json