Vault: -field option for HTTP API?

Created on 2 Mar 2017  路  2Comments  路  Source: hashicorp/vault

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?

Most helpful comment

so is there any way which can be used to get the specific field using api?

All 2 comments

-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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

singuliere picture singuliere  路  3Comments

andris9 picture andris9  路  3Comments

ngunia picture ngunia  路  3Comments

maxsivanov picture maxsivanov  路  3Comments

lexsys27 picture lexsys27  路  3Comments