All Products
Search
Document Center

PolarDB:ResizeAIDBClusterModel

Last Updated:Oct 21, 2026

Adjusts the model capacity of an AI cluster.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID. Requests are routed based on the region to which the instance belongs.

cn-beijing

DBClusterId

string

Yes

The ID of the PolarDB AI 3.0 logical instance.

pm-2ze4x2mwo81knj08a

TargetCapacity

integer

Yes

The target total capacity. The abstract capacity unit is 1000, which equals one L20N equivalent card. The value must be a positive integer.

12000

DryRun

boolean

No

Specifies whether to perform a read-only capacity dry run.

true

Response elements

Element

Type

Description

Example

object

Schema of Response

CurrentCapacity

integer

The current measured capacity of the instance. This parameter is returned only when DryRun is set to true.

8000

DBClusterId

string

The ID of the PolarDB AI 3.0 logical instance.

pm-2ze4x2mwo81knj08a

DryRun

boolean

Indicates whether the current request performs a capacity dry run only.

true

PoolHitCapacity

integer

The capacity that can be directly borrowed from the large pool without reshaping. This parameter is returned only when DryRun is set to true.

3000

PoolHitRatio

number

The direct hit ratio of the large pool. Valid values: 0 to 1. This parameter is returned only when DryRun is set to true.

0.75

RequestId

string

Id of the request

3AA6E0E4-1234-5678-90AB-1234567890AB

RequiredDelta

integer

The positive difference between the target capacity and the current capacity. This parameter is returned only when DryRun is set to true.

4000

TargetCapacity

integer

The target total capacity.

12000

Examples

Success response

JSON format

{
  "CurrentCapacity": 8000,
  "DBClusterId": "pm-2ze4x2mwo81knj08a",
  "DryRun": true,
  "PoolHitCapacity": 3000,
  "PoolHitRatio": 0.75,
  "RequestId": "3AA6E0E4-1234-5678-90AB-1234567890AB",
  "RequiredDelta": 4000,
  "TargetCapacity": 12000
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid.
400 InvalidParameters.Format The specified parameters are invalid. The specified parameters are invalid.
400 InsufficientModelCapacity The available model capacity is insufficient for the requested target capacity.
500 InternalFailure The request processing has failed due to an internal error.
403 IncorrectDBInstanceType The specified DB instance type is not supported.
403 IncorrectDBInstanceState The specified DB instance state is not supported.
404 InvalidDBClusterId.NotFound The DBClusterId provided does not exist in our records. The specified DBClusterId parameter does not exist in the current record.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.