snippetbashTip
rabbitmqctl-vhosts — Manage virtual hosts (vhosts) in RabbitMQ. Vhosts are used to separate multiple logical brokers on t
Viewed 0 times
virtualcommandvhostsrabbitmqctl-vhostsclimanagehostsrabbitmq
Problem
How to use the
rabbitmqctl-vhosts command: Manage virtual hosts (vhosts) in RabbitMQ. Vhosts are used to separate multiple logical brokers on the same RabbitMQ server. More information: <https://www.rabbitmq.com/docs/vhosts>.Solution
rabbitmqctl-vhosts — Manage virtual hosts (vhosts) in RabbitMQ. Vhosts are used to separate multiple logical brokers on the same RabbitMQ server. More information: <https://www.rabbitmq.com/docs/vhosts>.List all virtual hosts:
rabbitmqctl list_vhostsAdd a new virtual host:
rabbitmqctl add_vhost {{vhost_name}}Delete a virtual host:
rabbitmqctl delete_vhost {{vhost_name}}Set permissions for a user on a specific virtual host:
rabbitmqctl set_permissions {{[-p|--vhost]}} {{vhost_name}} {{username}} {{read}} {{write}} {{configure}}Clear permissions for a user on a specific virtual host:
rabbitmqctl clear_permissions {{[-p|--vhost]}} {{vhost_name}} {{username}}Code Snippets
List all virtual hosts
rabbitmqctl list_vhostsAdd a new virtual host
rabbitmqctl add_vhost {{vhost_name}}Delete a virtual host
rabbitmqctl delete_vhost {{vhost_name}}Set permissions for a user on a specific virtual host
rabbitmqctl set_permissions {{[-p|--vhost]}} {{vhost_name}} {{username}} {{read}} {{write}} {{configure}}Clear permissions for a user on a specific virtual host
rabbitmqctl clear_permissions {{[-p|--vhost]}} {{vhost_name}} {{username}}Context
tldr-pages: common/rabbitmqctl-vhosts
Revisions (0)
No revisions yet.