更新时间:2024-10-29 GMT+08:00

查询产品规格列表

当前页面API为历史版本API,未来可能停止维护。请使用查询产品规格列表

功能介绍

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

URI

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

参数说明见表1

表1 参数说明

参数

类型

必选

说明

engine

String

消息引擎的类型。

请求消息

请求参数

无。

请求示例

无。

响应消息

响应参数

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

表2 参数说明

参数

类型

备注

name

String

消息引擎的名称。

version

String

消息引擎的版本。

values

Array

产品规格列表。

表3 values参数说明

参数

类型

备注

detail

Array

规格详情。

name

String

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

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

参数

类型

备注

storage

String

消息存储空间。

io

Array

IO信息。

vm_specification

String

虚拟机规格。

product_id

String

产品ID。

spec_code

String

规格ID。

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

参数

类型

备注

vm_specification

String

虚拟机规格。

product_info

Array

产品信息。

表6 product_info参数说明

参数

类型

备注

storage

String

消息存储空间。

io

Array

IO信息。

node_num

Integer

集群的节点个数。

product_id

String

产品ID。

spec_code

String

规格ID。

表7 io参数说明

参数

类型

备注

io_type

String

IO类型。

storage_spec_code

String

IO规格。

响应示例

RabbitMQ规格列表:

{
  "Hourly": [
    {
      "name": "RabbitMQ",
      "version": "3.x.x",
      "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.x.x",
      "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"
        }
      ]
    }
  ]
}

状态码

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

表8 状态码

状态码

描述

200

查询规格列表成功。