Add API access key admin endpoints

This commit is contained in:
Alex Auvolat
2022-05-11 10:27:40 +02:00
parent bb6ec9ebd9
commit f97a7845e9
5 changed files with 116 additions and 23 deletions
+49
View File
@@ -209,3 +209,52 @@ Similarly to the CLI, the body must include the incremented
version number, which MUST be 1 + the value of the currently
existing layout in the cluster.
## Access key operations
### ListKeys `GET /key`
Returns all API access keys in the cluster.
Example response:
```json
#TODO
```
### CreateKey `POST /key`
Creates a new API access key.
Request body format:
```json
{
"name": "NameOfMyKey"
}
```
### GetKeyInfo `GET /key?id=<acces key id>`
Returns information about the requested API access key.
Example response:
```json
#TODO
```
### DeleteKey `DELETE /key?id=<acces key id>`
Deletes an API access key.
### UpdateKey `POST /key?id=<acces key id>`
Updates information about the specified API access key.
Request body format:
```json
#TODO
```