文档首页 > > API参考> API V2(推荐)> 规格变更管理>

查询可扩容规格列表

查询可扩容规格列表

分享
更新时间:2021/02/08 GMT+08:00

功能介绍

查询可扩容规格列表。

RabbtiMQ只支持只增加节点数的扩容方式。

调试

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

URI

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

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目ID。

instance_id

String

实例ID。

表2 Query参数

参数

是否必选

参数类型

描述

type

String

产品的类型。

  • advanced:专享版

  • platinum:铂金版

  • dec:专属云版

  • exp:体验版

engine

String

消息引擎的类型。

请求参数

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

hourly

Array<Object>

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

monthly

Array<Object>

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

表4 hourly

参数

参数类型

描述

name

String

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

version

String

消息引擎的版本,当前仅支持3.7.17。

values

Array<Object>

产品规格列表。

表5 values

参数

参数类型

描述

detail

Array<Object>

规格详情。

name

String

实例类型。

unavailable_zones

Array of strings

资源售罄的可用区列表。

available_zones

Array of strings

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

表6 detail

参数

参数类型

描述

storage

String

消息存储空间。

product_id

String

产品ID。

spec_code

String

规格ID。

io

Array<Object>

IO信息。

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

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

version

String

消息引擎的版本,当前仅支持3.7.17。

values

Array<Object>

产品规格列表。

表9 values

参数

参数类型

描述

detail

Array<Object>

规格详情。

name

String

实例类型。

unavailable_zones

Array of strings

资源售罄的可用区列表。

available_zones

Array of strings

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

表10 detail

参数

参数类型

描述

storage

String

消息存储空间。

product_id

String

产品ID。

spec_code

String

规格ID。

io

Array<Object>

IO信息。

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" : "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" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-north-4f", "cn-north-4c", "cn-north-4a" ],
            "volume_type" : "SAS"
          }, {
            "io_type" : "ultra",
            "storage_spec_code" : "dms.physical.storage.ultra",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-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"
        }, {
          "storage" : "500",
          "node_num" : "5",
          "product_id" : "00300-30211-0--0",
          "spec_code" : "dms.instance.rabbitmq.cluster.c3.4u8g.5",
          "io" : [ {
            "io_type" : "high",
            "storage_spec_code" : "dms.physical.storage.high",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-north-4f", "cn-north-4c", "cn-north-4a" ],
            "volume_type" : "SAS"
          }, {
            "io_type" : "ultra",
            "storage_spec_code" : "dms.physical.storage.ultra",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-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"
        }, {
          "storage" : "700",
          "node_num" : "7",
          "product_id" : "00300-30213-0--0",
          "spec_code" : "dms.instance.rabbitmq.cluster.c3.4u8g.7",
          "io" : [ {
            "io_type" : "high",
            "storage_spec_code" : "dms.physical.storage.high",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-north-4f", "cn-north-4c", "cn-north-4a" ],
            "volume_type" : "SAS"
          }, {
            "io_type" : "ultra",
            "storage_spec_code" : "dms.physical.storage.ultra",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-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" ]
    } ]
  } ],
  "Monthly" : [ {
    "name" : "RabbitMQ",
    "version" : "3.7.17",
    "values" : [ {
      "detail" : [ {
        "vm_specification" : "4vCPUs 8GB",
        "product_info" : [ {
          "storage" : "300",
          "node_num" : "3",
          "product_id" : "00300-30210-0--0",
          "spec_code" : "dms.instance.rabbitmq.cluster.c3.4u8g.3",
          "io" : [ {
            "io_type" : "high",
            "storage_spec_code" : "dms.physical.storage.high",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-north-4f", "cn-north-4c", "cn-north-4a" ],
            "volume_type" : "SAS"
          }, {
            "io_type" : "ultra",
            "storage_spec_code" : "dms.physical.storage.ultra",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-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"
        }, {
          "storage" : "500",
          "node_num" : "5",
          "product_id" : "00300-30212-0--0",
          "spec_code" : "dms.instance.rabbitmq.cluster.c3.4u8g.5",
          "io" : [ {
            "io_type" : "high",
            "storage_spec_code" : "dms.physical.storage.high",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-north-4f", "cn-north-4c", "cn-north-4a" ],
            "volume_type" : "SAS"
          }, {
            "io_type" : "ultra",
            "storage_spec_code" : "dms.physical.storage.ultra",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-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"
        }, {
          "storage" : "700",
          "node_num" : "7",
          "product_id" : "00300-30214-0--0",
          "spec_code" : "dms.instance.rabbitmq.cluster.c3.4u8g.7",
          "io" : [ {
            "io_type" : "high",
            "storage_spec_code" : "dms.physical.storage.high",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-north-4f", "cn-north-4c", "cn-north-4a" ],
            "volume_type" : "SAS"
          }, {
            "io_type" : "ultra",
            "storage_spec_code" : "dms.physical.storage.ultra",
            "available_zones" : [ "cn-north-4d", "cn-north-4b", "cn-north-4g", "cn-north-4e", "cn-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

查询成功。

错误码

请参见错误码

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!非常感谢您的反馈,我们会继续努力做到更好!
反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

智能客服提问云社区提问
{{site}}{{lan}}
{{site}}{{language}}