Bootstrap FreeKB - RabbitMQ - Return cluster name using the REST API
RabbitMQ - Return cluster name using the REST API

Updated:   |  RabbitMQ articles

This assumes you have created a RabbitMQ user with the administrator tag.

Refer to the RabbitMQ REST API documentation.

The curl command with the --user option can be used to make an API connection to RabbitMQ. In this example, John Doe will make a connection to the RabbitMQ server listening on port 15671 and then get the cluster name.

curl
--request GET
--user john.doe:itsasecret
--url http://hostname:15671/api/cluster-name

 

Something like this should be returned.

{
    "name": "rabbit@node1.example.com"
}

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 60df50 in the box below so that we can be sure you are a human.