Skip to main content

private_endpoint_connections

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

Overview

Nameprivate_endpoint_connections
TypeResource
Idazure.digital_twins.private_endpoint_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource identifier.
namestringThe resource name.
groupIdsarrayThe list of group ids for the private endpoint connection.
privateEndpointobjectThe private endpoint.
privateLinkServiceConnectionStateobjectThe connection state.
provisioningStatestringThe provisioning state. Known values are: "Pending", "Approved", "Rejected", and "Disconnected".
systemDataobjectMetadata pertaining to creation and last modification of the private endpoint connection.
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, private_endpoint_connection_name, subscription_idGet private endpoint connection properties for the given private endpoint.
listselectresource_group_name, resource_name, subscription_idList private endpoint connection properties.
create_or_updateinsertresource_group_name, resource_name, private_endpoint_connection_name, subscription_id, propertiesUpdate the status of a private endpoint connection with the given name.
create_or_updatereplaceresource_group_name, resource_name, private_endpoint_connection_name, subscription_id, propertiesUpdate the status of a private endpoint connection with the given name.
deletedeleteresource_group_name, resource_name, private_endpoint_connection_name, subscription_idDelete private endpoint connection with the specified 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_namestringThe name of the private endpoint connection. Required.
resource_group_namestringThe name of the resource group that contains the DigitalTwinsInstance. Required.
resource_namestringThe name of the DigitalTwinsInstance. Required.
subscription_idstring

SELECT examples

Get private endpoint connection properties for the given private endpoint.

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

INSERT examples

Update the status of a private endpoint connection with the given name.

INSERT INTO azure.digital_twins.private_endpoint_connections (
properties,
resource_group_name,
resource_name,
private_endpoint_connection_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ private_endpoint_connection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Update the status of a private endpoint connection with the given name.

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

DELETE examples

Delete private endpoint connection with the specified name.

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