+

Search Tips | Advanced Search

GET

Use the HTTP GET method with the qmgr resource to request basic information and status information about queue managers.

The information that is returned is similar to the information that is returned by the dspmq control command, the DISPLAY QMSTATUS MQSC command, and the Inquire Queue Manager Status PCF command.


Resource URL

Version 9.0.4 and later:
https://host:port/ibmmq/rest/v1/admin/qmgr/{qmgrName}

Version 9.0.3 and earlier:
https://host:port/ibmmq/rest/v1/qmgr/{qmgrName}

We can use HTTP instead of HTTPS if you enable HTTP connections. For more information about enabling HTTP, see Configure HTTP and HTTPS ports.


Optional query parameters


Request headers

The following headers must be sent with the request:

The following headers can optionally be sent with the request:


Request body format

None.


Security requirements

The caller must be authenticated to the mqweb server and must be a member of one or more of the MQWebAdmin, MQWebAdminRO, or MQWebUser roles. For more information about security for the administrative REST API, see IBM MQ Console and REST API security.

When the status optional query parameter is specified, the ability to issue certain PCF commands is required. If only a subset of the status attributes is to be returned, only the permissions for the corresponding PCF commands are required. The security principal of the caller must be granted the ability to issue the following PCF commands for the specified queue manager:

On UNIX, Linux, and Windows, we can grant authority to security principals to use IBM MQ resources by using the mqsetaut command. For more information, see mqsetaut.

On z/OS, see Set up security on z/OS.


Response status codes


Response headers

The following headers are returned with the response:


Response body format

The response is in JSON format in UTF-8 encoding. The response contains an outer JSON object that contains a single JSON array called qmgr. Each element in the array is a JSON object that represents information about a queue manager. Each JSON object contains the following attributes:

The following objects can be included in the JSON object that represents information about a queue. Which objects and attributes are returned depends on the URL that was specified for the request:

For more information, see Response body attributes for queue managers.

If an error occurs, the response body contains an error message. For more information, see REST API error handling.

Examples for UNIX, Linux, and Windows

Examples for z/OS