Compartilhar via


ResourceGroupLongTermRetentionBackupCollection.GetIfExists Método

Definição

Tenta obter detalhes para esse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}
  • Operação IdLongTermRetentionBackups_GetByResourceGroup
public virtual Azure.NullableResponse<Azure.ResourceManager.Sql.ResourceGroupLongTermRetentionBackupResource> GetIfExists (string backupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.ResourceGroupLongTermRetentionBackupResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.ResourceGroupLongTermRetentionBackupResource>
Public Overridable Function GetIfExists (backupName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ResourceGroupLongTermRetentionBackupResource)

Parâmetros

backupName
String

O nome do backup.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

backupName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

backupName é nulo.

Aplica-se a