Skip to main content

connections

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

Overview

Nameconnections
TypeResource
Idazure.data_transfer.connections

Fields

NameDatatypeDescription
approvertextfield from the properties object
connectionNametextfield from the properties object
date_submittedtextfield from the properties object
directiontextfield from the properties object
flow_typestextfield from the properties object
justificationtextfield from the properties object
link_statustextfield from the properties object
linked_connection_idtextfield from the properties object
locationtextThe geo-location where the resource lives
pintextfield from the properties object
pipelinetextfield from the properties object
policiestextfield from the properties object
primary_contacttextfield from the properties object
provisioning_statetextfield from the properties object
remote_subscription_idtextfield from the properties object
requirement_idtextfield from the properties object
resourceGroupNametextfield from the properties object
schemastextfield from the properties object
secondary_contactstextfield from the properties object
statustextfield from the properties object
status_reasontextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionName, resourceGroupName, subscriptionIdGets connection resource.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets connections in a resource group.
list_by_subscriptionSELECTsubscriptionIdGets connections in a subscription.
create_or_updateINSERTconnectionName, resourceGroupName, subscriptionId, data__locationCreates or updates the connection resource.
deleteDELETEconnectionName, resourceGroupName, subscriptionIdDeletes the connection resource.
updateUPDATEconnectionName, resourceGroupName, subscriptionIdUpdates the connection resource.
linkEXECconnectionName, resourceGroupName, subscriptionId, data__idLinks the connection to its pending connection.

SELECT examples

Gets connections in a subscription.

SELECT
approver,
connectionName,
date_submitted,
direction,
flow_types,
justification,
link_status,
linked_connection_id,
location,
pin,
pipeline,
policies,
primary_contact,
provisioning_state,
remote_subscription_id,
requirement_id,
resourceGroupName,
schemas,
secondary_contacts,
status,
status_reason,
subscriptionId,
tags
FROM azure.data_transfer.vw_connections
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new connections resource.

/*+ create */
INSERT INTO azure.data_transfer.connections (
connectionName,
resourceGroupName,
subscriptionId,
data__location,
properties,
tags,
location
)
SELECT
'{{ connectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a connections resource.

/*+ update */
UPDATE azure.data_transfer.connections
SET
tags = '{{ tags }}'
WHERE
connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified connections resource.

/*+ delete */
DELETE FROM azure.data_transfer.connections
WHERE connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';