Skip to content

接口描述 ​

获取账号下所有节点状态信息

请求路径 ​

GET /v1/ant/status

请求参数 ​

名称类型位置必须描述
Authorizationstringheader是鉴权 token
macsstringform否Mac 地址,多个则用","分隔
remarkstringform否备注
pageintform是第几页, 从 1 开始
limitintform是每页数量,limit最大值为100

返回值 ​

名称类型描述
items[]NodeBase节点数据

NodeBase ​

名称类型描述
nodeIDstring节点 ID
stagestring节点业务阶段
  • bound:待提交
  • waitAudit:交付中
  • auditFailed:验收未通过
  • inService:服务中
  • offline:已下线
  • repelled:已清退
statusstring节点网络状态
  • online:在线
  • outline:离线
netBenchStatusstring网络压测状态
  • todo:任务未开始
  • doing:任务进行中
  • done:任务已完成
  • timeout:任务超时
  • failed:任务失败
acceptanceRejectReasonstring节点验收未通过的原因
remarkstring备注

请求示例 ​

json

返回值示例 ​

json
正常请求:
  http code 200
{
  "items": [
    {
      "nodeID": "5f1e9dc7f9537d6b370xx010",
      "stage": "audit",
      "status": "online",
      "netBenchStatus": "done",
      "remark": "remark"
    }
  ]
}

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

错误码列表 ​

错误码描述
401鉴权失败

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