Planning to use the IBM MQ Console and REST API on z/OS
The IBM® MQ Console and REST API are applications that run in a WebSphere® Liberty (Liberty) server known as mqweb. The mqweb server runs as a started task. The IBM MQ Console allows a web browser to be used to administer queue managers. The REST API provides a simple programmatic interface for applications to do queue manager administration, and to perform messaging.
Installation and configuration files
You need to install the IBM MQ for z/OS® UNIX System Services Web Components feature, which will install the files needed to run the mqweb server in z/OS UNIX System Services (z/OS UNIX). You need to be familiar with z/OS UNIX to be able to configure and manage the mqweb server.
See IBM MQ for z/OS Program Directory PDF files for information on installing IBM MQ for z/OS UNIX System Services Components.
The IBM MQ files in z/OS UNIX are installed with various attributes set that are required for the correct operation of the mqweb server. If you need to copy the IBM MQ z/OS UNIX installation files, for example if you have installed IBM MQ on one system, and run IBM MQ on a different system, you should copy the IBM MQ ZFS created during the installation, and mount it read only at the destination. Copying the files in other ways might cause some file attributes to be lost.
You need to decide upon the location for, and create, a Liberty user directory when you create the mqweb server. This directory contains configuration and log files, and the location can be something similar to /var/mqm/mqweb.
Using the IBM MQ Console and REST API with queue managers at different levels
The REST API can directly interact only with queue managers that run at the same Version, Release, and Modification (VRM) as the mqweb server which runs the REST API. For example, the IBM MQ 9.3.0 REST API can directly interact only with local queue managers at IBM MQ 9.3.0, and the IBM MQ 9.2.5 REST API can directly interact only with local queue managers at IBM MQ 9.2.5.
You can use the REST API to administer a queue manager at a different version from the mqweb server by configuring a gateway queue manager. However, you need at least one queue manager at the same version as the mqweb server to act as the gateway queue manager. For more information, see Remote administration using the REST API.
The IBM MQ Console can be used to manage local queue managers that run at the same version as the IBM MQ Console. From IBM MQ 9.3.0, you can also use the IBM MQ Console to administer a queue manager running on a remote system, or at a different version to the IBM MQ Console. For more information, see Adding a remote queue manager to the IBM MQ Console.
Migration
If you have only one queue manager, you can run the mqweb server as a single started task, and change the libraries it uses when you migrate your queue manager.
If you have more than one queue manager, during migration you can start mqweb servers at different versions by using started tasks with different names. These names can be any name you want. For example, you can start an IBM MQ 9.1.0 mqweb server using a started task named MQWB0910, and an IBM MQ 9.0.5 mqweb server using a started task named MQWB0905.
Then, when you migrate the queue managers from one version to a later version, the queue managers become available in the mqweb server for the later version, and are no longer available in the mqweb server for the earlier version.
Once you have migrated all the queue managers to the later version, you can delete the mqweb server for the earlier version.
HTTP ports
- One for HTTPS, with a default value of 9443.
- One for HTTP. HTTP is not enabled by default, but if enabled, has a default value of 9080.
NETSTAT TCP tcpip (PORT portNumber)
where
tcpip is the name of the TCP/IP address space, and portNumber
specifies the number of the port to display information about.Security - starting the mqweb server
The mqweb server user ID needs certain authorities. For more information, see Authority required by the mqweb server started task user ID.
Security - using the IBM MQ Console and REST API
When you use the IBM MQ Console and REST API, you must authenticate as a user that is included in
a configured registry. These users are assigned specific roles that determine the actions the users
can perform. For example, to use the messaging REST API, a user
must be assigned the MQWebUser
role. For more information about the available roles for the IBM MQ Console and REST API, and the access that these roles grant, see Roles on the IBM MQ Console and REST API.
For more information about configuring security for the IBM MQ Console and REST API, see IBM MQ Console and REST API security.