Creates 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 of the instance. |
cn-hangzhou |
| PayType |
string |
Yes |
The billing method of the instance. Valid values:
|
PREPAY |
| DBNodeCount |
integer |
No |
The number of nodes in the instance. Valid values:
|
3 |
| DBNodeClass |
string |
No |
Required when you create a Standard Edition instance. Not required for an Enterprise Edition instance. Local disk specifications for Standard Edition:
Cloud disk specifications for Standard Edition:
|
polarx.x4.2xlarge.2d |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You must specify a unique token for each request. |
xxxxxx-xxx |
| NetworkType |
string |
No |
The network type of the instance. 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. This parameter is required when the billing method is set to subscription. Note
If Period is set to Year, valid values are 1, 2, and 3. |
1 |
| Period |
string |
No |
The billing cycle. Valid values for subscription instances: Year and Month. Default value for pay-as-you-go instances: Hour. |
Month |
| ResourceGroupId |
string |
No |
The resource group ID. This parameter is not supported and can be left empty. |
null |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Default value: true. Valid values:
|
true |
| EngineVersion |
string |
Yes |
The MySQL DPI engine version. Valid values: 5.7 and 8.0. |
5.7 |
| IsReadDBInstance |
boolean |
No |
Specifies whether the instance is a read-only instance. Valid values:
|
false |
| PrimaryDBInstanceName |
string |
No |
The name of the primary instance. This parameter is required if the instance is a read-only instance. |
pxc-********* |
| TopologyType |
string |
Yes |
The topology type. Valid values:
|
3azones |
| PrimaryZone |
string |
No |
The primary zone. |
cn-shenzhen-e |
| SecondaryZone |
string |
No |
The secondary zone. |
cn-shenzhen-a |
| TertiaryZone |
string |
No |
The third active zone in a Three-zone deployment. |
cn-shenzhen-e |
| ZoneId |
string |
No |
The zone of the instance. |
cn-hangzhou-a |
| CnClass |
string |
No |
The specifications of compute nodes. Required when you create an Enterprise Edition instance. Not required for a Standard Edition instance. Local node specifications for Enterprise Edition:
Cloud node specifications for Enterprise Edition:
|
polarx.x4.medium.2e |
| DnClass |
string |
No |
The specifications of storage nodes. Required when you create an Enterprise Edition instance. Not required for a Standard Edition instance. Local node specifications for Enterprise Edition:
Cloud node specifications for Enterprise Edition:
|
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 column store read-only instance. |
true |
| Series |
string |
No |
The edition of the instance. Valid values:
|
enterprise |
| DnStorageSpace |
string |
No |
The disk space of the storage nodes. |
1500 |
| ExtraParams |
object |
No |
The extra parameters. |
|
|
string |
No |
The extra parameters. |
xxxx |
|
| Description |
string |
No |
The description of the database. |
ods_api_apidata_mobilegame_pay_api_di |
| OriginMinorVersion |
string |
No |
The minor engine version. This parameter is generally not required. |
polardb-2.4.0_standard_xcluster8.4.20-20260331 |
| StorageType |
string |
No |
The storage type. Valid values:
|
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.