Partilhar via


SubscriptionLongTermRetentionBackupCollection.GetIfExists Método

Definição

Tenta obter detalhes desse recurso do serviço.

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

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 era esperado que não estivesse vazio.

backupName é nulo.

Aplica-se a