Ask Your Question

How can I export multiple pipelines from Data Collector using curl?

asked 2018-08-31 12:31:05 -0500

iamontheinet gravatar image

If I want to export multiple pipelines from Data Collector and have them saved locally, what is the full curl command?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-31 12:33:48 -0500

iamontheinet gravatar image

updated 2018-08-31 12:34:56 -0500

Here's the curl command that will export multiple pipelines from Data Collector using REST API endpoint /rest/v1/pipelines/export:

curl -u admin:admin -X POST SDC_IP:SDC_PORT/rest/v1/pipelines/export -d '["YOUR_PIPELINE_ID_1","YOUR_PIPELINE_ID_2"]' -H "X-Requested-By:sdc" -H "Content-Type: application/json" -H "Accept-Encoding: gzip, deflate" -H "Accept: */*" --output ""

Where you'll need to:

  • Replace admin:admin (default and insecure authentication mechanism) as required by your installation.
  • Replace SDC_IP and SDC_PORT with IP and port of your Data Collector.
  • Replace YOUR_PIPELINE_ID_1 and YOUR_PIPELINE_ID_2 with pipeline IDs (not pipeline names) of pipelines you'd like to export.

Note: The pipelines will be exported/saved in compressed (.zip) file "" specified as --output parameter.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools



Asked: 2018-08-31 12:31:05 -0500

Seen: 67 times

Last updated: Aug 31