Advanced
Тема интерфейса

Creating a Virtual Host

Function

This API is used to create a virtual host.

URI

PUT /v2/rabbitmq/{project_id}/instances/{instance_id}/vhosts

Table 1 Path Parameters

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

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

name

Yes

String

Virtual host name.

Response Parameters

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