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

Insomnia for effortless dynatrace API access across environments

pahofmann
DynaMight Guru
DynaMight Guru

I already have a collection for Postman you can find here

 

I had a few requests for a Insomnia collection as well, so I created one. With this you have all Dynatrace API Endpoints in Insomnia and can switch easily between different dynatrace environments, clusters or tenants via Insomnia Environments.

 

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

 

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

 

Here is a short guide:

 

Import collection

Import (Application -> Preferences -> Data -> Impot Data) .json file for the APIs.

 

A collection Dynatrace APIs will be created with subfolders for each API:

collections.png

Create environments

For each of your dynatrace environments you want to use, add a insomnia environment environment dropdown -> Manage Environments:

manage-environments.png

 

You can adapt the Example Environment or create new ones based on it, you need to adjust the following:

  • base_url
    • URL to the environments
      • For managed:  https: //your-dt-domain.com/e/Environment-ID
        • https: //example.com/e/b80b158e-ev23-4330-30fcc-c4391bbx6ce2
      • For managed (Cluster API): https: //your-dt-domain.com
        • https: //example.com
      • For SaaS: https: //Env-ID.live.dynatrace.com
        • https: //abc133769.live.dynatrace.com
  • authorization
    • Enter the token instead of REPLACE_ME_WITH_TOKEN
      • Api-Token dt01.PUBLIC.SECRET

new-environment.png

Request away!

Now you can open any request and easily execute it against different dynatrace environments by selecting the environment on the top left.

 

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

ChadTurner
DynaMight Legend
DynaMight Legend

Thanks for the Pro Tip @pahofmann 

-Chad

fstekelenburg
DynaMight Pro
DynaMight Pro

Perhaps you can make the json file easy to download as you did for the postman collection.

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

You can find the JSON under releases on github: https://github.com/pahofmann/dynatrace-insomnia-collection/releases/tag/1.248

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

Featured Posts