All Products
Search
Document Center

ApsaraDB for MyBase:ModifyDedicatedHostGroupAttribute

Last Updated:Jan 14, 2026

Modifies configurations such as the CPU overcommit ratio, memory usage, storage overcommit ratio, and resource allocation policy for a dedicated cluster.

Operation description

For more information, see Manage dedicated clusters.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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 Resources is 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.
OperationAccess levelResource typeCondition keyAssociated operation
cddc:ModifyDedicatedHostGroupAttributeupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID of the dedicated cluster. For more information, see Region IDs.

cn-hangzhou
DedicatedHostGroupIdstringYes

The dedicated cluster ID.

Note You can log on to the ApsaraDB for MyBase console and go to the Dedicated Clusters page to view the dedicated cluster ID.
dhg-h5i4p331f509****
DedicatedHostGroupDescstringNo

The name of the dedicated cluster.

mysql-cluster
CpuAllocationRatiointegerNo

The CPU overcommit ratio of the dedicated cluster. Valid values: 100 to 300.

Note If you change the CPU overcommit ratio to 300%, the total CPU resources of all instances are three times the actual CPU resources. This maximizes the use of CPU resources.
300
MemAllocationRatiointegerNo

The maximum memory usage of each host in the dedicated cluster. Valid values: 0 to 100.

100
DiskAllocationRatiointegerNo

The storage overcommit ratio of the dedicated cluster. Valid values: 100 to 200.

200
AllocationPolicystringNo

The policy that is used to allocate resources in the dedicated cluster. Valid values:

  • Evenly: The system preferentially deploys database instances on the hosts where no resources or fewer resources are allocated. This maximizes system stability.
  • Intensively: The system preferentially deploys database instances on the hosts that are created earlier and have more allocated resources. This maximizes resource utilization.
Intensively
HostReplacePolicystringNo

The policy that is used to handle host failures. Valid values:

  • Auto: The system automatically replaces faulty hosts.
  • Manual: You must manually replace faulty hosts.
Note You can select a policy based on your business requirements only for dedicated clusters that run MySQL. For dedicated clusters that run other database engines, the default value Auto is used.
Auto
OpenPermissionstringNo

Specifies whether to grant the host OS permissions. Valid values:

  • 0: no.
  • 1: yes.
Note You can grant the host OS permissions based on your business requirements only when you create dedicated clusters that run MySQL, SQL Server, or PostgreSQL. For dedicated clusters that run other database engines, the default value 0 is used.
0

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D6E068C3-25BC-455A-85FE-45F0B22EEDAS

Examples

Sample success responses

JSONformat

{
  "RequestId": "D6E068C3-25BC-455A-85FE-45F0B22EEDAS"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidUserId.NotSupportThe userid have no permission.-
403Forbidden.RAMUser not authorized to operate on the specified resource, or this API does not support RAM.The user is not authorized to operate on the specified resource.
404InvalidDedicatedHostGroup.NotFoundThe specified cluster does not exist.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history