I'm looking for Spectrum REST API call where I can fetch an alarm list for a select group of devices.
https://server.net:8443/spectrum/restful/alarms
This example returned data for 2 devices:
<rs:alarm-request throttlesize="10000"
xmlns:rs="http://www.ca.com/spectrum/restful/schema/request"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../xsd/Request.xsd ">
<rs:attribute-filter>
<search-criteria xmlns="http://www.ca.com/spectrum/restful/schema/filter">
<filtered-models><or><has-substring>
<model-name>Sim37193</model-name>
</has-substring><has-substring>
<model-name>Sim38371</model-name>
</has-substring></or></filtered-models>
</search-criteria>
</rs:attribute-filter>
<rs:requested-attribute id="0x1006e" /> <!--Device Name -->
<rs:requested-attribute id="0x12d7f" /> <!--Device IP -->
<rs:requested-attribute id="0x10000" /> <!--Device type -->
<rs:requested-attribute id="0x11f4e"/> <!--Alarm creation date -->
<rs:requested-attribute id="0x11f56"/> <!--Alarm Severity -->
<rs:requested-attribute id="0x12b4c"/> <!--Alarm Title -->
</rs:alarm-request>
This example returned data for 3 devices:
<rs:alarm-request throttlesize="10000"
xmlns:rs="http://www.ca.com/spectrum/restful/schema/request"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../xsd/Request.xsd ">
<rs:attribute-filter>
<search-criteria xmlns="http://www.ca.com/spectrum/restful/schema/filter">
<filtered-models><or><has-substring>
<model-name>Sim37193</model-name>
</has-substring><has-substring>
<model-name>Sim38371</model-name>
</has-substring><has-substring>
<model-name>Sim5828</model-name>
</has-substring></or></filtered-models>
</search-criteria>
</rs:attribute-filter>
<rs:requested-attribute id="0x1006e" /> <!--Device Name -->
<rs:requested-attribute id="0x12d7f" /> <!--Device IP -->
<rs:requested-attribute id="0x10000" /> <!--Device type -->
<rs:requested-attribute id="0x11f4e"/> <!--Alarm creation date -->
<rs:requested-attribute id="0x11f56"/> <!--Alarm Severity -->
<rs:requested-attribute id="0x12b4c"/> <!--Alarm Title -->
</rs:alarm-request>