Updated on 2022-08-15 GMT+08:00

Getting Started

Scenarios

This section describes how to call an API to create a RabbitMQ instance and customize the computing capabilities and storage space of the instance based on service requirements.

For details on how to call APIs, see Calling APIs.

Prerequisites

Creating a RabbitMQ Instance

The following is an example request for creating a RabbitMQ instance:

{
	"name": "rabbitmq-lxy001",
	"engine": "RabbitMQ",
	"engine_version": "3.7.17",
	"storage_space": 100,
	"access_user": "user",
	"password": "*******",
	"vpc_id": "1a28dcc5-c90d-421c-82bb-783f30f5b40a",
	"security_group_id": "0cc8fdb7-872a-49da-a062-88ccc39463b5",
	"subnet_id": "ebba7994-260d-42ab-bce1-39a08b365dc8",
	"available_zones": ["d573142f24894ef3bd3664de068b44b0"],
	"storage_spec_code": "dms.physical.storage.ultra",
	"product_id": "00300-30109-0--0"
}

  • name: name of the instance
  • engine: message engine. The value is rabbitmq.
  • engine_version: version of the message engine.
  • storage_space: message storage space in GB. For details about the value range, see Table 2.
  • access_user: user-defined username for logging in to RabbitMQ
  • password: user-defined password for logging in to RabbitMQ
  • vpc_id: ID of the Virtual Private Cloud (VPC) where the instance resides. For details, see Virtual Private Cloud API Reference.
  • security_group_id: ID of the security group.
  • subnet_id: ID of the VPC subnet.
  • available_zones: ID of the AZ where the instance resides. The value cannot be empty or null. For details, see Querying AZ Information.
  • product_id: ID of the product. For details, see Querying Product Specifications.
  • storage_spec_code: storage I/O specification. For details about the value range, see Table 2.