All Products
Search
Document Center

ApsaraDB for MyBase:DescribeDedicatedHostGroups

Last Updated:Oct 26, 2026

Queries the host group information of a dedicated cluster.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cddc:DescribeDedicatedHostGroups

get

*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

DedicatedHostGroupId

string

No

The dedicated cluster ID. You can view the ID of the dedicated cluster in the cluster list of the ApsaraDB for MyBase console.

  • If this parameter is left empty, the information about all hosts in the region is returned by default.

  • If you specify a dedicated cluster ID, the information about all hosts in the cluster within the region is returned.

dhg-872yt76ann7e****

ImageCategory

string

No

The host image. Valid values:

  • WindowsWithMssqlEntAlwaysonLicense: SQL Server Cluster Edition

  • WindowsWithMssqlStdLicense: SQL Server Standard Edition

  • WindowsWithMssqlEntLicense: SQL Server Enterprise Edition

  • WindowsWithMssqlWebLicense: SQL Server Web Edition

  • AliLinux: other host images

AliLinux

Engine

string

No

Filters the host list by database engine type. Valid values:

  • MySQL

  • SQL Server

  • PostgreSQL

  • MySQL

    Response elements

    Element

    Type

    Description

    Example

    object

    RequestId

    string

    The request ID.

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

    DedicatedHostGroups

    object

    DedicatedHostGroups

    array<object>

    The detailed information about the hosts.

    array<object>

    DiskAllocateRation

    number

    The disk allocation ratio.

    100

    DeployType

    string

    The instance deployment method.

    origin

    CreateTime

    string

    The time when the host was created.

    2021-05-07T02:00Z

    DedicatedHostCountGroupByHostType

    object

    The number of hosts for each storage type.

    2

    Text

    string

    The host description.

    mysql-host

    DedicatedHostGroupId

    string

    The ID of the dedicated cluster to which the host belongs.

    dhg-34639v1jt4y4****

    DiskUtility

    number

    The disk utilization.

    0

    MemUsedAmount

    number

    The amount of used memory.

    0

    MemAllocatedAmount

    number

    The amount of allocated memory.

    0

    CpuAllocationRatio

    integer

    The CPU overcommit ratio of the host.

    200

    MemAllocationRatio

    integer

    The memory overcommit ratio of the host.

    100

    MemAllocateRation

    number

    The memory allocation ratio.

    9.38

    MemUtility

    number

    The memory utilization.

    0

    CpuAllocatedAmount

    number

    The amount of allocated CPU resources.

    3

    DedicatedHostGroupDesc

    string

    The name of the dedicated cluster to which the host belongs.

    dhg-34639v1jt4y4****

    CpuAllocateRation

    number

    The CPU allocation ratio.

    9.38

    InstanceNumber

    integer

    The number of instances on the host.

    2

    OpenPermission

    string

    The OS permissions of the host. Valid values:

    • 0 and 1: Disabled.

    • 2 and 3 (default): Enabled.

    Note

    When you create a dedicated cluster whose database engine is MySQL, SQL Server, or PostgreSQL, you can specify whether to enable OS permissions for the host based on your business requirements.

    1

    VPCId

    string

    The VPC ID of the dedicated cluster to which the host belongs.

    vpc-bp1ov7as4yvz4kxei****

    DiskAllocatedAmount

    number

    The allocated disk capacity.

    1024

    HostNumber

    integer

    The number of hosts.

    2

    DiskUsedAmount

    number

    The amount of used disk space.

    1024

    AllocationPolicy

    string

    The resource allocation policy for the host. Valid values:

    • Evenly: Balanced allocation. This policy maximizes system stability by preferentially allocating resources from hosts that have no allocated resources or fewer allocated resources.

    • Intensively: Compact allocation. This policy maximizes resource utilization by preferentially allocating resources from hosts that were created earlier and have more allocated resources.

    Evenly

    Engine

    string

    The database engine type of the host.

    MySQL

    DiskAllocationRatio

    integer

    The disk space overcommit ratio of the host.

    200

    BastionInstanceId

    string

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

    rm-bp15rszyxs4t3****

    HostReplacePolicy

    string

    The host fault handling policy. Valid values:

    • Auto (default): Automatically replaces the host.

    • Manual: Manually replaces the host.

    Auto

    ZoneIDList

    object

    ZoneIDList

    array

    The list of zones for the host.

    string

    The list of zones for the host.

    cn-hangzhou-f

    Category

    string

    The Cluster Edition of the dedicated cluster to which the host belongs. Valid values:

    • Pro: MyBase Pro Edition cluster

    • Standard: MyBase Managed Edition cluster

    Pro

    Examples

    Success response

    JSON format

    {
      "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": "Pro"
          }
        ]
      }
    }

    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.

    See Error Codes for a complete list.

    Release notes

    See Release Notes for a complete list.