Spectrum REST API query to pull alarms via Swagger shows no alarms
search cancel

Spectrum REST API query to pull alarms via Swagger shows no alarms

book

Article ID: 262569

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

The customer would like to pull alarm information from Spectrum using the Swagger interface but couldn't make the POST /alarms work.  We are seeing no alarms but the same query works via other REST clients.

 

Environment

Release : 20.2

Cause

The extra variables in Swagger were different than than used in the functioning REST client.  

lasthour=120, symptoms=no, from=1, to=10000000, closeOnEOR=yes parameters

Resolution

Removing the extra Swagger parameters returns the expected alarms.  Please leave these blank.