Creates a rate limiting policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateRateLimitPolicy |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GwClusterId |
string |
Yes |
The gateway instance ID. |
pg-xxxxxxx |
| ScopeType |
string |
Yes |
The rate limiting dimension. Valid values:
|
ConsumerGroup |
| ScopeRefId |
string |
Yes |
The ID of the consumer group or consumer. |
cg-xxxxxxx |
| RateLimitRpm |
string |
Yes |
The maximum number of requests per minute. |
10 |
| RateLimitTpm |
string |
Yes |
The maximum number of tokens per minute. |
10 |
| RegionId |
string |
No |
The ID of the region. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
CDB3258F-B5DE-43C4-8935-CBA0CA****** |
| PolicyId |
string |
The policy ID. |
02eccf7c61cf4d05a543075ee907f3** |
| GwClusterId |
string |
The gateway instance ID. |
pg-xxxxxxxx |
Examples
Success response
JSON format
{
"RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
"PolicyId": "02eccf7c61cf4d05a543075ee907f3**",
"GwClusterId": "pg-xxxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.