Skip to content

mq-rest-admin-project/mq-rest-admin-ruby

mq-rest-admin-ruby

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.

Table of Contents

Installation

gem install mq-rest-admin

Requires Ruby 3.2+.

Quick start

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"] }

Documentation

Full documentation: https://mq-rest-admin-project.github.io/mq-rest-admin-ruby/

Development

bundle install
bundle exec rake test
bundle exec rubocop

License

GPL-3.0-or-later. See LICENSE.

About

Ruby implementation of the IMB MQ administrative REST API wrappers

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors