How to search for a list of global alarm ids

Document ID : KB000111410
Last Modified Date : 18/09/2018
Show Technical Document Details
Question:
How to search for a list of global alarm ids?
 
Answer:
1.
If you use restful command as follows, you will get a list of alarm ids.
http://localhost/spectrum/restful/alarms

<alarm-response-list xmlns="http://www.ca.com/spectrum/restful/schema/response" total-alarms="5" throttle="5" error="EndOfResults"> 
<alarm-responses> 
<alarm id="5b6187de-6ff9-1001-0228-0200045a5ddf"/> 
<alarm id="5b6ba146-f57c-1002-0228-0200045a5ddf"/> 
<alarm id="5b582a34-0240-1000-0228-0200045a5ddf"/> 
<alarm id="5b6bd80c-fdf4-1002-0228-0200045a5ddf"/> 
<alarm id="5b694944-0024-1000-00d7-0200045a5de0"/> 
</alarm-responses> 
</alarm-response-list>

you could also pull more information for each alarm or filter by attribute name as follows:
http://<hostname><:portnumber>/spectrum/restful/alarms[?attr=<attr_ID>][&landscape=<landscape_handle>][&throttlesize=<num>]

2. 
Use the OhneClick web administration page, -> Debug -> back end alarm table
This will also provide a list of alarms with the model information such as device name, model handle and severity, in the same record.
Additional Information:

Web Services API Reference​

https://docops.ca.com/ca-spectrum/10-2-3/en/programming/web-services-api-reference