Skip to main content

private_endpoint_connection

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

Overview

Nameprivate_endpoint_connection
TypeResource
Idazure.api_management.private_endpoint_connection

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}.
namestringThe name of the resource.
privateEndpointobjectThe private endpoint resource.
privateLinkServiceConnectionStateobjectA collection of information about the state of the connection between service consumer and provider. Required.
provisioningStatestringThe provisioning state of the private endpoint connection resource. Known values are: "Succeeded", "Creating", "Deleting", and "Failed". (Succeeded, Creating, Deleting, 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
get_by_nameselectresource_group_name, service_name, private_endpoint_connection_name, subscription_idGets the details of the Private Endpoint Connection specified by its identifier.
get_private_link_resourceselectresource_group_name, service_name, private_link_sub_resource_name, subscription_idGets the private link resources.
list_by_serviceselectresource_group_name, service_name, subscription_idLists all private endpoint connections of the API Management service instance.
create_or_updateinsertresource_group_name, service_name, private_endpoint_connection_name, subscription_idCreates a new Private Endpoint Connection or updates an existing one.
create_or_updatereplaceresource_group_name, service_name, private_endpoint_connection_name, subscription_idCreates a new Private Endpoint Connection or updates an existing one.
deletedeleteresource_group_name, service_name, private_endpoint_connection_name, subscription_idDeletes the specified Private Endpoint Connection.
list_private_link_resourcesexecresource_group_name, service_name, subscription_idGets the private link resources.

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 associated with the Azure resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring

SELECT examples

Gets the details of the Private Endpoint Connection specified by its identifier.

SELECT
id,
name,
privateEndpoint,
privateLinkServiceConnectionState,
provisioningState,
systemData,
type
FROM azure.api_management.private_endpoint_connection
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new Private Endpoint Connection or updates an existing one.

INSERT INTO azure.api_management.private_endpoint_connection (
id,
properties,
resource_group_name,
service_name,
private_endpoint_connection_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ private_endpoint_connection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates a new Private Endpoint Connection or updates an existing one.

REPLACE azure.api_management.private_endpoint_connection
SET
id = '{{ id }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_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 the specified Private Endpoint Connection.

DELETE FROM azure.api_management.private_endpoint_connection
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND private_endpoint_connection_name = '{{ private_endpoint_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets the private link resources.

EXEC azure.api_management.private_endpoint_connection.list_private_link_resources 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;