Forum Discussion

Rejaul84's avatar
Rejaul84
Frequent Visitor
3 years ago
Solved

Connecting to Dynatrace API using a API token details

Hi

 

I am trying to connect to the following https://exampleEnviornment.live.dynatrace.com/api/v2/metrics/query Dynatrace API

 

I am using an API token I get the below error message. I am very new to Power BI, so there is something that I have done incorrectly but not sure what? Any step by step guide will help

"The 'Authorization' header is only supported when connecting anonymously. These headers can be used with all authentication types: Accept, Accept-Charset, Accept-Encoding, Accept-Language, Cache-Control, Content-Type, If-Modified-Since, Prefer, Range, Referer"

Used the following to help me get the API URL https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-all-metrics

  • So It was sort of user error that I was able to figure out.

     

    in the advance tab where you add in the API token I needed to add in Api-Token before it.

     

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  Rejaul84 ,

     

    According to research, this error comes from the API you are trying to connect to, and your data source may stop trying to log in "anonymous" and has been set to "basic".

    You can reset the type by steps as below.

    File>Options and settings>Data source settings.

    Then edit the permission to reset the type. The credential type should look like as below.

     

     

    This is the related document, you can view this content:

    Solved: Power BI Service API authentication (Freshservice) - Microsoft Fabric Community

    Solved: Remote API Access to data source sudden errors - Microsoft Fabric Community

     

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Rejaul84's avatar
      Rejaul84
      Frequent Visitor

      I've edited this and then re-tried it and this is what I gert now.

       

      • Rejaul84's avatar
        Rejaul84
        Frequent Visitor

        So It was sort of user error that I was able to figure out.

         

        in the advance tab where you add in the API token I needed to add in Api-Token before it.