Creates a dedicated cluster.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. See Region IDs. |
cn-hangzhou |
| Engine |
string |
Yes |
The database engine of the dedicated cluster. Valid values:
|
MySQL |
| CpuAllocationRatio |
integer |
No |
The CPU overcommit ratio of the dedicated cluster. Note
Unit: %. Valid values: 100 to 300. Default: 200, meaning allocated CPU is twice the actual CPU to maximize utilization. |
200 |
| MemAllocationRatio |
integer |
No |
The maximum memory usage of each host in the dedicated cluster. Note
Unit: %. Valid values: 0 to 100. Default: 100. |
100 |
| DiskAllocationRatio |
integer |
No |
The storage overcommit ratio of the dedicated cluster. Note
Unit: %. Valid values: 100 to 300. Default: 200, meaning allocated storage is twice the actual storage to maximize usage. Not applicable to SQL Server clusters. |
200 |
| AllocationPolicy |
string |
No |
The resource allocation policy for the dedicated cluster. Valid values:
|
Evenly |
| VPCId |
string |
Yes |
The VPC ID. Find this in the VPC console under VPCs. |
vpc-t4n7v5m6icc0a4314**** |
| HostReplacePolicy |
string |
No |
The host failure handling policy. Valid values:
Note
When you create a dedicated cluster that runs MySQL, you can select a policy based on your business requirements. Other database engines use Auto. |
Auto |
| ClientToken |
string |
Yes |
The client token for idempotent requests. Must be unique across requests, contain only ASCII characters, and not exceed 64 characters. |
ETnLKlblzczshOTUbOCz******* |
| OpenPermission |
integer |
No |
Specifies whether to grant host OS permissions. Valid values:
Note
Configurable only for MySQL or SQL Server clusters. Other database engines default to 0. Required to be 1 for SQL Server clusters. |
1 |
| DedicatedHostGroupDesc |
string |
No |
The dedicated cluster name. Must be 1 to 64 characters, start with a letter, and can contain letters, 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 dedicated cluster ID. |
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.