Insomnia Setup

With Insomnia, you can access Dynatrace API Endpoints and switch easily between different Dynatrace environments, clusters or tenants via Insomnia Environments.

Import Collection

  1. Go to Application > Preferences > Data > Impot Data to import the .json file for the APIs.
    • ​A collection Dynatrace APIs will be created with subfolders for each API:
insomnia create

Create Environments

For each of your Dynatrace environments you want to use, add an insomnia environment 

  1. Go to Environment dropdown > Manage Environments:
insomnia manage environment

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
insomnia create 2