30 Aug 2017 12:26 AM - last edited on 24 May 2021 03:44 PM by MaciejNeumann
We are looking for some automation from our end to disable/enabling the monitoring of the hosts through REST API. We see the API which provides the list of hosts. But wondering any API to update enable/disable monitoring of particular HOST.
Solved! Go to Solution.
05 Sep 2017 12:02 PM
AFAIK it's not possible at this time using the public API. Maintenance windows are on the roadmap and should be available very soon. It believe enabling/disabling host monitoring using API will be included with release of maintenance windows.
Or if you have time & courage, you could try play with the private REST API (undocumented) - the one UI is using. It does not look that complicated, you just need to figure out how to send valid headers.
07 Sep 2017 04:04 PM
Thanks for the response.
Can you provide details of private REST API (undocumented) , if you have that handy.
08 Sep 2017 09:39 AM
I don't have that, sorry.
11 Sep 2018 11:16 AM - last edited on 29 May 2023 02:41 PM by MaciejNeumann
I have the need to do the same. I can find some information using the REST API with /entity/infrastructure/hosts/{meIdentifier} but the only candidate for disable monitoring would be "monitoringMode": but I guess that is only to set/unset infrastructure only monitoring mode.
24 Dec 2018 08:08 PM
Hi guys,
Any news here? is this feature is on the roadmap?
Yos
05 Sep 2019 09:42 AM
Do we have any doc for this, asking after 2 years, hope someone found out already.
16 Jul 2020 02:14 PM
Is this implemented yet? I have 20+ hosts with specific tags and I want to disable monitoring for these hosts via API?
02 Nov 2020 09:05 PM
That functionality will be available very soon: https://www.dynatrace.com/news/blog/manage-thousands-of-hosts-with-the-new-oneagent-on-a-host-rest-a...