Partilhar via


ManagedRestorableDroppedDbBackupShortTermRetentionPolicyCollection.GetAsync Método

Definição

Obtém a política de retenção de curto prazo de um banco de dados descartado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}
  • Operação IdManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource>> GetAsync (Azure.ResourceManager.Sql.Models.ManagedShortTermRetentionPolicyName policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Azure.ResourceManager.Sql.Models.ManagedShortTermRetentionPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource>>
override this.GetAsync : Azure.ResourceManager.Sql.Models.ManagedShortTermRetentionPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource>>
Public Overridable Function GetAsync (policyName As ManagedShortTermRetentionPolicyName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagedRestorableDroppedDbBackupShortTermRetentionPolicyResource))

Parâmetros

policyName
ManagedShortTermRetentionPolicyName

O nome da política.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a