Creating a Virtual Host
Function
This API is used to create a virtual host.
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
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Virtual host name. |
Response Parameters
Status code: 200
Successful
None
Example Requests
Creating a virtual host
PUT https://{endpoint}/v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts { "name" : "vhost-demo" }
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
Successful |
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot