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

Any API to show auto-applied tags only

tibebe_m_digafe
Advisor

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

3 REPLIES 3

Mo_Azuz
Dynatrace Mentor
Dynatrace Mentor

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

tibebe_m_digafe
Advisor

I do not think the suggested solution answers my main concern:

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

 

It's correct that the custom tags API does return the "custom tags" only... but the concerns is related to ALL tags returned by the "/entities/{entityId}" not including ALL (duplicates one can find on UI are not returned by the API). 

Featured Posts