<?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 Python Requests in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Python-Requests/m-p/185490#M1846</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests

URL = "https://gbmonitor/e/{tenand_id}/api/v2/activeGates/"
print("search by id : ")
id=input("&amp;gt; ")
queryURL = URL + f"{id}"
response = requests.get(queryURL, headers={'Authorization': "Api-Token " + "dt0c01.XXXXXXX"})
print(response.text)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm probably making a mistake in the request part, I wonder how it will be, the error I get is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kadirhan_0-1650972882245.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5501i2308376CB686B15D/image-size/large?v=v2&amp;amp;px=999" role="button" title="kadirhan_0-1650972882245.png" alt="kadirhan_0-1650972882245.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Oct 2023 22:31:33 GMT</pubDate>
    <dc:creator>kadirhan</dc:creator>
    <dc:date>2023-10-22T22:31:33Z</dc:date>
    <item>
      <title>Python Requests</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Python-Requests/m-p/185490#M1846</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests

URL = "https://gbmonitor/e/{tenand_id}/api/v2/activeGates/"
print("search by id : ")
id=input("&amp;gt; ")
queryURL = URL + f"{id}"
response = requests.get(queryURL, headers={'Authorization': "Api-Token " + "dt0c01.XXXXXXX"})
print(response.text)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm probably making a mistake in the request part, I wonder how it will be, the error I get is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kadirhan_0-1650972882245.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5501i2308376CB686B15D/image-size/large?v=v2&amp;amp;px=999" role="button" title="kadirhan_0-1650972882245.png" alt="kadirhan_0-1650972882245.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2023 22:31:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Python-Requests/m-p/185490#M1846</guid>
      <dc:creator>kadirhan</dc:creator>
      <dc:date>2023-10-22T22:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python Requests</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Python-Requests/m-p/185512#M1852</link>
      <description>&lt;P&gt;The SSL certificate on that AG/host is probably for a different DNS. Try setting verify=false in the get and see if that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 14:47:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Python-Requests/m-p/185512#M1852</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2022-04-26T14:47:07Z</dc:date>
    </item>
  </channel>
</rss>

