共用方式為


RestorableSqlResourcesOperationsExtensions.ListAsync Method

Definition

Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.

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

Parameters

operations
IRestorableSqlResourcesOperations

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.

restoreLocation
String

The location where the restorable resources are located.

restoreTimestampInUtc
String

The timestamp when the restorable resources existed.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to