mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Core: CLI Doc improvements to example read / write. (#19064)
* Core: CLI Doc imporvements to example read / write. Resolves #16788 * Core: CLI Doc imporvements to example read / write. Resolves #16788. Updated Changelog filename. * Core: CLI Doc imporvements to example read / write. Resolves #16788. Updated Changelog.. * Updated read example to use token lookup instead.
This commit is contained in:
@@ -36,9 +36,17 @@ Usage: vault read [options] PATH
|
||||
Reads data from Vault at the given path. This can be used to read secrets,
|
||||
generate dynamic credentials, get configuration details, and more.
|
||||
|
||||
Read a secret from the static secrets engine:
|
||||
Read details of your own token:
|
||||
|
||||
$ vault read secret/my-secret
|
||||
$ vault read auth/token/lookup-self
|
||||
|
||||
Read entity details of a given ID:
|
||||
|
||||
$ vault read identity/entity/id/2f09126d-d161-abb8-2241-555886491d97
|
||||
|
||||
Generate credentials for my-role in an AWS secrets engine:
|
||||
|
||||
$ vault read aws/creds/my-role
|
||||
|
||||
For a full list of examples and paths, please see the documentation that
|
||||
corresponds to the secrets engine in use.
|
||||
|
||||
Reference in New Issue
Block a user