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?
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.
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.
@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.
One use case could be maintenance windows. For example, I have a few agents that I need to deploy however, they will not be in production until a certain time. If I was able to create an ‘empty host group’, I could configure my maintenance window based on that host group. Then when those agents are deployed, they should automatically be in maintenance mode.
My use case : create a new host-group with specifics settings before to install OneAgent. I need to desactivate some monitoring features to the new host group only.
How can i do that ?
I do not understand how this page can help : The solution OneAgent remote configuration management API - POST a configuration job — Dynatrace Managed Docs
I do not have entities ID because OneAgent is not installed yet on the new hosts.
I’am interested if you have un curl example