文档首页 > > API参考> 实例管理类接口> 查询产品规格列表

查询产品规格列表

分享
更新时间: 2019/08/15 GMT+08:00

功能介绍

在创建实例时,需要配置订购的产品ID(即product_id),可通过该接口查询产品规格。

URI

GET /v1.0/products?engine={engine}

参数说明见表1

表1 参数说明

参数

类型

必选

说明

engine

String

消息引擎的类型,rabbitmq或者kafka,参数缺失则默认查询rabbitmq。

请求消息

请求参数

无。

请求示例

无。

响应消息

响应参数

Hourly或者Monthly的参数说明见表2

表2 参数说明

参数

类型

备注

name

String

消息引擎的名称。

version

String

消息引擎的版本。

values

Array

产品规格列表。

表3 values参数说明

参数

类型

备注

detail

Array

规格详情。

name

String

实例类型,单机或者集群。

表4 Kafka实例的detail参数说明

参数

类型

备注

tps

String

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

storage

String

消息存储空间。

io

Array

IO信息。

bandwidth

String

Kafka实例的基准带宽。

partition_num

String

Kafka实例的最大Topic数。

product_id

String

产品ID。

spec_code

String

规格ID。

表5 RabbitMQ单机实例的detail参数说明

参数

类型

备注

storage

String

消息存储空间。

io

Array

IO信息。

vm_specification

String

虚拟机规格。

product_id

String

产品ID。

spec_code

String

规格ID。

表6 RabbitMQ集群实例的detail参数说明

参数

类型

备注

vm_specification

String

虚拟机规格。

product_info

Array

产品信息。

表7 product_info参数说明

参数

类型

备注

storage

String

消息存储空间。

io

Array

IO信息。

node_num

Integer

集群的节点个数。

bandwidth

String

仅Kafka实例的产品规格才有该参数。

Kafka实例的基准带宽。

partition_num

String

仅Kafka实例的产品规格才有该参数。

Kafka实例的最大Topic数。

product_id

String

产品ID。

spec_code

String

规格ID。

表8 io参数说明

参数

类型

备注

io_type

String

IO类型。

storage_spec_code

String

IO规格。

响应示例

RabbitMQ规格列表:

{
  "Hourly": [
    {
      "name": "RabbitMQ",
      "version": "3.7.0",
      "values": [
        {
          "detail": [
            {
              "storage": "100",
              "io": [
                {
                  "io_type": "normal",
                  "storage_spec_code": "dms.physical.storage.normal"
                },
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "vm_specification": "2vCPUs 4GB",
              "product_id": "00300-30109-0--0",
              "spec_code": "dms.instance.rabbitmq.single.c3.2u4g"
            },
            {
              "storage": "100",
              "io": [
                {
                  "io_type": "normal",
                  "storage_spec_code": "dms.physical.storage.normal"
                },
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "vm_specification": "4vCPUs 8GB",
              "product_id": "00300-30111-0--0",
              "spec_code": "dms.instance.rabbitmq.single.c3.4u8g"
            },
            {
              "storage": "100",
              "io": [
                {
                  "io_type": "normal",
                  "storage_spec_code": "dms.physical.storage.normal"
                },
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "vm_specification": "8vCPUs 16GB",
              "product_id": "00300-30113-0--0",
              "spec_code": "dms.instance.rabbitmq.single.c3.8u16g"
            },
            {
              "storage": "100",
              "io": [
                {
                  "io_type": "normal",
                  "storage_spec_code": "dms.physical.storage.normal"
                },
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "vm_specification": "16vCPUs 32GB",
              "product_id": "00300-30115-0--0",
              "spec_code": "dms.instance.rabbitmq.single.c3.16u32g"
            }
          ],
          "name": "single"
        },
        {
          "detail": [
            {
              "vm_specification": "4vCPUs 8GB",
              "product_info": [
                {
                  "storage": "300",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "3",
                  "product_id": "00300-30209-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.4u8g.3"
                },
                {
                  "storage": "500",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "5",
                  "product_id": "00300-30211-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.4u8g.5"
                },
                {
                  "storage": "700",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "7",
                  "product_id": "00300-30213-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.4u8g.7"
                }
              ]
            },
            {
              "vm_specification": "8vCPUs 16GB",
              "product_info": [
                {
                  "storage": "300",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "3",
                  "product_id": "00300-30215-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.8u16g.3"
                },
                {
                  "storage": "500",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "5",
                  "product_id": "00300-30217-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.8u16g.5"
                },
                {
                  "storage": "700",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "7",
                  "product_id": "00300-30219-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.8u16g.7"
                }
              ]
            },
            {
              "vm_specification": "16vCPUs 32GB",
              "product_info": [
                {
                  "storage": "300",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "3",
                  "product_id": "00300-30221-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.16u32g.3"
                },
                {
                  "storage": "500",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "5",
                  "product_id": "00300-30223-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.16u32g.5"
                },
                {
                  "storage": "700",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "7",
                  "product_id": "00300-30225-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.16u32g.7"
                }
              ]
            }
          ],
          "name": "cluster"
        }
      ]
    }
  ],
  "Monthly": [
    {
      "name": "RabbitMQ",
      "version": "3.7.0",
      "values": [
        {
          "detail": [
            {
              "storage": "100",
              "io": [
                {
                  "io_type": "normal",
                  "storage_spec_code": "dms.physical.storage.normal"
                },
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "vm_specification": "2vCPUs 4GB",
              "product_id": "00300-30110-0--0",
              "spec_code": "dms.instance.rabbitmq.single.c3.2u4g"
            },
            {
              "storage": "100",
              "io": [
                {
                  "io_type": "normal",
                  "storage_spec_code": "dms.physical.storage.normal"
                },
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "vm_specification": "4vCPUs 8GB",
              "product_id": "00300-30112-0--0",
              "spec_code": "dms.instance.rabbitmq.single.c3.4u8g"
            },
            {
              "storage": "100",
              "io": [
                {
                  "io_type": "normal",
                  "storage_spec_code": "dms.physical.storage.normal"
                },
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "vm_specification": "8vCPUs 16GB",
              "product_id": "00300-30114-0--0",
              "spec_code": "dms.instance.rabbitmq.single.c3.8u16g"
            },
            {
              "storage": "100",
              "io": [
                {
                  "io_type": "normal",
                  "storage_spec_code": "dms.physical.storage.normal"
                },
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "vm_specification": "16vCPUs 32GB",
              "product_id": "00300-30116-0--0",
              "spec_code": "dms.instance.rabbitmq.single.c3.16u32g"
            }
          ],
          "name": "single"
        },
        {
          "detail": [
            {
              "vm_specification": "4vCPUs 8GB",
              "product_info": [
                {
                  "storage": "300",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "3",
                  "product_id": "00300-30210-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.4u8g.3"
                },
                {
                  "storage": "500",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "5",
                  "product_id": "00300-30212-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.4u8g.5"
                },
                {
                  "storage": "700",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "7",
                  "product_id": "00300-30214-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.4u8g.7"
                }
              ]
            },
            {
              "vm_specification": "8vCPUs 16GB",
              "product_info": [
                {
                  "storage": "300",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "3",
                  "product_id": "00300-30216-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.8u16g.3"
                },
                {
                  "storage": "500",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "5",
                  "product_id": "00300-30218-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.8u16g.5"
                },
                {
                  "storage": "700",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "7",
                  "product_id": "00300-30220-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.8u16g.7"
                }
              ]
            },
            {
              "vm_specification": "16vCPUs 32GB",
              "product_info": [
                {
                  "storage": "300",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "3",
                  "product_id": "00300-30222-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.16u32g.3"
                },
                {
                  "storage": "500",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "5",
                  "product_id": "00300-30224-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.16u32g.5"
                },
                {
                  "storage": "700",
                  "io": [
                    {
                      "io_type": "normal",
                      "storage_spec_code": "dms.physical.storage.normal"
                    },
                    {
                      "io_type": "high",
                      "storage_spec_code": "dms.physical.storage.high"
                    },
                    {
                      "io_type": "ultra",
                      "storage_spec_code": "dms.physical.storage.ultra"
                    }
                  ],
                  "node_num": "7",
                  "product_id": "00300-30226-0--0",
                  "spec_code": "dms.instance.rabbitmq.cluster.c3.16u32g.7"
                }
              ]
            }
          ],
          "name": "cluster"
        }
      ]
    }
  ]
}

Kafka实例规格列表:

{
  "Hourly": [
    {
      "name": "kafka",
      "version": "1.1.0",
      "values": [
        {
          "detail": [
            {
              "tps": "100000",
              "storage": "1200",
              "io": [
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "bandwidth": "300MB",
              "partition_num": "1800",
              "product_id": "00300-30302-0--0",
              "spec_code": "dms.instance.kafka.cluster.c3.small"
            },
            {
              "tps": "200000",
              "storage": "2400",
              "io": [
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "bandwidth": "600MB",
              "partition_num": "1800",
              "product_id": "00300-30304-0--0",
              "spec_code": "dms.instance.kafka.cluster.c3.middle"
            },
            {
              "tps": "300000",
              "storage": "4800",
              "io": [
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "bandwidth": "1200MB",
              "partition_num": "1800",
              "product_id": "00300-30306-0--0",
              "spec_code": "dms.instance.kafka.cluster.c3.high"
            }
          ],
          "name": "cluster"
        }
      ]
    }
  ],
  "Monthly": [
    {
      "name": "kafka",
      "version": "1.1.0",
      "values": [
        {
          "detail": [
            {
              "tps": "100000",
              "storage": "1200",
              "io": [
                {
                  "io_type": "high",
                  "storage_spec_code": "dms.physical.storage.high"
                },
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "bandwidth": "300MB",
              "partition_num": "1800",
              "product_id": "00300-30303-0--0",
              "spec_code": "dms.instance.kafka.cluster.c3.small"
            },
            {
              "tps": "200000",
              "storage": "2400",
              "io": [
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "bandwidth": "600MB",
              "partition_num": "1800",
              "product_id": "00300-30305-0--0",
              "spec_code": "dms.instance.kafka.cluster.c3.middle"
            },
            {
              "tps": "300000",
              "storage": "4800",
              "io": [
                {
                  "io_type": "ultra",
                  "storage_spec_code": "dms.physical.storage.ultra"
                }
              ],
              "bandwidth": "1200MB",
              "partition_num": "1800",
              "product_id": "00300-30307-0--0",
              "spec_code": "dms.instance.kafka.cluster.c3.high"
            }
          ],
          "name": "cluster"
        }
      ]
    }
  ]
}

状态码

操作成功的状态码如表9所示,其他响应见状态码

表9 状态码

状态码

描述

200

查询规格列表成功。

分享:

    相关文档

    相关产品

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

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区