Creates a dedicated cluster.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| cddc:CreateDedicatedHostGroup | create | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID. For more information, 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 value: 200, which specifies that the total amount of CPU resources allocated to all instances is twice the amount of actual CPU resources. This helps you maximize CPU utilization.
| 200 |
| MemAllocationRatio | integer | No | The maximum memory usage of each host in the dedicated cluster. Note
Unit: %. Valid values: 0 to 100. Default value: 100.
| 100 |
| DiskAllocationRatio | integer | No | The storage overcommit ratio of the dedicated cluster. Note
Unit: %. Valid values: 100 to 300. Default value: 200, which specifies that the total amount of storage resources allocated to all instances is twice the amount of actual storage resources. This helps you maximize storage usage. This parameter does not take effect for dedicated clusters that run SQL Server.
| 200 |
| AllocationPolicy | string | No | The policy that is used to allocate resources in the dedicated cluster. Valid values:
| Evenly |
| VPCId | string | Yes | The ID of the virtual private cloud (VPC) where you want to create the dedicated cluster. You can log on to the VPC console and click VPCs in the left-side navigation pane to view the VPC ID. | vpc-t4n7v5m6icc0a4314**** |
| HostReplacePolicy | string | No | The policy that is used to handle host failures. Valid values:
Note
When you create a dedicated cluster that runs MySQL, you can select a policy based on your business requirements. For dedicated clusters that run other database engines, the default value Auto is used.
| Auto |
| ClientToken | string | Yes | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. | ETnLKlblzczshOTUbOCz******* |
| OpenPermission | integer | No | Specifies whether to grant the host OS permissions. Valid values:
Note
When you create a dedicated cluster that runs MySQL or SQL Server, you can grant the host OS permissions based on your business requirements. For dedicated clusters that run other database engines, the default value 0 is used. When you create an ApsaraDB MyBase for SQL Server dedicated cluster, you must set this parameter to 1.
| 1 |
| DedicatedHostGroupDesc | string | No | The name of the dedicated cluster. The name must be 1 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter. | mysqlcluster |
Response parameters
Examples
Sample success responses
JSONformat
{
"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. |
For a list of error codes, visit the Service error codes.
