CreateDBCluster

Updated at:
Copy as MD

Creates a Data Warehouse Edition cluster.

Operation description

Precautions

  • After a cluster is created, you are billed based on the cluster specifications that you selected. For more information about the billable items and pricing of Data Warehouse Edition clusters, see Billable items of Data Warehouse Edition and Pricing of Data Warehouse Edition.

  • Data Warehouse Edition is no longer available for new purchases. You can purchase Enterprise Edition or Basic Edition. Enterprise Edition, Basic Edition, and Data Lakehouse Edition share the same features. For more information, see Product editions.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

adb:CreateDBCluster

create

DBCluster

acs:adb:{#regionId}:{#accountId}:dbcluster/*

  • adb:DiskEncryption
  • adb:EnableSSL
None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

Note

You can call the DescribeRegions operation to query the region ID.

cn-hangzhou

ZoneId

string

No

The zone ID.

Note

You can call the DescribeRegions operation to query the zone ID.

cn-hangzhou-h

DBClusterVersion

string

Yes

The version of the AnalyticDB for MySQL Data Warehouse Edition cluster. Valid value: 3.0.

3.0

DBClusterCategory

string

Yes

The edition. Valid values:

  • Cluster: Cluster Edition in reserved mode.

Note

Cluster Edition in reserved mode is available only in regions in the Chinese mainland and the Singapore region. In the Singapore region, Cluster Edition in reserved mode can be purchased only on a pay-as-you-go basis.

  • MixedStorage: Cluster Edition in elastic mode (new version).

Note

If DBClusterCategory is set to Cluster, the Mode parameter must be set to Reserver. If DBClusterCategory is set to MixedStorage, the Mode parameter must be set to Flexible. Otherwise, the cluster fails to be created.

Cluster

DBClusterClass

string

No

The cluster specifications. Valid values:

  • C8

  • C32

Note

This parameter is required when Mode is set to Reserver (reserved mode).

C8

DBNodeGroupCount

string

No

The number of node groups. Valid values: 1 to 200. The value must be an integer.

Note

This parameter is required when Mode is set to Reserver (reserved mode).

2

DBNodeStorage

string

No

The storage space of a node. Unit: GB. Valid values:

  • If the cluster specifications are C8, valid values are 100 to 1000.

  • If the cluster specifications are C32, valid values are 100 to 8000.

Note
  • This parameter is required when Mode is set to Reserver (reserved mode).

  • The step size is 100 GB for values less than or equal to 1000 GB, and 1000 GB for values greater than 1000 GB.

200

DBClusterNetworkType

string

Yes

The network type. Valid value: VPC.

VPC

DBClusterDescription

string

No

The description of the cluster.

  • It cannot start with http:// or https://.

  • It must be 2 to 256 characters in length.

test

PayType

string

Yes

The billing method. Valid values:

  • Postpaid: pay-as-you-go.

  • Prepaid: subscription.

Postpaid

Period

string

No

The subscription period of the subscription cluster. Valid values:

  • Year: yearly subscription.

  • Month: monthly subscription.

Note

This parameter is required when PayType is set to Prepaid (subscription).

Year

UsedTime

string

No

The subscription duration of the subscription cluster. Valid values:

  • If Period is set to Year, valid values are 1, 2, 3, and 5. The value must be an integer.

  • If Period is set to Month, valid values are 1 to 11. The value must be an integer.

Note
  • This parameter is required when PayType is set to Prepaid (subscription).

  • A longer subscription duration provides a larger discount. The actual price of a one-year subscription is more cost-effective than that of a 10-month or 11-month subscription.

1

VPCId

string

No

The VPC ID.

vpc-bp1at5ze0t5u3xtqn****

VSwitchId

string

No

The vSwitch ID.

vsw-bp1aadw9k19x6cis9****

ClientToken

string

No

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token is case-sensitive and can be up to 64 ASCII characters in length.

123e4567-e89b-12d3-a456-t7241****

ExecutorCount

string

No

The reserved parameter. This parameter is not applicable.

None

ResourceGroupId

string

No

The resource group ID.

rg-4690g37929****

Tag

array<object>

No

The list of tags.

object

No

Key

string

No

The tag key. You can filter the cluster list by tag. You can specify up to 20 tag key-value pairs. The number n in each tag key-value pair must be different and must be a consecutive integer starting from 1. The value of Tag.N.Key corresponds to Tag.N.Value.

Note

The tag key can be up to 64 characters in length and cannot start with aliyun, acs:, http://, or https://.

tag1

Value

string

No

The tag value. You can filter the cluster list by tag. You can specify up to 20 tag key-value pairs. The number n in each tag key-value pair must be different and must be a consecutive integer starting from 1. The value of Tag.N.Key corresponds to Tag.N.Value.

Note

The tag value can be up to 64 characters in length and cannot start with aliyun, acs:, http://, or https://.

test1

Mode

string

No

The mode. Valid values:

  • Reserver: reserved mode.

  • Flexible: elastic mode.

Reserver

StorageResource

string

No

The reserved parameter. This parameter is not applicable.

None

StorageType

string

No

The reserved parameter. This parameter is not applicable.

None

ComputeResource

string

No

The compute resources that are used for data computing. Increasing compute resources can accelerate data queries. Compute resources are divided into Cluster Edition and Single-node Edition.

  • Cluster Edition provides specifications such as 16 cores and 64 GB memory (Cluster Edition), 24 cores and 96 GB memory (Cluster Edition), and 32 cores or more. Cluster Edition supports resource pool isolation, time-based elastic scaling, and tiered storage for hot and cold data.

  • Single-node Edition provides specifications such as 8 cores and 32 GB memory, and 16 cores and 64 GB memory (Single-node Edition). Single-node Edition does not provide SLA commitments and requires a long time for fault recovery (approximately 4 to 8 hours). Single-node Edition is not recommended for production environments.

Note
  • You can call the DescribeAvailableResource operation to query the available compute resources in a specified region.

  • This parameter is required when Mode is set to Flexible (elastic mode).

32Core128GBNEW

RestoreType

string

No

The reserved parameter. This parameter is not applicable.

None

SourceDBInstanceName

string

No

The reserved parameter. This parameter is not applicable.

None

BackupSetID

string

No

The reserved parameter. This parameter is not applicable.

None

RestoreTime

string

No

The reserved parameter. This parameter is not applicable.

None

ElasticIOResource

string

No

The elastic I/O resource (EIU). For more information, see EIU overview.

0

DiskEncryption

boolean

No

Specifies whether to enable cloud disk encryption. Valid values:

  • true: yes.

  • false: no.

true

KmsId

string

No

The KMS ID that is used for cloud disk encryption. This parameter takes effect only when DiskEncryption is set to true.

xxxxxxxx-xxxx-xxxx-xxxx-xxxx

EnableSSL

boolean

No

Specifies whether to enable SSL encryption. Valid values:

  • true: enables SSL encryption.

  • false: disables SSL encryption.

true

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

1AD222E9-E606-4A42-BF6D-8A4442913CEF

ResourceGroupId

string

The resource group ID.

rg-4690g37929****

DBClusterId

string

The ID of the Data Warehouse Edition cluster.

am-bp1r053byu48p****

OrderId

string

The order ID.

202353278****

Examples

Success response

JSON format

{
  "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
  "ResourceGroupId": "rg-4690g37929****",
  "DBClusterId": "am-bp1r053byu48p****",
  "OrderId": "202353278****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.