Replies: 2 comments 1 reply
-
Hi @sebv004 , to get the list of versions for a given secret, you need to read the Have a look at the Vault API docs to see what the path and return structure is: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2#read-secret-metadata If you were calling With the I could probably come up with example Ansible for this but it might be a week or more before I'll be able to do that. |
Beta Was this translation helpful? Give feedback.
-
Note that deleting all versions of a secret is not the same as deleting the secret. Even if you delete all the versions, the secret will still be there |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to find a way to delete all versions of a secret.
I found community.hashi_vault.vault_kv2_delete module, but you can delete the latest version of the secret or you have to populate an array of the versions you want to delete only.
Is there an easy way to populate this array ?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions