Help Center/ Distributed Message Service for RabbitMQ/ API Reference (ME-Abu Dhabi Region)/ APIs V2 (Recommended)/ Specification Modification Management/ Querying Product Information for Specification Modification of Instances with New Flavors
Updated on 2024-10-30 GMT+08:00

Querying Product Information for Specification Modification of Instances with New Flavors

Function

This API is used to query the product information for specification modification of instances with new flavors.

URI

GET /v2/{engine}/{project_id}/instances/{instance_id}/extend

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

engine

Yes

String

Message engine, which is rabbitmq.

Default: rabbitmq

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID.

instance_id

Yes

String

Instance ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

type

No

String

Product edition.

  • advanced: the premium edition

  • platinum: the platinum edition

  • dec: the dedicated cloud edition

  • exp: the experience edition

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

engine

String

Message engine.

versions

Array of strings

Versions supported by the message engine.

products

Array of RabbitMQExtendProductInfoEntity objects

Product information for specification modification.

Table 4 RabbitMQExtendProductInfoEntity

Parameter

Type

Description

type

String

Instance type.

product_id

String

Product ID.

ecs_flavor_id

String

ECS flavor used by the product.

arch_types

Array of strings

Supported CPU architectures.

charging_mode

Array of strings

Supported billing modes.

ios

Array of RabbitMQExtendProductIosEntity objects

Disk I/O information.

properties

RabbitMQExtendProductPropertiesEntity object

Key-value pair of a feature.

available_zones

Array of strings

AZs where there are available resources.

unavailable_zones

Array of strings

AZs where resources are sold out.

support_features

Array of RabbitMQProductSupportFeaturesEntity objects

Supported features.

Table 5 RabbitMQExtendProductIosEntity

Parameter

Type

Description

io_spec

String

Storage I/O specification.

available_zones

Array of strings

AZs where there are available resources.

type

String

I/O type.

unavailable_zones

Array of strings

AZs where resources are sold out.

Table 6 RabbitMQExtendProductPropertiesEntity

Parameter

Type

Description

max_broker

String

Maximum number of brokers.

max_storage_per_node

String

Maximum storage space of each broker. Unit: GB.

min_broker

String

Minimum number of brokers.

min_storage_per_node

String

Minimum storage space of each broker. Unit: GB.

max_connection_per_broker

String

Maximum number of connections.

step_length

String

Increment.

product_alias

String

Alias of product_id.

max_queue_per_broker

String

Maximum number of queues.

Table 7 RabbitMQProductSupportFeaturesEntity

Parameter

Type

Description

name

String

Feature name.

properties

Map<String,String>

Key-value pair of a feature.

Example Requests

Querying product information for instance specification modification

GET https://{endpoint}/v2/{engine}/{project_id}/instances/{instance_id}/extend

Example Responses

Status code: 200

Successfully queried the product information for instance specification modification.

{
  "engine" : "rabbitmq",
  "versions" : [ "3.8.35" ],
  "products" : [ {
    "type" : "single",
    "product_id" : "c6.2u4g.single",
    "ecs_flavor_id" : "c6.large.2",
    "arch_types" : [ "X86" ],
    "charging_mode" : [ "monthly", "hourly" ],
    "ios" : [ {
      "io_spec" : "dms.physical.storage.ultra.v2",
      "available_zones" : [ "xxx" ],
      "type" : "evs",
      "unavailable_zones" : [ "xxx" ]
    }, {
      "io_spec" : "dms.physical.storage.high.v2",
      "available_zones" : [ "xxx" ],
      "type" : "evs",
      "unavailable_zones" : [ "xxx" ]
    } ],
    "support_features" : [ ],
    "properties" : {
      "max_connection_per_broker" : "2000",
      "max_broker" : "1",
      "max_queue_per_broker" : "100",
      "max_storage_per_node" : "30000",
      "min_broker" : "1",
      "product_alias" : "rabbitmq.2u4g.single",
      "step_length" : "0",
      "min_storage_per_node" : "100"
    },
    "available_zones" : [ "xxx" ],
    "unavailable_zones" : [ ]
  }, {
    "type" : "single",
    "product_id" : "c6.4u8g.single",
    "ecs_flavor_id" : "c6.xlarge.2",
    "arch_types" : [ "X86" ],
    "charging_mode" : [ "monthly", "hourly" ],
    "ios" : [ {
      "io_spec" : "dms.physical.storage.high.v2",
      "available_zones" : [ "xxx" ],
      "type" : "evs",
      "unavailable_zones" : [ "xxx" ]
    }, {
      "io_spec" : "dms.physical.storage.ultra.v2",
      "available_zones" : [ "xxx" ],
      "type" : "evs",
      "unavailable_zones" : [ "xxx" ]
    } ],
    "support_features" : [ ],
    "properties" : {
      "max_connection_per_broker" : "3000",
      "max_broker" : "1",
      "max_queue_per_broker" : "200",
      "max_storage_per_node" : "30000",
      "min_broker" : "1",
      "product_alias" : "rabbitmq.4u8g.single",
      "step_length" : "0",
      "min_storage_per_node" : "100"
    },
    "available_zones" : [ "xxx" ],
    "unavailable_zones" : [ ]
  } ]
}

Status Codes

Status Code

Description

200

Successfully queried the product information for instance specification modification.

Error Codes

See Error Codes.