System Administration > Monitoring > Alarms And Events

Update staus of alarm identified by alarm-id.

Update status of an Alarm. The new_status value can be OPEN, ACKNOWLEDGED, SUPPRESSED, or RESOLVED. If new_status is SUPPRESSED, the suppress_duration query parameter must also be specified.

Request:

Method:
POST
URI Path(s):
/api/v1/alarms/<alarm-id>?action=set_status
Request Headers:
n/a
Query Parameters:
AlarmStatusParameter+
Request Body:
n/a

Example Request:

POST /api/v1/alarms/daabc688-3a90-4545-9af8-23e1b045e6f3?action=set_status &new_status=SUPPRESSED&suppress_duration=24

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
Alarm+

Example Response:

{ "id": "daabc688-3a90-4545-9af8-23e1b045e6f3", "status": "SUPPRESSED", "feature_name": "manager_health", "event_type": "manager_cpu_usage_high", "feature_display_name": "Manager Health", "event_type_display_name": "CPU Usage High", "node_id": "8af5d6d7-e8bc-454d-90bd-4824782216ea", "last_reported_time": 1551994806, "description": | "The CPU usage for the manager node identified by appears to be\nrising.", "recommended_action": | "Use the top command to check which processes have the most CPU usages, and\nthen check \/var\/log\/syslog and these processes' local logs to see if there\nare any outstanding errors to be resolved.", "node_resource_type": "ClusterNodeConfig", "severity": "WARNING", "entity_resource_type": "ClusterNodeConfig", "suppressed_by": "admin", "suppress_start_time": 1568670347000, "suppress_duration": 24, }

Required Permissions:

crud

Feature:

system_alarms_events

Additional Errors: