Release : 21.2
There is no single rest command to clear every alarm. The clear will change with each alarm depending on how the event that creates the alarm is programmed.
This is the create event command. You will need to create “clear” event for specifically the alarm in question.
http://<hostname><:portnumber>/spectrum/restful/events/<eventType>/model/<model_handle>
Cisco_Router/EventDisp:0x00210028 E 50 A 1,0x00210024
Cisco_Router/EventDisp:0x00210029 C 0x00210024
I create the 0x00210028 event on model 0x94063a3b as follows:
http://<hostname><:portnumber>/spectrum/restful/events/0x00210028/model/0x94063a3b
that event creates the 0x00210024 alarm as per SPECROOT/SS/CsVendr/Cisco_Router/EventDisp:
0x00210028 E 50 A 1,0x00210024
I then create the 0x00210029 event on the same model 0x94063a3b as follows:
http://<hostname><:portnumber>/spectrum/restful/events/0x00210029/model/0x94063a3b
that clears the 0x00210024 alarm as per the eventDisp
0x00210029 C 0x00210024
And puts it in the clear alarms history