Creates a custom throttling policy.
Operation description
-
This API is intended for API providers.
-
Throttling policies must be bound to APIs to take effect. After a policy is bound to an API, it goes into effect on that API immediately.
-
The QPS limit on this operation is 50 per user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apigateway:CreateTrafficControl |
create |
*TrafficControl
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TrafficControlName |
string |
Yes |
The name of the throttling policy. The name must be 4 to 50 characters in length and can contain letters, digits, and underscores (_). It cannot start with an underscore. |
Throttling test |
| TrafficControlUnit |
string |
Yes |
The unit to be used in the throttling policy. Valid values:
|
MINUTE |
| ApiDefault |
integer |
Yes |
The default throttling value for each API. |
10000 |
| UserDefault |
integer |
No |
The default throttling value for each user. |
10000 |
| AppDefault |
integer |
No |
The default throttling value for each app. |
10000 |
| Description |
string |
No |
The description of the throttling policy. |
Throttling test description |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TrafficControlId |
string |
The ID of the throttling policy. |
tf123456 |
| RequestId |
string |
The ID of the request. |
CEF72CEB-54B6-4AE8-B225-F876FF7BZ004 |
Examples
Success response
JSON format
{
"TrafficControlId": "tf123456",
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BZ004"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.