[rabbitmq-discuss] List all bindings for an exchange

Kapil Goyal goyalk at vmware.com
Tue Aug 19 22:38:51 BST 2014


Thanks Michael.

>> /api/exchanges/{vhost}/{name}/bindings/source lists all bindings
>> where exchange {name} in vhost {vhost} is the source (things are bound
>>to it).

This is exactly what I was looking for, but I mistook Œsource¹ to be a
variable and that I was supposed to provide the name of another exchange
here.

>> By the way, the list has moved to rabbitmq-users, please start new
>>discussions there:

I will.

Regards
Kapil


On 8/19/14, 11:38 AM, "Michael Klishin" <mklishin at pivotal.io> wrote:

>On 19 August 2014 at 21:10:42, Kapil Goyal (goyalk at vmware.com) wrote:
>> > 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.
>
>We first need to define what "bindings on an exchange" means. Is the
>exchange
>supposed to be the source in the binding (as in, when queues or exchanges
>are bound to it),
>or a destination (when it is bound to other exchanges)
>
>> 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/exchanges/{vhost}/{name}/bindings/source lists all bindings
>where exchange {name} in vhost {vhost} is the source (things are bound to
>it).
>
>Likewise, /api/exchanges/{vhost}/{name}/bindings/destination lists
>bindings
>when exchange {exchange} in vhost {vhost} is the destination.
>
>Pick which one of the above you want (or maybe both).
>
>By the way, the list has moved to rabbitmq-users, please start new
>discussions
>there:
>
>https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/forum
>/%23%21forum/rabbitmq-users&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JF6BIRiI
>TniYYZhbhzlgNvj%2FeB0%2BYbRBSr0f8NG91qs%3D%0A&m=ghbRfGOJ6Qepdqn3ygv%2Bj3PL
>uXPpx59A4K%2BJvV%2Bvr%2Bw%3D%0A&s=9304967be4698113d4f0b6adc0eed0bb98dfa135
>49560350e01afe2f97944e89
>--  
>MK  
>
>Staff Software Engineer, Pivotal/RabbitMQ



More information about the rabbitmq-discuss mailing list