View Pipeline Code¶
Use this API to get the code for the streaming pipeline that is created in the assisted mode by adding the nodes and predefined operators.
The source and sink nodes must exist along with the required properties, such as
cluster_label for the pipeline.
The following users can make this API call:
- Users who belong to the system-user or system-admin group.
- Users who belong to a group associated with a role that allows submitting a command.
- Users who belong to a role that allows the Pipelines resource.
Request API Syntax¶
curl -i -X GET https://api.qubole.com/api/v1.2/pipelines/<pipeline_id>/generate_code -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json"
Sample API Request¶
curl -i -X GET https://api.qubole.com/api/v1.2/pipelines/1/generate_code -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json"