Compartilhar via


SqlExtensions.GetSubscriptionLongTermRetentionBackupAsync Método

Definição

Obtém um backup de retenção de longo prazo.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
  • Operação IdLongTermRetentionBackups_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SubscriptionLongTermRetentionBackupResource>> GetSubscriptionLongTermRetentionBackupAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName, System.Threading.CancellationToken cancellationToken = default);
static member GetSubscriptionLongTermRetentionBackupAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Sql.SubscriptionLongTermRetentionBackupResource>>
<Extension()>
Public Function GetSubscriptionLongTermRetentionBackupAsync (subscriptionResource As SubscriptionResource, locationName As AzureLocation, longTermRetentionServerName As String, longTermRetentionDatabaseName As String, backupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SubscriptionLongTermRetentionBackupResource))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância em que o método será executado.

locationName
AzureLocation

O local do banco de dados.

longTermRetentionServerName
String

O nome do servidor.

longTermRetentionDatabaseName
String

O nome do banco de dados.

backupName
String

O nome do backup.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

longTermRetentionServerName, longTermRetentionDatabaseName ou backupName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

longTermRetentionServerName, longTermRetentionDatabaseName ou backupName é nulo.

Aplica-se a