SetLogAlarmStatus
Updated at:2025-11-03
Description
Set the status of a single alert task
Request
- Request syntax
Http
1PUT /v1/alarm/{alarmID}/status HTTP/1.1
2Host: bls-log.bj.baidubce.com
3Content-Type: application/json; charset=utf-8
- Request headers
No additional headers are required beyond the standard request headers.
- Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| alarmID | String | yes | path | Alert task ID with status to be set |
| desiredStatus | String | yes | path | Desired status, Running and Paused |
Response
-
Response headers
No additional headers are required beyond the standard response headers.
-
Response parameters
No special parameters are returned upon a successful call.
Example
- Request example
Http
1PUT /alarm/status/batch HTTP/1.1
2Host: bls-log.bj.baidubce.com
3Authorization:bce-auth-v1/18717522d39411e9b721df098b0b908c/2019-09-10T07:00:20Z/1800/content-type;host;x-bce-date;x-bce-request-id/6a7cb6c9ac7ec156c805e55e7d0bcfc443b47feee97cf099c1c0d93a0b4c8304
4Content-Type: application/json; charset=utf-8
5{
6 "desiredStatus":"Running",
7 "alarmIDs":["alarm-1-1"]
8}
- Response example
Http
1HTTP/1.1 201
2Content-Type: application/json; charset=utf-8
3200
