Skip to main content

server_communication_links

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

Overview

Nameserver_communication_links
TypeResource
Idazure.sql.server_communication_links

Fields

NameDatatypeDescription
communicationLinkNametextfield from the properties object
kindtextCommunication link kind. This property is used for Azure Portal metadata.
locationtextCommunication link location.
partner_servertextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcommunicationLinkName, resourceGroupName, serverName, subscriptionIdReturns a server communication link.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGets a list of server communication links.
create_or_updateINSERTcommunicationLinkName, resourceGroupName, serverName, subscriptionIdCreates a server communication link.
deleteDELETEcommunicationLinkName, resourceGroupName, serverName, subscriptionIdDeletes a server communication link.

SELECT examples

Gets a list of server communication links.

SELECT
communicationLinkName,
kind,
location,
partner_server,
resourceGroupName,
serverName,
state,
subscriptionId
FROM azure.sql.vw_server_communication_links
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.server_communication_links (
communicationLinkName,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ communicationLinkName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified server_communication_links resource.

/*+ delete */
DELETE FROM azure.sql.server_communication_links
WHERE communicationLinkName = '{{ communicationLinkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';