Skip to main content

private_endpoint_connections

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

Overview

Nameprivate_endpoint_connections
TypeResource
Idazure_extras.rdbms.private_endpoint_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
privateEndpointobjectPrivate endpoint which the connection belongs to.
privateLinkServiceConnectionStateobjectConnection state of the private endpoint connection.
provisioningStatestringState of the private endpoint connection.
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, server_name, private_endpoint_connection_name, subscription_idGets a private endpoint connection.
list_by_serverselectresource_group_name, server_name, subscription_idGets all private endpoint connections on a server.
create_or_updateinsertresource_group_name, server_name, private_endpoint_connection_name, subscription_idApprove or reject a private endpoint connection with a given name.
update_tagsupdateresource_group_name, server_name, private_endpoint_connection_name, subscription_idUpdates tags on private endpoint connection. Updates private endpoint connection with the specified tags.
create_or_updatereplaceresource_group_name, server_name, private_endpoint_connection_name, subscription_idApprove or reject a private endpoint connection with a given name.
deletedeleteresource_group_name, server_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
private_endpoint_connection_namestringRequired.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring

SELECT examples

Gets a private endpoint connection.

SELECT
id,
name,
privateEndpoint,
privateLinkServiceConnectionState,
provisioningState,
type
FROM azure_extras.rdbms.private_endpoint_connections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Approve or reject a private endpoint connection with a given name.

INSERT INTO azure_extras.rdbms.private_endpoint_connections (
properties,
resource_group_name,
server_name,
private_endpoint_connection_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ server_name }}',
'{{ private_endpoint_connection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;

UPDATE examples

Updates tags on private endpoint connection. Updates private endpoint connection with the specified tags.

UPDATE azure_extras.rdbms.private_endpoint_connections
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;

REPLACE examples

Approve or reject a private endpoint connection with a given name.

REPLACE azure_extras.rdbms.private_endpoint_connections
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;

DELETE examples

Deletes a private endpoint connection with a given name.

DELETE FROM azure_extras.rdbms.private_endpoint_connections
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;