<?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 Help with XDR Rest query in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-with-xdr-rest-query/m-p/998314#M7581</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to query the Cortex REST API using this doc - &lt;A href="https://live.paloaltonetworks.com/t5/cortex-xdr-articles/cortex-xdr-and-xsiam-postman-api-collection/ta-p/443667," target="_blank"&gt;https://live.paloaltonetworks.com/t5/cortex-xdr-articles/cortex-xdr-and-xsiam-postman-api-collection/ta-p/443667,&lt;/A&gt; but I keep receiving a &lt;/P&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: IBMPlexMono, Monaco, 'Courier New', monospace, Menlo, Monaco, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 18px; white-space: pre;"&gt;
&lt;DIV&gt;&lt;SPAN&gt;"Public API request unauthorized" message. I tried opening a ticket, but apparently&lt;BR /&gt;that's not allowed for this level of question. Any suggestions? My environment settings&lt;BR /&gt;are set in Postman. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 13 Dec 2024 20:55:00 GMT</pubDate>
    <dc:creator>S.Bossi</dc:creator>
    <dc:date>2024-12-13T20:55:00Z</dc:date>
    <item>
      <title>Help with XDR Rest query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-with-xdr-rest-query/m-p/998314#M7581</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to query the Cortex REST API using this doc - &lt;A href="https://live.paloaltonetworks.com/t5/cortex-xdr-articles/cortex-xdr-and-xsiam-postman-api-collection/ta-p/443667," target="_blank"&gt;https://live.paloaltonetworks.com/t5/cortex-xdr-articles/cortex-xdr-and-xsiam-postman-api-collection/ta-p/443667,&lt;/A&gt; but I keep receiving a &lt;/P&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: IBMPlexMono, Monaco, 'Courier New', monospace, Menlo, Monaco, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 18px; white-space: pre;"&gt;
&lt;DIV&gt;&lt;SPAN&gt;"Public API request unauthorized" message. I tried opening a ticket, but apparently&lt;BR /&gt;that's not allowed for this level of question. Any suggestions? My environment settings&lt;BR /&gt;are set in Postman. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Dec 2024 20:55:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-with-xdr-rest-query/m-p/998314#M7581</guid>
      <dc:creator>S.Bossi</dc:creator>
      <dc:date>2024-12-13T20:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with XDR Rest query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-with-xdr-rest-query/m-p/998380#M7583</link>
      <description>&lt;P&gt;Try starting with something simple: standard API key token with relevant permissions and its ID.&lt;/P&gt;
&lt;P&gt;In powershell a simple working query can look like:&lt;/P&gt;
&lt;P&gt;$api_key_id = ""&lt;BR /&gt;$api_key = ""&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;$headers=@{}&lt;BR /&gt;$headers.Add("x-xdr-auth-id", $api_key_id)&lt;BR /&gt;$headers.Add("Authorization", $api_key)&lt;BR /&gt;$headers.Add("Accept", "application/json")&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;$response = Invoke-WebRequest -Uri '&lt;A href="https://api-" target="_blank"&gt;https://api-&lt;/A&gt;&amp;lt;your_tenanant&amp;gt;.xdr.&amp;lt;your_region&amp;gt;.paloaltonetworks.com/public_api/v1/healthcheck' -Method GET -Headers $headers -ErrorVariable ProcessError&lt;BR /&gt;$response&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2024 23:22:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-with-xdr-rest-query/m-p/998380#M7583</guid>
      <dc:creator>maximk</dc:creator>
      <dc:date>2024-12-14T23:22:53Z</dc:date>
    </item>
  </channel>
</rss>

