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

Dynatrace API Filtering by Tag

ajdimanuel
Inactive

Hi,

I am playing with Dynatrace API, I want to get info from Services who have a tag, ie: OpenShift. So I don't find how to make the query, if I type &OpenShift:true it doesn't work properly.

Please, can you help me?

Thanks.

Alberto.


6 REPLIES 6

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

You can check our API explorer or help for details about API query parameters. The query parameter you need is tag=OpenShift. You can use multiple tag parameters that will be logically AND. e.g.: tag=OpenShift&tag=team2

See details:

https://www.dynatrace.com/support/help/dynatrace-a...


ajdimanuel
Inactive

Thanks Wolfgang.


sam_harrah
Newcomer

Is there a way to query based on a tag that has a value? For example: I want to get all processes which have a tag key of "[KUBERNETES]platform" regardless value.


wolfgang_beer
Dynatrace Leader
Dynatrace Leader

Yes you can query by key value tag, see my attachment.


sam_harrah
Newcomer

Yes. I am able to query by context, key and value, but I want to query by context and key regardless of value. Something like [Kubernetes]platform:*


wolfgang_beer
Dynatrace Leader
Dynatrace Leader

Unfortunately that's not supported so far.


Featured Posts