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
0

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

I am trying to trigger multiple pipeline using steramsets API. Could anyone help in what is the syntax to pass multiple pipeline id in API using curl.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

2 followers

Stats

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

Seen: 124 times

Last updated: Oct 31