CertificateClient.RestoreCertificateBackupAsync(Byte[], CancellationToken) Method

Definition

Restores a KeyVaultCertificate, including all versions, from a backup created from the BackupCertificate(String, CancellationToken) or BackupCertificateAsync(String, CancellationToken). The backup must be restored to a vault in the same region as its original vault. This operation requires the certificate/restore permission.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy>> RestoreCertificateBackupAsync (byte[] backup, System.Threading.CancellationToken cancellationToken = default);
abstract member RestoreCertificateBackupAsync : byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy>>
override this.RestoreCertificateBackupAsync : byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy>>
Public Overridable Function RestoreCertificateBackupAsync (backup As Byte(), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KeyVaultCertificateWithPolicy))

Parameters

backup
System.Byte[]

The backup of the KeyVaultCertificate to restore.

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

Returns

System.Threading.Tasks.Task<Response<KeyVaultCertificateWithPolicy>>

The restored certificate and policy.

Exceptions

System.ArgumentNullException

backup is null.

Applies to