Changes the node specifications of a specified PolarDB cluster.

Debugging

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
Action String No ModifyDBNodeClass

The operation that you want to perform. Set the value to ModifyDBNodeClass.

DBClusterId String Yes pc-*************

The ID of the cluster.

DBNodeTargetClass String Yes polar.mysql.x4.large

For more information about the node specifications, see Specifications of compute nodes.

ModifyType String Yes Upgrade

The type of change. Valid values:

  • Upgrade: upgrades specifications.
  • Downgrade: downgrades specifications.
ClientToken String No 6000170000591aed949d0f54a343f1a4233c1e7d1c5c******

The client token that is used to ensure the idempotency of requests. If an API operation is idempotent, the same result is returned for identical requests. You can use the client to generate the value. Make sure that the value is unique for different requests. The token is case-sensitive. It can contain only ASCII characters and cannot exceed 64 characters in length.

PlannedStartTime String No 2021-01-14T09:00:00Z

The earliest time to upgrade the specifications within the scheduled time period. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.

Note
  • This parameter takes effect only when ModifyType is set to Upgrade.
  • The start time must be a point in time in the next 24 hours. For example, if the current time is 2021-01-14T09:00:00Z, set this parameter to a value from 2021-01-14T09:00:00Z to 2021-01-15T09:00:00Z.
  • If this parameter is empty, the upgrade task is immediately performed.
PlannedEndTime String No 2021-01-14T09:30:00Z

The latest start time to perform a scheduled upgrade task within the scheduled time period. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.

Note
  • The latest start time must be at least 30 minutes later than the earliest start time.
  • If you specify the PlannedStartTime parameter but do not specify this parameter, this parameter is automatically set to a value that is 30 minutes after the time specified by PlannedStartTime. For example, if you set PlannedStartTime to 2021-01-14T09:00:00Z but do not specify this parameter, the latest start time is automatically set to 2021-01-14T09:30:00Z.

Response parameters

Parameter Type Example Description
DBClusterId String pc-*************

The ID of the cluster.

OrderId String 2035629******

The ID of the order.

RequestId String 685F028C-4FCD-407D-A559-072D63******

The ID of the request.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/? Action=ModifyDBNodeClass
&DBClusterId=pc-*************
&DBNodeTargetClass=polar.mysql.x4.large
&ModifyType=Upgrade
&<Common request parameters>

Sample success responses

XML format

<ModifyDBNodeClassResponse>
  <RequestId>685F028C-4FCD-407D-A559-072D6378C4C3</RequestId>
  <OrderId>2035629******</OrderId>
  <DBClusterId>pc-**************</DBClusterId>
</ModifyDBNodeClassResponse>

JSON format

{
    "RequestId": "685F028C-4FCD-407D-A559-072D6378C4C3",
    "OrderId": "2035629******",
    "DBClusterId": "pc-**************"
}

Error codes

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