Calls the CreateDBInstance operation to create a PolarDB-X instance.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:CreateDBInstance |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region where the instance resides. |
cn-hangzhou |
| PayType |
string |
Yes |
The billing method of the instance.
|
PREPAY |
| DBNodeCount |
integer |
No |
The number of instance nodes:
|
3 |
| DBNodeClass |
string |
No |
Required for creating Standard Edition instances. Not required for Enterprise Edition. Standard Edition local disk specifications:
Standard Edition cloud disk specifications:
|
polarx.x4.2xlarge.2d |
| ClientToken |
string |
No |
The idempotency token. Ensure that a unique value is used for each creation request. |
xxxxxx-xxx |
| NetworkType |
string |
No |
The network type. Only VPC is supported. |
vpc |
| VPCId |
string |
No |
The VPC ID. |
vpc-***** |
| VSwitchId |
string |
No |
The vSwitch ID. |
vsw-********* |
| UsedTime |
integer |
No |
The subscription duration. You can specify the number of months or years for prepaid instances. Note
When Period is set to Year, valid values for this parameter are 1, 2, and 3. |
1 |
| Period |
string |
No |
The billing cycle. For subscription instances, valid values are Year and Month. For pay-as-you-go instances, the default value is Hour. |
Month |
| ResourceGroupId |
string |
No |
The resource group ID. This parameter can be left empty. This feature is currently not supported. |
null |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Default value: true.
|
true |
| EngineVersion |
string |
Yes |
The MySQL engine version. Valid values: 5.7 and 8.0. |
5.7 |
| IsReadDBInstance |
boolean |
No |
Specifies whether the instance is a read-only instance.
|
false |
| PrimaryDBInstanceName |
string |
No |
The primary instance must be specified if the instance is a read-only instance. |
pxc-********* |
| TopologyType |
string |
Yes |
The topology type:
|
3azones |
| PrimaryZone |
string |
No |
The primary availability zone. |
cn-shenzhen-e |
| SecondaryZone |
string |
No |
The secondary availability zone. |
cn-shenzhen-a |
| TertiaryZone |
string |
No |
The tertiary availability zone. |
cn-shenzhen-e |
| ZoneId |
string |
No |
The availability zone of the instance. |
cn-hangzhou-a |
| CnClass |
string |
No |
The compute node specification. Required for creating Enterprise Edition instances. Not required for Standard Edition. Enterprise Edition local disk:
Enterprise Edition cloud disk:
|
polarx.x4.medium.2e |
| DnClass |
string |
No |
The storage node specification. Required for creating Enterprise Edition instances. Not required for Standard Edition. Enterprise Edition local disk:
Enterprise Edition cloud disk:
|
mysql.n4.medium.25 |
| CNNodeCount |
integer |
No |
The number of compute nodes. |
2 |
| DNNodeCount |
integer |
No |
The number of storage nodes. |
2 |
| IsColumnarReadDBInstance |
boolean |
No |
Specifies whether the instance to be created is a columnar read-only instance. |
true |
| Series |
string |
No |
Enterprise Edition: enterprise Standard Edition: standard |
enterprise |
| DnStorageSpace |
string |
No |
The disk space size of the storage node. |
1500 |
| ExtraParams |
object |
No |
Additional parameters. |
|
|
string |
No |
Additional parameters. |
xxxx |
|
| Description |
string |
No |
The description of the database. |
ods_api_apidata_mobilegame_pay_api_di |
| OriginMinorVersion |
string |
No |
The minor version number. This parameter is generally not required. |
polardb-2.4.0_standard_xcluster8.4.20-20260331 |
| StorageType |
string |
No |
The storage type.
|
cloud_auto |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DBInstanceName |
string |
The name of the created instance. |
pxc-********* |
| RequestId |
string |
The request ID. |
9B2F3840-5C98-475C-B269-2D5C3A31797C |
| OrderId |
string |
The order ID. |
12345 |
Examples
Success response
JSON format
{
"DBInstanceName": "pxc-*********",
"RequestId": "9B2F3840-5C98-475C-B269-2D5C3A31797C",
"OrderId": "12345"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.