5.3 规格变更管理
5.3.1 查询可扩容规格列表
响应示例
状态码: 200
开启或关闭插件成功。
{ "job_id" : "8abfa7b27437db8f01744ea8ad4f245e"
}
状态码
状态码 描述
200 开启或关闭插件成功。
错误码
请参见错误码。
5.3 规格变更管理
5.3.1 查询可扩容规格列表
功能介绍
查询可扩容规格列表。
RabbtiMQ只支持只增加节点数的扩容方式。
调试
您可以在API Explorer中调试该接口。
URI
GET /v2/{project_id}/instances/{instance_id}/extend
表5-28 路径参数
参数 是否必选 参数类型 描述
project_id 是 String 项目ID。
instance_id 是 String 实例ID。
表5-29 Query 参数
参数 是否必选 参数类型 描述
type 是 String 产品的类型。
● advanced:专享版
● platinum:铂金版
● dec:专属云版
● exp:体验版
engine 是 String 消息引擎的类型。支持的类型为
rabbitmq。
请求参数
无
响应参数
状态码: 200
表5-30 响应 Body 参数
参数 参数类型 描述
hourly Array of
hourly
objects表示按需付费的产品列表。
monthly Array of
monthly
objects表示包年包月的产品列表。当前暂不支持通过API 创建包年包月的Rabbitmq实例。
表5-31 hourly
参数 参数类型 描述
name String 消息引擎的名称,该字段显示为rabbitmq。
version String 消息引擎的版本,当前仅支持3.7.17。
参数 参数类型 描述 values Array of
values
objects产品规格列表。
表5-32 values
参数 参数类型 描述
detail Array of
detail objects
规格详情。name String 实例类型。
unavailable_z
ones Array of
strings 资源售罄的可用区列表。
available_zon
es Array of
strings 有可用资源的可用区列表。
表5-33 detail
参数 参数类型 描述
storage String 消息存储空间。
product_id String 产品ID。
spec_code String 规格ID。
io Array of io
objects IO信息。
unavailable_z
ones Array of
strings 资源售罄的可用区列表。
available_zon
es Array of
strings 有可用资源的可用区列表。
ecs_flavor_id String 该产品规格对应的虚拟机规格。
arch_type String 实例规格架构类型。当前仅支持X86。
表5-34 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-35 monthly
参数 参数类型 描述
name String 消息引擎的名称,该字段显示为rabbitmq。
version String 消息引擎的版本,当前仅支持3.7.17。
values Array of
values
objects产品规格列表。
表5-36 values
参数 参数类型 描述
detail Array of
detail objects
规格详情。name String 实例类型。
unavailable_z
ones Array of
strings 资源售罄的可用区列表。
available_zon
es Array of
strings 有可用资源的可用区列表。
表5-37 detail
参数 参数类型 描述
storage String 消息存储空间。
product_id String 产品ID。
spec_code String 规格ID。
参数 参数类型 描述 io Array of io
objects IO信息。
unavailable_z
ones Array of
strings 资源售罄的可用区列表。
available_zon
es Array of
strings 有可用资源的可用区列表。
ecs_flavor_id String 该产品规格对应的虚拟机规格。
arch_type String 实例规格架构类型。当前仅支持X86。
表5-38 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" : "RabbitMQ", "version" : "3.7.17", "values" : [ { "detail" : [ {
"vm_specification" : "4vCPUs 8GB", "product_info" : [ {
"storage" : "300", "node_num" : "3",
"product_id" : "00300-30209-0--0",
"spec_code" : "dms.instance.rabbitmq.cluster.c3.4u8g.3", "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"
} ],
"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" : "dms.instance.rabbitmq.cluster.c3.4u8g.5", "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"
} ],
"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" : "dms.instance.rabbitmq.cluster.c3.4u8g.7", "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"
} ],
"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"
} ],
"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" ],
"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" ]
} ]
"detail" : [ {
"spec_code" : "dms.instance.rabbitmq.cluster.c3.4u8g.3", "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"
} ],
"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" : "dms.instance.rabbitmq.cluster.c3.4u8g.5", "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"
} ],
"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" : "dms.instance.rabbitmq.cluster.c3.4u8g.7", "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"
} ],
"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"
} ],
"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" ],
"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 查询成功。
错误码
请参见错误码。