When I try to build a limited query, to filter on "is_active", the only working value is "1".
If I enter an other value, such as "0" or "ne:1" I get 0 records back, and there are inactive hosts.
Also when requesting an existing INACTIVE host, the API returns 0 records.
Is this expected behaviour?
Powershell example
Code: Select all
PS S:\> Invoke-RestMethod "https://our.nagios.server/nagiosxi/api/v1/objects/host?apikey=1232314&is_active=ne:1"
recordcount
-----------
0
PS S:\> Invoke-RestMethod "https://our.nagios.server/nagiosxi/api/v1/objects/host?apikey=1232314&is_active=1"
recordcount host
----------- ----
7424 {@{@attributes=; instance_id=1; host_name=win-hostname-example; is_active=1; config_type=1; al...