Share via


RestorableSqlDatabasesOperationsExtensions.ListAsync Method

Definition

Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.CosmosDB.Models.RestorableSqlDatabaseGetResult>> ListAsync (this Microsoft.Azure.Management.CosmosDB.IRestorableSqlDatabasesOperations operations, string location, string instanceId, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.CosmosDB.IRestorableSqlDatabasesOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Management.CosmosDB.Models.RestorableSqlDatabaseGetResult>>
<Extension()>
Public Function ListAsync (operations As IRestorableSqlDatabasesOperations, location As String, instanceId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of RestorableSqlDatabaseGetResult))

Parameters

operations
IRestorableSqlDatabasesOperations

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