更新时间:2025-12-24 GMT+08:00

查询实例的扩容规格列表(老规格)

功能介绍

查询实例的扩容规格列表。

当前页面API为历史版本API,未来可能停止维护。请使用查询实例的扩容规格列表

URI

GET /v2/{project_id}/instances/{instance_id}/extend

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID,获取方式请参见获取项目ID

instance_id

String

实例ID。

表2 Query参数

参数

是否必选

参数类型

描述

type

String

产品的类型。

advanced:专享版

engine

String

消息引擎的类型。当前支持的类型为kafka。

请求参数

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

hourly

Array of hourly objects

表示按需付费的产品列表。

monthly

Array of monthly objects

表示包年包月的产品列表。当前暂不支持通过API创建包年包月的Kafka实例。

表4 hourly

参数

参数类型

描述

name

String

消息引擎的名称,该字段显示为kafka。

version

String

消息引擎的版本。

values

Array of values objects

产品规格列表。

表5 values

参数

参数类型

描述

detail

Array of detail objects

规格详情。

name

String

实例类型。

unavailable_zones

Array of strings

资源售罄的可用区列表。

available_zones

Array of strings

有可用资源的可用区列表。

表6 detail

参数

参数类型

描述

tps

String

单位时间内的消息量最大值。

storage

String

消息存储空间。

partition_num

String

Kafka实例的分区数量。

product_id

String

产品ID。

spec_code

String

规格ID。

io

Array of io objects

IO信息。

bandwidth

String

Kafka实例的基准带宽。

recommend_max_consGroups

String

Kafka实例最大消费组数参考值。

unavailable_zones

Array of strings

资源售罄的可用区列表。

available_zones

Array of strings

有可用资源的可用区列表。

ecs_flavor_id

String

该产品规格对应的虚拟机规格。

arch_type

String

实例规格架构类型。当前仅支持X86。

表7 io

参数

参数类型

描述

io_type

String

IO类型。

storage_spec_code

String

IO规格。

available_zones

Array of strings

IO未售罄的可用区列表。

unavailable_zones

Array of strings

IO已售罄的不可用区列表。

volume_type

String

磁盘类型。

表8 monthly

参数

参数类型

描述

name

String

消息引擎的名称,该字段显示为kafka。

version

String

消息引擎的版本。

values

Array of values objects

产品规格列表。

表9 values

参数

参数类型

描述

detail

Array of detail objects

规格详情。

name

String

实例类型。

unavailable_zones

Array of strings

资源售罄的可用区列表。

available_zones

Array of strings

有可用资源的可用区列表。

表10 detail

参数

参数类型

描述

tps

String

单位时间内的消息量最大值。

storage

String

消息存储空间。

partition_num

String

Kafka实例的分区数量。

product_id

String

产品ID。

spec_code

String

规格ID。

io

Array of io objects

IO信息。

bandwidth

String

Kafka实例的基准带宽。

recommend_max_consGroups

String

Kafka实例最大消费组数参考值。

unavailable_zones

Array of strings

资源售罄的可用区列表。

available_zones

Array of strings

有可用资源的可用区列表。

ecs_flavor_id

String

该产品规格对应的虚拟机规格。

arch_type

String

实例规格架构类型。当前仅支持X86。

表11 io

参数

参数类型

描述

io_type

String

IO类型。

storage_spec_code

String

IO规格。

available_zones

Array of strings

IO未售罄的可用区列表。

unavailable_zones

Array of strings

IO已售罄的不可用区列表。

volume_type

String

磁盘类型。

请求示例

GET https://{endpoint}/v2/{project_id}/instances/{instance_id}/extend?type={type}&engine={engine}

响应示例

状态码: 200

查询成功。

{
  "hourly" : [ {
    "name" : "kafka",
    "version" : "1.1.0",
    "values" : [ {
      "detail" : [ {
        "tps" : "50000",
        "storage" : "200",
        "partition_num" : "300",
        "product_id" : "00300-30316-0--0",
        "spec_code" : "kafka.c3.mini.connector",
        "io" : [ {
          "io_type" : "high",
          "storage_spec_code" : "dms.physical.storage.high",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SAS"
        }, {
          "io_type" : "ultra",
          "storage_spec_code" : "dms.physical.storage.ultra",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SSD"
        } ],
        "bandwidth" : "100MB",
        "recommend_max_consGroups" : "60",
        "unavailable_zones" : [ "xxx", "xxx" ],
        "available_zones" : [ "xxx", "xxx" ],
        "ecs_flavor_id" : "c6.large.2",
        "arch_type" : "X86"
      }, {
        "tps" : "100000",
        "storage" : "396",
        "partition_num" : "900",
        "product_id" : "00300-30340-0--0",
        "spec_code" : "kafka.c3.small.2.connector",
        "io" : [ {
          "io_type" : "high",
          "storage_spec_code" : "dms.physical.storage.high",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SAS"
        }, {
          "io_type" : "ultra",
          "storage_spec_code" : "dms.physical.storage.ultra",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SSD"
        } ],
        "bandwidth" : "300MB",
        "recommend_max_consGroups" : "300",
        "unavailable_zones" : [ "xxx", "xxx" ],
        "available_zones" : [ "xxx", "xxx" ],
        "ecs_flavor_id" : "c6.xlarge.2",
        "arch_type" : "X86"
      }, {
        "tps" : "200000",
        "storage" : "1056",
        "partition_num" : "1800",
        "product_id" : "00300-30342-0--0",
        "spec_code" : "kafka.c3.middle.2.connector",
        "io" : [ {
          "io_type" : "high",
          "storage_spec_code" : "dms.physical.storage.high",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SAS"
        }, {
          "io_type" : "ultra",
          "storage_spec_code" : "dms.physical.storage.ultra",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SSD"
        } ],
        "bandwidth" : "600MB",
        "recommend_max_consGroups" : "600",
        "unavailable_zones" : [ "xxx", "xxx" ],
        "available_zones" : [ "xxx", "xxx" ],
        "ecs_flavor_id" : "c6.2xlarge.2",
        "arch_type" : "X86"
      }, {
        "tps" : "300000",
        "storage" : "2112",
        "partition_num" : "1800",
        "product_id" : "00300-30344-0--0",
        "spec_code" : "kafka.c3.high.2.connector",
        "io" : [ {
          "io_type" : "high",
          "storage_spec_code" : "dms.physical.storage.high",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SAS"
        }, {
          "io_type" : "ultra",
          "storage_spec_code" : "dms.physical.storage.ultra",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SSD"
        } ],
        "bandwidth" : "1200MB",
        "recommend_max_consGroups" : "600",
        "unavailable_zones" : [ "xxx", "xxx" ],
        "available_zones" : [ "xxx", "xxx" ],
        "ecs_flavor_id" : "c6.2xlarge.2",
        "arch_type" : "X86"
      } ],
      "name" : "cluster",
      "unavailable_zones" : [ "xxx", "xxx" ],
      "available_zones" : [ "xxx", "xxx" ]
    } ]
  } ],
  "monthly" : [ {
    "name" : "kafka",
    "version" : "1.1.0",
    "values" : [ {
      "detail" : [ {
        "tps" : "50000",
        "storage" : "200",
        "partition_num" : "300",
        "product_id" : "00300-30317-0--0",
        "spec_code" : "kafka.c3.mini.connector",
        "io" : [ {
          "io_type" : "high",
          "storage_spec_code" : "dms.physical.storage.high",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SAS"
        }, {
          "io_type" : "ultra",
          "storage_spec_code" : "dms.physical.storage.ultra",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SSD"
        } ],
        "bandwidth" : "100MB",
        "recommend_max_consGroups" : "60",
        "unavailable_zones" : [ "xxx", "xxx" ],
        "available_zones" : [ "xxx", "xxx" ],
        "ecs_flavor_id" : "c6.large.2",
        "arch_type" : "X86"
      }, {
        "tps" : "100000",
        "storage" : "396",
        "partition_num" : "900",
        "product_id" : "00300-30341-0--0",
        "spec_code" : "kafka.c3.small.2.connector",
        "io" : [ {
          "io_type" : "high",
          "storage_spec_code" : "dms.physical.storage.high",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SAS"
        }, {
          "io_type" : "ultra",
          "storage_spec_code" : "dms.physical.storage.ultra",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SSD"
        } ],
        "bandwidth" : "300MB",
        "recommend_max_consGroups" : "300",
        "unavailable_zones" : [ "xxx", "xxx" ],
        "available_zones" : [ "xxx", "xxx" ],
        "ecs_flavor_id" : "c6.xlarge.2",
        "arch_type" : "X86"
      }, {
        "tps" : "200000",
        "storage" : "1056",
        "partition_num" : "1800",
        "product_id" : "00300-30343-0--0",
        "spec_code" : "kafka.c3.middle.2.connector",
        "io" : [ {
          "io_type" : "high",
          "storage_spec_code" : "dms.physical.storage.high",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SAS"
        }, {
          "io_type" : "ultra",
          "storage_spec_code" : "dms.physical.storage.ultra",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SSD"
        } ],
        "bandwidth" : "600MB",
        "recommend_max_consGroups" : "600",
        "unavailable_zones" : [ "xxx", "xxx" ],
        "available_zones" : [ "xxx", "xxx" ],
        "ecs_flavor_id" : "c6.2xlarge.2",
        "arch_type" : "X86"
      }, {
        "tps" : "300000",
        "storage" : "2112",
        "partition_num" : "1800",
        "product_id" : "00300-30345-0--0",
        "spec_code" : "kafka.c3.high.2.connector",
        "io" : [ {
          "io_type" : "high",
          "storage_spec_code" : "dms.physical.storage.high",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SAS"
        }, {
          "io_type" : "ultra",
          "storage_spec_code" : "dms.physical.storage.ultra",
          "available_zones" : [ "xxx", "xxx" ],
          "volume_type" : "SSD"
        } ],
        "bandwidth" : "1200MB",
        "recommend_max_consGroups" : "600",
        "unavailable_zones" : [ "xxx", "xxx" ],
        "available_zones" : [ "xxx", "xxx" ],
        "ecs_flavor_id" : "c6.2xlarge.2",
        "arch_type" : "X86"
      } ],
      "name" : "cluster",
      "unavailable_zones" : [ "xxx", "xxx" ],
      "available_zones" : [ "xxx", "xxx" ]
    } ]
  } ]
}

状态码

状态码

描述

200

查询成功。

错误码

请参见错误码