ModifyDBInstanceClass
Modifies the specifications of an instance.
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 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. It is an arbitrary unique string used to ensure the idempotence of the request. |
FEA5DC20-6D8A-5979-97AA-FC57546ADC20 |
| CnClass |
string |
No |
Target specifications for Enterprise Edition compute nodes 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 nodes 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 change the DN nodes to different specifications. |
true |
| SpecifiedDNSpecMapJson |
string |
No |
The target specification for each DN node when DN nodes are changed to different specifications. |
{"pxc-xdb-s-htr3rh44ki3s6a4354":"mysql.n4.medium.25","pxc-xdb-s-htr3rh44ki3s6a71c6":"mysql.n4.medium.25"} |
| SwitchTimeMode |
string |
No |
The switching time. Valid values:
|
0 |
| SwitchTime |
string |
No |
The start time of the switchover. The switchover is performed within the period from the start time T to T+30 minutes. This parameter is not available. |
2024-12-11T17:10:00Z |
| DnStorageSpace |
string |
No |
The target cloud disk size after the specification change.
|
50 |
| AlignStoragePrimaryAzone |
boolean |
No |
||
| StorageType |
string |
No |
The target storage type. |
cloud_auto |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderId |
string |
The order ID. An order is generated when you upgrade or downgrade an instance, or change the instance specifications. |
20211103105558 |
| RequestId |
string |
The request ID. |
FEA5DC20-6D8A-5979-97AA-FC57546ADC20 |
| TaskId |
integer |
The ID of the instance specification change task. |
0 |
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.