0

Good Day.

Is there a way to retrieve routing keys for an existing exchange (fanout or topic) via the browser based UI?

I don't have access to the client source code (producer) to see which routing keys are being sent to the model.

Thank you.

Edit: The idea is to try and latch on to an existing fanout exchange (which I cannot reconfigure). I want to create a new exchange, bind it to this one and only filter out certain messages.

jdg
  • 3
  • 2
  • To get exchange bindings use http://localhost:15672/api/exchanges/vhost/name/bindings/source es: http://localhost:15672/api/exchanges/%2F/my_exchange/bindings/source – Gabriele Santomaggio Jul 03 '15 at 10:04
  • Your Sir, Mr Gas are my hero :) Thanks so much, you are correct. i'm unable to mark your comment as being correct though :( – jdg Jul 03 '15 at 10:35

1 Answers1

0

Use the HTTP API:

http://localhost:15672/api/exchanges/vhost/name/bindings/source

A list of all bindings in which a given exchange is the source.

for example:

http://localhost:15672/api/exchanges/%2F/my_exchange/bindings/source

[
   {
      "source":"my_exchange",
      "vhost":"/",
      "destination":"my_queue",
      "destination_type":"queue",
      "routing_key":"my_routkey",
      "arguments":{

      },
      "properties_key":"my_routkey"
   }
]
Gabriele Santomaggio
  • 21,656
  • 4
  • 52
  • 52