Creates a dedicated cluster.
Try it now
Test
RAM authorization
|
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 |
| 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 |
| 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:
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:
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.