Creating a Virtual Host
Function
This API is used to create a virtual host.
Calling Method
For details, see Calling APIs.
URI
PUT /v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details, see Obtaining a Project ID. |
| instance_id | Yes | String | Instance ID. |
Request Parameters
Response Parameters
Status code: 200
Virtual host created.
None
Example Requests
Creating a virtual host named vhost-demo
PUT https://{endpoint}/v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts
{
"name" : "vhost-demo"
} Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | Virtual host created. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.