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

KeyVaultClientExtensions.RecoverDeletedKeyAsync 方法

定义

重载

RecoverDeletedKeyAsync(IKeyVaultClient, String, CancellationToken)

恢复已删除的密钥。

RecoverDeletedKeyAsync(IKeyVaultClient, String, String, CancellationToken)

将已删除的密钥恢复到其最新版本。

RecoverDeletedKeyAsync(IKeyVaultClient, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

恢复已删除的密钥。

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

参数

operations
IKeyVaultClient
recoveryId
String

删除后返回的已删除密钥的 recoveryId。

cancellationToken
CancellationToken

可选取消令牌

返回

包含已恢复密钥的响应消息

适用于

RecoverDeletedKeyAsync(IKeyVaultClient, String, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

将已删除的密钥恢复到其最新版本。

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

参数

operations
IKeyVaultClient

此扩展方法的操作组。

vaultBaseUrl
String

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

keyName
String

已删除密钥的名称。

cancellationToken
CancellationToken

取消标记。

返回

注解

恢复已删除的密钥操作适用于已启用软删除的保管库中已删除的密钥。 它将已删除的密钥恢复到 /keys 下的最新版本。 尝试恢复未删除的密钥将返回错误。 将此视为对已启用软删除的保管库执行删除操作的反函数。 此操作需要密钥/恢复权限。

适用于