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

Postman for effortless Dynatrace API access across environments

pahofmann
DynaMight Guru
DynaMight Guru

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

If you need the Account Management API check out the Postman Collection from my fellow :dynamight:DynaMight @DanielS!

 

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 - Dynatrace Partner - 360Performance.net
28 REPLIES 28

AntonioSousa
DynaMight Guru
DynaMight Guru

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

Antonio Sousa

Malaik
DynaMight Champion
DynaMight Champion

Thanks @pahofmann for sharing, sure will be useful.

 

I cant find the way to get the json files.

 

 

Sharing Knowledge

You can get from from the API Explorer. 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

Malaik
DynaMight Champion
DynaMight Champion

Hi @pahofmann ,

How can I download the collection from the github ?

 

Sharing Knowledge

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 - Dynatrace Partner - 360Performance.net

Malaik
DynaMight Champion
DynaMight Champion

Thanks a lot man

 

Good day 🙂

 

Sharing Knowledge

pahofmann
DynaMight Guru
DynaMight Guru

Updated to 220, including cluster APIs.

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

pahofmann
DynaMight Guru
DynaMight Guru

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 - Dynatrace Partner - 360Performance.net

Malaik
DynaMight Champion
DynaMight Champion

Yes, i used this version after my last post

 

Thanks or your update.

Very Useful

Sharing Knowledge

pahofmann
DynaMight Guru
DynaMight Guru

Latest Release updated to Version 1.226 (Cluster API 1.224)

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

theharithsa
Dynatrace Champion
Dynatrace Champion

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.

Love more, hate less; Technology for all, together we grow.

pahofmann
DynaMight Guru
DynaMight Guru

Updated to 1.234: Github Link. 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

wim_muselle
Visitor

top nodge, we are currently working on an API v2 version for integration to Splunk , having this so visual in postman really helps. works like a charm.

pahofmann
DynaMight Guru
DynaMight Guru

Update to 1.248: Github Release Link. 

 

Also automated the process so future updates can be more frequent or be done by the user if in a hurry.

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

pahofmann
DynaMight Guru
DynaMight Guru

Updated to 1.250: Github Release Link. 

 

Also there is a Insomnia Version now: Community Thread Github 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

hi @pahofmann the links on your initial page are now not working (404), I guess because of the update? (pahofmann/dynatrace-postman-collections: Summary of postman collections for all dynatrace APIs. (git...

Kind regards, Frans Stekelenburg                 Certified Dynatrace Associate | measure.works, Dynatrace Partner

Thanks, updated 🙂 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

Thank you x 2 ! 🙂

Kind regards, Frans Stekelenburg                 Certified Dynatrace Associate | measure.works, Dynatrace Partner

pahofmann
DynaMight Guru
DynaMight Guru

Updated to 1.258 (Environment) and 1.256 (Cluster): Github Release Link 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

pahofmann
DynaMight Guru
DynaMight Guru

Updated Env and Cluster to 260: Github Release Link 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

Thanks for keeping this updated.

The true delight is in the finding out rather than in the knowing.

ct_27
DynaMight Pro
DynaMight Pro

@pahofmann  thank you for maintaining this and please keep posting as you make updates. This is a very useful solution you've created here.

HigherEd

Thanks, always nice to hear. Will do.

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

pahofmann
DynaMight Guru
DynaMight Guru

Update to Environment 1.270 and Cluster 1.268: Github Release 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

pahofmann
DynaMight Guru
DynaMight Guru

Updated to Environment/Cluster 1.274: Github Release. 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

Profile_Myself
Visitor

@pahofmann Firstly thanks for this its to truly helpful. Is there a way I can get the metadata / manifest file for the API's. In OCI DI you have to create a REST API task that requires you to add a json or yml manifest file for the API you calling. 

Great to hear it helps. Sorry for the late reply, I was on vacation 🙂

You can download the OpenAPI Spec file for the dynatrace API directly from your environment.

Just go to the API browser (via person icon on the top right), there you have the option to download the spec.json:

pahofmann_0-1697553200784.png

 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

pahofmann
DynaMight Guru
DynaMight Guru

Updated to Environment/Cluster 1.290: Github Release. 

Dynatrace Certified Master - Dynatrace Partner - 360Performance.net

Featured Posts