KeyVaultClientExtensions.GetSecretAsync KeyVaultClientExtensions.GetSecretAsync Method

Definition

Overloads

GetSecretAsync(IKeyVaultClient, String, String, CancellationToken) GetSecretAsync(IKeyVaultClient, String, String, CancellationToken)

Gets a secret.

GetSecretAsync(IKeyVaultClient, String, String, String, CancellationToken) GetSecretAsync(IKeyVaultClient, String, String, String, CancellationToken)

Get a specified secret from a given key vault.

GetSecretAsync(IKeyVaultClient, String, CancellationToken) GetSecretAsync(IKeyVaultClient, String, CancellationToken)

Gets a secret.

GetSecretAsync(IKeyVaultClient, String, String, CancellationToken) GetSecretAsync(IKeyVaultClient, String, String, CancellationToken)

Gets a secret.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle> GetSecretAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string secretName, System.Threading.CancellationToken cancellationToken = null);
static member GetSecretAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle>

Parameters

vaultBaseUrl
String String

The URL for the vault containing the secrets.

secretName
String String

The name the secret in the given vault.

cancellationToken
CancellationToken CancellationToken

Optional cancellation token

Returns

A response message containing the secret

GetSecretAsync(IKeyVaultClient, String, String, String, CancellationToken) GetSecretAsync(IKeyVaultClient, String, String, String, CancellationToken)

Get a specified secret from a given key vault.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle> GetSecretAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string secretName, string secretVersion, System.Threading.CancellationToken cancellationToken = null);
static member GetSecretAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle>

Parameters

operations
IKeyVaultClient IKeyVaultClient

The operations group for this extension method.

vaultBaseUrl
String String

The vault name, for example https://myvault.vault.azure.net.

secretName
String String

The name of the secret.

secretVersion
String String

The version of the secret.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Remarks

The GET operation is applicable to any secret stored in Azure Key Vault.

GetSecretAsync(IKeyVaultClient, String, CancellationToken) GetSecretAsync(IKeyVaultClient, String, CancellationToken)

Gets a secret.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle> GetSecretAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string secretIdentifier, System.Threading.CancellationToken cancellationToken = null);
static member GetSecretAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.SecretBundle>

Parameters

secretIdentifier
String String

The URL for the secret.

cancellationToken
CancellationToken CancellationToken

Optional cancellation token

Returns

A response message containing the secret

Applies to