API网关 APIG-创建流控策略:请求示例

时间:2024-11-07 17:09:54

请求示例

创建一个流控策略,API流量限制为800,用户流量限制为500,app流量限制为300,源IP流量限制为600,时长为1秒

{
  "api_call_limits" : 800,
  "app_call_limits" : 300,
  "enable_adaptive_control" : "FALSE",
  "ip_call_limits" : 600,
  "name" : "throttle_demo",
  "remark" : "Total: 800 calls/second; user: 500 calls/second; app: 300 calls/second; IP address: 600 calls/second",
  "time_interval" : 1,
  "time_unit" : "SECOND",
  "type" : 1,
  "user_call_limits" : 500
}
support.huaweicloud.com/api-apig/CreateRequestThrottlingPolicyV2.html