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

Any API to show auto-applied tags only

Hello,

 

We have a need to find out auto-applied tags separate from custom tags to determine if there're any duplicate tags. We heavily rely on custom tagging to accomplish the basic monitoring functions - access and alerting in multi-tenant environment -, and at times the custom tagging is ahead of the auto-tagging processing causing duplicate custom tags to be created. 

 

We would like to regularly and programmatically check for duplicates and delete the duplicate custom tags.

 

The current API endpoints (monitored entity details) do not allow to filter by type: e.g. return auto-applied tags only, and they do seem to filter out duplicates even though the duplicates are shown on UI.

 

Thanks

2 REPLIES 2

Moe_Azuz
Dynatrace Advisor
Dynatrace Advisor

Hi, you can get a list of all auto tags defined in your environment https://www.dynatrace.com/support/help/shortlink/api-config-auto-tags-get-all.

 

You can also get a list of all custom tags assigned to the specified monitored entities https://www.dynatrace.com/support/help/shortlink/api-custom-tags-get. Automatically applied tags and imported tags are not included in the custom tags api.

 

Thanks Moe.

What I was looking for was the auto-applied tags to monitored entities, like the API for listing custom tags applied to monitored entities.

/api/config/v1/autoTags returns the auto-tag "definitions", the config.

 

Thanks. Tibebe