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

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting private endpoint resource.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
extendedLocationobjectThe extended location of the load balancer.
propertiesobjectProperties of the private endpoint.
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
getselectresourceGroupName, privateEndpointName, subscriptionId$expandGets 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_updateinsertresourceGroupName, privateEndpointName, subscriptionIdCreates or updates an private endpoint in the specified resource group.
deletedeleteresourceGroupName, privateEndpointName, subscriptionIdDeletes the specified private endpoint.

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
privateEndpointNamestringThe name of the private endpoint.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringExpands referenced resources.

SELECT examples

Gets the specified private endpoint by resource group.

SELECT
id,
name,
etag,
extendedLocation,
properties,
systemData,
type
FROM azure.network.private_endpoints
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND privateEndpointName = '{{ privateEndpointName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates an private endpoint in the specified resource group.

INSERT INTO azure.network.private_endpoints (
data__extendedLocation,
data__properties,
resourceGroupName,
privateEndpointName,
subscriptionId
)
SELECT
'{{ extendedLocation }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ privateEndpointName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
extendedLocation,
properties,
systemData,
type
;

DELETE examples

Deletes the specified private endpoint.

DELETE FROM azure.network.private_endpoints
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND privateEndpointName = '{{ privateEndpointName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;