Page 1 of 1

Update host "is_active" through REST API?

Posted: Mon Jul 09, 2018 12:44 pm
by DFaught
Using the REST API in Nagios XI 5.4.9, is it possible to set a host to "is_active" : "0" and then set it back to active later, again using the REST API? I have seen a few items asking about updating hosts and/or services through the REST API without needing to delete and re-add them. I am looking for a fairly definitive answer. I can try it and see if it works, but if this is not actually supported then it's a problem.

Thank you for any information you can share.

Regards,
Dave

Re: Update host "is_active" through REST API?

Posted: Mon Jul 09, 2018 4:40 pm
by lmiltchev
Currently, you cannot activate/deactivate hosts/services via REST API. I filed an internal feature request for adding this functionality. Thank you!