KeyVaultClient.GetSecretVersionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.