美文网首页
【rabbitMQ】RabbitMQ Management HT

【rabbitMQ】RabbitMQ Management HT

作者: Bogon | 来源:发表于2023-02-25 00:58 被阅读0次

    RabbitMQ Management HTTP API

    Introduction

    Apart from this help page, all URIs will serve only resources of type application/json, and will require HTTP basic authentication (using the standard RabbitMQ user database). The default user is guest/guest.

    Many URIs require the name of a virtual host as part of the path, since names only uniquely identify objects within a virtual host. As the default virtual host is called "/", this will need to be encoded as "%2f".

    PUTing a resource creates it. The JSON object you upload must have certain mandatory keys (documented below) and may have optional keys. Other keys are ignored. Missing mandatory keys constitute an error.

    Since bindings do not have names or IDs in AMQP we synthesise one based on all its properties. Since predicting this name is hard in the general case, you can also create bindings by POSTing to a factory URI. See the example below.

    Many URIs return lists. Such URIs can have the query string parameters sort and sort_reverse added. sort allows you to select a primary field to sort by, and sort_reverse will reverse the sort order if set to true. The sort parameter can contain subfields separated by dots. This allows you to sort by a nested component of the listed items; it does not allow you to sort by more than one field. See the example below.

    You can also restrict what information is returned per item with the columns parameter. This is a comma-separated list of subfields separated by dots. See the example below.

    Most of the GET queries return many fields per object. See the separate stats documentation.

    Examples

    A few quick examples for Windows and Unix, using the command line tool curl:

    参考

    RabbitMQ Management HTTP API
    https://pulse.mozilla.org/api/index.html

    相关文章

      网友评论

          本文标题:【rabbitMQ】RabbitMQ Management HT

          本文链接:https://www.haomeiwen.com/subject/wnhfldtx.html