Docs: Add missing KV V2 version argument to API docs (#8018)

This commit is contained in:
Michel Vocks 2019-12-16 09:35:48 +01:00 committed by GitHub
parent 2c21ef4df6
commit 9d968accf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,8 +101,8 @@ $ curl \
This endpoint retrieves the secret at the specified location.
| Method | Path |
| :--------------------------- | :--------------------- |
| `GET` | `/secret/data/:path` |
| :--------------------------- | :------------------------------- |
| `GET` | `/secret/data/:path?version=:version-number` |
### Parameters
@ -116,7 +116,7 @@ This endpoint retrieves the secret at the specified location.
```
$ curl \
--header "X-Vault-Token: ..." \
https://127.0.0.1:8200/v1/secret/data/my-secret
https://127.0.0.1:8200/v1/secret/data/my-secret?version=2
```
### Sample Response
@ -131,7 +131,7 @@ $ curl \
"created_time": "2018-03-22T02:24:06.945319214Z",
"deletion_time": "",
"destroyed": false,
"version": 1
"version": 2
}
},
}