共用方式為


CertificateOperations.CancelDeleteCertificate Method

Definition

Cancels a failed deletion of the specified certificate. This can be done only when the certificate is in the DeleteFailed state, and restores the certificate to the Active state.

public void CancelDeleteCertificate (string thumbprintAlgorithm, string thumbprint, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.CancelDeleteCertificate : string * string * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub CancelDeleteCertificate (thumbprintAlgorithm As String, thumbprint As String, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)

Parameters

thumbprintAlgorithm
String

The algorithm used to derive the thumbprint parameter. This must be sha1.

thumbprint
String

The thumbprint of the certificate that failed to delete.

additionalBehaviors
IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors.

Remarks

If you still wish to delete the certificate (instead of returning it to Active), you do not need to cancel the failed deletion. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate (see DeleteCertificateAsync(String, String, IEnumerable<BatchClientBehavior>, CancellationToken).

This is a blocking operation. For a non-blocking equivalent, see CancelDeleteCertificateAsync(String, String, IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to