Description
For adding custom special throttling policies to a specified throttling policy.
- This function is intended for API activators.
- If the input SpecialKey already exists, the previous configuration is overwritten. Exercise caution when operating.
- Note that special throttling policies must be added to an existing throttling policy, and then take effect for all the APIs under the existing throttling policy.
Request parameters
Name | Type | Required? | Description |
---|---|---|---|
Action | String | Yes | Operation interface name, which is a required parameter; value: AddTrafficSpecialControl. |
TrafficControlId | String | Yes | ID of a specified throttling policy. |
SpecialType | String | Yes | Special throttling type; values:
|
SpecialKey | String | Yes | AppId or Alibaba Cloud account ID corresponding to SpecialType. View Account Manager Page to get account ID. |
TrafficValue | Integer | Yes | Corresponding special throttling value. |
Return parameters
Name | Type | Description |
---|---|---|
RequestId | String | ID of the current request. |
Examples
Request example
https://apigateway.cn-qingdao.aliyuncs.com/?Action=AddTrafficSpecialControl
&TrafficControlId=tf123456
&SpecialType=App
&SpecialKey=3382463
&TrafficValue=10000
&<Public request parameters>
Response example
XML
format
<AddTrafficSpecialControlResponse>
<RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BZ004</RequestId>
</AddTrafficSpecialControlResponse>
JSON
format
{
"RequestId":"CEF72CEB-54B6-4AE8-B225-F876FF7BZ004",
}