区块链服务 BCS-查询节点信息:响应示例

时间:2024-07-03 14:20:50

响应示例

状态码: 200

Ok

{
  "node_orgs" : {
    "organization" : {
      "org_msp_id" : "328000cb35d8971e0b0388f6182f95eaa4100784MSP",
      "org_domain" : "peer-328000cb35d8971e0b0388f6182f95eaa4100784.default.svc.cluster.local",
      "peers" : {
        "peer-328000cb35d8971e0b0388f6182f95eaa4100784-0" : {
          "channels" : [ "channel" ],
          "ip_port" : "100.93.3.32:30605"
        },
        "peer-328000cb35d8971e0b0388f6182f95eaa4100784-1" : {
          "channels" : [ "channel" ],
          "ip_port" : "100.93.3.32:30606"
        }
      }
    }
  }
}

状态码: 400

Bad Request

{
  "error_code" : " BCS .4006005",
  "error_msg" : "keyType error, keyType: blok not supported"
}

状态码: 401

Unauthorized

{
  "error_code" : "B CS .4010401",
  "error_msg" : "Incorrect token or token resolution failed"
}

状态码: 403

Forbidden

{
  "error_code" : "BCS.4030403",
  "error_msg" : "No permissions to request this method"
}

状态码: 404

Not Found

{
  "error_code" : "BCS.4040404",
  "error_msg" : "Not Found:the url is not found"
}

状态码: 500

InternalServerError

{
  "error_code" : "BCS.5000500",
  "error_msg" : "Internal Server Error"
}
support.huaweicloud.com/api-bcs/ShowBlockchainNodes_3.html