RabbitMQ 文档说明:
Default Virtual Host and User
When the server first starts running, and detects that its database is uninitialised or has been deleted, it initialises a fresh database with the following resources:
a virtual host named /
Run Code Online (Sandbox Code Playgroud)
该API有类似的事情:
/api/exchanges/#vhost#/?name?/bindings
Run Code Online (Sandbox Code Playgroud)
哪个"?名字?" 是一个特定的交换名称.
但是,为默认的 -vhost #vhost#做了什么?
Gab*_*ele 17
正如写在这里:http://hg.rabbitmq.com/rabbitmq-management/raw-file/3646dee55e02/priv/www-api/help.html
由于默认虚拟主机名为"/",因此需要将其编码为"%2f".
所以:
/api/exchanges/%2f/{exchange_name}/bindings/source
Run Code Online (Sandbox Code Playgroud)
充分:
http://localhost:15672/api/exchanges/%2f/test_ex/bindings/source
Run Code Online (Sandbox Code Playgroud)
结果:
[{"source":"test_ex","vhost":"/","destination":"test_queue","destination_type":"queue","routing_key":"","arguments":{},"properties_key":"~"}]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1136 次 |
| 最近记录: |