KeyVaultClientExtensions.RecoverDeletedSecretAsync Method

Definition

Overloads

RecoverDeletedSecretAsync(IKeyVaultClient, String, CancellationToken)

Recovers the deleted secret.

RecoverDeletedSecretAsync(IKeyVaultClient, String, String, CancellationToken)

Recovers the deleted secret back to its current version under /secrets. Authorization: requires the secrets/recover permission.

RecoverDeletedSecretAsync(IKeyVaultClient, String, CancellationToken)

Recovers the deleted secret.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle> RecoverDeletedSecretAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string recoveryId, System.Threading.CancellationToken cancellationToken = null);
static member RecoverDeletedSecretAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle>

Parameters

operations
IKeyVaultClient
recoveryId
String

The recoveryId of the deleted secret, returned from deletion.

cancellationToken
CancellationToken

Optional cancellation token

Returns

Task<SecretBundle>

A response message containing the recovered secret

Applies to

Product Introduced

RecoverDeletedSecretAsync(IKeyVaultClient, String, String, CancellationToken)

Recovers the deleted secret back to its current version under /secrets. Authorization: requires the secrets/recover permission.

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 = null);
static member RecoverDeletedSecretAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle>

Parameters

operations
IKeyVaultClient

The operations group for this extension method.

vaultBaseUrl
String

The vault name, for example https://myvault.vault.azure.net.

secretName
String

The name of the deleted secret

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<SecretBundle>

Applies to

Product Introduced