【问题标题】:Delete Queues and Exchanges on RabbitMQ with HTTP API使用 HTTP API 在 RabbitMQ 上删除队列和交换
【发布时间】:2022-01-14 10:31:20
【问题描述】:

我有一个问题,我想使用 Curl 和 HTTP API 删除 RabbitMQ 上的队列和交换。

我想使用 2 个选项 --if-empty=true--if-unused=true

但是当我将它与 curl 一起使用时,我有一个错误。

kalenas@localhost:~$ curl -XDELETE ${RABBIT_URL}/api/queues/<scope>/<queue> --if-empty=true --if-unused=true;
curl: option --if-empty=true: is unknown
curl: try 'curl --help' or 'curl --manual' for more information

你有什么想法吗?

【问题讨论】:

    标签: api http curl rabbitmq


    【解决方案1】:

    使用

    curl -XDELETE $RABBIT_URL/api/queues/$VHOST/&lt;queue&gt; -G -d 'if-empty=true' -d 'if-empty=true'

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-05-21
      • 2019-04-20
      • 2011-10-08
      • 2017-06-04
      • 2016-05-28
      • 2013-11-23
      • 2011-12-29
      相关资源
      最近更新 更多