API - retrieve list of Hosts with specific Contact
Posted: Thu Mar 11, 2021 3:18 pm
Hello Nagios Support,
As part of an automation project, I am trying to retrieve a list of Hosts which use a specific Contact. I am able to get the necessary info using a GET config/host request, and parse the data. However, we hit a problem with the Hosts that use the + (append) option in the Contact configuration. For those, the API returns the following result, hiding the assigned Contacts:
Is there an extra arg or option to expand that array? Or is there an otherwise different way to get the info we need?
Thanks,
-marc
As part of an automation project, I am trying to retrieve a list of Hosts which use a specific Contact. I am able to get the necessary info using a GET config/host request, and parse the data. However, we hit a problem with the Hosts that use the + (append) option in the Contact configuration. For those, the API returns the following result, hiding the assigned Contacts:
Code: Select all
"contacts": "+Array",Thanks,
-marc