search cancel

How do I make a Spectrum Restful web services subscription permanent?

book

Article ID: 41794

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

I created an alarm subscription using RESTFUL web services which creates an active alert subscription.  I notice it disappears when the Spectrum Tomcat server is restarted.

How do I make them to stay permanent so that we do not have to re-create them every time Tomcat restarted?

Environment

Release: Any version of Spectrum
Component:

Resolution

Poll the following URL on a regular interval to get the current active subscriptions on your client: 


http://<hostname><:portnumber>/spectrum/restful/subscription/requests 

Then, check the active subscriptions for the subscription ID and if it doesn't exist, resend the POST subscription to start a new one.

The polling interval varies on your needs case. An average interval may be some time between 30 seconds and 5 minutes.