Skip to main content

private_endpoint_connections

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

Overview

Nameprivate_endpoint_connections
TypeResource
Idazure.postgresql_hsc.private_endpoint_connections

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
clusterNametextfield from the properties object
group_idstextfield 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
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, privateEndpointConnectionName, resourceGroupName, subscriptionIdGets private endpoint connection.
list_by_clusterSELECTclusterName, resourceGroupName, subscriptionIdGets list of private endpoint connections on a cluster.
create_or_updateINSERTclusterName, privateEndpointConnectionName, resourceGroupName, subscriptionIdApproves or Rejects a private endpoint connection with a given name.
deleteDELETEclusterName, privateEndpointConnectionName, resourceGroupName, subscriptionIdDeletes a private endpoint connection with a given name.

SELECT examples

Gets list of private endpoint connections on a cluster.

SELECT
id,
name,
clusterName,
group_ids,
privateEndpointConnectionName,
private_endpoint,
private_link_service_connection_state,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.postgresql_hsc.vw_private_endpoint_connections
WHERE clusterName = '{{ clusterName }}'
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.postgresql_hsc.private_endpoint_connections (
clusterName,
privateEndpointConnectionName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ clusterName }}',
'{{ privateEndpointConnectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified private_endpoint_connections resource.

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