For Subscription model, please follow below steps
- 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;
send-preexisting-instances="true"
<rs:subscription-request
xmlns:rs="http://www.ca.com/spectrum/restful/schema/request" send-preexisting-instances="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../Rest.a/src/xsd/Request.xsd ">
---------
--------
- Set the pull-interval value as per desired requirement. For example;
<rs:pull-interval>30000</rs:pull-interval>
- Now, get the new alarms using the Subscription ID via the following URL;
http://<ONECLICK_HOST><:portnumber>/spectrum/restful/subscription/<subscription_ID>