此操作用来查询向智维平台推送告警的配置信息。
请求语法
GET /rest/v1/system/config/ctyuncms HTTP/1.1
Date:date
Host: ip:port
Authorization:authorization
响应结果
名称 描述 CtyunCMS url 智维平台第三方告警的推送地址。 CtyunCMS labels 推送至智维平台的告警数据中携带的标签信息。
请求示例
GET /rest/v1/system/config/ctyuncms HTTP/1.1
Date: Mon, 27 May 2024 02:10:19 GMT
Content-Type: application/json; charset=utf-8
Authorization: HBlock userName:signature
Host: 192.168.0.110:1443
响应示例
HTTP/1.1 200 OK
x-hblock-request-id: 4bfaf79117c04fac8dab84b3b2a5f4da
Connection: keep-alive
Content-Length: 187
Date: Mon, 27 May 2024 02:10:19 GMT
Content-Type: application/json;charset=utf-8
Server: HBlock
{
"data": {
"ctyunCMSInfos": [
{
"url": "https://ctyuncms:9527/blackhole/api/v1/issue",
"labels": {
"mid": "65de96adf2faca1f3a75b33a",
"idc": "neimeng",
"hblockname": "stor1",
"clusterID": "cluster1"
}
}
]
}
}