CA Spectrum - Getting the alarms count via the REST API using Subscription ID

Document ID : KB000076433
Last Modified Date : 13/09/2018
Show Technical Document Details
The Spectrum REST API allows a number of functions to be accessed. One of these is to get the Alarm count in Spectrum.
How can the alarm count be obtained via a Subscription ID using a POST call in CA Spectrum using REST API?
Spectrum version 10.x.x
All Platforms
For Subscription model, please follow  below steps 
  1. Get the Subscription ID by using the URL;
  • Example for Pull Alarms Subscription request available under $SPECROOT/RestfulExamples/xml/Alarms/PullAlarmsSubscription.xml
  • Add the following attribute to the request to get existing alarms in the first request;
  xmlns:rs="" send-preexisting-instances="true"
  xsi:schemaLocation=" ../../../Rest.a/src/xsd/Request.xsd ">

  • Set the pull-interval value as per desired requirement. For example;
  1. Now, get the new alarms using the Subscription ID via the following URL;

Additional Information:
The Spectrum 10.2.x docops guide describes this further: