RabbitMQ - List policies using the rabbitmqctl list_policies command

by
Jeremy Canfield |
Updated: February 23 2022
| RabbitMQ articles
The rabbitmqctl list_policies command can be used to list the policies that have been created.
rabbitmqctl list_policies -p vhost001
Something like this should be returned. In this example, there is a a policy named policy001 in virtual host vhost001 to set the max length to 100 messages, and the policy is applied to queue001.
Listing policies for vhost "vhost001" ...
vhost name pattern apply-to definition priority
vhost001 policy001 queue001 queues {"max-length":100} 0
Did you find this article helpful?
If so, consider buying me a coffee over at