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

Postman for effortless dynatrace API access across environments

pahofmann
DynaMight Leader
DynaMight Leader

I've been updating postman collections for myself for a while to make it easier to work with the Dynatrace API across multiple clusters, tenants and environments.

 

I have put the files on github now, maybe someone will find it usefull.

 

Setup is very quick, then you can just select the request and environment against which to execute it.

 

Here is a short guide:

  Import collections

Postman is available for free from postman.com.

Import (file -> import) the collection .json files for the APIs you want:

A separate collection for each, including all requests of that API, will be created:

    Create environments

For each of your dynatrace environments/tenants you want to use, add a postman environment via manage environments -> add:

 

The environment needs two variables (names are case sensitive!):

  • DT_HOST
    • URL to the environments
      • For managed: your-dt-domain.com/e/Environment-ID
        • example.com/e/b80b158e-ev23-4330-30fcc-c4391bbx6ce2
      • For SaaS: Env-ID.live.dynatrace.com
        • abc133769.live.dynatrace.com
  • DT_TOKEN
    • An API token for the environment

new-environment

    Request away!

Now you can open any request and easily execute it against different dynatrace environments by selecting the environment on the top right: Dynatrace API Postman Collections

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net
11 REPLIES 11

AntonioSousa
DynaMight Leader
DynaMight Leader

This seems very interesting! Going to check it out when I have a little time.

Antonio Sousa

Malaik
Helper

Thanks @pahofmann for sharing, sure will be useful.

 

I cant find the way to get the json files.

 

 

Sharing Knowledge

pahofmann
DynaMight Leader
DynaMight Leader

You can get from from the API Explorer. 

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

Hi @pahofmann ,

How can I download the collection from the github ?

 

Sharing Knowledge

pahofmann
DynaMight Leader
DynaMight Leader

The collections are saved as .json files in the repository. 

You can either copy them from the specs folder or just download the whole bundle from the releases page.

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

Thanks a lot man

 

Good day 🙂

 

Sharing Knowledge

pahofmann
DynaMight Leader
DynaMight Leader

Updated to 220, including cluster APIs.

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

pahofmann
DynaMight Leader
DynaMight Leader

With one of the recent Postman version the UI changed a bit.  The environments can now be found in the left side menue:

pahofmann_0-1625821034544.png

 

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

Yes, i used this version after my last post

 

Thanks or your update.

Very Useful

Sharing Knowledge

pahofmann
DynaMight Leader
DynaMight Leader

Latest Release updated to Version 1.226 (Cluster API 1.224)

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

theharithsa
Dynatrace Helper
Dynatrace Helper

It was very much helpful and this acts as a utility to have. It saves a lot of time while working with customers.

 

Thanks for sharing.

Technology for all, together we grow.