Delen via


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-05-15

URI-parameters

Name In Vereist Type Description
accountName
path True

string

Naam van cosmos DB-databaseaccount.

Regex-patroon: ^[a-z0-9]+(-[a-z0-9]+)*

privateEndpointConnectionName
path True

string

De naam van de privé-eindpuntverbinding.

resourceGroupName
path True

string

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

subscriptionId
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

PrivateEndpointProperty

Privé-eindpunt waartoe de verbinding behoort.

properties.privateLinkServiceConnectionState

PrivateLinkServiceConnectionStateProperty

Verbindingsstatus van de privé-eindpuntverbinding.

properties.provisioningState

string

Inrichtingsstatus van het privé-eindpunt.

Antwoorden

Name Type Description
200 OK

PrivateEndpointConnection

De verbinding met het privé-eindpunt is goedgekeurd of geweigerd.

202 Accepted

Aanvaard. De update van de privé-eindpuntverbinding wordt asynchroon voltooid.

Other Status Codes

ErrorResponse

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-05-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
ErrorResponse

Foutreactie.

PrivateEndpointConnection

Een privé-eindpuntverbinding

PrivateEndpointProperty

Privé-eindpunt waartoe de verbinding behoort.

PrivateLinkServiceConnectionStateProperty

Verbindingsstatus van de privé-eindpuntverbinding.

ErrorResponse

Foutreactie.

Name Type Description
code

string

Foutcode.

message

string

Foutbericht waarin wordt aangegeven waarom de bewerking is mislukt.

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

PrivateEndpointProperty

Privé-eindpunt waartoe de verbinding behoort.

properties.privateLinkServiceConnectionState

PrivateLinkServiceConnectionStateProperty

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 is vereist buiten de basiswerkstroom (goedkeuren/afwijzen/verbreken)

description

string

De beschrijving van de private link-serviceverbinding.

status

string

De verbindingsstatus van de Private Link-service.