<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PostMan: Authentication Issues in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/PostMan-Authentication-Issues/m-p/118133#M2605</link>
    <description>&lt;P&gt;I figured this out on my own. Under the "Headers" section in Postman for your query do the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new header with the key name "Authorization"&lt;/LI&gt;&lt;LI&gt;In the value for the key type "API-Token xxxxx-xxxxxx" where the xxxxx-xxxxx value is the token given to you by the WebUI when generated the token.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It appears like the prepackaged authorization methods for Postman don't quite include the right type for the Dynatrace API so using those doesn't work. &lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 14:08:43 GMT</pubDate>
    <dc:creator>Jonathan_Finkbi</dc:creator>
    <dc:date>2020-10-22T14:08:43Z</dc:date>
    <item>
      <title>PostMan: Authentication Issues</title>
      <link>https://community.dynatrace.com/t5/Alerting/PostMan-Authentication-Issues/m-p/118132#M2604</link>
      <description>&lt;P&gt;I am trying to extract some data from my Dynatrace instance. I am not really experienced using Postman but I am trying to learn as best as I can. I went through the Dynatrace documentation and I found out that I have to generate an API-token in order to get authenticated to extract data. I went ahead and did that and I have the token in hand now.&lt;/P&gt;
&lt;P&gt;I then downloaded Postman and setup the environment based on some videos I watched. What I would like to do is get a list of all hosts in my environment so I can do some organizational stuff. I am using this get request (replacing the your-environment-id with the appropriate value):&lt;/P&gt;
&lt;PRE&gt;https://{your-environment-id}.live.dynatrace.com/api/v1/entity/infrastructure/hosts&lt;/PRE&gt;
&lt;P&gt;I am then adding the token from the webui to Postman by using the Authorization option "Bearer Token" and I am inputting the given token. When I run the get request I am getting:&lt;/P&gt;
&lt;P&gt;"Unsupported authentication mechanism -&amp;gt; 'Bearer'."&lt;/P&gt;
&lt;P&gt;Can anyone provide insight into what type of auth I should be using? I also tried API Key using "API-Token" as the key name and the token from the UI as the value.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 08:51:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/PostMan-Authentication-Issues/m-p/118132#M2604</guid>
      <dc:creator>Jonathan_Finkbi</dc:creator>
      <dc:date>2023-08-14T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: PostMan: Authentication Issues</title>
      <link>https://community.dynatrace.com/t5/Alerting/PostMan-Authentication-Issues/m-p/118133#M2605</link>
      <description>&lt;P&gt;I figured this out on my own. Under the "Headers" section in Postman for your query do the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new header with the key name "Authorization"&lt;/LI&gt;&lt;LI&gt;In the value for the key type "API-Token xxxxx-xxxxxx" where the xxxxx-xxxxx value is the token given to you by the WebUI when generated the token.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It appears like the prepackaged authorization methods for Postman don't quite include the right type for the Dynatrace API so using those doesn't work. &lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:08:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/PostMan-Authentication-Issues/m-p/118133#M2605</guid>
      <dc:creator>Jonathan_Finkbi</dc:creator>
      <dc:date>2020-10-22T14:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: PostMan: Authentication Issues</title>
      <link>https://community.dynatrace.com/t5/Alerting/PostMan-Authentication-Issues/m-p/118134#M2606</link>
      <description>&lt;P&gt;You can access token values in postman from the authorization and headers section. &lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/26993-1603376373827.png" /&gt;&lt;/P&gt;&lt;P&gt;you can also hide the Key Value as well by clicking Header and selecting the '...'&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/26994-1603376546593.png" /&gt;&lt;/P&gt;&lt;P&gt;I hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:22:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/PostMan-Authentication-Issues/m-p/118134#M2606</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2020-10-22T14:22:42Z</dc:date>
    </item>
  </channel>
</rss>

