Querying Product Information for Instance Specification Modification
Function
Querying Product Information for Instance Specification Modification
RabbitMQ instance specifications can be increased only by increasing the number of nodes.
Debugging
You can use API Explorer to debug this API.
URI
GET /v2/{project_id}/instances/{instance_id}/extend
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
type |
Yes |
String |
Product edition.
|
|
engine |
Yes |
String |
Message engine, which is rabbitmq. |
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/{project_id}/instances/{instance_id}/extend?type={type}&engine={engine}
Example Responses
Status code: 200
The query is successful.
{
"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" ]
} ]
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The query is successful. |
Error Codes
See Error Codes.
Last Article: Specification Modification Management
Next Article: Modifying Instance Specifications
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.