Share via


RestorableMongodbCollectionsOperationsExtensions.ListAsync Method

Definition

Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission

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

Parameters

operations
IRestorableMongodbCollectionsOperations

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.

restorableMongodbDatabaseRid
String

The resource ID of the MongoDB database.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to