Changes the node specifications of a specified PolarDB cluster.
Debugging
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 and pricing. |
ModifyType | String | Yes | Upgrade |
The type of the change. Valid values:
|
ClientToken | String | No | 6000170000591aed949d0f54a343f1a4233c1e7d1c5c****** |
Ensures the idempotence of requests to prevent duplicate requests from being submitted. This parameter value is generated by the client. Make sure that the value is unique among different requests. The token is case-sensitive, and cannot exceed 64 ASCII characters in length. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DBClusterId | String | pc-************* |
The ID of the database 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.