Adds SQL throttling rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:AddSQLRateLimitingRules |
create |
*DBCluster
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-************** |
| RuleName |
string |
Yes |
The name of the SQL throttling rule. You can specify only one rule name at a time. Note
|
testrule |
| RuleConfig |
string |
Yes |
The configuration of the SQL throttling rule to add or modify, specified as a JSON string. The values of the parameters must be strings. Example:
|
{"id":"test","enabled":"true","match_mode":"0","template":"dXBkYXRlIHQgc2V0IGEgPSAxIHdoZXJlIGlkID0gMQ==","user":"","database":"","waiting":1024,"endpoint":"[{"EndpointName":"pe-***********","EndpointType":"Cluster","DBEndpointDescription":"Cluster Address"}]","throttle_mode":0,"concurrency":1} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The response message. Note
If the request is successful, `Successful` is returned. If the request fails, an error message is returned, such as an error code. |
Message |
| RequestId |
string |
The request ID. |
69A85BAF-1089-4CDF-A82F-0A140F****** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Message": "Message",
"RequestId": "69A85BAF-1089-4CDF-A82F-0A140F******",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.