Partilhar via


RestorableCosmosDBAccountCollection.GetAsync(Guid, CancellationToken) Método

Definição

Recupera as propriedades de uma conta de banco de dados restaurável do Azure Cosmos DB existente. Essa chamada requer a permissão 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*'.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}
  • Operação IdRestorableDatabaseAccounts_GetByLocation
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountResource>> GetAsync (Guid instanceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountResource>>
override this.GetAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.RestorableCosmosDBAccountResource>>
Public Overridable Function GetAsync (instanceId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RestorableCosmosDBAccountResource))

Parâmetros

instanceId
Guid

O GUID instanceId de uma conta de banco de dados restaurável.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a