You can call this operation to change the node specifications of a specified ApsaraDB for 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
DBClusterId String Yes pc-xxxxxxxxxx

The ID of the cluster.

DBNodeTargetClass String Yes polar.mysql.x4.large

For more information about the specifications of all node, see Specifications and pricing.

ModifyType String Yes Upgrade

The change type of the node specifications. Valid values:

  • Upgrade
  • Downgrade
AccessKeyId String No key-test

The AccessKey ID provided to you by Alibaba Cloud.

Action String No ModifyDBNodeClass

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

ClientToken String No 6000170000591aed949d0f54a343f1a4233c1e7d1c5ca816be

The client token that is used to ensure the idempotence of the request. The value of this parameter is generated by the client and must be unique among different requests. The value is case-sensitive and can be up to 64 ASCII characters in length.

Response parameters

Parameter Type Example Description
DBClusterId String pc-xxxxxxxxxxxxx

The ID of the cluster.

OrderId String 2035629xxxxxx

The ID of the order.

RequestId String 685F028C-4FCD-407D-A559-072D6378C4C3

The ID of the request.

Examples

Sample requests


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

Sample success responses

XML format

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

JSON format

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

Error codes

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