Share via


CertificateClient.RestoreCertificateBackupAsync 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
Byte[]

The backup of the KeyVaultCertificate to restore.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

The restored certificate and policy.

Exceptions

backup is null.

Applies to