Creates a vhost. A vhost is used to logically isolate resources. Each vhost manages its own exchanges, queues, and bindings. Applications can run on independent vhosts in a secure manner. This way, the business of an application is not affected by other applications. Before you connect producers and consumers to an ApsaraMQ for RabbitMQ instance, you must specify vhosts for the producers and consumers.
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.