Calls the ModifyDBInstanceClass operation to modify the instance specifications.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:ModifyDBInstanceClass |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| DBInstanceName |
string |
Yes |
The instance ID. |
pxc-hzjasd**** |
| TargetDBInstanceClass |
string |
No |
Target specifications for Standard Edition specification changes Primary instance node specifications (Standard Edition) (General-purpose):
Primary instance node specifications (Standard Edition) (Dedicated):
Read-only instance node specifications (Standard Edition) General-purpose
Read-only instance node specifications (Standard Edition) Dedicated
|
mysql.n2.medium.25 |
| ClientToken |
string |
No |
The client token. This parameter is used to ensure the idempotence of the request. You can use any unique string. |
FEA5DC20-6D8A-5979-97AA-FC57546ADC20 |
| CnClass |
string |
No |
Target specifications for Enterprise Edition compute node specification changes Primary instance compute node specifications (Enterprise Edition CN) General-purpose
Primary instance compute node specifications (Enterprise Edition CN) Dedicated
Read-only instance compute node specifications (Enterprise Edition CN) General-purpose
Read-only instance compute node specifications (Enterprise Edition CN) Dedicated
|
polarx.x4.medium.2e |
| DnClass |
string |
No |
Target specifications for Enterprise Edition storage node specification changes Storage node specifications (Enterprise Edition DN) General-purpose
Storage node specifications (Enterprise Edition DN) Dedicated
Read-only instance storage node specifications (Enterprise Edition DN) General-purpose
Read-only instance storage node specifications (Enterprise Edition DN) Dedicated
|
mysql.n4.medium.25 |
| SpecifiedDNScale |
boolean |
No |
Specifies whether to perform a multi-specification change for DN nodes. |
true |
| SpecifiedDNSpecMapJson |
string |
No |
The target specification for each DN node when performing a multi-specification DN change. |
{"pxc-xdb-s-htr3rh44ki3s6a4354":"mysql.n4.medium.25","pxc-xdb-s-htr3rh44ki3s6a71c6":"mysql.n4.medium.25"} |
| SwitchTimeMode |
string |
No |
The switchover time. Valid values:
|
0 |
| SwitchTime |
string |
No |
The switchover start time. The switchover time range is [start time T, T+30m]. This parameter is not yet available. |
2024-12-11T17:10:00Z |
| DnStorageSpace |
string |
No |
The target disk size for the specification change.
|
50 |
|
No |
||||
|
No |
Set this parameter to cloud_auto when migrating from local disks to cloud disks. If this parameter is not specified, the storage type remains unchanged. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderId |
string |
The order ID. An order is generated when you upgrade, downgrade, or change the instance specifications. |
20211103105558 |
| RequestId |
string |
The request ID. |
FEA5DC20-6D8A-5979-97AA-FC57546ADC20 |
| TaskId |
integer |
Examples
Success response
JSON format
{
"OrderId": "20211103105558",
"RequestId": "FEA5DC20-6D8A-5979-97AA-FC57546ADC20",
"TaskId": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.