Enabling Domain Name Access to a RabbitMQ Instance
Function
A client can access a RabbitMQ instance with domain name access enabled using a domain name.
URI
POST /v2/{project_id}/rabbitmq/instances/{instance_id}/dns
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details, see Obtaining a Project ID. |
| instance_id | Yes | String | Instance ID, which can be obtained from Querying All Instances. |
Request Parameters
None
Response Parameters
Status code: 204
Successful
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Example Requests
Enabling domain name access to a RabbitMQ instance
POST https://{endpoint}/v2/{project_id}/rabbitmq/instances/{instance_id}/dns Example Responses
Status code: 400
Failed
{
"error_code" : "DMS.111501035",
"error_msg" : "dns already enabled"
} Status Codes
| Status Code | Description |
|---|---|
| 204 | Successful |
| 400 | Failed |
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