Listing Product Specifications
Function
This API is used to query the product specifications to configure the product ID.
Debugging
You can use API Explorer to debug this API.
URI
GET /v2/products
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| engine | No | String | Message engine. Currently, only RabbitMQ is supported. |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| hourly | Array of hourly objects | List of pay-per-use products. |
| monthly | Array of monthly objects | List of products in yearly/monthly billing mode. Currently, you cannot create yearly/monthly billing RabbitMQ instances by calling APIs. |
| Parameter | Type | Description |
|---|---|---|
| name | String | Name of the message engine, which is rabbitmq. |
| version | String | Version of the message engine. Currently, only version 3.7.17 is supported. |
| values | Array of values objects | Product specifications. |
| Parameter | Type | Description |
|---|---|---|
| detail | Array of detail objects | Specification details. |
| name | String | Instance type. |
| unavailable_zones | Array of strings | AZs where resources are sold out. |
| available_zones | Array of strings | List of AZs where there are available resources. |
| Parameter | Type | Description |
|---|---|---|
| storage | String | Message storage space. |
| product_id | String | Product ID. |
| spec_code | String | Specification ID. |
| io | Array of io objects | I/O information. |
| unavailable_zones | Array of strings | AZs where resources are sold out. |
| available_zones | Array of strings | List of AZs where there are available resources. |
| ecs_flavor_id | String | Flavors of the corresponding ECS. |
| arch_type | String | Instance architecture type. Currently, only x86 is supported. |
| Parameter | Type | Description |
|---|---|---|
| io_type | String | I/O type. |
| storage_spec_code | String | I/O specifications. |
| available_zones | Array of strings | List of AZs where there are available I/O resources. |
| unavailable_zones | Array of strings | List of AZs where I/O resources are sold out. |
| volume_type | String | Disk type. |
| Parameter | Type | Description |
|---|---|---|
| name | String | Name of the message engine, which is rabbitmq. |
| version | String | Version of the message engine. Currently, only version 3.7.17 is supported. |
| values | Array of values objects | Product specifications. |
| Parameter | Type | Description |
|---|---|---|
| detail | Array of detail objects | Specification details. |
| name | String | Instance type. |
| unavailable_zones | Array of strings | AZs where resources are sold out. |
| available_zones | Array of strings | List of AZs where there are available resources. |
| Parameter | Type | Description |
|---|---|---|
| storage | String | Message storage space. |
| product_id | String | Product ID. |
| spec_code | String | Specification ID. |
| io | Array of io objects | I/O information. |
| unavailable_zones | Array of strings | AZs where resources are sold out. |
| available_zones | Array of strings | List of AZs where there are available resources. |
| ecs_flavor_id | String | Flavors of the corresponding ECS. |
| arch_type | String | Instance architecture type. Currently, only x86 is supported. |
| Parameter | Type | Description |
|---|---|---|
| io_type | String | I/O type. |
| storage_spec_code | String | I/O specifications. |
| available_zones | Array of strings | List of AZs where there are available I/O resources. |
| unavailable_zones | Array of strings | List of AZs where I/O resources are sold out. |
| volume_type | String | Disk type. |
Example Requests
GET https://{endpoint}/v2/products?engine=rabbitmq Example Responses
Status code: 200
Product specifications are queried successfully.
{
"hourly" : [ {
"name" : "RabbitMQ",
"version" : "3.7.17",
"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" : [ "cn-north-7b", "cn-north-7a", "cn-north-7c" ],
"volume_type" : "SATA"
} ],
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ],
"ecs_flavor_id" : "s6.medium.2",
"arch_type" : "X86"
} ],
"name" : "single",
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ]
}, {
"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" : [ "cn-north-7b", "cn-north-7a", "cn-north-7c" ],
"volume_type" : "SATA"
} ],
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ],
"ecs_flavor_id" : "c3.medium.4"
} ],
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ],
"arch_type" : "X86"
} ],
"name" : "cluster",
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ]
} ]
} ],
"monthly" : [ {
"name" : "RabbitMQ",
"version" : "3.7.17",
"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" : [ "cn-north-7b", "cn-north-7a", "cn-north-7c" ],
"volume_type" : "SATA"
} ],
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ],
"ecs_flavor_id" : "s6.medium.2",
"arch_type" : "X86"
} ],
"name" : "single",
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ]
}, {
"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" : [ "cn-north-7b", "cn-north-7a", "cn-north-7c" ],
"volume_type" : "SATA"
} ],
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ],
"ecs_flavor_id" : "c3.medium.4"
} ],
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ],
"arch_type" : "X86"
} ],
"name" : "cluster",
"unavailable_zones" : [ "cn-north-7b", "cn-north-7a" ],
"available_zones" : [ "cn-north-7c" ]
} ]
} ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Product specifications are queried successfully. |
Error Codes
See Error Codes.
Last Article: Listing AZ Information
Next Article: Permissions Policies and Supported Actions
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.