此操作用来手动解除指定的HBlock告警。
请求语法
PUT /rest/v1/system/alarm/alarmId/resolve HTTP/1.1
Date: date
Host: ip:port
Content-Type: text/plain
Content-Length: length
Authorization: authorization
{
"reason": reason
}
请求参数
名称 描述 是否必须 alarmId 告警ID。 是 reason 解除告警的原因。
类型:字符串
取值:1~50位字符串。
是
请求示例
手动解除告警1kyvM3zJ。
PUT /rest/v1/system/alarm/1kyvM3zJ/resolve HTTP/1.1
Date: Wed, 17 Aug 2022 06:29:20 GMT
Host: 192.168.0.121:1443
Content-Type: text/plain
Content-Length: 41
Authorization: HBlock userName:signature
{
"reason": "已申请新license"
}
响应示例
HTTP/1.1 204 No Content
Date: Wed, 17 Aug 2022 06:29:21 GMT
Connection: keep-alive
x-hblock-request-id: 9fe8d7733bd34c40a8895d674162c072
Server: HBlock