接口描述

节点清退

注意,清退后的节点意味着终止合作,请谨慎操作。

请求路径

POST /v1/nodes/<nodeID>/repel

请求参数

名称 类型 位置 必须 描述
Authorization string header 鉴权 token
Content-Type string header 数据类型 application/json
nodeID string path 节点 ID
reasons []string body 清退原因
  • discontentMeasure:矿主跑量不满意
  • discontentService:矿主服务不满意
  • domain:域名问题
  • isp:运营商监管
  • bandwidthQA:带宽质量问题
  • limitElectricity:限电
  • reinstallSystem:重装系统导致 ID 变化
  • testNode:测试节点
  • other:其他
other string body 其他原因,reasons 存在 other 时必传。
exceptUtilization float body 矿主期望利用率 ,reasons 存在 discontentMeasure 时 exceptUtilization 必传。期望利用率为80%,exceptUtilization传80

返回值

名称 类型 描述

请求示例

{
  "reasons":[
    "discontentMeasure",
    "other"
  ],
  "other":"other reason",
  "exceptUtilization":80
}

返回值示例

正常请求:
  http code 200

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

错误码列表

错误码 描述
401 鉴权失败
4000002 节点未查找到
4005001 清退原因错误
4005002 清退原因“其他”为空

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

results matching ""

    No results matching ""