接口描述

获取节点状态信息

请求路径

GET /v1/nodes/<nodeID>/status

请求参数

名称 类型 位置 必须 描述
Authorization string header 鉴权 token
nodeID string path 节点 ID

返回值

名称 类型 描述
nodeID string 节点 ID
stage string 节点业务阶段
  • bound:待审核
  • waitAudit:交付中
  • auditFailed:验收未通过
  • inService:服务中
  • offline:已下线
  • repelled:已清退
status string 节点网络状态
  • online:在线
  • outline:离线
netBenchStatus string 网络压测状态
  • todo:任务未开始
  • doing:任务进行中
  • done:任务已完成
  • timeout:任务超时
  • failed:任务失败
acceptanceRejectReason string 节点验收未通过的原因

请求示例

```

## 返回值示例
``` json
正常请求:
  http code 200
{
  "nodeID": "5f1e9dc7f9537d6b370xx010",
  "stage": "audit",
  "status": "online",
  "netBenchStatus": "done"
}

异常请求:
  http code 4xx/5xx
{
  "code": 4000001,
  "desc": ""
}

错误码列表

错误码 描述
401 鉴权失败
4000002 节点未查找到

如接口返回错误码未列举,可在错误码总览中查找

results matching ""

    No results matching ""