Update host "is_active" through REST API?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DFaught
Posts: 62
Joined: Tue Sep 26, 2017 12:50 pm

Update host "is_active" through REST API?

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Update host "is_active" through REST API?

Post by lmiltchev »

Currently, you cannot activate/deactivate hosts/services via REST API. I filed an internal feature request for adding this functionality. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked