KeyVaultClient.DecryptDataWithVersionAsync Method

Definition

Decrypt data with key version

public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.KeyDecryptOutput> DecryptDataWithVersionAsync(string nameOfTheKey, string versionOfTheKey, Azure.Connectors.Sdk.KeyVault.Models.KeyDecryptInput input, System.Threading.CancellationToken cancellationToken = default);
abstract member DecryptDataWithVersionAsync : string * string * Azure.Connectors.Sdk.KeyVault.Models.KeyDecryptInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.KeyDecryptOutput>
override this.DecryptDataWithVersionAsync : string * string * Azure.Connectors.Sdk.KeyVault.Models.KeyDecryptInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.KeyDecryptOutput>
Public Overridable Function DecryptDataWithVersionAsync (nameOfTheKey As String, versionOfTheKey As String, input As KeyDecryptInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyDecryptOutput)

Parameters

nameOfTheKey
String

Name of the key

versionOfTheKey
String

Version of the key

input
KeyDecryptInput

The request body.

cancellationToken
CancellationToken

Cancellation token.

Returns

The Decrypt data with key version response.

Remarks

Decrypt data using a specific version of a key. Output of this operation is typically classified as secret and can be visible in the run history.

Applies to