Partilhar via


SqlDatabaseResource.GetLongTermRetentionPolicyAsync Método

Definição

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

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}
  • Operação IdLongTermRetentionPolicies_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>> GetLongTermRetentionPolicyAsync (Azure.ResourceManager.Sql.Models.LongTermRetentionPolicyName policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLongTermRetentionPolicyAsync : Azure.ResourceManager.Sql.Models.LongTermRetentionPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>>
override this.GetLongTermRetentionPolicyAsync : Azure.ResourceManager.Sql.Models.LongTermRetentionPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>>
Public Overridable Function GetLongTermRetentionPolicyAsync (policyName As LongTermRetentionPolicyName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LongTermRetentionPolicyResource))

Parâmetros

policyName
LongTermRetentionPolicyName

O nome da política. Deve ser sempre Padrão.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a