02 Apr 2020 03:33 PM
I want to extract all the list of hosts in a excel or csv file for a Saas
Solved! Go to Solution.
02 Apr 2020 04:13 PM - last edited on 16 Oct 2023 03:29 PM by random_user
Hello,
One way to do this would be to utilize the Environment API v1. Under Topology & Smartscape you can grab a list of all available hosts in your environment and then download a json file for the given output. You can then convert that json data into a table in excel.
Here is a link that explains how to convert the json data in exel that might be useful.
Hope this helps!
02 Apr 2020 04:21 PM
Is this mean I don't have permissions?
02 Apr 2020 04:29 PM
Did you authorize with an API token that has the correct permissions?
02 Apr 2020 04:34 PM
To do this you'll need to go to Settings > Integration > Dynatrace API. You'll then need to generate a token with the following permission: Access problem and event feed, metrics, and topology. Then copy the generated token and use it to authorize that API by clicking the lock icon and adding the copied token into the box labeled Value. After that authorize the token and then try to execute that API again.
02 Apr 2020 05:00 PM
Did as you said, but still receiving same error
02 Apr 2020 09:48 PM
Hey, You will need to create an API token like this one:
You will need to copy that token code an authorize the API:
Then make sure you select Try it out!
Let me know if you get an error and we can work through it.