Create an AnalyticDB for PostgreSQL instance.
Operation description
Before using this API, review the Pricing Model 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 Region ID. Note
You can call the DescribeRegions operation to query available regions. |
cn-hangzhou |
| ZoneId |
string |
Yes |
The Zone ID. Note
You can call the DescribeRegions operation to query available zones. |
cn-hangzhou-i |
| EngineVersion |
string |
Yes |
The engine version. Valid values:
|
6.0 |
| Engine |
string |
Yes |
The database engine. Set the value to |
gpdb |
| DBInstanceClass |
string |
No |
The instance type. For information about instance types, see Instance types. Note
This parameter is required when you create an instance 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 when you create an instance in Reserved Storage Mode. |
2 |
| DBInstanceDescription |
string |
No |
The description of the instance. |
test |
| SecurityIPList |
string |
No |
The IP Whitelist of the instance. A value of |
127.0.0.1 |
| PayType |
string |
No |
The billing method. Valid values:
Note
|
Prepaid |
| Period |
string |
No |
The unit for the subscription duration. Valid values:
Note
This parameter is required if you set |
Month |
| UsedTime |
string |
No |
The subscription duration. Valid values:
Note
This parameter is required if you set |
1 |
| ClientToken |
string |
No |
A client token that ensures request idempotence. For more information, see How to ensure idempotence. |
0c593ea1-3bea-11e9-b96b-88********** |
| InstanceNetworkType |
string |
No |
The network type of the instance. Set the value to Note
|
VPC |
| VPCId |
string |
No |
The ID of the Virtual Private Cloud (VPC). Note
|
vpc-bp19ame5m1r3oejns**** |
| VSwitchId |
string |
No |
The ID of the vSwitch. Note
|
vsw-bp1cpq8mr64paltkb**** |
| PrivateIpAddress |
string |
No |
This parameter is deprecated. |
null |
| SegStorageType |
string |
No |
The disk storage type. Set this to Note
This parameter is required when you create an instance in Storage-Elastic Mode. |
cloud_essd |
| SegDiskPerformanceLevel |
string |
No |
The performance level of the ESSD. Valid values:
Note
|
pl1 |
| InstanceSpec |
string |
No |
The compute node specifications. Valid values for a High-Availability Edition instance in Storage-Elastic Mode:
Valid values for a Basic Edition instance in Storage-Elastic Mode:
Valid values for a Serverless Mode instance:
Note
This parameter is required when you create an instance in Storage-Elastic Mode or Serverless Mode. |
2C16G |
| SegNodeNum |
string |
No |
The number of compute nodes. Valid values:
Note
This parameter is required when you create an instance in Storage-Elastic Mode or Serverless Mode. |
4 |
| MasterNodeNum |
string |
No |
This parameter is deprecated. |
null |
| DBInstanceMode |
string |
Yes |
The instance 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 when you create an instance in Storage-Elastic Mode. |
HighAvailability |
| ResourceGroupId |
string |
No |
The ID of the resource group for the instance. |
rg-bp67acfmxazb4p**** |
| StorageSize |
integer |
No |
The storage capacity of the instance. Unit: GB. The value can range from 50 to 6000. Note
This parameter is required when you create an instance in Storage-Elastic Mode. |
200 |
| CreateSampleData |
boolean |
No |
Indicates whether to load a sample dataset after the instance is created. Valid values:
Note
The default is |
false |
| Tag |
array<object> |
No |
The tags to add to the instance. You can add up to 20 tags. |
|
|
object |
No |
A tag. |
||
| 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 amount of computing resources in AnalyticDB Compute Units (ACUs). The value must be a multiple of 8, from 8 to 32. The default value is 32. Note
This parameter is required only for a Serverless instance that uses automatic scheduling. |
32 |
| IdleTime |
integer |
No |
The idle time in seconds before the instance is automatically paused. The minimum value is 60 and the default is 600. Note
This parameter is required only for a Serverless instance that uses automatic scheduling. |
600 |
| ServerlessMode |
string |
No |
The scheduling mode of the Serverless instance. Valid values:
Note
|
Auto |
| EncryptionType |
string |
No |
The encryption type. Valid values:
Note
After disk encryption is enabled, it cannot be disabled. |
CloudDisk |
| EncryptionKey |
string |
No |
The Key ID. Note
This parameter is required if |
0d2470df-da7b-4786-b981-88888888**** |
| VectorConfigurationStatus |
string |
No |
Indicates whether to enable vector engine optimization. Valid values:
Note
|
enabled |
| MasterCU |
integer |
No |
The coordinator node resources. Valid values:
Note
Charges apply for coordinator node resources of 8 CUs or more. |
8 CU |
| SrcDbInstanceName |
string |
No |
The ID of the source instance for cloning. Note
You can call the DescribeDBInstances operation to find the IDs of all AnalyticDB for PostgreSQL instances in a region. |
gp-bp*************** |
| BackupId |
string |
No |
The Backup Set ID. Note
Call the DescribeDataBackups operation to find the Backup Set IDs for an instance. |
1111111111 |
| EnableSSL |
boolean |
No |
Indicates whether SSL encryption is enabled. Valid values:
|
false |
| ProdType |
string |
No |
The product type. Valid values:
Note
The default value is |
standard |
| DeployMode |
string |
No |
The deployment mode. Valid values:
Note
|
single |
| StandbyZoneId |
string |
No |
The standby zone ID. Note
|
cn-hangzhou-j |
| StandbyVSwitchId |
string |
No |
The standby vSwitch ID. Note
|
vsw-bp1cpq8mr64paltkb**** |
| MasterAISpec |
string |
No |
The specifications of the MasterAI node. If you specify this parameter, the coordinator node is converted to a MasterAI node. Note
|
ADB.AIMedium.2 |
| AINodeSpecInfos |
array<object> |
No |
||
|
object |
No |
|||
| AINodeNum |
string |
No |
||
| AINodeSpec |
string |
No |
||
| CacheStorageSize |
string |
No |
DBInstanceClass parameter
AnalyticDB for PostgreSQL supports the following two instance types:
High-Performance: The specification names for this instance type start with gpdb.group.segsdx. This instance type provides enhanced I/O capabilities, delivering higher performance.
High-Capacity: The specification names for this instance type start with gpdb.group.seghdx. This instance type provides larger, more cost-effective storage.
When you select an instance type, consider your requirements for Storage Space and Compute Capacity.
AnalyticDB for PostgreSQL also supports External Table Extensions for Object Storage Service (OSS). You can use gzip to compress data in External Storage. You can further reduce Storage Costs by moving data that does not require real-time computation to External Storage.
The following table lists the specifications for High-Performance instances.
High-performance specification |
CPU |
Memory |
Storage space |
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.
High-capacity specification |
CPU |
Memory |
Storage space |
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 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 no longer returned. You can call the DescribeDBInstanceAttribute operation to query the endpoint 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.