你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

KeyVaultClientExtensions.RecoverDeletedCertificateAsync 方法

定义

重载

RecoverDeletedCertificateAsync(IKeyVaultClient, String, CancellationToken)

恢复已删除的证书。

RecoverDeletedCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

将已删除的证书恢复到 /certificates 下的当前版本。

RecoverDeletedCertificateAsync(IKeyVaultClient, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

恢复已删除的证书。

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)

参数

operations
IKeyVaultClient
recoveryId
String

删除后返回的已删除证书的 recoveryId。

cancellationToken
CancellationToken

可选取消令牌

返回

包含恢复的证书的响应消息

适用于

RecoverDeletedCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

将已删除的证书恢复到 /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)

参数

operations
IKeyVaultClient

此扩展方法的操作组。

vaultBaseUrl
String

保管库名称,例如 https://myvault.vault.azure.net

certificateName
String

已删除证书的名称

cancellationToken
CancellationToken

取消标记。

返回

注解

RecoverDeletedCertificate 操作执行删除操作的反转。 此操作适用于为软删除启用的保管库,必须在保留间隔内发出, (已删除证书的属性) 中可用。 此操作需要证书/恢复权限。

适用于