CertificateClient.RestoreCertificateBackupAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET