CreateDBInstance
Create an AnalyticDB for PostgreSQL instance.
Operation description
Before you call this operation, review the billing methods and pricing for AnalyticDB for PostgreSQL.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:CreateDBInstance |
create |
*DBInstance
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region for the instance. Note
You can call the DescribeRegions operation to query the IDs of available regions. |
cn-hangzhou |
| ZoneId |
string |
Yes |
The ID of the zone for the instance. Note
You can call the DescribeRegions operation to query the IDs of available zones. |
cn-hangzhou-i |
| EngineVersion |
string |
Yes |
The database engine version. Valid values:
|
6.0 |
| Engine |
string |
Yes |
The database engine. Set the value to gpdb. |
gpdb |
| DBInstanceClass |
string |
No |
The instance type. For more information, see the description of the Note
This parameter is required for instances in reserved storage mode. |
gpdb.group.segsdx1 |
| DBInstanceGroupCount |
string |
No |
The number of compute groups. Valid values: 2, 4, 8, 12, 16, 24, 32, 64, 96, and 128. Note
This parameter is required for instances in reserved storage mode. |
2 |
| DBInstanceDescription |
string |
No |
The instance description. |
test |
| SecurityIPList |
string |
No |
The IP address whitelist for the instance. A value of 127.0.0.1 blocks all external access. After you create the instance, you can call the ModifySecurityIps operation to modify the IP address whitelist. |
127.0.0.1 |
| PayType |
string |
No |
The billing method for the instance. Valid values:
Note
|
Prepaid |
| Period |
string |
No |
The unit of the subscription duration. Valid values:
Note
This parameter is required for subscription instances. |
Month |
| UsedTime |
string |
No |
The subscription duration. Valid values:
Note
This parameter is required for subscription instances. |
1 |
| ClientToken |
string |
No |
A client token used to ensure the idempotence of the request. For more information, see How to ensure idempotence. |
0c593ea1-3bea-11e9-b96b-88********** |
| InstanceNetworkType |
string |
No |
The instance network type. Set the value to VPC. Note
|
VPC |
| VPCId |
string |
No |
The VPC ID. Note
|
vpc-bp19ame5m1r3oejns**** |
| VSwitchId |
string |
No |
The vSwitch ID. Note
|
vsw-bp1cpq8mr64paltkb**** |
| PrivateIpAddress |
string |
No |
This parameter is deprecated. |
null |
| SegStorageType |
string |
No |
The storage type for the segment nodes. Only ESSDs are supported. Set the value to cloud_essd. Note
This parameter is required for instances in elastic storage mode. |
cloud_essd |
| SegDiskPerformanceLevel |
string |
No |
The performance level of the ESSDs. Valid values:
Note
|
pl1 |
| InstanceSpec |
string |
No |
The instance type for the compute nodes. Valid values for a High-availability Edition instance in elastic storage mode:
Valid values for a Basic Edition instance in elastic storage mode:
Valid values for a serverless instance:
Note
This parameter is required for instances in elastic storage mode or serverless mode. |
2C16G |
| SegNodeNum |
string |
No |
The number of compute nodes. Valid values:
Note
This parameter is required for instances in elastic storage mode or serverless mode. |
4 |
| MasterNodeNum |
string |
No |
This parameter is deprecated. |
null |
| DBInstanceMode |
string |
Yes |
The instance resource mode. Valid values:
Note
This parameter is required. |
StorageElastic |
| StorageType |
string |
No |
This parameter is deprecated. |
null |
| DBInstanceCategory |
string |
No |
The instance edition. Valid values:
Note
This parameter is required for instances in elastic storage mode. |
HighAvailability |
| ResourceGroupId |
string |
No |
The ID of the resource group for the instance. |
rg-bp67acfmxazb4p**** |
| StorageSize |
integer |
No |
The storage capacity for the instance, in GB. Valid values: 50 to 8000. Note
This parameter is required for instances in elastic storage mode. |
200 |
| CreateSampleData |
boolean |
No |
Specifies whether to load a sample dataset after the instance is created. Valid values:
Note
If this parameter is not specified, a sample dataset is not loaded. |
false |
| Tag |
array<object> |
No |
The tags to add to the instance. You can add up to 20 tags. |
|
|
object |
No |
The tags to add to the instance. You can add up to 20 tags. |
||
| Key |
string |
No |
The tag key. The following limits apply:
|
TestKey |
| Value |
string |
No |
The tag value. The following limits apply:
|
TestValue |
| ServerlessResource |
integer |
No |
The threshold for computing resources, in AnalyticDB Compute Units (ACUs). The value must be a multiple of 8, ranging from 8 to 32. The default value is 32. Note
This parameter is required only for serverless instances that use auto-scheduling. |
32 |
| IdleTime |
integer |
No |
The period of inactivity, in seconds, after which the instance is considered idle. Minimum value: 60. Default value: 600. Note
This parameter is required only for serverless instances that use auto-scheduling. |
600 |
| ServerlessMode |
string |
No |
The mode of the serverless instance. Valid values:
Note
|
Auto |
| EncryptionType |
string |
No |
The encryption type. Valid values:
Note
After cloud disk encryption is enabled, it cannot be disabled. |
CloudDisk |
| EncryptionKey |
string |
No |
The ID of the encryption key. Note
If |
0d2470df-da7b-4786-b981-88888888**** |
| VectorConfigurationStatus |
string |
No |
Specifies whether to enable vector engine optimization. Valid values:
Note
|
enabled |
| MasterCU |
integer |
No |
The resources for the coordinator node. Valid values:
Note
You are charged for coordinator node resources of 8 CUs or more. |
8 CU |
| SrcDbInstanceName |
string |
No |
The ID of the source instance to be cloned. Note
You can call the DescribeDBInstances operation to query the details of all AnalyticDB for PostgreSQL instances in the destination region, including instance IDs. |
gp-bp*************** |
| BackupId |
string |
No |
The ID of the backup set. Note
You can call the DescribeDataBackups operation to query the backup set IDs for the source instance. |
1111111111 |
| EnableSSL |
boolean |
No |
Specifies whether to enable SSL encryption. Valid values:
|
false |
| ProdType |
string |
No |
The product type. Valid values:
Note
If this parameter is not specified, the default value is standard. |
standard |
| DeployMode |
string |
No |
The deployment mode. Valid values:
Note
|
single |
| StandbyZoneId |
string |
No |
The ID of the standby zone. Note
|
cn-hangzhou-j |
| StandbyVSwitchId |
string |
No |
The ID of the vSwitch in the standby zone. Note
|
vsw-bp1cpq8mr64paltkb**** |
| MasterAISpec |
string |
No |
Use this parameter to configure the coordinator node as a MasterAI node. Note
|
ADB.AIMedium.2 |
| AINodeSpecInfos |
array<object> |
No |
The AI node specifications. |
|
|
object |
No |
The AI node specifications. |
||
| AINodeNum |
string |
No |
The number of AI nodes. |
1 |
| AINodeSpec |
string |
No |
The specifications of the AI nodes. |
ADB.AIMedium.2 |
| CacheStorageSize |
string |
No |
The cache size for a serverless instance, in GB. |
800 |
DBInstanceClass parameter
AnalyticDB for PostgreSQL currently supports the following two instance types:
high-performance: The names of these instance types start with gpdb.group.segsdx. They provide superior I/O capabilities.
high-capacity: The names of these instance types start with gpdb.group.seghdx. They provide larger, more cost-effective storage.
Select an instance type based on your storage and compute requirements.
AnalyticDB for PostgreSQL also supports OSS-based external tables. You can use gzip to compress data in external storage. To further reduce storage costs, you can store data not required for real-time computing there.
The following table lists the specifications for high-performance instances:
Specification |
CPU |
Memory |
Storage |
gpdb.group.segsdx1 |
1 Core |
8 GB |
80 GB SSD |
gpdb.group.segsdx2 |
2 Cores |
16 GB |
160 GB SSD |
gpdb.group.segsdx16 |
16 Cores |
128 GB |
1.28 TB SSD |
The following table lists the specifications for high-capacity instances:
Specification |
CPU |
Memory |
Storage |
gpdb.group.seghdx4 |
4 Cores |
32 GB |
2 TB HDD |
gpdb.group.seghdx36 |
36 Cores |
288 GB |
18 TB HDD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5414A4E5-4C36-4461-95FC-************ |
| DBInstanceId |
string |
The instance ID. |
gp-bp12ga6v69h86**** |
| Port |
string |
This parameter is deprecated and is no longer returned. You can call the DescribeDBInstanceAttribute operation to query the port number of the instance. |
3432 |
| ConnectionString |
string |
This parameter is deprecated and is no longer returned. You can call the DescribeDBInstanceAttribute operation to query the connection string of the instance. |
gp-bp12ga6v69h86****.gpdb.rds.aliyuncs.com |
| OrderId |
string |
The order ID. |
111111111111 |
Examples
Success response
JSON format
{
"RequestId": "5414A4E5-4C36-4461-95FC-************",
"DBInstanceId": "gp-bp12ga6v69h86****",
"Port": "3432",
"ConnectionString": "gp-bp12ga6v69h86****.gpdb.rds.aliyuncs.com",
"OrderId": "111111111111"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.