apig__AssociateRequestThrottlingPolicy
Binds a throttling policy to specified API publish records and environments, rejecting excessive requests to protect backend APIs from abnormal traffic.
Instructions
[APIG] 将流控策略应用于API,则所有对该API的访问将会受到该流控策略的限制。当一定时间内的访问次数超过流控策略设置的API最大访问次数限制后,后续的访问将会被拒绝,从而能够较好的保护后端API免受异常流量的冲击,保障服务的稳定运行。为指定的共享版-API绑定流控策略,绑定时,需要指定在哪个环境上生效。同一个API发布到不同的环境可以绑定不同的流控策略;一个API在发布到特定环境后只能绑定一个默认的流控策略。
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": {
"publish_ids": "<publish_ids>",
"strategy_id": "<strategy_id>"
},
"name": "apig__AssociateRequestThrottlingPolicy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publish_ids | Yes | API的发布记录编号 | |
| strategy_id | Yes | 流控策略编号 |