Freigeben über


RestorableCosmosDBAccountCollection.GetIfExists Methode

Definition

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

  • Anforderungspfad/abonnements/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}
  • Vorgangs-IdRestorableDatabaseAccounts_GetByLocation
public virtual Azure.NullableResponse<Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountResource> GetIfExists (Guid instanceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : Guid * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountResource>
override this.GetIfExists : Guid * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountResource>
Public Overridable Function GetIfExists (instanceId As Guid, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of RestorableCosmosDBAccountResource)

Parameter

instanceId
Guid

Hierbei handelt es sich um die instanceId-GUID eines wiederherstellbaren Datenbankkontos.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Gilt für: