更新时间:2024-07-03 GMT+08:00
分享

示例1:购买华为云区块链实例

场景描述

本章以购买一个华为云区块链实例为例。

涉及其他云服务接口

无。

购买HBS实例

  • 接口相关信息

    URI格式 :POST /v2/{project_id}/huaweicloudchain/instances

  • 请求示例

    POST https://{bcs_endpoint}/v2/{project_id}/huaweicloudchain/instances

    {bcs_endpoint}信息请从地区和终端节点获取,{project_id}信息请参考获取项目ID

    Body:

     "name" : "huawei-chain-01",
      "edition" : "Professional",
      "data_management" : "Cloud",
        "orgs" : [ {
        "name" : "org1"
      }, {
        "name" : "org2"
      } ],
      "chain_info" : {
        "consensus" : "raft",
        "sign_algorithm" : "ecdsa_with_sha256"
      },
      "org_order_info" : {
        "charge_mode" : 0,
        "period_type" : 2,
        "period_num" : 1,
        "is_auto_pay" : true,
        "is_auto_renew" : true
      }
    }
  • 响应示例
    {
      "order_id" : "CS2205101612RBMZD",
      "order_num" : 2,
      "instance_id" : "e224e6b6-e215-11ec-9675-0255ac101552",
      "job_id" : "e9541c1a-e17e-11ec-9826-0255ac10040d"
    }

相关文档