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

SqlExtensions.GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync 方法

定义

重载

GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync(ResourceGroupResource, AzureLocation, String, Nullable<Boolean>, Nullable<SqlDatabaseState>, CancellationToken)

列出给定托管实例的长期保留备份。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups
  • 操作IdLongTermRetentionManagedInstanceBackups_ListByResourceGroupInstance
GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync(SubscriptionResource, AzureLocation, String, Nullable<Boolean>, Nullable<SqlDatabaseState>, CancellationToken)

列出给定托管实例的长期保留备份。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups
  • 操作IdLongTermRetentionManagedInstanceBackups_ListByInstance

GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync(ResourceGroupResource, AzureLocation, String, Nullable<Boolean>, Nullable<SqlDatabaseState>, CancellationToken)

列出给定托管实例的长期保留备份。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups
  • 操作IdLongTermRetentionManagedInstanceBackups_ListByResourceGroupInstance
public static Azure.AsyncPageable<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionBackupData> GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default, Azure.ResourceManager.Sql.Models.SqlDatabaseState? databaseState = default, System.Threading.CancellationToken cancellationToken = default);
static member GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * string * Nullable<bool> * Nullable<Azure.ResourceManager.Sql.Models.SqlDatabaseState> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionBackupData>
<Extension()>
Public Function GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync (resourceGroupResource As ResourceGroupResource, locationName As AzureLocation, managedInstanceName As String, Optional onlyLatestPerDatabase As Nullable(Of Boolean) = Nothing, Optional databaseState As Nullable(Of SqlDatabaseState) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ManagedInstanceLongTermRetentionBackupData)

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

locationName
AzureLocation

数据库的位置。

managedInstanceName
String

托管实例的名称。

onlyLatestPerDatabase
Nullable<Boolean>

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

databaseState
Nullable<SqlDatabaseState>

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

cancellationToken
CancellationToken

要使用的取消标记。

返回

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

例外

managedInstanceName 是一个空字符串,预期为非空。

managedInstanceName 为 null。

适用于

GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync(SubscriptionResource, AzureLocation, String, Nullable<Boolean>, Nullable<SqlDatabaseState>, CancellationToken)

列出给定托管实例的长期保留备份。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups
  • 操作IdLongTermRetentionManagedInstanceBackups_ListByInstance
public static Azure.AsyncPageable<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionBackupData> GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, string managedInstanceName, bool? onlyLatestPerDatabase = default, Azure.ResourceManager.Sql.Models.SqlDatabaseState? databaseState = default, System.Threading.CancellationToken cancellationToken = default);
static member GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * Nullable<bool> * Nullable<Azure.ResourceManager.Sql.Models.SqlDatabaseState> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionBackupData>
<Extension()>
Public Function GetLongTermRetentionManagedInstanceBackupsWithInstanceAsync (subscriptionResource As SubscriptionResource, locationName As AzureLocation, managedInstanceName As String, Optional onlyLatestPerDatabase As Nullable(Of Boolean) = Nothing, Optional databaseState As Nullable(Of SqlDatabaseState) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ManagedInstanceLongTermRetentionBackupData)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

locationName
AzureLocation

数据库的位置。

managedInstanceName
String

托管实例的名称。

onlyLatestPerDatabase
Nullable<Boolean>

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

databaseState
Nullable<SqlDatabaseState>

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

cancellationToken
CancellationToken

要使用的取消标记。

返回

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

例外

managedInstanceName 是一个空字符串,预期为非空。

managedInstanceName 为 null。

适用于