节点状态

返回 KVNode 的当前状态,包括集合、复制状态和运行时间。

身份验证

需要内部身份验证。通过 X-Glue-Authentication 头部或 apikeysecret 头部传递凭据。

请求示例

1curl "https://api.hola.cloud/v1/status" \
2  -H "X-Glue-Authentication: YOUR_AUTH_TOKEN"

响应示例

1HTTP/1.1 200 OK
2Content-Type: application/json
1{
2  "node_id": "node-abc123",
3  "collections": 3,
4  "uptime_seconds": 86400,
5  "replication": {
6    "role": "primary",
7    "connected_replicas": 2
8  }
9}

错误代码

状态 代码 描述
403 forbidden Missing authentication headers
500 internal_error 服务器内部错误

评论

发表评论