This article shows what is the XML body content to be used (with a REST client - i.e POSTMAN) to retrieve a list of alarms with multiple severities.
Any supported Spectrum versions
Here is the XML content. In the example below, the alarm severity attribute is 0x11f56, and the alarms retrieved will be of severities 2 (major) and 3 (critical) :
----------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<rs:alarm-request throttlesize="10"
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>
<and><or>
<equals>
<attribute id="0x11f56">
<value>2</value>
</attribute>
</equals>
<equals>
<attribute id="0x11f56">
<value>3</value>
</attribute>
</equals>
</or></and>
</filtered-models>
</search-criteria>
</rs:attribute-filter>
<!-- Attributes of Interest -->
<rs:requested-attribute id="0x12b4c" /> <!-- Alarm Title -->
<rs:requested-attribute id="0x1006e" /> <!-- Model Name -->
<rs:requested-attribute id="0x1295d" /> <!-- ismanage (false when in maintanence mode) -->
<rs:requested-attribute id="0x129fa" /> <!-- model handle -->
<rs:requested-attribute id="0x11f56" /> <!-- Alarm severity -->
</rs:alarm-request>
----------------------------------------