<?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 files from Phantom case via REST API in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/562234#M690</link>
    <description>&lt;P&gt;many thanks - this indeed look like a&amp;nbsp; viable option.&amp;nbsp; I hope this gets added to the official API specification as this is a very useful activity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 11:36:22 GMT</pubDate>
    <dc:creator>spotteddog</dc:creator>
    <dc:date>2021-08-05T11:36:22Z</dc:date>
    <item>
      <title>Download files from Phantom case via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/548168#M624</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm currently creating a Python script which takes a Splunk Phantom Case as input and creates an Incident Response report from the data within the case.&lt;/P&gt;&lt;P&gt;One part is to download screenshots which are added as files to the case. Is there a way to get the content of those files?&lt;/P&gt;&lt;P&gt;I'm currently using&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" rel="noopener"&gt;https://phantomurl/rest/vault_document/&amp;lt;id_of_document&amp;gt;&lt;/A&gt;&amp;nbsp;but this contains only general data about the file but not the file itsself. I realised that you could use &lt;A target="_blank" rel="noopener"&gt;https://phantoumurl/view?id=&amp;lt;id_of_document&amp;gt;&lt;/A&gt;&amp;nbsp;but that's not really "REST" and also the authentication does not work the same way as with the REST API.&lt;/P&gt;&lt;P&gt;So long story short: How can I download files from Phantom via REST API if I know their document_id?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 09:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/548168#M624</guid>
      <dc:creator>hariomenkel</dc:creator>
      <dc:date>2021-04-16T09:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Download files from Phantom case via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/559306#M670</link>
      <description>&lt;P&gt;Hi is there any response to this?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 20:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/559306#M670</guid>
      <dc:creator>spotteddog</dc:creator>
      <dc:date>2021-07-13T20:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Download files from Phantom case via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/559370#M671</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236358"&gt;@spotteddog&lt;/a&gt;&amp;nbsp;I don't believe that this is possible at the moment but you could have automation in Phantom that could find a file and then "move" it somewhere (send via email, copy file to a location).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What is the use case for downloading items from Phantom, from outside the platform?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 08:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/559370#M671</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2021-07-14T08:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Download files from Phantom case via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/562021#M688</link>
      <description>&lt;P&gt;This is indeed possible.&lt;/P&gt;&lt;P&gt;You must start with the parent container ID to generate a list of all its related attachment IDs:&lt;/P&gt;&lt;P&gt;/rest/container/&lt;EM&gt;{container id}&lt;/EM&gt;/attachments&lt;/P&gt;&lt;P&gt;For each of the attachment IDs returned, construct and call the following URL with the ID of one or more attachments you want to download:&lt;/P&gt;&lt;P&gt;/rest/container/&lt;EM&gt;{container_id}&lt;/EM&gt;/export?file_list[]=&lt;EM&gt;{id of attached file 1}&lt;/EM&gt;&amp;amp;file_list[]=&lt;EM&gt;{id of attached file 2}&lt;/EM&gt;&amp;amp;file_list[]=&lt;EM&gt;{id of attached file 3}&lt;/EM&gt; ... etc&lt;/P&gt;&lt;P&gt;This is the same process used by "EXPORT" menu on the investigation page.&lt;/P&gt;&lt;P&gt;I've requested documentation on many of these useful undocumented APIs from Splunk. They said these APIs are for internal use only, are not supported, and are subject to change.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 05:41:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/562021#M688</guid>
      <dc:creator>bongo</dc:creator>
      <dc:date>2021-08-04T05:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Download files from Phantom case via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/562234#M690</link>
      <description>&lt;P&gt;many thanks - this indeed look like a&amp;nbsp; viable option.&amp;nbsp; I hope this gets added to the official API specification as this is a very useful activity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 11:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/562234#M690</guid>
      <dc:creator>spotteddog</dc:creator>
      <dc:date>2021-08-05T11:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Download files from Phantom case via REST API</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/563767#M695</link>
      <description>&lt;P&gt;Many thanks and sorry for the delayed response. This method indeed works! Awesome! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 12:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Download-files-from-Phantom-case-via-REST-API/m-p/563767#M695</guid>
      <dc:creator>hariomenkel</dc:creator>
      <dc:date>2021-08-18T12:26:33Z</dc:date>
    </item>
  </channel>
</rss>

