All Products
Search
Document Center

ApsaraDB for MyBase:DescribeHostEcsLevelInfo

Last Updated:Jan 14, 2026

Queries the information about host specifications.

Operation description

After a host is created, you can call this operation to query the information about the host specifications, such as the CPU resources, memory resources, CPU model, host category, and storage type.

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:DescribeHostEcsLevelInfoget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DbTypestringYes

The database engine. Valid values:

  • mysql
  • mssql
  • pgsql
  • redis
mysql
RegionIdstringYes

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

cn-hangzhou
ZoneIdstringYes

The zone ID.

ap-southeast-1a
StorageTypestringYes

The storage type. Valid values:

  • local_ssd: standard SSD.
  • cloud_essd: PL1 enhanced SSD (ESSD).
  • cloud_essd2: PL2 ESSD.
  • cloud_essd3: PL3 ESSD.
local_ssd
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

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

395858E2-2A82-4ED7-BB93-2DB60119EF4C
HostEcsLevelInfosarray<object>

The queried host.

HostEcsLevelInfosobject
CddcHostTypestring

The category of the host. Valid values:

  • general: general-purpose.
  • compute: compute-optimized.
  • ram: memory-optimized.
  • dragon: ECS Bare Metal Instance.
ram
Itemsarray<object>

The queried host specifications.

Itemsobject
NetBandWidthfloat

The internal bandwidth of the host. Unit: Gbit/s.

10
EcsClassstring

The instance family of the host.

RdsClassCodestring

The instance type of the instance.

mssql.cluster.host.g2xlarge
Cpuinteger

The number of CPU cores of the host.

24
CpuFrequencystring

The processor frequency. Unit: GHz.

2.5 GHz/3.2 GHz
StorageIopsinteger

The storage IOPS of the host, which is displayed after being divided by 10,000.

5
CloudStorageBandwidthfloat

The disk bandwidth. Unit: Gbit/s.

4
EcsClassCodestring

The instance type of the host.

ecs.g6.2xlarge
IsCloudDiskinteger

Indicates whether the host uses cloud disks.

1
Memoryinteger

The memory size of the host. Unit: GB.

192
NetPackageinteger

The packet forwarding rate over the internal network, which is displayed after being divided by 10,000. Unit: packets per second (PPS).

150
CpuVersionstring

The CPU model of the host.

Intel Xeon(Cascade Lake) Platinum 8269CY
LocalStoragestring

The local storage.

7
Descriptionstring

The name of the host.

testxxx

Examples

Sample success responses

JSONformat

{
  "RequestId": "395858E2-2A82-4ED7-BB93-2DB60119EF4C",
  "HostEcsLevelInfos": [
    {
      "CddcHostType": "ram",
      "Items": [
        {
          "NetBandWidth": 10,
          "EcsClass": "",
          "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 codeError codeError messageDescription
400InvalidActionThe specified action is not valid.The specified action is not valid.
403Permission.NotSupportYou are not authorized to perform this action.You are not authorized to perform the action.
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.

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

Change history

Change timeSummary of changesOperation
2021-09-08The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details