How to use the HashiCorp's Vault API in order to get all all the secret values from a directory with a single API call

Viewed 9

I am using Postman to call the Vault API.

Right now I am doing an API call to this endpoint

https://vault.something.com/v1/kv/data/ENV/DEV/secret1

I am passing in the body a roleId and secretId and in the headers the X-Vault-Namespace and X-Vault-Token and I am getting the value of the secret at this path.

I am also able to get all the keys by calling

https://vault.something.com/v1/kv/metadata/ENV/DEV?list=true

I need to get the values of all the secrets from ENV/DEV/ using a single API call. Can you give me an idea? I got stuck in the existent documentation.

0 Answers
Related