pingmesh-idc网络规则修改
PUT
https://api.flashcat.cloud/api/n9e-plus/pingmesh/idcs/network/rule
pingmesh
最后修改时间:2024-03-08 11:32:02
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.flashcat.cloud/api/n9e-plus/pingmesh/idcs/network/rule' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 22,
"name": "idc1",
"mode ": 0,
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "tcp",
"ports": [
"2323"
]
}
],
"server_percent": 40,
"idents": [
{
"id": 4,
"net_ident": "10.206.0.16/32"
}
]
}'
响应示例响应示例
{
"dat": [
{
"id": 22,
"name": "idc1",
"mode ": 0,
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "tcp",
"ports": [
"2323"
]
}
],
"server_percent": 40,
"create_time": 1696754813,
"update_time": 1696755935,
"create_by": "root",
"update_by": "root",
"idents": [
{
"id": 4,
"idc_id": 22,
"net_ident": "10.206.0.16/32",
"create_time": 1696754813,
"create_by": "",
"update_by": "",
"update_time": 1696755935
}
]
},
{
"id": 23,
"name": "idc2",
"mode ": 0,
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "tcp",
"ports": [
"main:9099",
"8080"
]
}
],
"server_percent": 30,
"create_time": 1696754905,
"update_time": 1696754905,
"create_by": "root",
"update_by": "root",
"idents": [
{
"id": 5,
"idc_id": 23,
"net_ident": "10.206.0.13/32",
"create_time": 1696754905,
"create_by": "",
"update_by": "",
"update_time": 1696754905
}
]
},
{
"id": 24,
"name": "idc3",
"mode ": 0,
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "icmp",
"ports": []
}
],
"server_percent": 30,
"create_time": 1696754994,
"update_time": 1696754994,
"create_by": "root",
"update_by": "root",
"idents": [
{
"id": 6,
"idc_id": 24,
"net_ident": "10.206.16.8/32",
"create_time": 1696754994,
"create_by": "",
"update_by": "",
"update_time": 1696754994
}
]
},
{
"id": 25,
"name": "idc4",
"mode ": 0,
"tags": [
"zbq=test"
],
"settings": [
{
"protocol": "udp",
"ports": [
"8080"
]
}
],
"server_percent": 30,
"create_time": 1696755047,
"update_time": 1696755047,
"create_by": "root",
"update_by": "root",
"idents": [
{
"id": 7,
"idc_id": 25,
"net_ident": "10.206.16.17/32",
"create_time": 1696755047,
"create_by": "",
"update_by": "",
"update_time": 1696755047
}
]
}
],
"err": ""
}
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6IjRlNzYxNmY2LWFjZGUtNGNlNS04MmE3LTBiMTgyYzJjYzQ2ZiIsImF1dGhvcml6ZWQiOnRydWUsImV4cCI6MTcwMDA0NjQxNiwidXNlcl9pZGVudGl0eSI6IjEtcm9vdCJ9.Xe_fI7H2tUnLtnwe7fkI4wT0DBYetLkUWG2O_0KuoYM
Body 参数application/json