Condividi tramite


DataProtectionDeletedBackupVaultCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/deletedVaults/{deletedVaultName}.
  • Operation Id. : DeletedBackupVaults_Get.
  • Default Api Version. : 2025-09-01.
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DataProtectionBackup.DataProtectionDeletedBackupVaultResource>> GetIfExistsAsync(string deletedVaultName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DataProtectionBackup.DataProtectionDeletedBackupVaultResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.DataProtectionBackup.DataProtectionDeletedBackupVaultResource>>
Public Overridable Function GetIfExistsAsync (deletedVaultName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of DataProtectionDeletedBackupVaultResource))

Parameters

deletedVaultName
String

The name of the DeletedBackupVaultResource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

deletedVaultName is null.

deletedVaultName is an empty string, and was expected to be non-empty.

Applies to