All Products
Search
Document Center

ApsaraDB for MyBase:DescribeDedicatedHostGroups

Last Updated:Jan 14, 2026

Queries the information about hosts in 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:DescribeDedicatedHostGroupsget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID. For more information, see Region IDs.

cn-hangzhou
DedicatedHostGroupIdstringNo

The dedicated cluster ID. You can log on to the ApsaraDB for MyBase console and go to the Dedicated Clusters page to view the dedicated cluster ID.

  • If you leave this parameter empty, the information about all hosts within the region is returned.
  • If you specify a dedicated cluster ID, the information about all hosts in the dedicated cluster within the region is returned.
dhg-872yt76ann7e****
ImageCategorystringNo

The image of the host. Valid values:

  • WindowsWithMssqlEntAlwaysonLicense: SQL

Server Cluster Edition.

  • WindowsWithMssqlStdLicense: SQL

Server Standard Edition.

  • WindowsWithMssqlEntLicense: SQL

Server Enterprise Edition.

  • WindowsWithMssqlWebLicense: SQL

Server Web Edition.

  • AliLinux: other images.
AliLinux
EnginestringNo

The database engine used to filter hosts. Valid values:

  • MySQL

  • SQL Server

  • PosgreSQL

  • Redis

MySQL

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D6E068C3-25BC-455A-85FE-45F0B22E12SD
DedicatedHostGroupsarray<object>

The queried hosts.

DedicatedHostGroupsobject
DiskAllocateRationfloat

The disk allocation rate of the host.

100
DeployTypestring

The instance deployment mode of the host.

origin
CreateTimestring

The time when the host was created.

2021-05-07T02:00Z
DedicatedHostCountGroupByHostTypeobject

The number of hosts by storage type.

2
Textstring

The description of the host.

mysql-host
DedicatedHostGroupIdstring

The ID of the dedicated cluster in which the host is created.

dhg-34639v1jt4y4****
DiskUtilityfloat

The disk usage of the host.

0
MemUsedAmountfloat

The amount of used memory.

0
MemAllocatedAmountfloat

The amount of memory allocated to the host.

0
CpuAllocationRatiointeger

The CPU overcommit ratio of the host.

200
MemAllocationRatiointeger

The memory overcommit ratio of the host.

100
MemAllocateRationfloat

The memory allocation ratio of the host.

9.38
MemUtilityfloat

The memory usage.

0
CpuAllocatedAmountfloat

The number of CPU cores allocated to the host.

3
DedicatedHostGroupDescstring

The name of the dedicated cluster in which the host is created.

dhg-34639v1jt4y4****
CpuAllocateRationfloat

The CPU allocation ratio of the host.

9.38
InstanceNumberinteger

The number of instances deployed on the host.

2
OpenPermissionstring

Indicates whether the host OS permissions are granted. Valid values:

  • 0 or 1: no.
  • 2 or 3 (default): yes.
Note When you create a dedicated cluster that runs MySQL, SQL Server, or PostgreSQL, you can grant the host OS permissions based on your business requirements.
1
VPCIdstring

The virtual private cloud (VPC) ID of the dedicated cluster in which the host is created.

vpc-bp1ov7as4yvz4kxei****
DiskAllocatedAmountfloat

The disk storage allocated to the host.

1024
HostNumberinteger

The number of hosts.

2
DiskUsedAmountfloat

The disk storage used by the host.

1024
AllocationPolicystring

The policy that is used to allocate host resources. 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.
Evenly
Enginestring

The database engine of the host.

MySQL
DiskAllocationRatiointeger

The storage overcommit ratio of the host.

200
BastionInstanceIdstring

The ID of the primary instance deployed on the host. If no primary instance is deployed on the host, an empty string is returned.

rm-bp15rszyxs4t3****
HostReplacePolicystring

The policy that is used for host troubleshooting. Valid values:

  • Auto (default): The system automatically replaces faulty hosts.
  • Manual: You must manually replace faulty hosts.
Auto
ZoneIDListarray
ZoneIDListstring

The zones where the hosts are created.

cn-hangzhou-f

Examples

Sample success responses

JSONformat

{
  "RequestId": "D6E068C3-25BC-455A-85FE-45F0B22E12SD",
  "DedicatedHostGroups": {
    "DedicatedHostGroups": [
      {
        "DiskAllocateRation": 100,
        "DeployType": "origin",
        "CreateTime": "2021-05-07T02:00Z",
        "DedicatedHostCountGroupByHostType": 2,
        "Text": "mysql-host",
        "DedicatedHostGroupId": " dhg-34639v1jt4y4****",
        "DiskUtility": 0,
        "MemUsedAmount": 0,
        "MemAllocatedAmount": 0,
        "CpuAllocationRatio": 200,
        "MemAllocationRatio": 100,
        "MemAllocateRation": 9.38,
        "MemUtility": 0,
        "CpuAllocatedAmount": 3,
        "DedicatedHostGroupDesc": " dhg-34639v1jt4y4****",
        "CpuAllocateRation": 9.38,
        "InstanceNumber": 2,
        "OpenPermission": 1,
        "VPCId": "vpc-bp1ov7as4yvz4kxei****",
        "DiskAllocatedAmount": 1024,
        "HostNumber": 2,
        "DiskUsedAmount": 1024,
        "AllocationPolicy": "Evenly",
        "Engine": "MySQL",
        "DiskAllocationRatio": 200,
        "BastionInstanceId": "rm-bp15rszyxs4t3****",
        "HostReplacePolicy": "Auto",
        "ZoneIDList": {
          "ZoneIDList": [
            "cn-hangzhou-f"
          ]
        },
        "Category": ""
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
403Permission.NotSupportYou are not authorized to perform this action.You are not authorized to perform the action.

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

Change history

Change timeSummary of changesOperation
No change history