KeyVaultClient.GetSecretVersionAsync Method

Definition

Get secret version

public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.Secret> GetSecretVersionAsync(string nameOfTheSecret, string versionOfTheSecret, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSecretVersionAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.Secret>
override this.GetSecretVersionAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.KeyVault.Models.Secret>
Public Overridable Function GetSecretVersionAsync (nameOfTheSecret As String, versionOfTheSecret As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Secret)

Parameters

nameOfTheSecret
String

Name of the secret

versionOfTheSecret
String

Version of the secret

cancellationToken
CancellationToken

Cancellation token.

Returns

The Get secret version response.

Remarks

Gets a version of a secret. Output of this operation is typically classified as secret and can be visible in the run history.

Applies to