Add experiment system + events experiment (#18682)

This commit is contained in:
Tom Proctor
2023-01-16 16:07:18 +00:00
committed by GitHub
parent 2a5a07e390
commit e36690e067
16 changed files with 394 additions and 3 deletions

View File

@@ -0,0 +1,46 @@
---
layout: api
page_title: /sys/experiments - HTTP API
description: The `/sys/experiments` endpoint returns information about experiments on the Vault node.
---
# `/sys/experiments`
The `/sys/experiments` endpoint returns information about experiments on the Vault node.
## Read Experiments
This endpoint returns the experiments available and enabled on the Vault node.
Experiments are per-node and cannot be changed while the node is running. See
the [`-experiment`](/docs/commands/server#experiment) flag and the
[`experiments`](/docs/configuration#experiments) config key documentation for
details on enabling experiments.
| Method | Path |
| :----- | :----------------- |
| `GET` | `/sys/experiments` |
### Sample Request
```shell-session
$ curl \
http://127.0.0.1:8200/v1/sys/experiments
```
### Sample Response
```json
{
"request_id": "cb48b1e2-635c-52e9-db79-ad9a54ed3e88",
"lease_id": "",
"lease_duration": 0,
"renewable": false,
"data": {
"available": [
"events.beta1"
],
"enabled": []
},
"warnings": null
}
```