Compartilhar via


LongTermRetentionPolicyCollection.GetAsync 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}
  • IdLongTermRetentionPolicies_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>> GetAsync (Azure.ResourceManager.Sql.Models.LongTermRetentionPolicyName policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Azure.ResourceManager.Sql.Models.LongTermRetentionPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>>
override this.GetAsync : Azure.ResourceManager.Sql.Models.LongTermRetentionPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>>
Public Overridable Function GetAsync (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