I am trying to extract some data from my Dynatrace instance. I am not really experienced using Postman but I am trying to learn as best as I can. I went through the Dynatrace documentation and I found out that I have to generate an API-token in order to get authenticated to extract data. I went ahead and did that and I have the token in hand now.
I then downloaded Postman and setup the environment based on some videos I watched. What I would like to do is get a list of all hosts in my environment so I can do some organizational stuff. I am using this get request (replacing the your-environment-id with the appropriate value):
I am then adding the token from the webui to Postman by using the Authorization option "Bearer Token" and I am inputting the given token. When I run the get request I am getting:
"Unsupported authentication mechanism -> 'Bearer'."
Can anyone provide insight into what type of auth I should be using? I also tried API Key using "API-Token" as the key name and the token from the UI as the value.
I figured this out on my own. Under the "Headers" section in Postman for your query do the following:
It appears like the prepackaged authorization methods for Postman don't quite include the right type for the Dynatrace API so using those doesn't work.