Skip to main content

shared_private_link_resources

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

Overview

Nameshared_private_link_resources
TypeResource
Idazure.search.shared_private_link_resources

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 from the provider of resource the shared private link resource is for.
privateLinkResourceIdstringThe resource ID of the resource the shared private link resource is for.
provisioningStatestringThe provisioning state of the shared private link resource. Valid values are Updating, Deleting, Failed, Succeeded or Incomplete. Known values are: "Updating", "Deleting", "Failed", "Succeeded", and "Incomplete". (Updating, Deleting, Failed, Succeeded, Incomplete)
requestMessagestringThe message for requesting approval of the shared private link resource.
resourceRegionstringOptional. Can be used to specify the Azure Resource Manager location of the resource for which a shared private link is being created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service).
statusstringStatus of the shared private link resource. Valid values are Pending, Approved, Rejected or Disconnected. Known values are: "Pending", "Approved", "Rejected", and "Disconnected". (Pending, Approved, Rejected, Disconnected)
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, shared_private_link_resource_name, subscription_idGets the details of the shared private link resource managed by the search service in the given resource group.
list_by_serviceselectresource_group_name, search_service_name, subscription_idGets a list of all shared private link resources managed by the given service.
create_or_updateinsertresource_group_name, search_service_name, shared_private_link_resource_name, subscription_idInitiates the creation or update of a shared private link resource managed by the search service in the given resource group.
create_or_updatereplaceresource_group_name, search_service_name, shared_private_link_resource_name, subscription_idInitiates the creation or update of a shared private link resource managed by the search service in the given resource group.
deletedeleteresource_group_name, search_service_name, shared_private_link_resource_name, subscription_idInitiates the deletion of the shared private link resource from the search service. Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private link is not found, or 404 (Not Found) if the service is not found. 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
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 shared private link resource managed by the search service in the given resource group.

SELECT
id,
name,
groupId,
privateLinkResourceId,
provisioningState,
requestMessage,
resourceRegion,
status,
systemData,
type
FROM azure.search.shared_private_link_resources
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND search_service_name = '{{ search_service_name }}' -- required
AND shared_private_link_resource_name = '{{ shared_private_link_resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Initiates the creation or update of a shared private link resource managed by the search service in the given resource group.

INSERT INTO azure.search.shared_private_link_resources (
properties,
resource_group_name,
search_service_name,
shared_private_link_resource_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ search_service_name }}',
'{{ shared_private_link_resource_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Initiates the creation or update of a shared private link resource managed by the search service in the given resource group.

REPLACE azure.search.shared_private_link_resources
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND search_service_name = '{{ search_service_name }}' --required
AND shared_private_link_resource_name = '{{ shared_private_link_resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Initiates the deletion of the shared private link resource from the search service. Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private link is not found, or 404 (Not Found) if the service is not found. 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.shared_private_link_resources
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND search_service_name = '{{ search_service_name }}' --required
AND shared_private_link_resource_name = '{{ shared_private_link_resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;