Skip to main content

sql_pool_replication_links

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

Overview

Namesql_pool_replication_links
TypeResource
Idazure.synapse.sql_pool_replication_links

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}.
namestringThe name of the resource.
isTerminationAllowedbooleanLegacy value indicating whether termination is allowed. Currently always returns true.
locationstringLocation of the workspace that contains this firewall rule.
partnerDatabasestringThe name of the partner Sql pool.
partnerLocationstringThe Azure Region of the partner Sql pool.
partnerRolestringThe role of the partner Sql pool in the replication link. Known values are: "Primary", "Secondary", "NonReadableSecondary", "Source", and "Copy".
partnerServerstringThe name of the workspace hosting the partner Sql pool.
percentCompleteintegerThe percentage of seeding complete for the replication link.
replicationModestringReplication mode of this replication link.
replicationStatestringThe replication state for the replication link. Known values are: "PENDING", "SEEDING", "CATCH_UP", and "SUSPENDED".
rolestringThe role of the Sql pool in the replication link. Known values are: "Primary", "Secondary", "NonReadableSecondary", "Source", and "Copy".
startTimestring (date-time)The start time for the replication link.
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_by_nameselectresource_group_name, workspace_name, sql_pool_name, link_id, subscription_idGet SQL pool replication link by name. Get SQL pool replication link by name.
listselectresource_group_name, workspace_name, sql_pool_name, subscription_idGet SQL pool replication links. Lists a Sql pool's replication links.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
sql_pool_namestringSQL pool name. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Get SQL pool replication link by name. Get SQL pool replication link by name.

SELECT
id,
name,
isTerminationAllowed,
location,
partnerDatabase,
partnerLocation,
partnerRole,
partnerServer,
percentComplete,
replicationMode,
replicationState,
role,
startTime,
type
FROM azure.synapse.sql_pool_replication_links
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND sql_pool_name = '{{ sql_pool_name }}' -- required
AND link_id = '{{ link_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;