KeyVaultClientExtensions.RecoverDeletedKeyAsync Method

Definition

Overloads

RecoverDeletedKeyAsync(IKeyVaultClient, String, CancellationToken)

Recovers the deleted key.

RecoverDeletedKeyAsync(IKeyVaultClient, String, String, CancellationToken)

Recovers the deleted key back to its current version under /keys. Authorization: Requires the keys/recover permission.

RecoverDeletedKeyAsync(IKeyVaultClient, String, CancellationToken)

Recovers the deleted key.

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

Parameters

operations
IKeyVaultClient
recoveryId
String

The recoveryId of the deleted key, returned from deletion.

cancellationToken
CancellationToken

Optional cancellation token

Returns

Task<KeyBundle>

A response message containing the recovered key

Applies to

Product Introduced

RecoverDeletedKeyAsync(IKeyVaultClient, String, String, CancellationToken)

Recovers the deleted key back to its current version under /keys. Authorization: Requires the keys/recover permission.

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

Parameters

operations
IKeyVaultClient

The operations group for this extension method.

vaultBaseUrl
String

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

keyName
String

The name of the deleted key

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<KeyBundle>

Applies to

Product Introduced