Skip to content

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

Repository files navigation

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.3+.

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")
  # TLS is always verified. For a self-signed/dev queue manager, pass
  # tls_ca_file: "/path/to/dev-ca.pem"
)

# 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

MIT. See LICENSE.

About

Ruby implementation of the IMB MQ administrative REST API wrappers

Resources

License

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors