다음을 통해 공유


CertificateClient.StartRecoverDeletedCertificateAsync Method

Definition

Recovers the DeletedCertificate to its pre-deleted state. This operation is only applicable in vaults enabled for soft delete, and requires the certificates/recover permission.

public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.RecoverDeletedCertificateOperation> StartRecoverDeletedCertificateAsync (string certificateName, System.Threading.CancellationToken cancellationToken = default);
abstract member StartRecoverDeletedCertificateAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.RecoverDeletedCertificateOperation>
override this.StartRecoverDeletedCertificateAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.KeyVault.Certificates.RecoverDeletedCertificateOperation>
Public Overridable Function StartRecoverDeletedCertificateAsync (certificateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RecoverDeletedCertificateOperation)

Parameters

certificateName
String

The name of the DeletedCertificate.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A RecoverDeletedCertificateOperation to wait on this long-running operation.

Exceptions

certificateName is empty.

certificateName is null.

Applies to