Skip to main content

flows

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

Overview

Nameflows
TypeResource
Idazure.data_transfer.flows

Fields

The following fields are returned by SELECT queries:

Retrieved the flows resource.

NameDatatypeDescription
identityobjectThe managed identity of the flow resource, if configured.
locationstringThe geo-location where the resource lives
planobjectPlan for the resource.
propertiesobjectProperties of flow
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, connectionName, flowNameGets flow resource.
list_by_connectionselectsubscriptionId, resourceGroupName, connectionNameGets flows in a connection.
create_or_updateinsertsubscriptionId, resourceGroupName, connectionName, flowName, data__locationCreates or updates the flow resource.
updateupdatesubscriptionId, resourceGroupName, connectionName, flowNameUpdates the flow resource.
deletedeletesubscriptionId, resourceGroupName, connectionName, flowNameDeletes the flow resource.
enableexecsubscriptionId, resourceGroupName, connectionName, flowNameEnables the specified flow.
disableexecsubscriptionId, resourceGroupName, connectionName, flowNameDisables the specified flow
linkexecsubscriptionId, resourceGroupName, connectionName, flowName, idLinks the specified flow.

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
connectionNamestringThe name for the connection that is to be requested.
flowNamestringThe name for the flow that is to be onboarded.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets flow resource.

SELECT
identity,
location,
plan,
properties,
tags
FROM azure.data_transfer.flows
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND connectionName = '{{ connectionName }}' -- required
AND flowName = '{{ flowName }}' -- required
;

INSERT examples

Creates or updates the flow resource.

INSERT INTO azure.data_transfer.flows (
data__properties,
data__plan,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
connectionName,
flowName
)
SELECT
'{{ properties }}',
'{{ plan }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ connectionName }}',
'{{ flowName }}'
RETURNING
identity,
location,
plan,
properties,
tags
;

UPDATE examples

Updates the flow resource.

UPDATE azure.data_transfer.flows
SET
data__identity = '{{ identity }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND connectionName = '{{ connectionName }}' --required
AND flowName = '{{ flowName }}' --required
RETURNING
identity,
location,
plan,
properties,
tags;

DELETE examples

Deletes the flow resource.

DELETE FROM azure.data_transfer.flows
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND connectionName = '{{ connectionName }}' --required
AND flowName = '{{ flowName }}' --required
;

Lifecycle Methods

Enables the specified flow.

EXEC azure.data_transfer.flows.enable 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@connectionName='{{ connectionName }}' --required,
@flowName='{{ flowName }}' --required
;