Share via


CertificateClient.RestoreCertificateBackup(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 Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy> RestoreCertificateBackup (byte[] backup, System.Threading.CancellationToken cancellationToken = default);
abstract member RestoreCertificateBackup : byte[] * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy>
override this.RestoreCertificateBackup : byte[] * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Certificates.KeyVaultCertificateWithPolicy>
Public Overridable Function RestoreCertificateBackup (backup As Byte(), Optional cancellationToken As CancellationToken = Nothing) As 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