Ruby wrapper for the IBM MQ administrative REST API.
mq-rest-admin provides typed Ruby methods for every MQSC command
exposed by the IBM MQ 9.4 runCommandJSON REST endpoint. Attribute names are
automatically translated between Ruby idioms and native MQSC parameter
names.
gem install mq-rest-adminRequires Ruby 3.2+.
require "mq/rest/admin"
session = MQ::REST::Admin::Session.new(
"https://localhost:9443/ibmmq/rest/v2",
"QM1",
credentials: MQ::REST::Admin::BasicAuth.new(username: "mqadmin", password: "mqadmin"),
verify_tls: false
)
# Display queue manager attributes
qmgr = session.display_qmgr
puts qmgr
# List all queues
queues = session.display_queue
queues.each { |q| puts q["queue_name"] }Full documentation: https://mq-rest-admin-project.github.io/mq-rest-admin-ruby/
bundle install
bundle exec rake test
bundle exec rubocopGPL-3.0-or-later. See LICENSE.