Search found 3 matches
- Tue Dec 08, 2020 6:55 pm
- Forum: Nagios XI
- Topic: Nagios API not using Ansible URI 'body' options?
- Replies: 5
- Views: 832
Re: Nagios API not using Ansible URI 'body' options?
It doesn't look like the lk: functionality works for the config endpoint as you found, it doesn't work on mine either and I do not see the code in there that does it. Development would need to add it. I can submit a feature request to development requesting they add that functionality if you'd like...
- Mon Dec 07, 2020 12:23 pm
- Forum: Nagios XI
- Topic: Nagios API not using Ansible URI 'body' options?
- Replies: 5
- Views: 832
Re: Nagios API not using Ansible URI 'body' options?
Ah, so only a POST or PUT can use the body parameter? What is the syntax to use the 'optional parameter' on the GET to filter results? It works when using the OBJECTS api, but not when using the CONFIG api: Works: url: "https://SERVER/nagiosxi/api/v1/objects/host?apikey=APIKEY&pretty=1&...
- Thu Dec 03, 2020 11:37 am
- Forum: Nagios XI
- Topic: Nagios API not using Ansible URI 'body' options?
- Replies: 5
- Views: 832
Nagios API not using Ansible URI 'body' options?
I have seen posts in the forum where people show using the 'body' parameter of the Ansible URI module. https://support.nagios.com/forum/viewtopic.php?f=16&t=58884&hilit=ansible I have been trying to get host info as well as trying to add a test device, but the API call seems to ignore anythi...