Creates a vhost. A vhost is a logically isolated virtual host used to manage exchanges, queues, and bindings separately, allowing applications to run securely on different vhosts without interfering with each other. Producers and consumers must specify a vhost when connecting to ApsaraMQ for RabbitMQ.
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 be created. Valid values:
|
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.