You can call this operation to create an AnalyticDB for PostgreSQL instance that uses Elastic Compute Service (ECS) instances.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateECSDBInstance

The operation that you want to perform. Set the value to CreateECSDBInstance.

ClientToken String Yes 0c593ea1-3bea-11e9-b96b-88e9fe637760

The client token that is used to ensure the idempotence of the request.

Engine String Yes gpdb

The database engine. Set the value to gpdb.

EngineVersion String Yes 4.3

The version of the database engine. Set the value to 4.3.

InstanceSpec String Yes

The instance type. For more information, see Instance types.

RegionId String Yes cn-hangzhou

The ID of the region.

SecurityIPList String Yes

The IP addresses that are allowed to access the instance. Default value:

SegNodeNum Integer Yes 4

The number of nodes.

SegStorageType String Yes ESSD

The type of disks.

StorageSize Integer Yes 200

The storage capacity. Unit: GB.

ZoneId String Yes cn-hangzhou

The ID of the zone. For example, cn-hangzhou-d. You can call DescribeRegions to query available zones.

DBInstanceDescription String No gp-xxxxxxxxxx

The description of the instance. The description cannot exceed 256 characters in length.

PayType String No Prepaid

The billing method of the instance. Valid values:

  • Postpaid: pay-as-you-go
  • Prepaid: subscription
Period String No Month

The unit of the subscription period.

UsedTime String No 1

The subscription period.

InstanceNetworkType String No VPC

The network type of the instance. Set the value to VPC.

VPCId String No vpc-xxxxxxxxxx

If you set InstanceNetworkType to VPC, you must also specify the VPCId parameter. The specified region of the VPC must be the same as the RegionId value.

VSwitchId String No vsw-xxxxxxxxx

If you set InstanceNetworkType to VPC, you must also specify the VSwitchId parameter. The specified zone of the VSwitch must be the same as the ZoneId value.

PrivateIpAddress String No

The private IP address of the instance.

Response parameters

Parameter Type Example Description
ConnectionString String

The endpoint of the instance.

DBInstanceId String gp-xxxxxxxxx

The ID of the instance.

OrderId String xxxxxxxx

The ID of the order.

Port String 3432

The port used to connect to the instance.

RequestId String 5414A4E5-4C36-4461-95FC-23757A20B5F8

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=CreateECSDBInstance
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.