Creates an AnalyticDB for PostgreSQL instance.
Operation Description
You can call this operation when you need to create AnalyticDB for PostgreSQL instances to meet the requirements of new applications or services.
Before you call this operation, make sure that you are familiar with the billing of AnalyticDB for PostgreSQL instances. For more information, see Billing methods and AnalyticDB for PostgreSQL pricing.
Limits
You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds a limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limits when you call this operation.
debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
gpdb:CreateDBInstance | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ZoneId | string | Yes | The zone ID of the read-only instance. You can call the DescribeRegions operation to query the most recent zone list. | cn-hangzhou-i |
EngineVersion | string | Yes | The version of the database engine. Valid values:
| 6.0 |
Engine | string | Yes | The database engine of the instance. Set the value to gpdb. | gpdb |
DBInstanceClass | string | No | The instance type of the instance. For information, see Instance types. Note
This parameter must be specified 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 must be specified when you create an instance in reserved storage mode.
| 2 |
DBInstanceDescription | string | No | The description of the instance. | test |
SecurityIPList | string | Yes | The IP address whitelist of the instance. A value of 127.0.0.1 specifies that no IP address is allowed for external access. You can call the ModifySecurityIps operation to modify the IP address whitelist after you create an instance. | 127.0.0.1 |
PayType | string | No | The billing method of the instance. Valid values:
Note
| Prepaid |
Period | string | No | The unit of the subscription duration. Valid values:
Note
This parameter must be specified when PayType is set to Prepaid.
| Month |
UsedTime | string | No | The subscription duration.
Note
This parameter must be specified when PayType is set to Prepaid.
| 1 |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. For more information, see Ensure idempotence. | 0c593ea1-3bea-11e9-b96b-88********** |
InstanceNetworkType | string | No | The network type of the instance. Set the value to VPC. Note
| VPC |
VPCId | string | No | The VPC ID of the instance. Note
| vpc-bp******************* |
VSwitchId | string | No | The vSwitch ID of the instance. Note
| vsw-bp******************* |
PrivateIpAddress | string | No | This parameter is no longer used. | 1.1.1.* |
SegStorageType | string | No | The disk storage type of the instance. Only enhanced SSDs (ESSDs) are supported. Set the value to cloud_essd. Note
This parameter must be specified when you create an instance in elastic storage mode.
| cloud_essd |
SegDiskPerformanceLevel | string | No | The performance level of ESSDs. Valid values:
Note
| pl1 |
InstanceSpec | string | No | The specifications of compute nodes. Valid values for High-availability Edition instances in elastic storage mode:
Valid values for Basic Edition instances in elastic storage mode:
Valid values for instances in Serverless mode:
Note
This parameter must be specified when you create an instance in elastic storage mode or Serverless mode.
| 2C16G |
SegNodeNum | string | No | The number of compute nodes.
Note
This parameter must be specified when you create an instance in elastic storage mode or Serverless mode.
| 4 |
MasterNodeNum | string | No | The number of coordinator nodes. Valid values: 1 and 2. Note
If you do not specify this parameter, 1 is used.
| 1 |
DBInstanceMode | string | No | The resource type of the instance. Valid values:
Note
This parameter must be specified.
| StorageElastic |
StorageType | string | No | This parameter is no longer used. | null |
DBInstanceCategory | string | No | The edition of the instance. Valid values:
Note
This parameter must be specified when you create an instance in elastic storage mode.
| HighAvailability |
ResourceGroupId | string | No | The ID of the resource group to which the instance belongs. | rg-bp67acfmxazb4p**** |
StorageSize | long | No | The storage capacity of the instance. Unit: GB. Valid values: 50 to 6000. Note
This parameter must be specified when you create an instance in elastic storage mode.
| 200 |
CreateSampleData | boolean | No | Specifies whether to load a sample dataset after the instance is created. Valid values:
Note
If you do not specify this parameter, no sample dataset is loaded.
| false |
Tag | object [] | No | The list of tags. | |
Key | string | No | The key of tag N. Take note of the following requirements:
| TestKey |
Value | string | No | The value of tag N. Take note of the following requirements:
| TestValue |
ServerlessResource | integer | No | The threshold of computing resources. Unit: AnalyticDB compute unit (ACU). Valid values: 8 to 32. The value must be in increments of 8 ACUs. Default value: 32. Note
This parameter must be specified only when you create an instance in automatic Serverless mode.
| 32 |
IdleTime | integer | No | The wait time for the instance that has no traffic to become idle. Minimum value: 60. Default value: 600. Unit: seconds. Note
This parameter must be specified only when you create an instance in automatic Serverless mode.
| 600 |
ServerlessMode | string | No | The type of the Serverless mode. Valid values:
Note
This parameter must be specified only when you create an instance in Serverless mode.
| Auto |
EncryptionType | string | No | The encryption type. Valid values:
Note
Disk encryption cannot be disabled after it is enabled.
| CloudDisk |
EncryptionKey | string | No | The ID of the encryption key. Note
If EncryptionType is set to CloudDisk, you must specify an encryption key that resides in the same region as the cloud disk that is specified by EncryptionType. Otherwise, leave this parameter empty.
| 0d2470df-da7b-4786-b981-88888888**** |
VectorConfigurationStatus | string | No | Specifies whether to enable vector search engine optimization. Valid values:
Note
| enabled |
MasterCU | integer | No | The amount of coordinator node resources. Valid values:
Note
You are charged for coordinator node resources of more than 8 CUs.
| 8 CU |
SrcDbInstanceName | string | No | The ID of the source instance. Note
You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a 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 IDs of all backup sets in the instance.
| 1111111111 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "5414A4E5-4C36-4461-95FC-************",
"DBInstanceId": "gp-bp***************",
"Port": "5432",
"ConnectionString": "gp-bp***************.gpdb.rds.aliyuncs.com",
"OrderId": "111111111111"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2023-08-17 | The input parameters of the API operation change. | see changesets | ||||||
| ||||||||
2023-08-17 | The input parameters of the API operation change. | see changesets | ||||||
| ||||||||
2023-05-23 | The input parameters of the API operation change. | see changesets | ||||||
| ||||||||
2023-05-04 | The input parameters of the API operation change. | see changesets | ||||||
| ||||||||
2023-04-18 | The input parameters of the API operation change. | see changesets | ||||||
|