• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
        • Enterprise Synthetic Monitoring
      • Synthetic Classic
        • Synthetic Classic Open Q&A
      • BSM Open Q&A
  • Home /
  • Public Forums /
  • Dynatrace /
  • Dynatrace Open Q&A /
avatar image
Question by Suresh K. · Jun 09, 2017 at 07:39 AM · rest api

Exposing Dynatrace saas API

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."}}
Comment

People who like this

0 Show 0
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

14 Replies

· Add your reply
  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image
Best Answer

Answer by Rejith R. · Jul 17, 2017 at 03:36 AM

Issue was with the special character added in the URL while copy pasting

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Wolfgang B. · Jun 09, 2017 at 08:40 AM

Did you try it with Api‐Token=

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Suresh K. · Jun 09, 2017 at 11:58 AM

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.

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Wolfgang B. · Jun 09, 2017 at 12:54 PM

By the way I hope you did not post the real token here?

https://{xxx}.live.dynatrace.com/api/v1/timeseries...

Should be the correct and full request, that returns the list of defined metrics.

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Suresh K. · Jun 09, 2017 at 01: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>

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Suresh K. · Jun 12, 2017 at 07: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.

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Wolfgang B. · Jun 12, 2017 at 07: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

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Suresh K. · Jun 12, 2017 at 09:25 AM

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.

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Wolfgang B. · Jun 12, 2017 at 10: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?

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Rejith R. · Jul 13, 2017 at 12:01 AM

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://xxxxxx.live.dynatrace.com/api/v1/timeser...

https://xxxxxx.live.dynatrace.com/api/v1/problem...

Comment

People who like this

0 Show 0 · Share
10 |2000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 10 attachments (including images) can be used with a maximum of 52.4 MB each and 262.1 MB total.

Welcome to the
Dynatrace Community Forums

Check out the Forum User Guide and Forum Guidelines to learn how to get started.

Community Member of the Month
February 2019

Announcing Dynatrace's Community Member of the Month for February 2019, Larry R.! Click here to read more!

Employee Member of the Month
February 2019

Announcing Dynatrace's Employee Member of the Month for February 2019, Dave M.! Click here to read more!

Live webinar: AIOps done right through enhanced Dynatrace AI root cause detection

Learn the enhanced capabilities of the next generation Dynatrace AI root cause analysis and how to feed it with your own data sources.
Wednesday, February 20, 2019
Register today!

Live webinar: AIOps done right through enhanced Dynatrace AI root cause detection

Learn the enhanced capabilities of the next generation Dynatrace AI root cause analysis and how to feed it with your own data sources.
Wednesday, February 20, 2019
Register today!

NAM 2019 Beta is available

Would you like to have an early taste of what we have cooked up for 2019? We would love to hear your feedback and improve some of the new features. Check NAM 2019 Beta release notes.
Sign up today!

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to get host id for a specific service through REST API 1 Answer

Is there an Opentracing API Java implementation for Dynatrace, like Brave for Zipkins. https://www.dynatrace.com/technologies/integration/opentracing/ doesn't give link to download jar 1 Answer

Rest API returns unmonitored entities 1 Answer

Where can we find / chart time series of custom device? 2 Answers

How can I fetch average response time of a specific URI? 4 Answers

Forum Tags

java user management dotnet redis docker ios davis log analytics gui mobileapp database cloud foundry usability services faq management zones user sessions test automation Dynatrace Managed amazon web services plugins php android javascript processes monitoring nodejs sso rest api appmon license dynatrace saas mobile monitoring user tagging installation nam aix oneagent sdk purepath network synthetic monitors apache hosts iis user actions paas azure http monitor linux mongodb mysql dashboard tipstricks rest openshift mission control activegate webserver servicenow kubernetes rum host monitoring cmc key user actions notifications openstack technologies configuration account continuous delivery tagging postgresql security smartscape high five award agent documentation alerting auto-detection cassandra administration vmware oneagent
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A
      • Enterprise Synthetic Monitoring
    • Synthetic Classic
      • Synthetic Classic Open Q&A
    • BSM Open Q&A