你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SubscriptionLongTermRetentionBackupCollection.GetAllAsync 方法

定义

列出数据库的所有长期保留备份。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups
  • 操作IdLongTermRetentionBackups_ListByDatabase
public virtual Azure.AsyncPageable<Azure.ResourceManager.Sql.SubscriptionLongTermRetentionBackupResource> GetAllAsync (bool? onlyLatestPerDatabase = default, Azure.ResourceManager.Sql.Models.SqlDatabaseState? databaseState = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : Nullable<bool> * Nullable<Azure.ResourceManager.Sql.Models.SqlDatabaseState> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.SubscriptionLongTermRetentionBackupResource>
override this.GetAllAsync : Nullable<bool> * Nullable<Azure.ResourceManager.Sql.Models.SqlDatabaseState> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.SubscriptionLongTermRetentionBackupResource>
Public Overridable Function GetAllAsync (Optional onlyLatestPerDatabase As Nullable(Of Boolean) = Nothing, Optional databaseState As Nullable(Of SqlDatabaseState) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SubscriptionLongTermRetentionBackupResource)

参数

onlyLatestPerDatabase
Nullable<Boolean>

是否仅获取每个数据库的最新备份。

databaseState
Nullable<SqlDatabaseState>

是仅针对实时数据库、仅针对已删除的数据库还是针对所有数据库进行查询。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 SubscriptionLongTermRetentionBackupResource ,可能需要循环访问多个服务请求。

适用于