Merge pull request #1090 from cmendible/issue-1089

Update Secrets API reference
This commit is contained in:
Ori Zohar 2021-01-21 09:39:29 -08:00 committed by GitHub
commit 074d582887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 6 deletions

View File

@ -132,9 +132,9 @@ secret-store-name | the name of the secret store to get the secret from
#### Response Body
The returned response is a JSON containing the secrets. The JSON object will contain the secret keys as fields and the secret value as the field value.
The returned response is a JSON containing the secrets. The JSON object will contain the secret names as fields and a map of secret keys and values as the field value.
##### Response with multiple keys in a secret (eg. Kubernetes):
##### Response with multiple secrets and multiple key / values in a secret (eg. Kubernetes):
```shell
curl http://localhost:3500/v1.0/secrets/kubernetes/bulk
@ -142,8 +142,14 @@ curl http://localhost:3500/v1.0/secrets/kubernetes/bulk
```json
{
"secret1": {
"key1": "value1",
"key2": "value2"
},
"secret2": {
"key3": "value3",
"key4": "value4"
}
}
```
@ -160,9 +166,15 @@ Code | Description
```shell
curl http://localhost:3500/v1.0/secrets/vault/bulk \
```
```json
{
"key1": "value1",
"key1": {
"key1": "value1"
},
"key2": {
"key2": "value2"
}
}
```