A vhost, or virtual host, provides logical isolation by managing its own exchanges, queues, and bindings. This allows applications to run securely on different vhosts without interfering with each other. Producers and consumers must specify a vhost to connect to an ApsaraMQ for RabbitMQ instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
amqp:CreateVhost |
create |
*VirtualHost
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the ApsaraMQ for RabbitMQ instance. |
amqp-cn-v0h1kb9n*** |
| VirtualHost |
string |
Yes |
The name of the vhost to create. The name must meet the following requirements:
|
Demo |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
628705FD-03EE-4ABE-BB21-E1672960*** |
Examples
Success response
JSON format
{
"RequestId": "628705FD-03EE-4ABE-BB21-E1672960***"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.