我使用php库发布/消费消息。
我做了一些研究,但没有找到一种方法来列出分配给RabbiMQ交换的所有路由密钥(绑定)。
management可以列出绑定,但我更喜欢PHP方式。
如何获得与的RabbitMQ交换的绑定(路由密钥)?
发布于 2018-04-20 05:45:43
不幸的是,到目前为止,获得所有绑定的唯一简单方法是使用兔子管理API:
https://{messageBroker}:15671/api/exchanges/{vhost}/{exchangeName}/bindings/source
原始文档:
https://www.rabbitmq.com/management.html
https://cdn.rawgit.com/rabbitmq/rabbitmq-management/v3.7.4/priv/www/api/index.html
https://stackoverflow.com/questions/49801052
相似问题