Skip to main content

pipeline

Creates, updates, deletes, gets or lists a pipeline resource.

Overview

Namepipeline
TypeResource
Idazure.synapse_artifacts.pipeline

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
objectUnmatched properties from the message are deserialized to this collection.
activitiesarrayList of activities in pipeline.
annotationsarrayList of tags that can be used for describing the Pipeline.
concurrencyintegerThe max number of concurrent runs for the pipeline.
descriptionstringThe description of the pipeline.
etagstringResource Etag.
folderobjectThe folder that this Pipeline is in. If not specified, Pipeline will appear at the root level.
parametersobjectList of parameters for pipeline.
runDimensionsobjectDimensions emitted by Pipeline.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
variablesobjectList of variables for pipeline.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_pipelineselectpipeline_name, endpointIf-None-MatchGets a pipeline.
get_pipelines_by_workspaceselectendpointLists pipelines.
create_or_update_pipelineinsertpipeline_name, endpointIf-MatchCreates or updates a pipeline.
create_or_update_pipelinereplacepipeline_name, endpointIf-MatchCreates or updates a pipeline.
delete_pipelinedeletepipeline_name, endpointDeletes a pipeline.
rename_pipelineexecpipeline_name, endpointRenames a pipeline.
create_pipeline_runexecpipeline_name, endpointreferencePipelineRunId, isRecovery, startActivityNameCreates a run of a pipeline.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme). (default: )
pipeline_namestringThe pipeline name. Required.
If-MatchstringETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None.
If-None-MatchstringETag of the pipeline entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None.
isRecoverybooleanRecovery mode flag. If recovery mode is set to true, the specified referenced pipeline run and the new run will be grouped under the same groupId. Default value is None.
referencePipelineRunIdstringThe pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. Default value is None.
startActivityNamestringIn recovery mode, the rerun will start from this activity. If not specified, all activities will run. Default value is None.

SELECT examples

Gets a pipeline.

SELECT
id,
name,
,
activities,
annotations,
concurrency,
description,
etag,
folder,
parameters,
runDimensions,
type,
variables
FROM azure.synapse_artifacts.pipeline
WHERE pipeline_name = '{{ pipeline_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND If-None-Match = '{{ If-None-Match }}'
;

INSERT examples

Creates or updates a pipeline.

INSERT INTO azure.synapse_artifacts.pipeline (
,
properties,
pipeline_name,
endpoint,
If-Match
)
SELECT
'{{ }}',
'{{ properties }}',
'{{ pipeline_name }}',
'{{ endpoint }}',
'{{ If-Match }}'
RETURNING
id,
name,
,
etag,
properties,
type
;

REPLACE examples

Creates or updates a pipeline.

REPLACE azure.synapse_artifacts.pipeline
SET
= '{{ }}',
properties = '{{ properties }}'
WHERE
pipeline_name = '{{ pipeline_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
id,
name,
,
etag,
properties,
type;

DELETE examples

Deletes a pipeline.

DELETE FROM azure.synapse_artifacts.pipeline
WHERE pipeline_name = '{{ pipeline_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Renames a pipeline.

EXEC azure.synapse_artifacts.pipeline.rename_pipeline 
@pipeline_name='{{ pipeline_name }}' --required,
@endpoint='{{ endpoint }}' --required
;