Freigeben über


PostgreSqlPrivateEndpointConnectionCollection.CreateOrUpdate Methode

Definition

Genehmigen oder Ablehnen einer Verbindung mit einem privaten Endpunkt mit einem angegebenen Namen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}
  • Vorgang IdPrivateEndpointConnections_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PostgreSql.PostgreSqlPrivateEndpointConnectionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.PostgreSql.PostgreSqlPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.PostgreSql.PostgreSqlPrivateEndpointConnectionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PostgreSql.PostgreSqlPrivateEndpointConnectionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.PostgreSql.PostgreSqlPrivateEndpointConnectionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PostgreSql.PostgreSqlPrivateEndpointConnectionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, privateEndpointConnectionName As String, data As PostgreSqlPrivateEndpointConnectionData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of PostgreSqlPrivateEndpointConnectionResource)

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der lange ausgeführte Vorgang für den Dienst abgeschlossen ist; Started , wenn es nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführung finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

privateEndpointConnectionName
String

Die zu verwendende Zeichenfolge.

data
PostgreSqlPrivateEndpointConnectionData

Die zu verwendende PostgreSqlPrivateEndpointConnection.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

privateEndpointConnectionName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

privateEndpointConnectionName oder data ist NULL.

Gilt für: