RabbitMQ - List Queues using the REST API

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 list every queue.

--request GET
--user john.doe:itsasecret
--url http://hostname:15671/api/queues


Or, you can list all of the queues in a specific virtual host.

--request GET
--user john.doe:itsasecret
--url http://hostname:15671/api/queues/vhost001


Or, you can specify a specific queue in a specific virtual host.

--request GET
--user john.doe:itsasecret
--url http://hostname:15671/api/queues/vhost001/queue001


For the / vhost, use %2F.

--request GET
--user john.doe:itsasecret
--url http://hostname:15671/api/queues/%2F/queue001


If the queue does not exist, something like this should be returned.

  "error":"Object Not Found",
  "reason":"Not Found"


On the other hand, something like this should be returned for each queue.



Did you find this article helpful?

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

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

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


Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |