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

SqlExtensions.GetSubscriptionLongTermRetentionBackupAsync 方法

定义

获取长期保留备份。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
  • 操作IdLongTermRetentionBackups_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SubscriptionLongTermRetentionBackupResource>> GetSubscriptionLongTermRetentionBackupAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, System.Threading.CancellationToken cancellationToken = default);
static member GetSubscriptionLongTermRetentionBackupAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SubscriptionLongTermRetentionBackupResource>>
<Extension()>
Public Function GetSubscriptionLongTermRetentionBackupAsync (subscriptionResource As SubscriptionResource, locationName As AzureLocation, longTermRetentionServerName As String, longTermRetentionDatabaseName As String, backupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SubscriptionLongTermRetentionBackupResource))

参数

subscriptionResource
SubscriptionResource

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

locationName
AzureLocation

数据库的位置。

longTermRetentionServerName
String

服务器的名称。

longTermRetentionDatabaseName
String

数据库的名称。

backupName
String

备份名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

longTermRetentionServerNamelongTermRetentionDatabaseNamebackupName 是空字符串,预期为非空。

longTermRetentionServerNamelongTermRetentionDatabaseNamebackupName 为 null。

适用于