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

Is it possible to manage segments using API?

panumjp
Participant

Or using terraform or monaco?

 

 

7 REPLIES 7

zaid-bashir
Advisor

Hi @panumjp 
To Manage Segments there is no API Support, you can create/manage segments via UI only using Segments App.

Julius_Loman
DynaMight Legend
DynaMight Legend

@panumjp Sure there is API!

Have a look at the platform APIs:

https://[env].apps.dynatrace.com/platform/swagger-ui/index.html?urls.primaryName=Grail+-+Filter+Segm...

Additionally, there is incoming Segment support in Monaco, currently under a feature flag (Monaco 2.20)

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

Thanks @Julius_Loman for the input.
I checked the above URL and it redirected me to App Engine App Functions API which will execute the Backend Of The Custum App.

zaidbashir_0-1740653310888.png

I want to know how it will help us for in managing segments. Thanks 

@zaid-bashir just chose the segments API in the combo box at the top of the swagger UI

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

thanks! I was able to find the API!

Useful API call indeed to list the segments, I include it here to help others, my question I want to include this on a dashboard via DQL? otherwise can an API call be included in a tile on my dashboard?

 

curl -X "GET" ^  "https://<YOUR_TENNANT>/platform/storage/filter-segments/v1/filter-segments" ^  -H "accept: application/json" ^  -H "Authorization: Bearer <YOUR_PLATFORM_BEARER_TOKEN>"

 

Featured Posts