14 Jul 2023 03:05 AM - last edited on 14 Jul 2023 08:40 AM by MaciejNeumann
Hi --- Is there an API or script we can use to Bulk disable Hosts?
Right now, we are disabling each and every hosts via Settings > Monitoring Overview > Hosts > Monitor this host (toggle) menu.
We do sometimes have 50 servers to disable per day and this method cause us man hours in a long time.
Thanks for your advise.
TaylorJae
Solved! Go to Solution.
14 Jul 2023 08:06 AM
Hi @TaylorJae
I recommend creating a Host Group to group agents: https://www.dynatrace.com/support/help/platform-modules/infrastructure-monitoring/hosts/configuratio...
You can manage the configuration through the API (disable the agent as well): https://www.dynatrace.com/support/help/shortlink/api-config-oneagent-on-host-group-auto-update-put
Radek
14 Jul 2023 08:48 PM
Similar question answered here: https://community.dynatrace.com/t5/Open-Q-A/Is-there-a-way-to-disable-oneagents-belong-to-management...