Clearing Alarms in Batches
Function
This API is used to clear alarms in batches. You can manually clear alarms based on the alarm impact and alarm reporting status after the task execution.
URI
POST /v1/alarm-mgmt/alarms/cancel
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
remarks |
No |
String |
Definition: Alarm remarks. Constraints: N/A Value range: N/A Default value: N/A |
|
alarm_ids |
Yes |
String |
Definition: Alarm ID list. Constraints: Select the alarm ID in the aggregated alarm inAlarm Management. Value range: N/A Default value: N/A |
|
is_service_interrupt |
No |
Boolean |
Definition: Whether the service is interrupted. Constraints: N/A Value range:
Default value: false |
|
start_time |
No |
Long |
Definition: Fault occurrence time. Constraints: N/A Value range: N/A Default value: N/A |
|
fault_recovery_time |
No |
Long |
Definition: Fault rectification time. Constraints: N/A Value range: N/A Default value: N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
Array of strings |
Definition: IDs of cleared alarms. Constraints: N/A Default value: N/A |
Example Requests
Clear the alarms whose IDs are ALM2025071215495805XCFf001 and ALM2025071215495805XCFf002, the services are not interrupted, and remarks are Demo.
GET https://{Endpoint}//v1/alarm-mgmt/alarms/cancel
{
"alarm_ids" : "ALM2025071215495805XCFf001,ALM2025071215495805XCFf002",
"is_service_interrupt" : false,
"remarks" : "Demo"
}
Example Responses
Status code: 200
Response is returned correctly.
{
"data" : [ "ALM2025071215495805XCFf001", "ALM2025071215495805XCFf002" ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Response is returned correctly. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot