Disables the auto scaling feature for a database instance.
Operation description
Before you call this operation, take note of the following items:
-
If you use Alibaba Cloud SDK or Database Autonomy Service (DAS) SDK to call this operation, we recommend that you use the latest version of the SDK.
-
If you use an SDK to call operations of DAS, you must set the region ID to cn-shanghai.
-
This operation is applicable only to ApsaraDB for Redis instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:DisableInstanceDasConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The database instance ID. |
r-bp1nti25tc7bq5**** |
| Engine |
string |
Yes |
The database engine. Set the value to Redis. |
Redis |
| ScaleType |
string |
Yes |
The type of auto scaling. Valid values:
|
bandwidthScale |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
string |
The HTTP status code returned. |
200 |
| Message |
string |
The returned message. Note
If the request was successful, Successful is returned. If the request failed, an error message such as an error code is returned. |
Successful |
| Data |
string |
The result of disabling the auto scaling feature for the database instance. |
success |
| RequestId |
string |
The request ID. |
7172BECE-588A-5961-8126-C216E16B**** |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "Successful",
"Data": "success",
"RequestId": "7172BECE-588A-5961-8126-C216E16B****",
"Success": "true"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | |
| 403 | NoPermission | You are not authorized to do this action. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.