I am having trouble running the Managed API for my python script. The url I see on my managed account is https://dynatrace/e/xxx-xxx-xxx/api/v2/metrics
but the URL output on the doc is https://{your-domain}/e/{your-environment-id}/api/v2/metrics /// shows my domain as dynatrace/e/
Metrics API - GET metrics — Dynatrace Managed Docs
Hi
What exactly are you having trouble with? Could you please explain it a little bit further? If you can please provide the request and response that you received.
Best Regards
Patryk
You should see something like this in your environment URL when accessing the Dynatrace platform.
https://3423sdf2-sd2f-4343-34d3-343e3433d3430-1.managed.internal.dynatrace.com
https://<Domain>e<your-evironment-id>
The next step would be placing your domain and environment id into the API endpoint.
Hopefully this helps!
I see this url when I log into my Managed ’
https://dynatrace/e/0728af0e-825c-490b-b586-xxx’; what confusing to me is the doc says I should see
https://{your-domain}/e/{your-environment-id} to run the api
I see this url when I log into my Managed ’
https://dynatrace/e/0728af0e-825c-490b-b586-xxx’; what confusing to me is the doc says I should see
https://{your-domain}/e/{your-environment-id} to run the api I have not ran my script yet because my url just says dynatrace/e is that my domain? or what does {your-domain} refer too
Hi
You should use the same URL that you see in the browser.
Let me know if it works after running the script.
Best Regards
Patryk
And what is the purpose of the script supposed to be?
Anyway, the doc provides the information correctly — you just need to replace the values your domain and env ID with the ones you see in your browser when you log into the environment.