gpt4 book ai didi

rabbitmq - 如何对默认虚拟主机进行 api 查询

转载 作者:行者123 更新时间:2023-12-04 01:50:53 25 4
gpt4 key购买 nike

RabbitMQ documentation状态:

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 /

api有这样的东西:
/api/exchanges/#vhost#/?name?/bindings

哪里“?名字?”是一个特定的交换名称。

然而,人们为 投入了什么? #vhost# 默认 -虚拟主机?

最佳答案

写在这里:http://hg.rabbitmq.com/rabbitmq-management/raw-file/3646dee55e02/priv/www-api/help.html

As the default virtual host is called "/", this will need to be encoded as "%2f".



所以:
/api/exchanges/%2f/{exchange_name}/bindings/source

满的:
http://localhost:15672/api/exchanges/%2f/test_ex/bindings/source

结果:
[{"source":"test_ex","vhost":"/","destination":"test_queue","destination_type":"queue","routing_key":"","arguments":{},"properties_key":"~"}]

关于rabbitmq - 如何对默认虚拟主机进行 api 查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37124375/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com