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)

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 = null);
static member RecoverDeletedCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle>

Parameters

operations
IKeyVaultClient
recoveryId
String

The recoveryId of the deleted certificate, returned from deletion.

cancellationToken
CancellationToken

Optional cancellation token

Returns

Task<CertificateBundle>

A response message containing the recovered certificate

Applies to

Product Introduced

RecoverDeletedCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

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 = null);
static member RecoverDeletedCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.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

Task<CertificateBundle>

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).

Applies to

Product Introduced