Splunk SOAR (f.k.a. Phantom)

How to import containers via rest api?

dennyw
Engager

We have a need to migrate our phantom data to another instance including the containers. 

Though it's not listed in REST Containers - Splunk Documentation, i was able to export the containers via /rest/container/{id}/export

however, i didn't find the rest endpoint for importing the containers.

any advice will be appreciated.

Labels (1)
0 Karma
1 Solution

phanTom
SplunkTrust
SplunkTrust

@dennyw I think you would be better backing up and restoring to the other system *(must be the same version). The REST call you did pulls down individual files containing the container JSON.

I am not aware of a way to import the .gz files via REST with the only way being the manual press of the Import button.

You may even be better off using a script to hit REST to GET from the old and POST to the new system. You would likely need to remove container id's and source_data_identifiers before POSTing.

As you can see there are a few ways to do things in SOAR!

-- If this helped, please mark as a solution! Happy SOARing --

View solution in original post

0 Karma

phanTom
SplunkTrust
SplunkTrust

@dennyw I think you would be better backing up and restoring to the other system *(must be the same version). The REST call you did pulls down individual files containing the container JSON.

I am not aware of a way to import the .gz files via REST with the only way being the manual press of the Import button.

You may even be better off using a script to hit REST to GET from the old and POST to the new system. You would likely need to remove container id's and source_data_identifiers before POSTing.

As you can see there are a few ways to do things in SOAR!

-- If this helped, please mark as a solution! Happy SOARing --

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...