- 介绍
- /api/n9e 接口
- 告警规则
- 订阅规则
- 屏蔽规则
- 告警事件
- 通知规则
- 机器列表
- 团队管理
- 业务组管理
- 用户管理
- 权限管理
- 采集配置
- 网络设备
- 告警管理
- 指标视图
- 告警自愈
- 采集配置
- 网络设备
- pingmesh
- pingmesh-idc网络规则注册POST
- pingmesh-idc网络规则修改PUT
- pingmesh-idc网络规则查询GET
- pingmesh-idc网络规则删除DELETE
- pingmesh-idc间ping规则配置注册POST
- pingmesh-idc间ping规则配置查看GET
- pingmesh-idc间ping规则配置修改PUT
- pingmesh-idc间ping规则配置删除DELETE
- pingmesh-ping动作开关设置PUT
- pingmesh-ping动作开关查询GET
- pingmesh-idc之间拓扑图GET
- pingmesh-idc内netident拓扑GET
- pingmesh-netident内server之间拓扑GET
- pingmesh-查询指标历史数据POST
- pingmesh-idc网络规则注册(From CMDB)POST
- pingmesh-报警规则导出POST
- 数据查询
- 仪表盘
- 模板中心
- 拨测任务API
- 集成仪表盘
- 审计管理
- 数据源
- 全局屏蔽
- 仪表盘标注
- 通知媒介
- 消息模板
- auth认证
- metricsDesc
- 通知配置-待下线
- 快捷视图(指标)
- 变量设置
- 单点登陆
- 用户信息--待删除(与用户管理重复)
- /v1/n9e 接口
pingmesh-idc网络规则修改
PUT
https://api.flashcat.cloud/api/n9e-plus/pingmesh/idcs/network/rule
pingmesh
最后修改时间:2024-03-08 11:32:02
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例值:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6IjRlNzYxNmY2LWFjZGUtNGNlNS04MmE3LTBiMTgyYzJjYzQ2ZiIsImF1dGhvcml6ZWQiOnRydWUsImV4cCI6MTcwMDA0NjQxNiwidXNlcl9pZGVudGl0eSI6IjEtcm9vdCJ9.Xe_fI7H2tUnLtnwe7fkI4wT0DBYetLkUWG2O_0KuoYM
Body 参数application/json
id
integer
自增id
name
string
必需
tags
array[string]
必需
settings
array [object {2}]
必需
protocol
string
可选
ports
array[string]
可选
server_percent
integer
必需
mode
integer
必需
idents
array [object {2}]
必需
id
integer
可选
net_ident
string
可选
示例
{
"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"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
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"
}
]
}'
返回响应
🟢200成功
application/json
Body
dat
array [object {11}]
必需
id
integer
必需
name
string
必需
mode
integer
必需
tags
array[string]
必需
settings
array [object {2}]
必需
server_percent
integer
必需
create_time
integer
必需
update_time
integer
必需
create_by
string
必需
update_by
string
必需
idents
array [object {7}]
必需
err
string
必需
示例
{
"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": ""
}

添加官方技术人员微信
在这里,获得使用上的任何帮助,快速上手企业告警一站式响应平台FlashDuty


修改于 2024-03-08 11:32:02