AnsweredAssumed Answered

query SOI alarms with API

Question asked by jaheller on Mar 14, 2019
Latest reply on Apr 11, 2019 by jaheller

I've stumbled over a problem using the SOI API.

Using my webbrowser I can do a simple call like:

 

https://ip:7403/rest/alert?filter=NAGIOS&size=500

 

This will return the last 500 alerts with NAGIOS inside the title, ordered by newest ones on the top.

 

When I use wget to perform th same query like:

 

wget --user USER --password PASSWORD --no-check-certificate -O soioutput.txt https://ip:7403/rest/alert?filter=NAGIOS&size=500

 

It's returning a file with only 25 entries like:

 

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Alerts</title>
<link rel="next-page" type="application/atom+xml" href="https://ip:7403/rest/alert?filter=NAGIOS&size=25&start=25&desc=false" title="next-page" />
<author>
<name>CA SOI</name>
</author>
<id>https://ip:7403/rest/alert</id>

....25 entries...

 

Any idea why wget is only returning 25 instead of the requested 500 entries as defined inside the query?

Outcomes