KeyVaultClient.GetSecretAsync(String, CancellationToken) Method

Definition

Get secret

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

Parameters

nameOfTheSecret
String

Name of the secret

cancellationToken
CancellationToken

Cancellation token.

Returns

The Get secret response.

Remarks

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

Applies to