open-vault/website/source/api/system/key-status.html.md

1,014 B

layout page_title sidebar_title sidebar_current description
api /sys/key-status - HTTP API <code>/sys/key-status</code> api-http-system-key-status 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
GET /sys/key-status

Sample Request

$ curl \
    --header "X-Vault-Token: ..." \
    --request GET \
    http://127.0.0.1:8200/v1/sys/key-status

Sample Response

{
  "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.