此操作用来删除向智维平台推送告警的配置。
请求语法
DELETE /rest/v1/system/config/ctyuncms HTTP/1.1
Date: date
Content-Type: application/json; charset=utf-8
Content-Length: length
Host: ip:port
Authorization: authorization
{
"url":url,
"labels": [
"key1",
"key2",
"key3",
...
]
}
请求参数
参数 描述 是否必须 url 智维平台第三方告警的推送地址。
类型:字符串
是 labels 指定要删除的标签信息。
注意idc和mid不能删除。
说明如果未指定,说明删除指定智维平台的所有推送告警配置信息。
类型:字符串
取值:"key"。
否
请求示例1
删除智维平台https://ctyuncms:9527/blackhole/api/v1/issue的告警配置项:oos、ctyun。
DELETE /rest/v1/system/config/ctyuncms HTTP/1.1
Date: Mon, 27 May 2024 01:50:30 GMT
Content-Type: application/json; charset=utf-8
Authorization: HBlock userName:signature
Content-Length: 122
Host: 192.168.0.110:1443
{
"url": "https://ctyuncms:9527/blackhole/api/v1/issue",
"labels": [
"oos",
"ctyun"
]
}
响应示例1
HTTP/1.1 200 OK
x-hblock-request-id: 7751e86299ef429494747eaad551b2ed
Connection: keep-alive
Date: Mon, 27 May 2024 01:50:30 GMT
Server: HBlock
请求示例2
删除智维平台https://ctyuncms:9527/blackhole/api/v1/issue的所有告警的配置。
DELETE /rest/v1/system/config/ctyuncms HTTP/1.1
Date: Mon, 27 May 2024 01:58:10 GMT
Content-Type: application/json; charset=utf-8
Authorization: HBlock userName:signature
Content-Length: 63
Host: 192.168.0.110:1443
{
"url": https://ctyuncms:9527/blackhole/api/v1/issue
}
响应示例2
HTTP/1.1 200 OK
x-hblock-request-id: 38024a15cbb243aa9c5b38a7c3238685
Connection: keep-alive
Date: Mon, 27 May 2024 01:58:10 GMT
Server: HBlock