• 沒有找到結果。

5.4 规格变更管理

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

功能介绍

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

调试

您可以在API Explorer中调试该接口。

URI

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

5-76 路径参数

参数 是否必选 参数类型 描述

project_id 是 String 项目ID。

instance_id 是 String 实例ID。

5-77 Query 参数

参数 是否必选 参数类型 描述

type 是 String 产品的类型。

● advanced: 专享版

● platinum: 铂金版

● dec: 专属云版

● exp: 体验版

engine 否 String 消息引擎的类型。当前支持的类

型为kafka。

请求参数

响应参数

状态码: 200

5-78 响应 Body 参数

参数 参数类型 描述

hourly Array of

hourly

objects

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

monthly Array of

monthly

objects

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

5-79 hourly

参数 参数类型 描述

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

version String 消息引擎的版本,当前仅支持1.1.0和2.3.0。

参数 参数类型 描述 values Array of

values

objects

产品规格列表。

5-80 values

参数 参数类型 描述

detail Array of

detail objects

规格详情。

name String 实例类型。

unavailable_z

ones Array of

strings 资源售罄的可用区列表。

available_zon

es Array of

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

5-81 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实例的基准带宽。

unavailable_z

ones Array of

strings 资源售罄的可用区列表。

available_zon

es Array of

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

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

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

5-82 io

参数 参数类型 描述

io_type String IO类型。

storage_spec_

code String IO规格。

available_zon

es Array of

strings IO未售罄的可用区列表。

unavailable_z

ones Array of

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

volume_type String 磁盘类型。

5-83 monthly

参数 参数类型 描述

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

version String 消息引擎的版本,当前仅支持1.1.0和2.3.0。

values Array of

values

objects

产品规格列表。

5-84 values

参数 参数类型 描述

detail Array of

detail objects

规格详情。

name String 实例类型。

unavailable_z

ones Array of

strings 资源售罄的可用区列表。

available_zon

es Array of

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

5-85 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实例的基准带宽。

unavailable_z

ones Array of

strings 资源售罄的可用区列表。

available_zon

es Array of

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

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

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

5-86 io

参数 参数类型 描述

io_type String IO类型。

storage_spec_

code String IO规格。

available_zon

es Array of

strings IO未售罄的可用区列表。

unavailable_z

ones 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" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SAS"

}, {

"io_type" : "ultra",

"storage_spec_code" : "dms.physical.storage.ultra",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SSD"

} ],

"bandwidth" : "100MB",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ],

"ecs_flavor_id" : "c6.large.2", "spec_code" : "kafka.c3.small.2.connector", "io" : [ {

"io_type" : "high",

"storage_spec_code" : "dms.physical.storage.high",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SAS"

}, {

"io_type" : "ultra",

"storage_spec_code" : "dms.physical.storage.ultra",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SSD"

} ],

"bandwidth" : "300MB",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ],

"ecs_flavor_id" : "c6.xlarge.2", "spec_code" : "kafka.c3.middle.2.connector", "io" : [ {

"io_type" : "high",

"storage_spec_code" : "dms.physical.storage.high",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SAS"

}, {

"io_type" : "ultra",

"storage_spec_code" : "dms.physical.storage.ultra",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SSD"

} ],

"bandwidth" : "600MB",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ],

"ecs_flavor_id" : "c6.2xlarge.2", "spec_code" : "kafka.c3.high.2.connector", "io" : [ {

"io_type" : "high",

"storage_spec_code" : "dms.physical.storage.high",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SAS"

}, {

"io_type" : "ultra",

"storage_spec_code" : "dms.physical.storage.ultra",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SSD"

} ],

"bandwidth" : "1200MB",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ],

"ecs_flavor_id" : "c6.2xlarge.2", "arch_type" : "X86"

} ],

"name" : "cluster",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ]

} ] "spec_code" : "kafka.c3.mini.connector", "io" : [ {

"io_type" : "high",

"storage_spec_code" : "dms.physical.storage.high",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SAS"

}, {

"io_type" : "ultra",

"storage_spec_code" : "dms.physical.storage.ultra",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SSD"

} ],

"bandwidth" : "100MB",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ],

"ecs_flavor_id" : "c6.large.2", "spec_code" : "kafka.c3.small.2.connector", "io" : [ {

"io_type" : "high",

"storage_spec_code" : "dms.physical.storage.high",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SAS"

}, {

"io_type" : "ultra",

"storage_spec_code" : "dms.physical.storage.ultra",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SSD"

} ],

"bandwidth" : "300MB",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ],

"ecs_flavor_id" : "c6.xlarge.2", "spec_code" : "kafka.c3.middle.2.connector", "io" : [ {

"io_type" : "high",

"storage_spec_code" : "dms.physical.storage.high",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SAS"

}, {

"io_type" : "ultra",

"storage_spec_code" : "dms.physical.storage.ultra",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SSD"

} ],

"bandwidth" : "600MB",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ],

"ecs_flavor_id" : "c6.2xlarge.2", "spec_code" : "kafka.c3.high.2.connector", "io" : [ {

"io_type" : "high",

"storage_spec_code" : "dms.physical.storage.high",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SAS"

}, {

"io_type" : "ultra",

"storage_spec_code" : "dms.physical.storage.ultra",

"available_zones" : [ north-4d", north-4b", north-4g", north-4e", north-4f", "cn-north-4c", "cn-north-4a" ],

"volume_type" : "SSD"

} ],

"bandwidth" : "1200MB",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ],

"ecs_flavor_id" : "c6.2xlarge.2", "arch_type" : "X86"

} ],

"name" : "cluster",

"unavailable_zones" : [ "cn-north-4c", "cn-north-4d", "cn-north-4e", "cn-north-4f", "cn-north-4g" ], "available_zones" : [ "cn-north-4b", "cn-north-4a" ]

} ]

} ] }

状态码

状态码 描述

200 查询成功。

错误码

请参见错误码。