31 Mar 2025 07:58 AM
Hello,
I'm currently build a script that allows us to quickly setup a new application we want to onboard. The goal is to build a sceleton configuration with all important pieces including permissions.
Application, URL mapping, storage buckets, management zone ect.. all find. One important piece is the host group and there doesn't seem to be a REST endpunkt for managing host groups.
Can you confirm that or am I simply overlooking something?
regards,
Günter
Solved! Go to Solution.
31 Mar 2025 08:12 AM - edited 31 Mar 2025 08:13 AM
That's correct, there is no API for managing hostgroups. Host groups get automatically created when you set them in the OneAgent installer arguments, in the OneAgent configuration using oneagentctl, by changing them in Deployment status or by using OneAgent configuration API.
31 Mar 2025 12:20 PM
That's major disappointment. Host groups are useful config items that are reused in other parts of a configuration, eg. Management Zones, Mainteance Windows, Logs Ingest Rules, Bucket assignment.. also in Policies for boundaries definitions ect.
In our case I simply cannot build a proper starting configuration without a new host group. Connecting / changing an agent to create a new group seems like a very silly workaround to me.
I'll create a product idea for this.
31 Mar 2025 12:32 PM
API Endpoint for Host Groups - Dynatrace Community - please vote 😉
31 Mar 2025 02:38 PM
@gschramm I'm curious about what you are trying to accomplish. You can still create rules such as tagging rules, or management zones referring to a host group name even when such a host group does not exist yet.