# Enable or disable Full Stack monitoring via API through the host name

**URL:** <https://community.dynatrace.com/t/enable-or-disable-full-stack-monitoring-via-api-through-the-host-name/34277>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [February 24, 2022, 7:28pm UTC](https://community.dynatrace.com/t/enable-or-disable-full-stack-monitoring-via-api-through-the-host-name/34277 "2022-02-24T19:28:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tatiana](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@Tatiana](https://community.dynatrace.com/u/Tatiana)\
**Post date:** [February 24, 2022, 7:28pm UTC](https://community.dynatrace.com/t/enable-or-disable-full-stack-monitoring-via-api-through-the-host-name/34277/1 "2022-02-24T19:28:08Z")

</div>

através deste link \>

https://{YOUR-ENVIRONMENT-ID}.live.dynatrace.com/rest-api-doc/index.jsp?urls.primaryName=Configuration%20API#/

Eu posso fazer isso em uma máquina usando o ID mas eu quero em vários que estão em excel e para o nome do host, como?

---

<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:** [February 26, 2022, 11:12am UTC](https://community.dynatrace.com/t/enable-or-disable-full-stack-monitoring-via-api-through-the-host-name/34277/2 "2022-02-26T11:12:33Z")

</div>

Hi [@Tatiana](https://community.dynatrace.com/user/48130),

Google translate your question as:

```auto
I can do it on a machine using the ID I want and I want it to be excel and for the host name, how?

```

So its look like you will need the to connect your excel to your dynatrace environment REST API and retrieve all your hosts with their ID, name and monitoring mode with [Hosts API - GET a host](https://www.dynatrace.com/support/help/shortlink/api-hosts-get-host).

Then for each host you chose, update the monitoring mode with Host Id and [OneAgent monitoring configuration API - PUT configuration.](https://www.dynatrace.com/support/help/shortlink/api-config-oneagent-on-host-monitoring-put)

Check [this GitHub thread](https://github.com/Dynatrace/dynatrace-api/tree/master/ExcelExport) for another approach in which you can use a little python code to create excel from dynatrace rest API which you can change according to your needs.

HTH

Yos
