Updated on 2024-01-29 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",
 "engine": "rabbitmq",
 "engine_version": "3.8.35",
 "storage_space": 100,
 "access_user": "test",
 "password": "ZxxxA",
 "vpc_id": "eadxxxe72c",
 "security_group_id": "aa75axxxc8c73220",
 "subnet_id": "3cb6axxx671d6a8",
 "available_zones": [
  "effdcxxxb42f56533"
 ],
 "product_id": "c6.2u4g.single",
 "storage_spec_code": "dms.physical.storage.ultra.v2"
}
  • 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 Creating an Instance.
  • access_user: user-defined username for logging in to RabbitMQ.
  • password: user-defined password for logging in to RabbitMQ.
  • vpc_id: ID of the VPC where the RabbitMQ instance resides. Obtain the value by using the API described in Creating an Instance.
  • security_group_id: ID of the security group. Obtain the value by using the API described in Creating an Instance.
  • subnet_id: ID of the VPC subnet. Obtain the value by using the API described in Creating an Instance.
  • available_zones: ID of the AZ where the instance resides. The value cannot be empty or null. Obtain the value by calling the API described in Querying AZ Information.
  • product_id: ID of the product. Obtain the value by calling the API described in Querying Product Specifications.
  • storage_spec_code: storage I/O specification. For details about the value range, see Creating an Instance.