查询新规格可扩容规格列表
功能介绍
查询新规格实例可扩容列表
URI
GET /v2/{engine}/{project_id}/instances/{instance_id}/extend
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| engine | 是 | String | 消息引擎的类型。支持的类型为rabbitmq。 |
| project_id | 是 | String | 项目ID,获取方式请参见获取项目ID。 |
| instance_id | 是 | String | 实例ID。 |
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| type | 否 | String | 参数解释: 产品的类型。 约束限制: 不涉及。 取值范围: advanced:专享版 默认取值: 不涉及。 |
请求参数
无
响应参数
状态码:200
| 参数 | 参数类型 | 描述 |
|---|---|---|
| engine | String | 消息引擎类型。 |
| versions | Array of strings | 消息引擎支持的版本 |
| products | Array of RabbitMQExtendProductInfoEntity objects | 规格变更的产品信息。 |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| type | String | 参数解释: 实例类型。 取值范围:
|
| product_id | String | 产品ID。 |
| ecs_flavor_id | String | 该产品使用的ECS规格。 |
| arch_types | Array of strings | 支持的CPU架构类型 |
| charging_mode | Array of strings | 支持的计费模式类型。 |
| ios | Array of RabbitMQExtendProductIosEntity objects | 磁盘IO信息。 |
| properties | 功能特性的键值对。 | |
| available_zones | Array of strings | 有可用资源的可用区列表。 |
| unavailable_zones | Array of strings | 资源售罄的可用区列表 |
| support_features | Array of RabbitMQProductSupportFeaturesEntity objects | 支持的特性功能。 |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| io_spec | String | 参数解释: 存储IO规格。 取值范围:
|
| available_zones | Array of strings | 有可用资源的可用区列表 |
| type | String | 参数解释: IO类型。 取值范围: evs |
| unavailable_zones | Array of strings | 资源售罄的可用区列表。 |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| max_broker | String | Broker的最大个数。 |
| max_storage_per_node | String | 每个节点的最大存储。单位为GB。 |
| min_broker | String | Broker的最小个数。 |
| min_storage_per_node | String | 每个节点的最小存储。单位为GB。 |
| max_connection_per_broker | String | 最大连接数 |
| step_length | String | 步长 |
| product_alias | String | product_id的别名。 |
| max_queue_per_broker | String | 最大队列 |
请求示例
查询实例的扩容规格列表。
GET https://{endpoint}/v2/{engine}/{project_id}/instances/{instance_id}/extend 响应示例
状态码:200
查询实例的扩容规格列表成功
{
"engine" : "rabbitmq",
"versions" : [ "3.8.35" ],
"products" : [ {
"type" : "single",
"product_id" : "c6.2u4g.single",
"ecs_flavor_id" : "c6.large.2",
"arch_types" : [ "X86" ],
"charging_mode" : [ "monthly", "hourly" ],
"ios" : [ {
"io_spec" : "dms.physical.storage.ultra.v2",
"available_zones" : [ "xxx" ],
"type" : "evs",
"unavailable_zones" : [ "xxx" ]
}, {
"io_spec" : "dms.physical.storage.high.v2",
"available_zones" : [ "xxx" ],
"type" : "evs",
"unavailable_zones" : [ "xxx" ]
} ],
"support_features" : [ ],
"properties" : {
"max_connection_per_broker" : "2000",
"max_broker" : "1",
"max_queue_per_broker" : "100",
"max_storage_per_node" : "30000",
"min_broker" : "1",
"product_alias" : "rabbitmq.2u4g.single",
"step_length" : "0",
"min_storage_per_node" : "100"
},
"available_zones" : [ "xxx" ],
"unavailable_zones" : [ ]
}, {
"type" : "single",
"product_id" : "c6.4u8g.single",
"ecs_flavor_id" : "c6.xlarge.2",
"arch_types" : [ "X86" ],
"charging_mode" : [ "monthly", "hourly" ],
"ios" : [ {
"io_spec" : "dms.physical.storage.high.v2",
"available_zones" : [ "xxx" ],
"type" : "evs",
"unavailable_zones" : [ "xxx" ]
}, {
"io_spec" : "dms.physical.storage.ultra.v2",
"available_zones" : [ "xxx" ],
"type" : "evs",
"unavailable_zones" : [ "xxx" ]
} ],
"support_features" : [ ],
"properties" : {
"max_connection_per_broker" : "3000",
"max_broker" : "1",
"max_queue_per_broker" : "200",
"max_storage_per_node" : "30000",
"min_broker" : "1",
"product_alias" : "rabbitmq.4u8g.single",
"step_length" : "0",
"min_storage_per_node" : "100"
},
"available_zones" : [ "xxx" ],
"unavailable_zones" : [ ]
} ]
} 状态码
| 状态码 | 描述 |
|---|---|
| 200 | 查询实例的扩容规格列表成功 |
错误码
请参见错误码。