Alarm Resource filter for Restful API Spectrum

Document ID : KB000015596
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How to retrieve the alarm attributes via RESTful

Environment:
CA Spectrum 9.x, 10.x
Answer:

Replace with your Alarm ID in the following field:

<rs:alarms id="4beaa429-2211-1000-010f-0023aeab765c"/>

 

 

HTTP POST (Get Tunneling)

http://{host}:{port}/spectrum/restful/alarms

 

Sample Alarm XML for specified alarms

<?xml version="1.0" encoding="UTF-8"?>

<rs:alarm-request throttlesize="0"

  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:requested-attribute id="0x11f53" />

    <rs:requested-attribute id="0x10000" />

    <rs:requested-attribute id="0x11f56" />

    <rs:requested-attribute id="0x12b4c" />

    <rs:requested-attribute id="0x11f4e" />

  <rs:alarms id="4beaa429-2211-1000-010f-0023aeab765c"/>

</rs:alarm-request>