Disables the automatic SQL throttling feature for one or more database instances.
If you use an SDK to call Database Autonomy Service (DAS), you must set the region to cn-shanghai.
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DisableAutoThrottleRules |
The operation that you want to perform. Set the value to DisableAutoThrottleRules. |
ConsoleContext | String | No | None |
A reserved parameter. |
InstanceIds | String | Yes | ['rm-2ze8g2am97624****','rm-2ze9xrhze0709****'] |
The IDs of the database instances. Note The value of this parameter is in the JSONArray format. For example, you can specify
this parameter in the
["Instance ID 1", "Instance ID 2"] format. Separate multiple instance IDs with commas (,).
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Long | 200 |
The returned HTTP status code. |
Message | String | Successful |
The message that is returned for the request. Note If the request is successful, Successful is returned. If the request fails, an error message that contains information such
as an error code is returned.
|
Data | Object |
The returned data. |
|
TotalInstanceCount | Long | 2 |
The total number of database instances. |
ConfigSuccessInstanceCount | Long | 1 |
The number of database instances for which the automatic SQL throttling feature is disabled. |
ConfigFailInstanceCount | Long | 1 |
The number of database instances for which the automatic SQL throttling feature failed to be disabled. |
ConfigSuccessInstanceList | Array of configSuccessInstanceList |
The list of database instances for which the automatic SQL throttling feature is disabled. |
|
ConfigSuccess | Boolean | true |
Indicates whether the automatic SQL throttling feature is disabled. Valid values:
|
InstanceId | String | rm-2ze8g2am97624**** |
The IDs of the database instances. |
ConfigFailInstanceList | Array of configFailInstanceList |
The list of database instances for which the automatic SQL throttling feature failed to be disabled. |
|
ConfigSuccess | Boolean | false |
Indicates whether the automatic SQL throttling feature is disabled. Valid values:
|
InstanceId | String | rm-2ze9xrhze0709**** |
The IDs of the database instances. |
ErrorMessage | String | cannot found instance by rm-2ze9xrhze0709**** |
The error message. |
RequestId | String | B6D17591-B48B-4D31-9CD6-9B9796B2**** |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. Valid values:
|
Examples
Sample requests
http(s)://das.cn-shanghai.aliyuncs.com/?Action=DisableAutoThrottleRules
&InstanceIds=['rm-2ze8g2am97624****','rm-2ze9xrhze0709****']
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DisableAutoThrottleRulesResponse>
<Code>200</Code>
<Message>Successful</Message>
<Data>
<TotalInstanceCount>2</TotalInstanceCount>
<ConfigSuccessInstanceCount>1</ConfigSuccessInstanceCount>
<ConfigFailInstanceCount>1</ConfigFailInstanceCount>
<ConfigSuccessInstanceList>
<ConfigSuccess>true</ConfigSuccess>
<InstanceId>rm-2ze8g2am97624****</InstanceId>
</ConfigSuccessInstanceList>
<ConfigFailInstanceList>
<ConfigSuccess>false</ConfigSuccess>
<InstanceId>rm-2ze9xrhze0709****</InstanceId>
<ErrorMessage>cannot found instance by rm-2ze9xrhze0709****</ErrorMessage>
</ConfigFailInstanceList>
</Data>
<RequestId>B6D17591-B48B-4D31-9CD6-9B9796B2****</RequestId>
<Success>true</Success>
</DisableAutoThrottleRulesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Code" : 200,
"Message" : "Successful",
"Data" : {
"TotalInstanceCount" : 2,
"ConfigSuccessInstanceCount" : 1,
"ConfigFailInstanceCount" : 1,
"ConfigSuccessInstanceList" : [ {
"ConfigSuccess" : true,
"InstanceId" : "rm-2ze8g2am97624****"
} ],
"ConfigFailInstanceList" : [ {
"ConfigSuccess" : false,
"InstanceId" : "rm-2ze9xrhze0709****",
"ErrorMessage" : "cannot found instance by rm-2ze9xrhze0709****"
} ]
},
"RequestId" : "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success" : true
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParams | The request parameters are invalid. | The error message returned because the specified request parameters are invalid. |
For a list of error codes, visit the API Error Center.