You can call this operation to change the type of an AnalyticDB for PostgreSQL instance.


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
DBInstanceClass String Yes

The instance type. For more information, see Instance types.

DBInstanceGroupCount String Yes 2

The number of compute nodes of the instance.

DBInstanceId String Yes gp-xxxxxxxx

The ID of the instance.

RegionId String Yes cn-hangzhou

The region ID of the instance.

PayType String No Prepaid

The billing method of the instance. Default value: Postpaid. Valid values:

  • Postpaid: pay-as-you-go
  • Prepaid: subscription

Response parameters

Parameter Type Example Description
RequestId String 25C11EE5-B7E8-481A-A07C-BD619971A570

The ID of the request.

DBInstanceId String gp-xxxxxxxxxx

The ID of the instance.

OrderId String 101450956

The order ID of the instance.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

  "requestId": "25C11EE5-B7E8-481A-A07C-BD619971A570",
  "DBInstanceId": "gp-wz9kmr708m155j***",
  "OrderId": "101450956"

Error codes

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