How to connect to a Cloud Essentials for RabbitMQ deployment
This page explains how to connect to a RabbitMQ deployment using the Scaleway console, using the REST API, or the Advanced Message Queuing Protocol (AMQP).
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- Created a RabbitMQ deployment
How to connect to a Cloud Essentials for RabbitMQ deployment
How to connect to a RabbitMQ dashboard
-
Click RabbitMQ in the Integration Services section of the console. The list of your RabbitMQ deployments displays.
-
Click the name of the RabbitMQ deployment you want to connect to. Its Overview page displays.
-
In the Deployment information section, click the RabbitMQ dashboard button. A new tab opens in your browser.
-
Enter the credentials set up during deployment creation, then click Log in.
You are now connected to your Cloud Essentials for RabbitMQ deployment. Refer to the RabbitMQ documentation for comprehensive information on the RabbitMQ management dashboard.
How to communicate with a deployment using the Management REST API
-
Click RabbitMQ in the Integration Services section of the console. The list of your RabbitMQ deployments displays.
-
From the Network section of the Overview tab of your deployment, copy the API endpoint.
-
In a terminal, run the following command to check RabbitMQ server health using the Management REST API.
Remember to replace the placeholders with the appropriate values:
<username>: the username set up when the deployment was created<password>: the password set up when the deployment was created<rabbitmq_host>: the API endpoint value you have just copied, the string afteramqps://and before:<port-number>
curl -u <username>:<password> http://<rabbitmq_host>:15672/api/healthchecks/nodeAn output similar to the following displays:
{ status: ok, checks: [ { check: virtual_hosts, status: ok }, { check: listeners, status: ok }, { check: certificate_expiry, status: ok } ] }
How to communicate with a deployment using the AMQP protocol
-
Click RabbitMQ in the Integration Services section of the console. The list of your RabbitMQ deployments displays.
-
From the Network section of the Overview tab of your deployment, copy the API endpoint.
-
In a terminal, run the following command to test connectivity using the AMQP protocol.
Remember to replace the placeholders with the appropriate values:
<username>: the username set up when the deployment was created<password>: the password set up when the deployment was created<rabbitmq_host>: the API endpoint value you have just copied, the string afteramqps://and before:<port-number>
python3 -c "import pika; conn = pika.BlockingConnection(pika.URLParameters('amqp://<username>:<password>@<rabbitmq_host>:5672')); print('Connection successful'); conn.close()"An output similar to the following displays:
Connection successful