KeyVaultClient.GetSecretAsync(String, CancellationToken) 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
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.