Skip to main content

private_endpoint_connections

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

Overview

Nameprivate_endpoint_connections
TypeResource
Idazure.maria_db.private_endpoint_connections

Fields

NameDatatypeDescription
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
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTprivateEndpointConnectionName, resourceGroupName, serverName, subscriptionIdGets a private endpoint connection.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGets all private endpoint connections on a server.
create_or_updateINSERTprivateEndpointConnectionName, resourceGroupName, serverName, subscriptionIdApprove or reject a private endpoint connection with a given name.
deleteDELETEprivateEndpointConnectionName, resourceGroupName, serverName, subscriptionIdDeletes a private endpoint connection with a given name.
update_tagsEXECprivateEndpointConnectionName, resourceGroupName, serverName, subscriptionIdUpdates private endpoint connection with the specified tags.

SELECT examples

Gets all private endpoint connections on a server.

SELECT
privateEndpointConnectionName,
private_endpoint,
private_link_service_connection_state,
provisioning_state,
resourceGroupName,
serverName,
subscriptionId
FROM azure.maria_db.vw_private_endpoint_connections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.maria_db.private_endpoint_connections (
privateEndpointConnectionName,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ privateEndpointConnectionName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified private_endpoint_connections resource.

/*+ delete */
DELETE FROM azure.maria_db.private_endpoint_connections
WHERE privateEndpointConnectionName = '{{ privateEndpointConnectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';