Freigeben über


CosmosDBPrivateLinkResourceCollection.GetIfExists Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources/{groupName}
  • Vorgangs-IdPrivateLinkResources_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CosmosDBPrivateLinkResource> GetIfExists (string groupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CosmosDBPrivateLinkResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.CosmosDBPrivateLinkResource>
Public Overridable Function GetIfExists (groupName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of CosmosDBPrivateLinkResource)

Parameter

groupName
String

Der Name der Private Link-Ressource.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

groupName ist NULL.

Gilt für: