您可以使用management UI HTTP API,在这里您可以找到所有API
您可以使用 API /api/exchanges/{vhost}/{exchange_name}/bindings/source
例如:
http://localhost:15672/api/exchanges/%2F/Topic_test/bindings/source
你会得到一个 json 结果,类似于:
[
{
"source": "Topic_test",
"vhost": "/",
"destination": "test_0",
"destination_type": "queue",
"routing_key": "",
"arguments": { },
"properties_key": "~"
},
{
"source": "Topic_test",
"vhost": "/",
"destination": "test_1",
"destination_type": "queue",
"routing_key": "",
"arguments": { },
"properties_key": "~"
},
{
"source": "Topic_test",
"vhost": "/",
"destination": "test_2",
"destination_type": "queue",
"routing_key": "",
"arguments": { },
"properties_key": "~"
}
]