mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-26 04:16:51 +00:00
admi api: remove info about local node from GetClusterStatus and add specific GetNodeInfo endpoint
This commit is contained in:
@@ -84,34 +84,12 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required: [ node, garageVersion, garageFeatures, rustVersion, dbEngine, knownNodes, layout ]
|
||||
required: [ layoutVersion, nodes ]
|
||||
properties:
|
||||
node:
|
||||
type: string
|
||||
example: "ec79480e0ce52ae26fd00c9da684e4fa56658d9c64cdcecb094e936de0bfe71f"
|
||||
garageVersion:
|
||||
type: string
|
||||
example: "v2.0.0"
|
||||
garageFeatures:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
example:
|
||||
- "k2v"
|
||||
- "lmdb"
|
||||
- "sqlite"
|
||||
- "consul-discovery"
|
||||
- "kubernetes-discovery"
|
||||
- "metrics"
|
||||
- "telemetry-otlp"
|
||||
- "bundled-libs"
|
||||
rustVersion:
|
||||
type: string
|
||||
example: "1.68.0"
|
||||
dbEngine:
|
||||
type: string
|
||||
example: "LMDB (using Heed crate)"
|
||||
knownNodes:
|
||||
layoutVersion:
|
||||
type: integer
|
||||
example: 1
|
||||
nodes:
|
||||
type: array
|
||||
example:
|
||||
- id: "ec79480e0ce52ae26fd00c9da684e4fa56658d9c64cdcecb094e936de0bfe71f"
|
||||
@@ -131,8 +109,6 @@ paths:
|
||||
hostname: neptune
|
||||
items:
|
||||
$ref: '#/components/schemas/NodeNetworkInfo'
|
||||
layout:
|
||||
$ref: '#/components/schemas/ClusterLayout'
|
||||
|
||||
/ConnectClusterNodes:
|
||||
post:
|
||||
|
||||
+1
-26
@@ -68,26 +68,13 @@ Returns HTTP 200 Ok if yes, or HTTP 4xx if no website is available for this doma
|
||||
|
||||
Returns the cluster's current status in JSON, including:
|
||||
|
||||
- ID of the node being queried and its version of the Garage daemon
|
||||
- Live nodes
|
||||
- Currently configured cluster layout
|
||||
- Staged changes to the cluster layout
|
||||
|
||||
Example response body:
|
||||
|
||||
```json
|
||||
{
|
||||
"node": "b10c110e4e854e5aa3f4637681befac755154b20059ec163254ddbfae86b09df",
|
||||
"garageVersion": "v2.0.0",
|
||||
"garageFeatures": [
|
||||
"k2v",
|
||||
"lmdb",
|
||||
"sqlite",
|
||||
"metrics",
|
||||
"bundled-libs"
|
||||
],
|
||||
"rustVersion": "1.68.0",
|
||||
"dbEngine": "LMDB (using Heed crate)",
|
||||
"layoutVersion": 5,
|
||||
"nodes": [
|
||||
{
|
||||
@@ -362,19 +349,7 @@ layout, as well as the description of the layout as returned by GetClusterLayout
|
||||
|
||||
Clears all of the staged layout changes.
|
||||
|
||||
Request body format:
|
||||
|
||||
```json
|
||||
{
|
||||
"version": 13
|
||||
}
|
||||
```
|
||||
|
||||
Reverting the staged changes is done by incrementing the version number
|
||||
and clearing the contents of the staged change list.
|
||||
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.
|
||||
This requests contains an empty body.
|
||||
|
||||
This returns the new cluster layout with all changes reverted,
|
||||
as returned by GetClusterLayout.
|
||||
|
||||
Reference in New Issue
Block a user