在RabbitMQ Management plugin上,是否可以列出交换的所有routing_keys?
答案 0 :(得分:1)
是的,您可以或者更好地通过这种方式查看交换所源的所有绑定:
/api/exchanges/vhost/name/bindings/source
例如我的测试交换:
https://myServer/api/exchanges/myvhost/myTopic/bindings/source
结果是:
{"source":"myTopic","vhost":"fftjrrmf","destination":"myPersistentQueue","destination_type":"queue","routing_key":"kern.#","arguments":{},"properties_key":"kern.%23"},
{"source":"myTopic","vhost":"fftjrrmf","destination":"test2","destination_type":"queue","routing_key":"rout_key2","arguments":{},"properties_key":"rout_key2"}]
此JSON包含您需要的所有信息。
希望它有所帮助。