Delen via


RestorableDatabaseAccountsOperationsExtensions.GetByLocationAsync Method

Definition

Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.CosmosDB.Models.RestorableDatabaseAccountGetResult> GetByLocationAsync (this Microsoft.Azure.Management.CosmosDB.IRestorableDatabaseAccountsOperations operations, string location, string instanceId, System.Threading.CancellationToken cancellationToken = default);
static member GetByLocationAsync : Microsoft.Azure.Management.CosmosDB.IRestorableDatabaseAccountsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.CosmosDB.Models.RestorableDatabaseAccountGetResult>
<Extension()>
Public Function GetByLocationAsync (operations As IRestorableDatabaseAccountsOperations, location As String, instanceId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RestorableDatabaseAccountGetResult)

Parameters

operations
IRestorableDatabaseAccountsOperations

The operations group for this extension method.

location
String

Cosmos DB region, with spaces between words and each word capitalized.

instanceId
String

The instanceId GUID of a restorable database account.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to