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

2 Answers

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

answered 2018-10-31 04:08:43 -0500

brawal gravatar image

updated 2018-12-01 12:18:30 -0500

How can I get status of multiple pipelineids using curl ?

If i try to pass more than one pipelineId, it gives me status of all the pipelineId's .I want status of only few selected pipeline id

edit flag offensive delete link more


Pl ask a new question for better visibility. Tx!

iamontheinet gravatar imageiamontheinet ( 2019-03-01 14:33:20 -0500 )edit
Login/Signup to Answer

Question Tools



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

Seen: 259 times

Last updated: Dec 01 '18