Ask Your Question
0

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

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

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
1

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

iamontheinet gravatar image

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

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 "pipelines.zip"

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 "pipelines.zip" specified as --output parameter.

edit flag offensive delete link more
0

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

brawal gravatar image

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

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
Login/Signup to Answer

Question Tools

2 followers

Stats

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

Seen: 195 times

Last updated: Dec 01 '18