cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error while using curl

sampathkumar
Frequent Guest

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&amp;REALMOID=06-0005035f-6349-154a-9d9e-00017f000000&amp;...">here</a>.</p>
</body></html>

1 REPLY 1

Maheedhar_T
Visitor

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.

Maheedhar

Featured Posts