You can also retrieve secret values directly from within a context you choose, such as from Kubernetes, Jenkins, Azure, or another of our integrations, or with the help of any of our SDKs. For details, see Akeyless Vault Plugins and SDKs.
Let’s retrieve a static secret value using the Akeyless CLI. If you’d prefer, see how to do this from the Akeyless Console instead.
The CLI command to retrieve a static secret value is:
akeyless get-secret-value --name <secret name> --version <version number>
name: The name of the static secret whose value to retrieve.
version: Optional, the version number of the secret value to retrieve. If you do not include this argument, the latest version of the secret value will be retrieved.
For example, to retrieve the value of the MyFirstSecret static secret, type:
akeyless get-secret-value --name MyFirstSecret
The response should be like this:
Let’s retrieve a static secret value from the Akeyless Console. If you’d prefer, see how to do this from the Akeyless CLI instead.
Log in to the Akeyless Console and go to Secrets & Keys.
Select the static secret.
By default, the secret value is encrypted in the Value field. To the right of the Value field, select the eye icon.
The decrypted secret value appears.
Select copy to clipboard to decrypt the secret value and copy it to the clipboard.
Updated 3 months ago