[rabbitmq-discuss] List all bindings for an exchange

Kapil Goyal goyalk at vmware.com
Tue Aug 19 18:08:59 BST 2014


Thanks Brett. I did already go through the available management plugin API and didn't find a way to do what I want, which is to get all bindings for an exchange. I can see this information on the management plugin UI, when I click on an exchange and go into its details, so there must be a way to do it. Here are all the REST APIs that provide bindings:

/api/exchanges/vhost/name/bindings/source - provides bindings between two exchanges
/api/exchanges/vhost/name/bindings/destination - provides bindings between two exchanges
/api/queues/vhost/name/bindings - provides all bindings for a queue. I am looking for a similar API for exchanges.
/api/bindings - provides all bindings in RMQ
/api/bindings/vhost - provides all bindings in a virtual host
/api/bindings/vhost/e/exchange/q/queue - provides all bindings between an exchange and a queue
/api/bindings/vhost/e/source/e/destination - provides all bindings between two exchanges

So, as you can see, there is no API that provides all bindings for a given exchange. Am I missing something or is it not possible? How does management UI display this information in the exchange details page?

Thanks
Kapil



From: Brett Cameron <brett.r.cameron at gmail.com<mailto:brett.r.cameron at gmail.com>>
Reply-To: rabbitmq-discuss <rabbitmq-discuss at lists.rabbitmq.com<mailto:rabbitmq-discuss at lists.rabbitmq.com>>
Date: Monday, August 18, 2014 at 4:59 PM
To: rabbitmq-discuss <rabbitmq-discuss at lists.rabbitmq.com<mailto:rabbitmq-discuss at lists.rabbitmq.com>>
Subject: Re: [rabbitmq-discuss] List all bindings for an exchange

You can't do that via AMQP; see http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_3_5/priv/www/api/index.html<https://urldefense.proofpoint.com/v1/url?u=http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_3_5/priv/www/api/index.html&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JF6BIRiITniYYZhbhzlgNvj%2FeB0%2BYbRBSr0f8NG91qs%3D%0A&m=Z4eqT8PoSI3FmEO1d3nLuZpnp5f5N8ANJw2XBn5pQF8%3D%0A&s=73ebfff06bfe0ef6cf70362846892523c4a4ca054b425abbaa35414dbe269257> for the relevant Management API info

Brett


On Tue, Aug 19, 2014 at 11:54 AM, Kapil Goyal <goyalk at vmware.com<mailto:goyalk at vmware.com>> wrote:
Hi,

How do I list all bindings for an exchange using AMQP or the management API?

Thanks
Kapil


_______________________________________________
rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users<https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/forum/%23%21forum/rabbitmq-users&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JF6BIRiITniYYZhbhzlgNvj%2FeB0%2BYbRBSr0f8NG91qs%3D%0A&m=Z4eqT8PoSI3FmEO1d3nLuZpnp5f5N8ANJw2XBn5pQF8%3D%0A&s=b71cb0a19d0113562c4be5488c10f9c849020cef5ece328bd5e6fc4802cc923a>,
please subscribe to the new list!

rabbitmq-discuss at lists.rabbitmq.com<mailto:rabbitmq-discuss at lists.rabbitmq.com>
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss<https://urldefense.proofpoint.com/v1/url?u=https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JF6BIRiITniYYZhbhzlgNvj%2FeB0%2BYbRBSr0f8NG91qs%3D%0A&m=Z4eqT8PoSI3FmEO1d3nLuZpnp5f5N8ANJw2XBn5pQF8%3D%0A&s=1d52397983bde6c0c7008ec2640684e2cc74e94449514535a41fa05c08e42d82>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140819/b3ef48d1/attachment.html>


More information about the rabbitmq-discuss mailing list