Skip to main content

private_endpoint_connections

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

Overview

Nameprivate_endpoint_connections
TypeResource
Idazure.search.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}.
namestringThe name of the resource.
groupIdstringThe group ID of the Azure resource for which the private link service is for.
privateEndpointobjectThe private endpoint resource from Microsoft.Network provider.
privateLinkServiceConnectionStateobjectDescribes the current state of an existing Azure Private Link service connection to the private endpoint.
provisioningStatestringThe provisioning state of the private link service connection. Valid values are Updating, Deleting, Failed, Succeeded, Incomplete, or Canceled. Known values are: "Updating", "Deleting", "Failed", "Succeeded", "Incomplete", and "Canceled". (Updating, Deleting, Failed, Succeeded, Incomplete, Canceled)
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
getselectresource_group_name, search_service_name, private_endpoint_connection_name, subscription_idGets the details of the private endpoint connection to the search service in the given resource group.
list_by_serviceselectresource_group_name, search_service_name, subscription_idGets a list of all private endpoint connections in the given service.
updateupdateresource_group_name, search_service_name, private_endpoint_connection_name, subscription_idUpdates a private endpoint connection to the search service in the given resource group.
deletedeleteresource_group_name, search_service_name, private_endpoint_connection_name, subscription_idDisconnects the private endpoint connection and deletes it from the search service. Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection does not exist. NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in future versions and avoid new dependencies on the 404 response.

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 to the Azure AI Search service with the specified resource group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
search_service_namestringThe name of the Azure AI Search service associated with the specified resource group. Required.
subscription_idstring

SELECT examples

Gets the details of the private endpoint connection to the search service in the given resource group.

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

UPDATE examples

Updates a private endpoint connection to the search service in the given resource group.

UPDATE azure.search.private_endpoint_connections
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND search_service_name = '{{ search_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

Disconnects the private endpoint connection and deletes it from the search service. Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection does not exist. NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in future versions and avoid new dependencies on the 404 response.

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