{"id":20511289,"url":"https://github.com/intility/ex_rabbitmq_admin","last_synced_at":"2026-02-13T03:54:41.441Z","repository":{"id":65166199,"uuid":"564784728","full_name":"intility/ex_rabbitmq_admin","owner":"intility","description":"Tesla based client for RabbitMQ HTTP API","archived":false,"fork":false,"pushed_at":"2024-12-22T22:00:44.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-16T07:24:07.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/intility.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-11T13:46:10.000Z","updated_at":"2024-12-22T22:00:48.000Z","dependencies_parsed_at":"2023-12-06T13:43:06.832Z","dependency_job_id":null,"html_url":"https://github.com/intility/ex_rabbitmq_admin","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"6b2f7db3fea5533e58b45657f4c9059fd032aa3f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intility%2Fex_rabbitmq_admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intility%2Fex_rabbitmq_admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intility%2Fex_rabbitmq_admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intility%2Fex_rabbitmq_admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intility","download_url":"https://codeload.github.com/intility/ex_rabbitmq_admin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234173440,"owners_count":18791038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T20:35:24.720Z","updated_at":"2025-09-25T09:31:15.157Z","avatar_url":"https://github.com/intility.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Elixir CI](https://github.com/Intility/ex_rabbitmq_admin/actions/workflows/elixir.yaml/badge.svg?event=push)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Hex version badge](https://img.shields.io/hexpm/v/ex_rabbitmq_admin.svg)](https://hex.pm/packages/ex_rabbitmq_admin)\n[![Hexdocs badge](https://img.shields.io/badge/docs-hexdocs-purple)](https://hexdocs.pm/ex_rabbitmq_admin/readme.html)\n\n# ExRabbitMQAdmin\n\nSimple client library for the RabbitMQ [HTTP API](https://www.rabbitmq.com/management.html#http-api),\nbuilt on [Tesla](https://github.com/elixir-tesla/tesla).\n\nRead the full documentation [here](https://hexdocs.pm/ex_rabbitmq_admin/readme.html).\n\n### Supported functionality\n\n- [ ] Basic information endpoints (listing connections, channels, nodes, and so on)\n- [x] Client adapter configuration\n- [x] User management endpoints\n- [x] Virtual host endpoints\n- [x] Queue endpoints\n- [x] Exchange endpoints\n- [x] Bindings endpoints\n- [ ] Parameters\n- [ ] Policies endpoints\n- [ ] Operator endpoints\n- [ ] Health check endpoints\n\n## Installation\n\nThis package is [available in Hex](https://hex.pm/packages/ex_rabbitmq_admin), and can be installed\nby adding `ex_rabbitmq_admin` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ex_rabbitmq_admin, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n### Example usage\n\nFirst step is to set up some basic configuration in your `config.exs` file.\n\n```elixir\n# config.exs\n\nconfig :ex_rabbitmq_admin, ExRabbitMQAdmin,\n  base_url: \"https://rabbitmq.example.com:56721\"\n```\n\nNext, you can use the `ExRabbitMQAdmin` client from wherever you want.\n\n```elixir\ndefmodule RabbitMQControl do\n  alias ExRabbitMQAdmin\n\n  @doc \"\"\"\n  Creates a new user on the RabbitMQ cluster.\n  \"\"\"\n  def create_rabbit_user(username, password) do\n    {:ok, %Tesla.Env{status: 201}} =\n      ExRabbitMQAdmin.client()\n      |\u003e ExRabbitMQAdmin.add_basic_auth_middleware(username: \"rabbit-admin\", password: \"secret-password\")\n      |\u003e ExRabbitMQAdmin.User.put_user(username, password: password, tags: \"moderator\")\n  end\n\n  # Or maybe you want to list virtual hosts\n  def virtual_hosts do\n    {:ok, %Tesla.Env{:status: 200, body: response}} =\n      ExRabbitMQAdmin.client()\n      |\u003e ExRabbitMQAdmin.add_basic_auth_middleware(username: \"rabbit-admin\", password: \"secret-password\")\n      |\u003e ExRabbitMQAdmin.Vhost.list_vhosts()\n  end\nend\n```\n\n## Contribution\n\nThe RabbitMQ HTTP API documentation is available [here](https://rawcdn.githack.com/rabbitmq/rabbitmq-server/v3.11.2/deps/rabbitmq_management/priv/www/api/index.html).\n\n### Running the test suite\n\n```shell\n$ mix coveralls.html\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintility%2Fex_rabbitmq_admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintility%2Fex_rabbitmq_admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintility%2Fex_rabbitmq_admin/lists"}