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 list.
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.

Request example
&<Public Request Parameters>

Response example

XML format


JSON format

    "RequestId": " 3C5CFDEE-F774-4DED-89A2-1D76EC63C575 "