# How to enable/disable the monitoring on particular Host through REST API

**URL:** <https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [August 29, 2017, 11:26pm UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562 "2017-08-29T23:26:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjammula](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sjammula](https://community.dynatrace.com/u/sjammula)\
**Post date:** [August 29, 2017, 11:26pm UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562/1 "2017-08-29T23:26:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 5, 2017, 11:02am UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562/2 "2017-09-05T11:02:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sjammula](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sjammula](https://community.dynatrace.com/u/sjammula)\
**Post date:** [September 7, 2017, 3:04pm UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562/3 "2017-09-07T15:04:25Z")

</div>

Thanks for the response.

Can you provide details of private REST API (undocumented) , if you have that handy.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 8, 2017, 8:39am UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562/4 "2017-09-08T08:39:15Z")

</div>

I don’t have that, sorry.

---

<div class="post-metadata">

**Author:** ![anders\_lundin3](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/anders_lundin3/32/39823_2.png) [@anders\_lundin3](https://community.dynatrace.com/u/anders_lundin3)\
**Post date:** [September 11, 2018, 10:16am UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562/5 "2018-09-11T10:16:47Z")

</div>

I have the need to do the same. I can find some information using the REST API with /entity/infrastructure/hosts/{meIdentifier}&nbsp; but the only candidate for disable monitoring would be “monitoringMode”: but I guess that is only to set/unset infrastructure only monitoring mode.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [December 24, 2018, 8:08pm UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562/6 "2018-12-24T20:08:51Z")

</div>

Hi guys,

Any news here? is this feature is on the roadmap?  
Yos

---

<div class="post-metadata">

**Author:** ![ksundararajan](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@ksundararajan](https://community.dynatrace.com/u/ksundararajan)\
**Post date:** [September 5, 2019, 8:42am UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562/7 "2019-09-05T08:42:43Z")

</div>

Do we have any doc for this, asking after 2 years, hope someone found out already.

---

<div class="post-metadata">

**Author:** ![rswarnka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rswarnka/32/10979_2.png) [@rswarnka](https://community.dynatrace.com/u/rswarnka)\
**Post date:** [July 16, 2020, 1:14pm UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562/8 "2020-07-16T13:14:07Z")

</div>

Is this implemented yet? I have 20+ hosts with specific tags and I want to disable monitoring for these hosts via API?

---

<div class="post-metadata">

**Author:** ![ben\_wrightson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ben_wrightson/32/34776_2.png) [@ben\_wrightson](https://community.dynatrace.com/u/ben_wrightson)\
**Post date:** [November 2, 2020, 9:05pm UTC](https://community.dynatrace.com/t/how-to-enable-disable-the-monitoring-on-particular-host-through-rest-api/7562/9 "2020-11-02T21:05:18Z")

</div>

That functionality will be available very soon: [Dynatrace Blog | Dynatrace news](https://www.dynatrace.com/news/blog/manage-thousands-of-hosts-with-the-new-oneagent-on-a-host-rest-api-preview/)
