You need to enable JavaScript to run this app.
RDS for PostgreSQL

RDS for PostgreSQL

Copy page
Download PDF
SQL throttling
SwitchSQLConcurrencyControlRule
Copy page
Download PDF
SwitchSQLConcurrencyControlRule
Call the SwitchSQLConcurrencyControlRule API to enable or disable SQL throttling rules.​
Request type​
Asynchronous request.​
Precautions​
Only PostgreSQL 14 to PostgreSQL 17 instances created on or after October 15, 2026 support enabling or disabling the SQL throttling rules.​
Debug​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
​
Parameter​
Type​
Is it required?​
Example​
Description​
InstanceId​
String​
Yes​
postgres-5d27abexxxx​
Instance ID.​
tip​
You can call the DescribeDBInstances API to query the instance ID.​
DatabaseName​
String​
Yes​
pg_demo​
Target database name.​
RuleId​
Long​
Yes​
136734987028564xxxx​
Rule ID of the SQL throttling rule.​
Enabled​
Boolean​
Yes​
true​
Enable or disable the SQL throttling rules. Values:​
  • true: Enabled.​
  • false: Disabled.​
​
Response parameter​
​
Parameter​
Type​
Example​
Description​
Code​
Integer​
0​
Return status code. 0 means succeeded.​
Message​
String​
success​
Return information.​
​
Sample​
Sample request​
​
POST /?Action=SwitchSQLConcurrencyControlRule&Version=2022-01-01 HTTP/1.1​
Content-Type: application/json​
Host: rds-postgresql.cn-beijing.volcengineapi.com​
X-Date: 20231002T101010Z​
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****​
{​
"InstanceId": "postgres-5d27abexxxx",​
"DatabaseName": "pg_demo",​
"RuleId": "136734987028564xxxx",​
"Enabled": true​
}​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "SwitchSQLConcurrencyControlRule",​
"Version": "2022-01-01",​
"Service": "rds_postgresql",​
"Region": "cn-beijing"​
},​
"Result": {​
"Code": 0,​
"Message": "success"​
}​
}​
​
Last updated: 2026.10.16 14:25:31