I have heard that with 10.2 we can now utilize named filters in a REST alarm query. I've scoured through the documentation and searched the RestfulExamples directory, but I can not figure out how I can formation the REST query. Has anyone tried this? If so, do you have any examples or suggestions for the syntax of the XML?
Example,
I have a filter under my account called "spectrum". This filter displays only those alarms that I am interested in as a Spectrum admin for knowing the health of the Spectrum servers.
I would like to run a REST query to retrieve those alarms that match the "spectrum" filter.
I tried:
<?xml version="1.0" encoding="UTF-8"?>
<rs:alarm-request
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:alarm-filter name=spectrum />
</rs:alarm-request>
But this returned all alarms. It didn't act like it even looked at my filter.
What am I doing wrong?