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

ManagedDatabaseResource.GetManagedBackupShortTermRetentionPolicyAsync 方法

定义

获取托管数据库的短期保留策略。

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

参数

policyName
ManagedShortTermRetentionPolicyName

策略名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于