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

KeyVaultClientExtensions.RecoverDeletedSecretAsync 方法

定义

重载

RecoverDeletedSecretAsync(IKeyVaultClient, String, CancellationToken)

恢复已删除的机密。

RecoverDeletedSecretAsync(IKeyVaultClient, String, String, CancellationToken)

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

RecoverDeletedSecretAsync(IKeyVaultClient, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

恢复已删除的机密。

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

参数

operations
IKeyVaultClient
recoveryId
String

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

cancellationToken
CancellationToken

可选取消令牌

返回

包含恢复的机密的响应消息

适用于

RecoverDeletedSecretAsync(IKeyVaultClient, String, String, CancellationToken)

Source:
KeyVaultClientExtensions.cs

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

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

参数

operations
IKeyVaultClient

此扩展方法的操作组。

vaultBaseUrl
String

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

secretName
String

已删除的机密的名称。

cancellationToken
CancellationToken

取消标记。

返回

注解

恢复指定保管库中已删除的机密。 此操作只能在已启用软删除的保管库上执行。 此操作需要机密/恢复权限。

适用于