Change the RDS instance type

Last Updated: Jan 11, 2018

Description

Change the type or storage space of Pay-As-You-Go instances.

To use this interface, the following conditions must be met:

  • The instance is running.

  • The instance is not performing a backup task.

  • Either the instance type (DBInstanceClass) or storage space (DBInstanceStorage) parameter must be specified in the request.

  • When downgrading the disk space configuration, make sure that the input disk space is no less than 1.1 times the actually used space.

  • Currently, only regular and read-only instances allow configuration changes. Configurations cannot be changed for disaster recovery and temporary instances.

Request parameters

Name Type Required Description
Action String Yes Required parameter. Value: ModifyDBInstanceSpec.
DBInstanceId String Yes Instance to be upgraded/downgraded.
PayType String Yes Billing method. Its value is Postpaid, which means the Pay-As-You-Go instance.
DBInstanceClass String No Instance type. For more information, see Instance type table.
DBInstanceStorage Integer No User-defined storage space. The value range is as follows and the value must be an integer multiple of 5:
  • For MySQL: [5, 2000];
  • For SQL Server: [10, 2000];
  • For PostgreSQL and PPAS: [5, 2000].

Return parameters

Name Type Description
<Public Return Parameters> - For more information, see Public parameters.

Example

  • Request example

    1. https://rds.aliyuncs.com/?Action=ModifyDBInstanceSpec
    2. &DBInstanceId=rdsaiiabnaiiabn
    3. &PayType=Postpaid
    4. &DBInstanceStorage=10
    5. &<Public Request Parameters>
  • Return example

    XML format:

    1. <ModifyDBInstanceSpecResponse>
    2. <RequestId>3C5CFDEE-F774-4DED-89A2-1D76EC63C575</RequestId>
    3. </ModifyDBInstanceSpecResponse>

    JSON format:

    1. {
    2. "RequestId": " 3C5CFDEE-F774-4DED-89A2-1D76EC63C575 "
    3. }
Thank you! We've received your feedback.