<?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: Download the freshly created xdr-distribution-file in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/528358#M3453</link>
    <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/161266"&gt;@r_buchwalder&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Have you checked XDR API reference documentation - &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Get-Distribution-URL" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Get-Distribution-URL&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If I understand your question all information should be already there.&lt;/P&gt;
&lt;P&gt;Just reading the docs it seems the flow should be as follow:&lt;/P&gt;
&lt;P&gt;- Make Create distribution API call (&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Create-Distributions" target="_blank"&gt;Create Distributions • Cortex XDR API Reference • Reader • Palo Alto Networks documentation portal&lt;/A&gt;), which will return distribution ID&lt;/P&gt;
&lt;P&gt;- Make Get Distribution Status API call providing the ID from previous call. This will tell you if package is ready for download or still creating. You probably need to loop this until status is ready&lt;/P&gt;
&lt;P&gt;- Make Get Distribution URL API call providing the same ID. This will return URL from which you can then download the package.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 15:33:59 GMT</pubDate>
    <dc:creator>aleksandar.astardzhiev</dc:creator>
    <dc:date>2023-01-24T15:33:59Z</dc:date>
    <item>
      <title>Download the freshly created xdr-distribution-file</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/528344#M3450</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I'm looking for an autmoatisation, where I'm able to download the freshly created xdr-distribution-file.&lt;BR /&gt;In my Playbook I've created following steps:&lt;/P&gt;
&lt;P&gt;xdr-get-distribution-versions&lt;BR /&gt;xdr-create-distribution&lt;BR /&gt;xdr-get-distribution-url&lt;/P&gt;
&lt;P&gt;Now, the last step tells me an URL to download the xdr-file.&lt;BR /&gt;I would like to download that file to put it on out internal server for our client developers.&lt;BR /&gt;Does anyone have an Idea, how I may get that file?&lt;/P&gt;
&lt;P&gt;thanks&lt;BR /&gt;roger&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:55:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/528344#M3450</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2023-01-24T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Download the freshly created xdr-distribution-file</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/528358#M3453</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/161266"&gt;@r_buchwalder&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Have you checked XDR API reference documentation - &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Get-Distribution-URL" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Get-Distribution-URL&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If I understand your question all information should be already there.&lt;/P&gt;
&lt;P&gt;Just reading the docs it seems the flow should be as follow:&lt;/P&gt;
&lt;P&gt;- Make Create distribution API call (&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Create-Distributions" target="_blank"&gt;Create Distributions • Cortex XDR API Reference • Reader • Palo Alto Networks documentation portal&lt;/A&gt;), which will return distribution ID&lt;/P&gt;
&lt;P&gt;- Make Get Distribution Status API call providing the ID from previous call. This will tell you if package is ready for download or still creating. You probably need to loop this until status is ready&lt;/P&gt;
&lt;P&gt;- Make Get Distribution URL API call providing the same ID. This will return URL from which you can then download the package.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 15:33:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/528358#M3453</guid>
      <dc:creator>aleksandar.astardzhiev</dc:creator>
      <dc:date>2023-01-24T15:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Download the freshly created xdr-distribution-file</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/528359#M3454</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/70130"&gt;@aleksandar.astardzhiev&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is exactly what I did. But now, I would like to download that file in xsoar and put it on an smb share.&lt;/P&gt;
&lt;P&gt;The URL I get need a Palo-Login...&lt;/P&gt;
&lt;P&gt;Is there an automated way to get that file within xsoar?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tanks&lt;/P&gt;
&lt;P&gt;R_buchwalder&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 15:39:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/528359#M3454</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2023-01-24T15:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Download the freshly created xdr-distribution-file</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/528368#M3455</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/161266"&gt;@r_buchwalder&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The URL provided in the response from the "Get Distribution URL" API is signed and only lasts for a short amount of time. You can download the file by making a GET or POST request directly to that URL with the standard headers&amp;nbsp;(Authorization, x-xdr-auth-id) as you would for any other XDR API call.&lt;BR /&gt;&lt;BR /&gt;For example, here is how you can make such a request with curl to download the installation package from the distribution_url:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --location --request POST 'DISTRIBUTION_URL_GOES_HERE' \
--header 'Authorization: API_KEY_GOES_HERE' \
--header 'x-xdr-auth-id: API_KEY_ID_GOES_HERE' \
--output '/path/to/file.msi'
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 16:19:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/528368#M3455</guid>
      <dc:creator>timurphy</dc:creator>
      <dc:date>2023-01-24T16:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Download the freshly created xdr-distribution-file</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/548576#M4716</link>
      <description>&lt;P&gt;Hello Tim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I do that with the curl-trick; I get this as response:&lt;BR /&gt;{"reply": {"err_code": 401, "err_msg": "Public API request unauthorized", "err_extra": null}}&lt;BR /&gt;The key-ID and keys are all the same.&lt;/P&gt;
&lt;P&gt;If I call the URL directly in a Browser, I get also a HTTP 401 error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;rog&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 14:28:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/download-the-freshly-created-xdr-distribution-file/m-p/548576#M4716</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2023-07-07T14:28:38Z</dc:date>
    </item>
  </channel>
</rss>

