cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible create/update/delete host groups via REST API

gschramm
Participant

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

4 REPLIES 4

Julius_Loman
DynaMight Legend
DynaMight Legend

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. 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

gschramm
Participant

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.

gschramm
Participant

@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. 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts