API网关 APIG-创建编排规则:响应示例

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

响应示例

状态码: 201

Created

  • 示例 1

    {
      "orchestration_id" : "76545e81d9cb4424bf704ef2b0ac7600",
      "orchestration_name" : "orchestration_demo_1",
      "orchestration_create_time" : "2023-07-02T12:31:23.353Z",
      "orchestration_update_time" : "2023-07-02T13:31:23.353Z",
      "orchestration_strategy" : "list",
      "orchestration_mapped_param" : {
        "mapped_param_name" : "shared-tag",
        "mapped_param_type" : "number",
        "mapped_param_location" : "header"
      },
      "orchestration_map" : [ {
        "map_param_list" : [ "10001", "10002" ],
        "mapped_param_value" : "1"
      }, {
        "map_param_list" : [ "10003", "10004" ],
        "mapped_param_value" : "2"
      } ]
    }
  • 示例 2

    {
      "orchestration_id" : "yt655e81d9cb4424bf704ef2b0ac7600",
      "orchestration_name" : "orchestration_demo_2",
      "orchestration_create_time" : "2023-07-02T12:31:23.353Z",
      "orchestration_update_time" : "2023-07-02T13:31:23.353Z",
      "orchestration_strategy" : "range",
      "orchestration_mapped_param" : {
        "mapped_param_name" : "shared-tag",
        "mapped_param_type" : "number",
        "mapped_param_location" : "header"
      },
      "orchestration_map" : [ {
        "map_param_range" : {
          "range_start" : "1",
          "range_end" : "1000"
        },
        "mapped_param_value" : "1"
      } ]
    }
  • 示例 3

    {
      "orchestration_id" : "a7655e81d9cb4424bf704ef2b0ac7600",
      "orchestration_name" : "orchestration_demo_3",
      "orchestration_create_time" : "2023-07-02T12:31:23.353Z",
      "orchestration_update_time" : "2023-07-02T13:31:23.353Z",
      "orchestration_strategy" : "hash",
      "orchestration_mapped_param" : {
        "mapped_param_name" : "shared-tag",
        "mapped_param_type" : "number",
        "mapped_param_location" : "header"
      }
    }

状态码: 400

Bad Request

{
  "error_code" : "APIG.2012",
  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
}

状态码: 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.3030",
  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
}

状态码: 500

Internal Server Error

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