In the CLI, we have the ability to run
vault read -field=test secret/something and retrieve only the value of that one field, test. However, I have been unable to find what the equivalent is when using the HTTP API.
I have tried the following and a few other variations:
curl -X GET -H "X-Vault-Token:$VAULT_TOKEN" https://example.com/v1/secret/something?field=test
Am I missing something?
-field is a CLI magic. The API always returns a full response.
so is there any way which can be used to get the specific field using api?
Most helpful comment
so is there any way which can be used to get the specific field using api?