Ad Widget

Collapse

host.get api not showing certain hosts on 6.0.22

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pvdzwan
    Junior Member
    • Oct 2022
    • 9

    #1

    host.get api not showing certain hosts on 6.0.22

    Hi,
    I am trying to use the host.get jsonrpc API to retrieve host information but for certain hosts I get an empty array as an answer.
    Even when I search the host in the web interface and search for the host id I see in the web interface I still get no hosts as result of the API call.
    If I search for 2 hostids, one of them a hostid that does not show, I get a single host as reply, so the API seems to be working.

    I have not been able to determine a pattern in the missing hosts.


    NEVER MIND: it was a permission issue. The user had no permission to read the missing hosts.
    Last edited by pvdzwan; 02-09-2024, 10:58.
Working...