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

RestorableDroppedManagedDatabaseResource.GetManagedRestorableDroppedDbBackupShortTermRetentionPolicyAsync 方法

定义

获取已删除数据库的短期保留策略。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}
  • 操作IdManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource>> GetManagedRestorableDroppedDbBackupShortTermRetentionPolicyAsync (Azure.ResourceManager.Sql.Models.ManagedShortTermRetentionPolicyName policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetManagedRestorableDroppedDbBackupShortTermRetentionPolicyAsync : Azure.ResourceManager.Sql.Models.ManagedShortTermRetentionPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource>>
override this.GetManagedRestorableDroppedDbBackupShortTermRetentionPolicyAsync : Azure.ResourceManager.Sql.Models.ManagedShortTermRetentionPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource>>
Public Overridable Function GetManagedRestorableDroppedDbBackupShortTermRetentionPolicyAsync (policyName As ManagedShortTermRetentionPolicyName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource))

参数

policyName
ManagedShortTermRetentionPolicyName

策略名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于