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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...