You can call the ModifyDasInstanceConfig operation to configure automatic storage expansion for an ApsaraDB RDS instance.

This operation is supported only when the instance runs MySQL with standard or enhanced SSDs and does not run the RDS Basic Edition. If the storage usage reaches the specified threshold, ApsaraDB RDS increases the storage capacity of the instance to meet your storage requirements. In most cases, no transient connections occur during the expansion process. For more information, see Configure automatic storage expansion for an ApsaraDB RDS for MySQL instance.

Note If 15% of the purchased storage capacity is greater than 5 GB, ApsaraDB RDS increases the storage capacity of the instance by 15% of the purchased storage capacity. If 15% of the purchased storage capacity is less than 5 GB, ApsaraDB RDS increases the storage capacity of the instance by 5 GB.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyDasInstanceConfig

The operation that you want to perform. Set the value to ModifyDasInstanceConfig.

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

StorageAutoScale String Yes Enable

Specifies whether to enable automatic storage expansion. Valid values:

  • Enable
  • Disable
ClientToken String No ETnLKlblzczshOTUbOCzxxxxxxxxxx

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

StorageThreshold Integer No 50

The threshold based on which ApsaraDB RDS triggers an automatic storage expansion activity. The threshold is a percentage. If the storage usage reaches the threshold, ApsaraDB RDS increases the storage capacity of the instance. Valid values:

  • 10
  • 20
  • 30
  • 40
  • 50
Note If you set the StorageAutoScale parameter to Enable, you must specify the StorageThreshold parameter.
StorageUpperBound Integer No 1000

The maximum storage capacity that is allowed by automatic storage expansion. Valid values: 30 to 32000. Unit: GB.

Note
  • If you set the StorageAutoScale parameter to Enable, you must specify the StorageUpperBound parameter.
  • The value of the StorageUpperBound parameter must be greater than or equal to the purchased storage capacity of the instance.

Response parameters

Parameter Type Example Description
RequestId String C3C247D4-1643-4C5D-87C2-C829543FC626

The ID of the request.

Examples

Sample requests

http(s)://rds.aliyuncs.com/?Action=ModifyDasInstanceConfig
&DBInstanceId=rm-uf6wjk5xxxxxxx
&StorageAutoScale=Enable
&StorageThreshold=50
&StorageUpperBound=1000
&<Common request parameters>

Sample success responses

XML format

<ModifyDasInstanceConfigResponse>
  <RequestId>C3C247D4-1643-4C5D-87C2-C829543FC626</RequestId>
</ModifyDasInstanceConfigResponse>

JSON format

{
    "RequestId": "C3C247D4-1643-4C5D-87C2-C829543FC626"
}

Error codes

For a list of error codes, visit the API Error Center.