Skip to main content

private_endpoint_connections

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

Overview

Nameprivate_endpoint_connections
TypeResource
Idazure_isv.mongo_db.private_endpoint_connections

Fields

NameDatatypeDescription
group_idstextfield from the properties object
mongoClusterNametextfield 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
getSELECTmongoClusterName, privateEndpointConnectionName, resourceGroupName, subscriptionIdGet a specific private connection
list_by_mongo_clusterSELECTmongoClusterName, resourceGroupName, subscriptionIdList existing private connections
createINSERTmongoClusterName, privateEndpointConnectionName, resourceGroupName, subscriptionIdCreate a Private endpoint connection
deleteDELETEmongoClusterName, privateEndpointConnectionName, resourceGroupName, subscriptionIdDelete the private endpoint connection

SELECT examples

List existing private connections

SELECT
group_ids,
mongoClusterName,
privateEndpointConnectionName,
private_endpoint,
private_link_service_connection_state,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure_isv.mongo_db.vw_private_endpoint_connections
WHERE mongoClusterName = '{{ mongoClusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
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_isv.mongo_db.private_endpoint_connections (
mongoClusterName,
privateEndpointConnectionName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ mongoClusterName }}',
'{{ privateEndpointConnectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified private_endpoint_connections resource.

/*+ delete */
DELETE FROM azure_isv.mongo_db.private_endpoint_connections
WHERE mongoClusterName = '{{ mongoClusterName }}'
AND privateEndpointConnectionName = '{{ privateEndpointConnectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';