调用DescribeClassList接口查看集群规格列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeClassList

系统规定参数。取值:DescribeClassList

ResourceGroupId String rg-************

资源组ID。

CommodityCode String polardb_sub

商品Code。取值范围如下:

  • polardb_sub:中国内地包年包月。
  • polardb_sub _intl:中国香港及海外包年包月。
  • polardb_payg:中国内地按量付费。
  • polardb_payg_intl:中国香港及海外按量付费。
  • polardb_sub_jushita:聚石塔包年包月。
  • polardb_payg_jushita:聚石塔按量付费。
  • polardb_sub_cainiao:菜鸟包年包月。
  • polardb_payg_cainiao:菜鸟按量付费。
OrderType String BUY

订单类型,取值范围如下:

  • BUY:新购。
  • UPGRADE:变更配置。
  • RENEW:续费。
  • CONVERT:转换付费类型。
RegionId String cn-hangzhou

地域ID。

说明 如果您使用的是阿里云国际站账号,该参数必填。

返回数据

名称 类型 示例值 描述
RequestId String 69A85BAF-1089-4CDF-A82F-0A140F******

请求ID。

Items Array of Items
Psl4MaxIOPS String 48000

PSL4最大I/O请求次数,即IOPS。单位:次/秒。

ClassTypeLevel String enterprise

规格类型。

Cpu String 8

CPU核数。单位:个。

ReferencePrice String 200000

价格。

单位:分(人民币)。

说明
  • CommodityCode参数中传入按量付费的商品Code时,显示为每小时的价格。
  • CommodityCode参数中传入包年包月的商品Code时,显示为每月的价格。
MaxConnections String 8000

最大集群并发连接数。

MemoryClass String 32

内存容量。单位:GB。

ClassCode String polar.mysql.x4.medium

集群规格。

ClassGroup String Exclusive package

集群规格族。

  • Exclusive package:独享套餐。
  • Exclusive physical machine:独占物理机。
  • Beginner:入门级。
  • Historical specifications:历史规格。
Psl5MaxIOPS String 96000

PSL5最大I/O请求次数,即IOPS。单位:次/秒。

MaxIOPS String 32000

最大I/O请求次数,即IOPS。单位:次/秒。

MaxStorageCapacity String 20

最大存储容量。单位:TB。

Pl1MaxIOPS String 50000

ESSD PL1云盘的最大IOPS。单位:次/秒。

Pl2MaxIOPS String 100000

ESSD PL2云盘的最大IOPS。单位:次/秒。

Pl3MaxIOPS String 1000000

ESSD PL3云盘的最大IOPS。单位:次/秒。

RegionId String cn-hangzhou

地域ID。

示例

请求示例

http(s)://polardb.aliyuncs.com/?Action=DescribeClassList
&ResourceGroupId=rg-************
&CommodityCode=polardb_sub
&OrderType=BUY
&RegionId=cn-hangzhou
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeClassListResponse>
    <RequestId>69A85BAF-1089-4CDF-A82F-0A140F******</RequestId>
    <Items>
        <Psl4MaxIOPS>48000</Psl4MaxIOPS>
        <ClassTypeLevel>enterprise</ClassTypeLevel>
        <Cpu>8</Cpu>
        <ReferencePrice>200000</ReferencePrice>
        <MaxConnections>8000</MaxConnections>
        <MemoryClass>32</MemoryClass>
        <ClassCode>polar.mysql.x4.medium</ClassCode>
        <ClassGroup>Exclusive package</ClassGroup>
        <Psl5MaxIOPS>96000</Psl5MaxIOPS>
        <MaxIOPS>32000</MaxIOPS>
        <MaxStorageCapacity>20</MaxStorageCapacity>
        <Pl1MaxIOPS>50000</Pl1MaxIOPS>
        <Pl2MaxIOPS>100000</Pl2MaxIOPS>
        <Pl3MaxIOPS>1000000</Pl3MaxIOPS>
    </Items>
    <RegionId>cn-hangzhou</RegionId>
</DescribeClassListResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "69A85BAF-1089-4CDF-A82F-0A140F******",
  "Items" : [ {
    "Psl4MaxIOPS" : "48000",
    "ClassTypeLevel" : "enterprise",
    "Cpu" : "8",
    "ReferencePrice" : "200000",
    "MaxConnections" : "8000",
    "MemoryClass" : "32",
    "ClassCode" : "polar.mysql.x4.medium",
    "ClassGroup" : "Exclusive package",
    "Psl5MaxIOPS" : "96000",
    "MaxIOPS" : "32000",
    "MaxStorageCapacity" : "20",
    "Pl1MaxIOPS" : "50000",
    "Pl2MaxIOPS" : "100000",
    "Pl3MaxIOPS" : "1000000"
  } ],
  "RegionId" : "cn-hangzhou"
}

错误码

访问错误中心查看更多错误码。