Freigeben über


ManagedInstancePrivateEndpointConnectionCollection.GetIfExists Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}
  • Vorgang IdManagedInstancePrivateEndpointConnections_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedInstancePrivateEndpointConnectionResource> GetIfExists (string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedInstancePrivateEndpointConnectionResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedInstancePrivateEndpointConnectionResource>
Public Overridable Function GetIfExists (privateEndpointConnectionName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ManagedInstancePrivateEndpointConnectionResource)

Parameter

privateEndpointConnectionName
String

Der Name der privaten Endpunktverbindung.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

privateEndpointConnectionName ist NULL.

Gilt für: