mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-21 02:31:11 +01:00
Docs: Add missing KV V2 version argument to API docs (#8018)
This commit is contained in:
parent
2c21ef4df6
commit
9d968accf0
@ -101,8 +101,8 @@ $ curl \
|
|||||||
This endpoint retrieves the secret at the specified location.
|
This endpoint retrieves the secret at the specified location.
|
||||||
|
|
||||||
| Method | Path |
|
| Method | Path |
|
||||||
| :--------------------------- | :--------------------- |
|
| :--------------------------- | :------------------------------- |
|
||||||
| `GET` | `/secret/data/:path` |
|
| `GET` | `/secret/data/:path?version=:version-number` |
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ This endpoint retrieves the secret at the specified location.
|
|||||||
```
|
```
|
||||||
$ curl \
|
$ curl \
|
||||||
--header "X-Vault-Token: ..." \
|
--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
|
### Sample Response
|
||||||
@ -131,7 +131,7 @@ $ curl \
|
|||||||
"created_time": "2018-03-22T02:24:06.945319214Z",
|
"created_time": "2018-03-22T02:24:06.945319214Z",
|
||||||
"deletion_time": "",
|
"deletion_time": "",
|
||||||
"destroyed": false,
|
"destroyed": false,
|
||||||
"version": 1
|
"version": 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user