区块链服务 BCS-查询异步操作结果:响应示例

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

响应示例

状态码: 200

Ok

{
  "count" : 1,
  "operation_records" : [ {
    "operation_id" : " BCS SVC01-99-1618218591906093855",
    "resource_type" : "B CSS VC01",
    "operation_type" : "99",
    "domain_id" : "051ddda36880d3420f9bc01403fd8da0",
    "project_id" : "051ddda57400d2982fccc014fab5749d",
    "blockchain_id" : "23604f57-eac9-3777-e9f5-ae87457f2338",
    "blockchain_name" : "bcs-i3b0ms",
    "cluster_info" : {
      "cluster_type" : "cce",
      "name" : "asdfasf",
      "cluster_id" : "4df5652f-96dc-11eb-b49c-0255ac100b08",
      "node_infos" : null
    },
    "operation_process" : {
      "Create Other Dependent Resource" : {
        "step_name" : "Create Other Dependent Resource",
        "status" : "processing",
        "detail" : "",
        "sub_steps" : {
          "Create EIP" : {
            "substep_name" : "Create EIP",
            "detail" : null,
            "status" : "finished",
            "message" : null,
            "start_time" : 1618219038464462600,
            "end_time" : 1618219038464462600,
            "serial_num" : 1
          },
          "Create network storage" : {
            "substep_name" : "Create network storage",
            "detail" : "waiting",
            "status" : "",
            "message" : null,
            "start_time" : 0,
            "end_time" : 0,
            "serial_num" : 2
          }
        },
        "serial_num" : 2
      },
      "Preparation" : {
        "step_name" : "Preparation",
        "status" : "finished",
        "detail" : "",
        "sub_steps" : {
          "Generate basic configurations" : {
            "substep_name" : "Generate basic configurations",
            "detail" : null,
            "status" : "finished",
            "message" : null,
            "start_time" : 1618218591951266000,
            "end_time" : 1618218591951266000,
            "serial_num" : 3
          }
        },
        "serial_num" : 1
      }
    },
    "record_time" : 1618218591906100000,
    "operation_status" : "processing",
    "message" : null,
    "desc" : null
  } ]
}

状态码: 400

Bad Request

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

状态码: 401

Unauthorized

{
  "error_code" : "BCS.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/ListOpRecord_3.html