Skip to main content

private_endpoint_connections

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

Overview

Nameprivate_endpoint_connections
TypeResource
Idazure.cosmosdb_for_postgresql.private_endpoint_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
groupIdsarrayThe group ids for the private endpoint resource.
privateEndpointobjectThe private endpoint resource.
privateLinkServiceConnectionStateobjectA collection of information about the state of the connection between service consumer and provider.
provisioningStatestringThe provisioning state of the private endpoint connection resource. Known values are: "Succeeded", "Creating", "Deleting", and "Failed".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, private_endpoint_connection_name, subscription_idGets private endpoint connection.
list_by_clusterselectresource_group_name, cluster_name, subscription_idGets list of private endpoint connections on a cluster.
create_or_updateinsertresource_group_name, cluster_name, private_endpoint_connection_name, subscription_idApproves or Rejects a private endpoint connection with a given name.
create_or_updatereplaceresource_group_name, cluster_name, private_endpoint_connection_name, subscription_idApproves or Rejects a private endpoint connection with a given name.
deletedeleteresource_group_name, cluster_name, private_endpoint_connection_name, subscription_idDeletes a private endpoint connection with a given name.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cluster_namestringThe name of the cluster. Required.
private_endpoint_connection_namestringThe name of the private endpoint connection associated with the cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets private endpoint connection.

SELECT
id,
name,
groupIds,
privateEndpoint,
privateLinkServiceConnectionState,
provisioningState,
systemData,
type
FROM azure.cosmosdb_for_postgresql.private_endpoint_connections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Approves or Rejects a private endpoint connection with a given name.

INSERT INTO azure.cosmosdb_for_postgresql.private_endpoint_connections (
properties,
resource_group_name,
cluster_name,
private_endpoint_connection_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ private_endpoint_connection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Approves or Rejects a private endpoint connection with a given name.

REPLACE azure.cosmosdb_for_postgresql.private_endpoint_connections
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes a private endpoint connection with a given name.

DELETE FROM azure.cosmosdb_for_postgresql.private_endpoint_connections
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;