09 Jun 2017 08:39 AM
Hi,
While testing API with Postman getting below error, please help. I am using token also(generated from Dynatrace Saas).
The end point I am using is ---
https://{xxx}.live.dynatrace.com/api/v1/timeseries/?apitoken=123456789
{"error":{"code":401,"message":"Unsupported authentication mechanism -> 'Basic', could not be used as fallback."}}
Solved! Go to Solution.
09 Jun 2017 09:40 AM
Did you try it with Api‐Token=
09 Jun 2017 12:58 PM
Hi Wolgang,
I tried with 'Api-Token=' as well but now I am getting Authorization is required for access to this proxy.
I specify the proxy with authorization still showing proxy problem.
Do I need to allow access to dynatrace server instance.
09 Jun 2017 01:54 PM - last edited on 29 May 2023 10:38 AM by MaciejNeumann
By the way I hope you did not post the real token here?
https://{xxx}.live.dynatrace.com/api/v1/timeseries/?Api-Token=
Should be the correct and full request, that returns the list of defined metrics.
09 Jun 2017 02:17 PM
After applying the token I am getting below xml
<HEAD>
<TITLE>Proxy Authorization Required</TITLE>
</HEAD>
<BODY BGCOLOR="white" FGCOLOR="black">
<H1>Proxy Authorization Required</H1>
<HR>
<FONT FACE="Helvetica,Arial">
<B>
Description: Authorization is required for access to this proxy</B>
</FONT>
<HR>
<!-- default "Proxy Authorization Required" response (407) -->
</BODY>
12 Jun 2017 08:36 AM
Hi Wolfgang,
I got the desired response after accessing from my personal laptop.
While accessing from my client network I am not getting desired response as there are Firewall.
Do I need access to Dynatrace saas server instance to get the response.
12 Jun 2017 08:44 AM
Hi,
I do not really understand your set up. You are running a Dynatrace SaaS environment, at least the domain you provided suggests that?
So your company firewall is blocking the access to Dynatrace SaaS server? How do you access Dynatrace SaaS Web UI then?
best,
Wolfgang
12 Jun 2017 10:25 AM - last edited on 29 May 2023 10:39 AM by MaciejNeumann
hi,
Yes this is dynatrace saas environment ,I am able to access the Web UI, but if a do a ping on https://{xxx}.live.dynatrace.com request time out . After ping to https://{xxx}.live.dynatrace.com it resolve to 2 IP Addresses which are dynatrace server IP. I tried telnet to those IP address which show connection failed. Does it mean that I don't have connectivity to dynatrace server.
12 Jun 2017 11:17 AM
I fear thats a firewall issue on your side, from our perspective there is not much difference between the Dynatrace Web UI and REST API except the additional /api/ subpath. Can you ask your firewall admin what they defined as rules to access Dynatrace SaaS domain?
13 Jul 2017 01:01 AM - last edited on 29 May 2023 10:40 AM by MaciejNeumann
I am getting the same error - Unsupported authentication mechanism -> 'Basic', could not be used as fallback !! In my case no firewall involved
Here is the URL I am trying
https://xxxxxxxxx.live.dynatrace.com/api/v1/timeseries/?Api%E2%80%90Token=XXXXXXXXx&_ga=2.171675877.41959668.1548055338-1975423614.1546843806
https://xxxxxxxxx.live.dynatrace.com/api/v1/problem/feed?Api%E2%80%90Token=XXXXXXXX&_ga=2.171675877.41959668.1548055338-1975423614.1546843806
17 Jul 2017 04:36 AM
Issue was with the special character added in the URL while copy pasting
26 Oct 2017 11:36 AM
Seems like you're selecting 'Basic' under the authorization tab. In postman you want to leave this blank -- instead, add a header with the value for Key equal to 'Authorization', and the Value equal to your API string - e.g. "Api-Token your_token". If you click on the code option, you should see something similar to this:
GET /api/v1/timeseries?relativeTime=hour&aggregationType=AVG×eriesId=com.dynatrace.builtin:host.disk.freespacepercentage HTTP/1.1
Host: somehost.live.dynatrace.com
Authorization: Api-Token <redacted>
Cache-Control: no-cache
Postman-Token: 123456abcdef
27 Oct 2017 07:14 AM
See documentation:
https://help.dynatrace.com/dynatrace-api/authentic...
The HTTP GET parameter is called 'Api-Token' not 'apitoken'.
28 Mar 2018 03:48 PM
Hi I am unable to access my tenant either . I am getting error as "error":{"code":401,"message":"Unsupported authentication mechanism -> 'Basic', could not be used as fallback."}}
I am trying to use DTCLI to config my localhost and to fetch back the data for further processing . I am using the code present in DTCLI github.
28 Mar 2018 04:12 PM
You should check with your security/network team if they allow such connections.