Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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:

  • 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.

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: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.