API网关 APIG-查看API绑定的流控策略列表:响应示例

时间:2023-12-01 09:43:00

响应示例

状态码: 200

OK

{
  "total" : 1,
  "size" : 1,
  "throttles" : [ {
    "id" : "3437448ad06f4e0c91a224183116e965",
    "name" : "throttle_demo",
    "api_call_limits" : 800,
    "user_call_limits" : 500,
    "app_call_limits" : 300,
    "ip_call_limits" : 600,
    "time_interval" : 1,
    "time_unit" : "SECOND",
    "create_time" : "2020-07-31T08:44:02Z",
    "remark" : "Total: 800 calls/second; user: 500 calls/second; app: 300 calls/second; IP address: 600 calls/second",
    "is_inclu_special_throttle" : 2,
    "env_name" : "RELEASE",
    "type" : 1,
    "bind_id" : "3e06ac135e18477e918060d3c59d6f6a",
    "bind_time" : "2020-08-03T12:25:52Z",
    "bind_num" : 0,
    "enable_adaptive_control" : "FALSE"
  } ]
}

状态码: 400

Bad Request

{
  "error_code" : "APIG.2012",
  "error_msg" : "Invalid parameter value,parameterName:throttle_name. 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.3002",
  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
}

状态码: 500

Internal Server Error

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