How to export a pipeline using REST api?
I have a requirement to automate exporting a pipeline. So, how can I export a pipeline using REST api?
All of the Data Collector APIs are accessible from the UI by going to Help / RESTful API. Scroll down to the store section and you'll see GET /v1/pipeline/{pipelineId}/export
. You can supply a pipeline id there to try it out, or, from curl
:
curl -u admin:admin http://localhost:18630/rest/v1/pipeline/{pipelineId}/export -H "X-Requested-By:sdc"
You'll receive the JSON pipeline in response.
If you just have a set of Data Collector instances, you would need to keep track of which pipeline was where. StreamSets Control Hub provides a centralized repository that the Data Collector instances can share https://streamsets.com/products/dataops-platform/control-hub/
Asked: 2019-09-02 23:58:10 -0600
Seen: 562 times
Last updated: Sep 03 '19