2017-03-15 06:40:33 +00:00
|
|
|
---
|
2017-03-17 18:06:03 +00:00
|
|
|
layout: "api"
|
2017-03-15 06:40:33 +00:00
|
|
|
page_title: "/sys/key-status - HTTP API"
|
|
|
|
sidebar_current: "docs-http-system-key-status"
|
|
|
|
description: |-
|
|
|
|
The `/sys/key-status` endpoint is used to query info about the current
|
|
|
|
encryption key of Vault.
|
|
|
|
---
|
|
|
|
|
|
|
|
# `/sys/key-status`
|
|
|
|
|
|
|
|
The `/sys/key-status` endpoint is used to query info about the current
|
|
|
|
encryption key of Vault.
|
|
|
|
|
|
|
|
## Get Encryption Key Status
|
|
|
|
|
|
|
|
This endpoint returns information about the current encryption key used by
|
|
|
|
Vault.
|
|
|
|
|
|
|
|
| Method | Path | Produces |
|
|
|
|
| :------- | :--------------------------- | :--------------------- |
|
|
|
|
| `GET` | `/sys/key-status` | `200 application/json` |
|
|
|
|
|
|
|
|
|
|
|
|
### Sample Request
|
|
|
|
|
2018-06-29 13:17:51 +00:00
|
|
|
```
|
|
|
|
$ curl \
|
|
|
|
--header "X-Vault-Token: ..." \
|
|
|
|
--request GET \
|
|
|
|
http://127.0.0.1:8200/v1/sys/key-status
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2017-03-15 06:40:33 +00:00
|
|
|
### Sample Response
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"term": 3,
|
|
|
|
"install_time": "2015-05-29T14:50:46.223692553-07:00"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
The `term` parameter is the sequential key number, and `install_time` is the
|
|
|
|
time that encryption key was installed.
|