Private Link Resources - List By Database Account
Gets the private link resources that need to be created for a Cosmos DB account.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources?api-version=2025-04-15
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
account
|
path | True |
string minLength: 3maxLength: 50 pattern: ^[a-z0-9]+(-[a-z0-9]+)* |
Cosmos DB database account name. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successfully retrieved private link resources. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | Impersonate your user account |
Examples
Gets private endpoint connection.
Sample request
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/privateLinkResources?api-version=2025-04-15
Sample response
{
"value": [
{
"id": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateLinkResources/sql",
"name": "sql",
"type": "Microsoft.DocumentDB/databaseAccounts/privateLinkResources",
"properties": {
"groupId": "sql",
"requiredMembers": [
"ddb1",
"ddb1-westus"
],
"requiredZoneNames": [
"privatelink.documents.azure.net"
]
}
}
]
}
Definitions
Name | Description |
---|---|
Private |
A private link resource |
Private |
A list of private link resources |
PrivateLinkResource
A private link resource
Name | Type | Description |
---|---|---|
id |
string |
The unique resource identifier of the database account. |
name |
string |
The name of the database account. |
properties.groupId |
string |
The private link resource group id. |
properties.requiredMembers |
string[] |
The private link resource required member names. |
properties.requiredZoneNames |
string[] |
The private link resource required zone names. |
type |
string |
The type of Azure resource. |
PrivateLinkResourceListResult
A list of private link resources
Name | Type | Description |
---|---|---|
value |
Array of private link resources |