[icinga-users] web API filtering
sgsax at ksu.edu
Tue Aug 9 15:59:52 CEST 2016
It's the Icinga 2 REST API I'm looking at, reading chapter 11 of the
docs. Sorry for not being clearer on that point. Is there an outline
somewhere of each of the object properties so I can choose appropriate
fields to filter on? The filter builder shows me things like
"host_problem" and "host_acknowledged". I know the first is not an
object property I've seen before, and I assume the second is not. But if
I knew what to look for, I could add appropriate fields to the attrs and
joins lists for queries.
On 08/08/2016 11:16 PM, Michael Friedrich wrote:
>> On 08 Aug 2016, at 22:45, Seth Galitzer <sgsax at ksu.edu> wrote:
>> I've been looking through documentation and list archives but have not found how to do this yet. I want to be able to query the API for host and/or service problems, but filter out any that have been acknowledged. ie only show problem states for hosts/services that have not been ack'd yet. How should I do this? And is there any other reference documentation specifically for the API other than what is on docs.icinga.org?
> Which API are you referring to?
> In case you’d want to use the Icinga Web 2 API, just use the filter editor to create an appropriate filtered list and then choose json output.
> In case you’d go for the Icinga 2 Core API, docs.icinga.org/icinga2/latest - chapter 9.
> Kind regards,
>> Seth Galitzer
>> Systems Coordinator
>> Computing and Information Sciences
>> Kansas State University
>> sgsax at ksu.edu
>> icinga-users mailing list
>> icinga-users at lists.icinga.org
> Michael Friedrich, DI (FH)
> Senior Developer
> NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
> Tel: +49 911 92885-0 | Fax: +49 911 92885-77
> CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
> http://www.netways.de | Michael.Friedrich at netways.de
> ** OSBConf 2016 - September - osbconf.org **
> ** OSMC 2016 - November - netways.de/osmc **
> icinga-users mailing list
> icinga-users at lists.icinga.org
Computing and Information Sciences
Kansas State University
sgsax at ksu.edu
More information about the icinga-users