Compartilhar via


SqlExtensions.GetResourceGroupLongTermRetentionBackupAsync Método

Definição

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

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

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual 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