Skip to main content

managed_instance_private_endpoint_connections

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

Overview

Namemanaged_instance_private_endpoint_connections
TypeResource
Idazure.sql.managed_instance_private_endpoint_connections

Fields

NameDatatypeDescription
managedInstanceNametextfield from the properties object
privateEndpointConnectionNametextfield from the properties object
private_endpointtextfield from the properties object
private_link_service_connection_statetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmanagedInstanceName, privateEndpointConnectionName, resourceGroupName, subscriptionIdGets a private endpoint connection.
create_or_updateINSERTmanagedInstanceName, privateEndpointConnectionName, resourceGroupName, subscriptionIdApprove or reject a private endpoint connection with a given name.
deleteDELETEmanagedInstanceName, privateEndpointConnectionName, resourceGroupName, subscriptionIdDeletes a private endpoint connection with a given name.

SELECT examples

Gets a private endpoint connection.

SELECT
managedInstanceName,
privateEndpointConnectionName,
private_endpoint,
private_link_service_connection_state,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure.sql.vw_managed_instance_private_endpoint_connections
WHERE managedInstanceName = '{{ managedInstanceName }}'
AND privateEndpointConnectionName = '{{ privateEndpointConnectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.managed_instance_private_endpoint_connections (
managedInstanceName,
privateEndpointConnectionName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ managedInstanceName }}',
'{{ privateEndpointConnectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified managed_instance_private_endpoint_connections resource.

/*+ delete */
DELETE FROM azure.sql.managed_instance_private_endpoint_connections
WHERE managedInstanceName = '{{ managedInstanceName }}'
AND privateEndpointConnectionName = '{{ privateEndpointConnectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';