查询产品规格列表
URI
GET /v2/products
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
engine |
否 |
String |
消息引擎的类型。当前只支持rabbitmq。 |
请求参数
无
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
Hourly |
Array of Hourly objects |
表示按需付费的产品列表。 |
Monthly |
Array of Monthly objects |
表示包年包月的产品列表。当前暂不支持通过API创建包年包月的RabbitMQ实例。 |
参数 |
参数类型 |
描述 |
---|---|---|
name |
String |
消息引擎的名称,该字段显示为rabbitmq。 |
version |
String |
消息引擎的版本。 |
values |
Array of values objects |
产品规格列表。 |
参数 |
参数类型 |
描述 |
---|---|---|
detail |
Array of detail objects |
规格详情。 |
name |
String |
实例类型。 |
unavailable_zones |
Array of strings |
资源售罄的可用区列表。 |
available_zones |
Array of strings |
有可用资源的可用区列表。 |
参数 |
参数类型 |
描述 |
---|---|---|
storage |
String |
消息存储空间。 |
product_id |
String |
产品ID。 |
spec_code |
String |
规格ID。 |
io |
Array of io objects |
IO信息。 |
unavailable_zones |
Array of strings |
资源售罄的可用区列表。 |
available_zones |
Array of strings |
有可用资源的可用区列表。 |
ecs_flavor_id |
String |
该产品规格对应的虚拟机规格。 |
arch_type |
String |
实例规格架构类型。当前仅支持X86。 |
参数 |
参数类型 |
描述 |
---|---|---|
io_type |
String |
IO类型。 |
storage_spec_code |
String |
IO规格。 |
available_zones |
Array of strings |
IO未售罄的可用区列表。 |
unavailable_zones |
Array of strings |
IO已售罄的不可用区列表。 |
volume_type |
String |
磁盘类型。 |
参数 |
参数类型 |
描述 |
---|---|---|
name |
String |
消息引擎的名称,该字段显示为rabbitmq。 |
version |
String |
消息引擎的版本。 |
values |
Array of values objects |
产品规格列表。 |
参数 |
参数类型 |
描述 |
---|---|---|
detail |
Array of detail objects |
规格详情。 |
name |
String |
实例类型。 |
unavailable_zones |
Array of strings |
资源售罄的可用区列表。 |
available_zones |
Array of strings |
有可用资源的可用区列表。 |
参数 |
参数类型 |
描述 |
---|---|---|
storage |
String |
消息存储空间。 |
product_id |
String |
产品ID。 |
spec_code |
String |
规格ID。 |
io |
Array of io objects |
IO信息。 |
unavailable_zones |
Array of strings |
资源售罄的可用区列表。 |
available_zones |
Array of strings |
有可用资源的可用区列表。 |
ecs_flavor_id |
String |
该产品规格对应的虚拟机规格。 |
arch_type |
String |
实例规格架构类型。当前仅支持X86。 |
参数 |
参数类型 |
描述 |
---|---|---|
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/products?engine=rabbitmq
响应示例
状态码: 200
查询规格列表成功。
{
"Hourly" : [ {
"name" : "RabbitMQ",
"version" : "3.x.x",
"values" : [ {
"detail" : [ {
"storage" : "100",
"vm_specification" : "2vCPUs 4GB",
"product_id" : "00300-30109-0--0",
"spec_code" : "dms.instance.rabbitmq.single.c3.2u4g",
"io" : [ {
"io_type" : "normal",
"storage_spec_code" : "dms.physical.storage.normal",
"available_zones" : [ "xx-xxx-xx", "xx-xxx-xx", "xx-xxx-xx" ],
"volume_type" : "SATA"
} ],
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ],
"ecs_flavor_id" : "s6.medium.2",
"arch_type" : "X86"
} ],
"name" : "single",
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ]
}, {
"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" : "normal",
"storage_spec_code" : "dms.physical.storage.normal",
"available_zones" : [ "xx-xxx-xx", "xx-xxx-xx", "xx-xxx-xx" ],
"volume_type" : "SATA"
} ],
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ],
"ecs_flavor_id" : "c3.medium.4"
} ],
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ],
"arch_type" : "X86"
} ],
"name" : "cluster",
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ]
} ]
} ],
"Monthly" : [ {
"name" : "RabbitMQ",
"version" : "3.x.x",
"values" : [ {
"detail" : [ {
"storage" : "100",
"vm_specification" : "2vCPUs 4GB",
"product_id" : "00300-30110-0--0",
"spec_code" : "dms.instance.rabbitmq.single.c3.2u4g",
"io" : [ {
"io_type" : "normal",
"storage_spec_code" : "dms.physical.storage.normal",
"available_zones" : [ "xx-xxx-xx", "xx-xxx-xx", "xx-xxx-xx" ],
"volume_type" : "SATA"
} ],
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ],
"ecs_flavor_id" : "s6.medium.2",
"arch_type" : "X86"
} ],
"name" : "single",
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ]
}, {
"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" : "normal",
"storage_spec_code" : "dms.physical.storage.normal",
"available_zones" : [ "xx-xxx-xx", "xx-xxx-xx", "xx-xxx-xx" ],
"volume_type" : "SATA"
} ],
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ],
"ecs_flavor_id" : "c3.medium.4"
} ],
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ],
"arch_type" : "X86"
} ],
"name" : "cluster",
"unavailable_zones" : [ "xx-xxx-xx", "xx-xxx-xx" ],
"available_zones" : [ "xx-xxx-xx" ]
} ]
} ]
}
状态码
状态码 |
描述 |
---|---|
200 |
查询规格列表成功。 |
错误码
请参见错误码。