[rabbitmq-discuss] RabbitMQAdmin declare parameters

Simon MacMullen simon at rabbitmq.com
Fri Jan 18 11:05:51 GMT 2013


On 17/01/13 17:27, Jason McIntosh wrote:
> I was looking to see if I could pass
> arguments to the creation of the exchange somehow.  Any advice on this?

This isn't possible in the version of rabbitmqadmin that ships with 
3.0.1. But I just merged support for arguments. So you can download an 
updated rabbitmqadmin from

http://hg.rabbitmq.com/rabbitmq-management/raw-file/5c771ead6890/bin/rabbitmqadmin

and then use it like so:

rabbitmqadmin declare exchange name=test type=topic \
   'arguments={"alternate-exchange":"amq.fanout"}'

(The single quotes are there to defend the JSON from sh. Quoting rules 
may differ in other shells or on Windows.)

This feature will ship in 3.1.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list