Share via


KeyVaultClientExtensions.RecoverDeletedCertificateAsync Method

Definition

Overloads

RecoverDeletedCertificateAsync(IKeyVaultClient, String, CancellationToken)

Recovers the deleted certificate.

RecoverDeletedCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

Recovers the deleted certificate back to its current version under /certificates.

RecoverDeletedCertificateAsync(IKeyVaultClient, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

Recovers the deleted certificate.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle> RecoverDeletedCertificateAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string recoveryId, System.Threading.CancellationToken cancellationToken = default);
static member RecoverDeletedCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle>
<Extension()>
Public Function RecoverDeletedCertificateAsync (operations As IKeyVaultClient, recoveryId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CertificateBundle)

Parameters

operations
IKeyVaultClient
recoveryId
String

The recoveryId of the deleted certificate, returned from deletion.

cancellationToken
CancellationToken

Optional cancellation token

Returns

A response message containing the recovered certificate

Applies to

RecoverDeletedCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

Recovers the deleted certificate back to its current version under /certificates.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle> RecoverDeletedCertificateAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string certificateName, System.Threading.CancellationToken cancellationToken = default);
static member RecoverDeletedCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle>
<Extension()>
Public Function RecoverDeletedCertificateAsync (operations As IKeyVaultClient, vaultBaseUrl As String, certificateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CertificateBundle)

Parameters

operations
IKeyVaultClient

The operations group for this extension method.

vaultBaseUrl
String

The vault name, for example https://myvault.vault.azure.net.

certificateName
String

The name of the deleted certificate

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

The RecoverDeletedCertificate operation performs the reversal of the Delete operation. The operation is applicable in vaults enabled for soft-delete, and must be issued during the retention interval (available in the deleted certificate's attributes). This operation requires the certificates/recover permission.

Applies to