apig__CreateSpecialThrottlingConfiguration
Adds a special throttling rule to an API gateway strategy, setting a custom maximum call limit for a specific app or tenant while retaining the strategy's general limits.
Instructions
[APIG] 流控策略可以限制一段时间内可以访问API的最大次数,也可以限制一段时间内单个租户和单个APP可以访问API的最大次数。 如果想要对某个特定的APP进行特殊设置,例如设置所有APP每分钟的访问次数为500次,但想设置APP1每分钟的访问次数为800次,可以通过在流控策略中设置特殊APP来实现该功能。 为流控策略添加一个特殊设置的对象,可以是APP,也可以是租户。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"call_limits": "<call_limits>",
"object_id": "<object_id>",
"object_type": "<object_type>",
"strategy_id": "<strategy_id>"
},
"name": "apig__CreateSpecialThrottlingConfiguration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_id | Yes | 特殊APP的编号或特殊租户的账号ID | |
| call_limits | Yes | 流控时间内特殊对象能够访问API的最大次数限制 | |
| object_type | Yes | 对象类型:APP/USER | |
| strategy_id | Yes | 流控策略编号 |