01 Jun 2024 04:36 AM - last edited on 07 Jun 2024 11:42 AM by Michal_Gebacki
I have two question
1. where i can run dsql . i dont see any navigation in dynatrace .any separate tool to be installed
2. i using a simple query to list of dashboards using curl but for any query , i always get "the document has moved "
am i missing something
curl -X "GET" ^
More? "https://xxx.com/e/77c3a9e6-260f-4181-bf1b-a75a9f6856f9/api/config/v1/dashboards" ^
More? -H "accept: application/json; charset=utf-8" ^
More? -H "Authorization: Api-Token dt0c01.xxxx"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://xxx/dynatrace-io.fcc?TYPE=33554433&REALMOID=06-0005035f-6349-154a-9d9e-00017f000000&...">here</a>.</p>
</body></html>
Solved! Go to Solution.
03 Jun 2024 07:12 AM
Hi @sampathkumar ,
Not sure if you are aware but APIs of Dynatrace keep changing regularly. To stay up to date please follow the Swagger page provided by Dynatrace from where you can run the APIs without actually having to run the curl from any other host.
Also, Here you can find the updated API request.
https://{environmentid}.live.dynatrace.com/rest-api-doc/index.jsp?urls.primaryName=Configuration%20A...
Regards,
Maheedhar.