SqlDatabaseResource.GetLongTermRetentionPolicy 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 Azure.Response<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource> GetLongTermRetentionPolicy (Azure.ResourceManager.Sql.Models.LongTermRetentionPolicyName policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLongTermRetentionPolicy : Azure.ResourceManager.Sql.Models.LongTermRetentionPolicyName * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>
override this.GetLongTermRetentionPolicy : Azure.ResourceManager.Sql.Models.LongTermRetentionPolicyName * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.LongTermRetentionPolicyResource>
Public Overridable Function GetLongTermRetentionPolicy (policyName As LongTermRetentionPolicyName, Optional cancellationToken As CancellationToken = Nothing) As 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