mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* Update README Let contributors know that docs will now be located in UDR * Add comments to each mdx doc Comment has been added to all mdx docs that are not partials * chore: added changelog changelog check failure * wip: removed changelog * Fix content errors * Doc spacing * Update website/content/docs/deploy/kubernetes/vso/helm.mdx Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com> --------- Co-authored-by: jonathanfrappier <92055993+jonathanfrappier@users.noreply.github.com> Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
68 lines
2.5 KiB
Plaintext
68 lines
2.5 KiB
Plaintext
---
|
|
layout: api
|
|
page_title: /sys/version-history - HTTP API
|
|
description: The `/sys/version-history` endpoint is used to retrieve the version history of a Vault.
|
|
---
|
|
|
|
> [!IMPORTANT]
|
|
> **Documentation Update:** Product documentation, which were located in this repository under `/website`, are now located in [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs), colocated with all other product documentation. Contributions to this content should be done in the `web-unified-docs` repo, and not this one. Changes made to `/website` content in this repo will not be reflected on the developer.hashicorp.com website.
|
|
|
|
# `/sys/version-history`
|
|
|
|
~> **NOTE**: Tracking Vault version history was added in Vault version 1.9.0. Entries for versions installed prior to version 1.9.0 will not be available via this API.
|
|
This API was added in 1.10.0.
|
|
|
|
The `/sys/version-history` endpoint is used to retrieve the version history of a Vault.
|
|
|
|
## Read version history
|
|
|
|
This endpoint returns the version history of the Vault. The response will contain the following keys:
|
|
|
|
- `keys`: a list of installed versions in chronological order based on the time installed
|
|
- `key_info`: a map indexed by the versions found in the `keys` list containing the following subkeys:
|
|
- `build_date`: the time (in UTC) at which the Vault binary used to run the Vault server was built. **Note: Only tracked from version 1.11.0 or greater**
|
|
- `previous_version`: the version installed prior to this version or `null` if no prior version exists
|
|
- `timestamp_installed`: the time (in UTC) at which the version was installed
|
|
|
|
| Method | Path |
|
|
| :----- | :--------------------- |
|
|
| `LIST` | `/sys/version-history` |
|
|
|
|
### Sample request
|
|
|
|
```shell-session
|
|
$ curl \
|
|
-X LIST --header "X-Vault-Token: ..." \
|
|
http://127.0.0.1:8200/v1/sys/version-history
|
|
```
|
|
|
|
### Sample response
|
|
|
|
```json
|
|
{
|
|
"keys": ["1.9.0", "1.9.1", "1.9.2", "1.11.0"],
|
|
"key_info": {
|
|
"1.9.0": {
|
|
"build_date": null,
|
|
"previous_version": null,
|
|
"timestamp_installed": "2021-11-18T10:23:16Z"
|
|
},
|
|
"1.9.1": {
|
|
"build_date": null,
|
|
"previous_version": "1.9.0",
|
|
"timestamp_installed": "2021-12-13T11:09:52Z"
|
|
},
|
|
"1.9.2": {
|
|
"build_date": null,
|
|
"previous_version": "1.9.1",
|
|
"timestamp_installed": "2021-12-23T10:56:37Z"
|
|
},
|
|
"1.11.0": {
|
|
"build_date": "2022-05-03T08:34:11Z",
|
|
"previous_version": null,
|
|
"timestamp_installed": "2022-05-03T13:16:04Z"
|
|
}
|
|
}
|
|
}
|
|
```
|