Skip to main content

private_endpoints

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

Overview

Nameprivate_endpoints
TypeResource
Idazure.network.private_endpoints

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
application_security_groupstextfield from the properties object
custom_dns_configstextfield from the properties object
custom_network_interface_nametextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
extended_locationtextfield from the properties object
ip_configurationstextfield from the properties object
locationtextResource location.
manual_private_link_service_connectionstextfield from the properties object
network_interfacestextfield from the properties object
privateEndpointNametextfield from the properties object
private_link_service_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subnettextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTprivateEndpointName, resourceGroupName, subscriptionIdGets the specified private endpoint by resource group.
listSELECTresourceGroupName, subscriptionIdGets all private endpoints in a resource group.
list_by_subscriptionSELECTsubscriptionIdGets all private endpoints in a subscription.
create_or_updateINSERTprivateEndpointName, resourceGroupName, subscriptionIdCreates or updates an private endpoint in the specified resource group.
deleteDELETEprivateEndpointName, resourceGroupName, subscriptionIdDeletes the specified private endpoint.

SELECT examples

Gets all private endpoints in a subscription.

SELECT
id,
name,
application_security_groups,
custom_dns_configs,
custom_network_interface_name,
etag,
extended_location,
ip_configurations,
location,
manual_private_link_service_connections,
network_interfaces,
privateEndpointName,
private_link_service_connections,
provisioning_state,
resourceGroupName,
subnet,
subscriptionId,
tags,
type
FROM azure.network.vw_private_endpoints
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new private_endpoints resource.

/*+ create */
INSERT INTO azure.network.private_endpoints (
privateEndpointName,
resourceGroupName,
subscriptionId,
extendedLocation,
properties,
id,
location,
tags
)
SELECT
'{{ privateEndpointName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified private_endpoints resource.

/*+ delete */
DELETE FROM azure.network.private_endpoints
WHERE privateEndpointName = '{{ privateEndpointName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';