Skip to main content

link_connection

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

Overview​

Namelink_connection
TypeResource
Idazure.synapse_artifacts.link_connection

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringLink connection id.
namestringLink connection name.
computeobjectProperties of link connection's compute.
descriptionstringLink connection description.
landingZoneobjectProperties of link connection's landing zone.
sourceDatabaseobjectProperties of link connection's source database.
targetDatabaseobjectProperties of link connection's target database.
typestringLink connection type.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlink_connection_name, endpointGet a link connection.
list_by_workspaceselectendpointList link connections.
create_or_updateinsertlink_connection_name, endpoint, propertiesCreates or updates a link connection.
create_or_updatereplacelink_connection_name, endpoint, propertiesCreates or updates a link connection.
deletedeletelink_connection_name, endpointDelete a link connection.
list_link_tablesexeclink_connection_name, endpointList the link tables of a link connection.
get_detailed_statusexeclink_connection_name, endpointGet the detailed status of a link connection.
edit_tablesexeclink_connection_name, endpointEdit tables for a link connection.
startexeclink_connection_name, endpointStart a link connection. It may take a few minutes from Starting to Running, monitor the status with LinkConnection_GetDetailedStatus.
stopexeclink_connection_name, endpointStop a link connection. It may take a few minutes from Stopping to stopped, monitor the status with LinkConnection_GetDetailedStatus.
query_table_statusexeclink_connection_name, endpointQuery the link table status of a link connection.
update_landing_zone_credentialexeclink_connection_name, endpoint, type, valueUpdate landing zone credential of a link connection.
pauseexeclink_connection_name, endpointPause a link connection. It may take a few minutes from Pausing to Paused, monitor the status with LinkConnection_GetDetailedStatus.
resumeexeclink_connection_name, endpointResume a link connection. It may take a few minutes from Resuming to Running, monitor the status with LinkConnection_GetDetailedStatus.

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: )

SELECT examples​

Get a link connection.

SELECT
id,
name,
compute,
description,
landingZone,
sourceDatabase,
targetDatabase,
type
FROM azure.synapse_artifacts.link_connection
WHERE link_connection_name = '{{ link_connection_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples​

Creates or updates a link connection.

INSERT INTO azure.synapse_artifacts.link_connection (
id,
name,
type,
properties,
description,
link_connection_name,
endpoint
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ type }}',
'{{ properties }}' /* required */,
'{{ description }}',
'{{ link_connection_name }}',
'{{ endpoint }}'
RETURNING
id,
name,
description,
properties,
type
;

REPLACE examples​

Creates or updates a link connection.

REPLACE azure.synapse_artifacts.link_connection
SET
id = '{{ id }}',
name = '{{ name }}',
type = '{{ type }}',
properties = '{{ properties }}',
description = '{{ description }}'
WHERE
link_connection_name = '{{ link_connection_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
description,
properties,
type;

DELETE examples​

Delete a link connection.

DELETE FROM azure.synapse_artifacts.link_connection
WHERE link_connection_name = '{{ link_connection_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods​

List the link tables of a link connection.

EXEC azure.synapse_artifacts.link_connection.list_link_tables
@link_connection_name='{{ link_connection_name }}' --required,
@endpoint='{{ endpoint }}' --required
;