This API is used to enable or disable an alarm rule.
PUT /V1.0/{project_id}/alarms/{alarm_id}/action
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
alarm_id |
Yes |
Specifies the alarm rule ID. |
PUT https://{Cloud Eye endpoint}/V1.0/{project_id}/alarms/al1441967036681YkazZ0deN/action
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
alarm_enabled |
Yes |
Boolean |
Specifies whether the alarm rule is enabled.
|
{ "alarm_enabled":true }
The response has no message body.
Returned Value |
Description |
---|---|
400 Bad Request |
Request error. |
401 Unauthorized |
The authentication information is not provided or is incorrect. |
403 Forbidden |
Access to the requested page is forbidden. |
408 Request Timeout |
The request timed out. |
429 Too Many Requests |
Concurrent requests are excessive. |
500 Internal Server Error |
Failed to complete the request because of an internal service error. |
503 Service Unavailable |
The service is currently unavailable. |
See Error Codes.