All Products
Search
Document Center

ApsaraDB for MyBase:CreateDedicatedHostGroup

Last Updated:Oct 26, 2026

Creates a dedicated cluster.

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

cddc:CreateDedicatedHostGroup

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID. For more information, see Regions and zones.

cn-hangzhou

Engine

string

Yes

The database engine type. Valid values:

  • MySQL

  • SQL Server

MySQL

CpuAllocationRatio

integer

No

The CPU overcommit ratio of the dedicated cluster.

Note

Valid values: 100% to 300%. Default value: 200%. A value of 200% indicates that the total CPU resources of all instances can be twice the actual CPU resources to maximize resource utilization.

200

MemAllocationRatio

integer

No

The maximum memory usage of each host in the dedicated cluster.

Note

Valid values: 0% to 100%. Default value: 100%.

100

DiskAllocationRatio

integer

No

The storage overcommit ratio of the dedicated cluster.

Note

Valid values: 100% to 300%. Default value: 200%. A value of 200% indicates that the total storage resources of all instances can be twice the actual storage resources to maximize resource utilization. This parameter does not take effect for SQL Server.

200

AllocationPolicy

string

No

The resource allocation policy for the dedicated cluster. Valid values:

  • Evenly (default): balanced allocation. This policy maximizes system stability by preferentially allocating resources from hosts that have no allocated resources or fewer allocated resources.

  • Intensively: compact allocation. This policy maximizes resource utilization by preferentially allocating resources from hosts that were created earlier and have more allocated resources.

Evenly

VPCId

string

Yes

The ID of the virtual private cloud (VPC) to which the dedicated cluster belongs. You can view the VPC ID by clicking VPCs in the left-side navigation pane of the VPC console.

vpc-t4n7v5m6icc0a4314****

HostReplacePolicy

string

No

The host replacement policy when a host fails. Valid values:

  • Auto (default): automatically replaces the host.

  • Manual: manually replaces the host.

Note

You can select a host replacement policy based on your business requirements only when you create a dedicated cluster that runs the MySQL engine. For other engines, use the default value Auto.

Auto

ClientToken

string

Yes

The client token that is used to ensure the idempotence of the request and prevent duplicate submissions. You can use the client to generate the value, which can contain only ASCII characters and cannot exceed 64 characters in length.

ETnLKlblzczshOTUbOCz*******

OpenPermission

integer

No

Specifies whether to grant the operating system (OS) permissions of the hosts in the dedicated cluster. Valid values:

  • 0: disables the feature.

  • 1: enables the feature.

Note

You can specify whether to grant the OS permissions of the hosts based on your business requirements only when you create a dedicated cluster that runs the MySQL or SQL Server engine. This feature is not available for other engines, and the default value is 0. You must set this parameter to 1 for SQL Server.

1

DedicatedHostGroupDesc

string

No

The name of the dedicated cluster. The name must be 1 to 64 characters in length. It must start with a letter or a Chinese character and can contain digits, underscores (_), and hyphens (-).

mysqlcluster

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

C6592723-09E1-4248-A78E-12AB00D7A79D

DedicatedHostGroupId

string

The ID of the dedicated cluster.

dhg-7a9********

Examples

Success response

JSON format

{
  "RequestId": "C6592723-09E1-4248-A78E-12AB00D7A79D",
  "DedicatedHostGroupId": "dhg-7a9********"
}

Error codes

HTTP status code

Error code

Error message

Description

403 Permission.NotSupport You are not authorized to perform this action. You are not authorized to perform the action.
404 ClustersTemplateNotFound Key account cluster is not supported for the region. Key account cluster is not supported for the region.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.