All Products
Search
Document Center

ApsaraDB for MyBase:DescribeHostEcsLevelInfo

Last Updated:Oct 26, 2026

Queries the details of host specifications.

Operation description

After you add a host, you can view the details of the host specifications, including the CPU, memory, processor model, host type, and host storage type.

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:DescribeHostEcsLevelInfo

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

DbType

string

Yes

The database engine type. Valid values:

  • mysql

  • mssql

  • pgsql

  • redis

mysql

RegionId

string

Yes

The region ID. You can view the region ID in Regions and zones.

cn-hangzhou

ZoneId

string

Yes

The zone ID.

ap-southeast-1a

StorageType

string

Yes

The instance storage type. Valid values:

  • local_ssd: standard SSD cloud disk

  • cloud_essd: PL1 ESSD cloud disk

  • cloud_essd2: PL2 ESSD cloud disk

  • cloud_essd3: PL3 ESSD cloud disk

local_ssd

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

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

395858E2-2A82-4ED7-BB93-2DB60119EF4C

HostEcsLevelInfos

array<object>

The list of ECS host information.

array<object>

CddcHostType

string

The host type. Valid values:

  • general: General-purpose.

  • compute: Compute-optimized.

  • ram: Memory-optimized.

  • dragon: Elastic Compute Service Bare Metal Instance (SHENLONG server).

ram

Items

array<object>

The details of the host specifications.

object

NetBandWidth

number

The internal network bandwidth. Unit: Gbit/s.

10

EcsClass

string

The instance family.

General-purpose g6

RdsClassCode

string

The ApsaraDB RDS instance type.

mssql.cluster.host.g2xlarge

Cpu

integer

The CPU of the host.

24

CpuFrequency

string

The processor frequency. Unit: GHz.

2.5 GHz/3.2 GHz

StorageIops

integer

The storage IOPS. Unit: 10,000.

5

CloudStorageBandwidth

number

The cloud disk bandwidth. Unit: Gbit/s.

4

EcsClassCode

string

The ECS instance type.

ecs.g6.2xlarge

IsCloudDisk

integer

Indicates whether the disk is a cloud disk.

1

Memory

integer

The memory size. Unit: GB.

192

NetPackage

integer

The internal network packet forwarding rate. Unit: 10,000 PPS.

150

CpuVersion

string

The processor model.

Intel Xeon(Cascade Lake) Platinum 8269CY

LocalStorage

string

The local storage.

7

Description

string

The name of the host.

testxxx

Examples

Success response

JSON format

{
  "RequestId": "395858E2-2A82-4ED7-BB93-2DB60119EF4C",
  "HostEcsLevelInfos": [
    {
      "CddcHostType": "ram",
      "Items": [
        {
          "NetBandWidth": 10,
          "EcsClass": "通用型 g6",
          "RdsClassCode": "mssql.cluster.host.g2xlarge\t",
          "Cpu": 24,
          "CpuFrequency": "2.5 GHz/3.2 GHz",
          "StorageIops": 5,
          "CloudStorageBandwidth": 4,
          "EcsClassCode": "ecs.g6.2xlarge\t",
          "IsCloudDisk": 1,
          "Memory": 192,
          "NetPackage": 150,
          "CpuVersion": "Intel Xeon(Cascade Lake) Platinum 8269CY\t",
          "LocalStorage": "7",
          "Description": "testxxx"
        }
      ]
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidAction The specified action is not valid. The specified action is not valid.
403 Permission.NotSupport You are not authorized to perform this action. You are not authorized to perform the action.
403 Forbidden.RAM User 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.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.