API网关 APIG-添加或更新VPC通道后端服务器组:响应示例

时间:2024-11-11 18:22:29

响应示例

状态码: 201

Created

  • 示例 1

    {
      "total" : 1,
      "size" : 1,
      "member_groups" : [ {
        "member_group_name" : "vpc_member_group",
        "member_group_id" : "105c6902457144a4820dff8b1ad63331",
        "member_group_remark" : "",
        "member_group_weight" : 10,
        "create_time" : "2020-07-23T07:24:33Z",
        "update_time" : "2020-07-23T07:24:33Z",
        "microservice_version" : "",
        "microservice_port" : 0,
        "microservice_labels" : [ ]
      } ]
    }
  • 示例 2

    {
      "total" : 1,
      "size" : 1,
      "member_groups" : [ {
        "member_group_name" : "vpc_member_group",
        "member_group_id" : "105c6902457144a4820dff8b1ad63331",
        "member_group_remark" : "",
        "member_group_weight" : 10,
        "create_time" : "2020-07-23T07:24:33Z",
        "update_time" : "2020-07-23T07:24:33Z",
        "microservice_version" : "v1",
        "microservice_port" : 80,
        "microservice_labels" : [ {
          "label_name" : "cluster_id",
          "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113"
        } ]
      } ]
    }

状态码: 400

Bad Request

{
  "error_code" : "APIG.2001",
  "error_msg" : "The request parameters must be specified, parameter name:name"
}

状态码: 401

Unauthorized

{
  "error_code" : "APIG.1002",
  "error_msg" : "Incorrect token or token resolution failed"
}

状态码: 403

Forbidden

{
  "error_code" : "APIG.1005",
  "error_msg" : "No permissions to request this method"
}

状态码: 404

Not Found

{
  "error_code" : "APIG.3023",
  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
}

状态码: 500

Internal Server Error

{
  "error_code" : "APIG.9999",
  "error_msg" : "System error"
}
support.huaweicloud.com/api-apig/CreateMemberGroup.html