Private Endpoint Connections - Create Or Update
Een privé-eindpuntverbinding met een bepaalde naam goedkeuren of afwijzen.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}?api-version=2024-11-15
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
account
|
path | True |
string |
Naam van cosmos DB-databaseaccount. Regex-patroon: |
private
|
path | True |
string |
De naam van de privé-eindpuntverbinding. |
resource
|
path | True |
string |
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig. |
subscription
|
path | True |
string |
De id van het doelabonnement. |
api-version
|
query | True |
string |
De API-versie die voor deze bewerking moet worden gebruikt. |
Aanvraagbody
Name | Type | Description |
---|---|---|
properties.groupId |
string |
Groeps-id van het privé-eindpunt. |
properties.privateEndpoint |
Privé-eindpunt waartoe de verbinding behoort. |
|
properties.privateLinkServiceConnectionState |
Verbindingsstatus van de privé-eindpuntverbinding. |
|
properties.provisioningState |
string |
Inrichtingsstatus van het privé-eindpunt. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De verbinding met een privé-eindpunt is goedgekeurd of geweigerd. |
|
202 Accepted |
Geaccepteerd. De verbindingsupdate van het privé-eindpunt wordt asynchroon voltooid. |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Approve or reject a private endpoint connection with a given name.
Voorbeeldaanvraag
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName?api-version=2024-11-15
{
"properties": {
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Approved by johndoe@contoso.com"
}
}
}
Voorbeeldrespons
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName",
"name": "privateEndpointConnectionName",
"type": "Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-approved",
"actionsRequired": "None"
},
"groupId": "Sql",
"provisioningState": "Succeeded"
}
}
Definities
Name | Description |
---|---|
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
Private |
Een privé-eindpuntverbinding |
Private |
Privé-eindpunt waartoe de verbinding behoort. |
Private |
Verbindingsstatus van de privé-eindpuntverbinding. |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
PrivateEndpointConnection
Een privé-eindpuntverbinding
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
De naam van de resource |
properties.groupId |
string |
Groeps-id van het privé-eindpunt. |
properties.privateEndpoint |
Privé-eindpunt waartoe de verbinding behoort. |
|
properties.privateLinkServiceConnectionState |
Verbindingsstatus van de privé-eindpuntverbinding. |
|
properties.provisioningState |
string |
Inrichtingsstatus van het privé-eindpunt. |
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
PrivateEndpointProperty
Privé-eindpunt waartoe de verbinding behoort.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id van het privé-eindpunt. |
PrivateLinkServiceConnectionStateProperty
Verbindingsstatus van de privé-eindpuntverbinding.
Name | Type | Description |
---|---|---|
actionsRequired |
string |
Elke actie die nodig is buiten de basiswerkstroom (goedkeuren/weigeren/verbreken) |
description |
string |
De beschrijving van de private link-serviceverbinding. |
status |
string |
De verbindingsstatus van de Private Link-service. |