Skip to main content

data_flow

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

Overview​

Namedata_flow
TypeResource
Idazure.synapse_artifacts.data_flow

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.
annotationsarrayList of tags that can be used for describing the data flow.
descriptionstringThe description of the data flow.
etagstringResource Etag.
folderobjectThe folder that this data flow is in. If not specified, Data flow will appear at the root level.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_flowselectdata_flow_name, endpointIf-None-MatchGets a data flow.
get_data_flows_by_workspaceselectendpointLists data flows.
create_or_update_data_flowinsertdata_flow_name, endpoint, typeIf-MatchCreates or updates a data flow.
create_or_update_data_flowreplacedata_flow_name, endpoint, typeIf-MatchCreates or updates a data flow.
delete_data_flowdeletedata_flow_name, endpointDeletes a data flow.
rename_data_flowexecdata_flow_name, endpointRenames a dataflow.

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
data_flow_namestringThe data flow name. Required.
endpointstringThe service endpoint host (no scheme). (default: )
If-MatchstringETag of the data flow 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 data flow 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.

SELECT examples​

Gets a data flow.

SELECT
id,
name,
annotations,
description,
etag,
folder,
type
FROM azure.synapse_artifacts.data_flow
WHERE data_flow_name = '{{ data_flow_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND If-None-Match = '{{ If-None-Match }}'
;

INSERT examples​

Creates or updates a data flow.

INSERT INTO azure.synapse_artifacts.data_flow (
type,
description,
annotations,
folder,
data_flow_name,
endpoint,
If-Match
)
SELECT
'{{ type }}' /* required */,
'{{ description }}',
'{{ annotations }}',
'{{ folder }}',
'{{ data_flow_name }}',
'{{ endpoint }}',
'{{ If-Match }}'
RETURNING
id,
name,
etag,
properties,
type
;

REPLACE examples​

Creates or updates a data flow.

REPLACE azure.synapse_artifacts.data_flow
SET
type = '{{ type }}',
description = '{{ description }}',
annotations = '{{ annotations }}',
folder = '{{ folder }}'
WHERE
data_flow_name = '{{ data_flow_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND type = '{{ type }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
id,
name,
etag,
properties,
type;

DELETE examples​

Deletes a data flow.

DELETE FROM azure.synapse_artifacts.data_flow
WHERE data_flow_name = '{{ data_flow_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods​

Renames a dataflow.

EXEC azure.synapse_artifacts.data_flow.rename_data_flow
@data_flow_name='{{ data_flow_name }}' --required,
@endpoint='{{ endpoint }}' --required
;