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

  • The instance must be in the running state when you change the type. Otherwise, the operation fails.
  • Instance type upgrade takes about 30 minutes to 3 hours to complete. The times varies with the data volume of the instance.
  • To ensure data consistency, the instance only provides the read-only service during the change process, and the instance will have two transient disconnections. We recommend that you arrange your business in advance to avoid service interruptions.
  • After the type is changed, the database kernel of the instance is automatically upgraded to the latest version.

For more information about how to perform the corresponding operation in the console, see Upgrade the instance configuration

Request parameters

Parameter Type Required Example Description
Action String Yes UpgradeDBInstance The operation that you want to perform. Set the value to UpgradeDBInstance.
RegionId String Yes cn-hangzhou The region ID of the instance You can call the DescribeRegions operation to query the most recent region list.
DBInstanceId String Yes gp-xxxxxxxxxxxxx The ID of the instance for which you want to change the type.
DBInstanceClass String Yes The instance type. For more information, see Instance types.
DBInstanceGroupCount String Yes 2 The number of compute groups of the AnalyticDB for PostgreSQL instance.

Response parameters

Parameter Type Example Description
RequestId String 25C11EE5-B7E8-481A-A07C-BD619971A570 The ID of the request.

Sample requests
&<Common request parameters>

Sample responses

  "requestId": "25C11EE5-B7E8-481A-A07C-BD619971A570"