API or script to Disable Multiple host

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

Hi @TaylorJae

I recommend creating a Host Group to group agents: Organize your environment using host groups — Dynatrace Docs

You can manage the configuration through the API (disable the agent as well): OneAgent in a host group API - PUT auto-update configuration — Dynatrace Docs

Radek

Similar question answered here: https://community.dynatrace.com/t5/Open-Q-A/Is-there-a-way-to-disable-oneagents-belong-to-management-or/m-p/218139/highlight/true#M27557