Read subkeys for a key/value data path
Read the available subkeys on an existing data path in the kv
v2 plugin.
Assumptions
- You have set up a
kv
v2 plugin. - Your authentication token has
read
permissions for subkeys on the target secret path.
Use vault read
with the /subkeys
metadata path retrieve a list of available
subkeys on the given path.
Vault retrieves secrets at the given path but replaces the underlying values of
non-map keys and map keys with no underlying subkeys (leaf keys) with nil
.
For example: