Skip to main content

private_link_resources

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

Overview

Nameprivate_link_resources
TypeResource
Idazure.cosmos_db.private_link_resources

Fields

The following fields are returned by SELECT queries:

Successfully retrieved a specified private link resource.

NameDatatypeDescription
idstringThe unique resource identifier of the database account.
namestringThe name of the database account.
propertiesobjectResource properties.
typestringThe type of Azure resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, groupNameGets the private link resources that need to be created for a Cosmos DB account.
list_by_database_accountselectsubscriptionId, resourceGroupName, accountNameGets the private link resources that need to be created for a Cosmos DB account.

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
accountNamestringCosmos DB database account name.
groupNamestringThe name of the private link resource.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the private link resources that need to be created for a Cosmos DB account.

SELECT
id,
name,
properties,
type
FROM azure.cosmos_db.private_link_resources
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND groupName = '{{ groupName }}' -- required
;