The second part of the URI must be qmstatus to call the
QueueManagerStatusController.
inquire
Returns all status information attributes of the queuemanager with the given
name. This action executes the MQCMD_INQUIRE_Q_MGR_STATUS pcf command. On
success, the returned JSON object will have a data array, on failure an
error object.
HTTP_NOT_IMPLEMENTED will be returned when this command is send to a
queuemanager on a z/OS system. MQCMD_INQUIRE_Q_MGR_STATUS is not available for
z/OS.
URL Parameters
/api/qmstatus/inquire/<QueueManager>
QueueManager
The name of the queuemanager. This parameter is required.
Query Parameters
QMStatusAttrs
With the QMStatusAttrs parameter you can specify which attributes must
be returned from the PCF command. Multiple occurences of this parameter are
possible. The value must be a (case-sensitive) valid attribute name.
Attrs is a synonym for QMStatusAttrs
Example
/api/qmstatus/inquire/PIGEON
JSON Object
When using an application/json POST request you can post a JSON object with
names like the query parameters.
All URL parameters and query parameters are ignored except for the URL
parameter for the name of the queuemanager.
There are some differences between query parameters and a JSON object:
JSON property names are case-sensitive
QMgrAttrs is a JSON array with attributenames as
element.
Synonyms can’t be used, you need to use the name of the attribute
as described in the query parameters. You can’t use attrs, it must be
QMStatusAttrs for example.
This is a Perl example that inquires a queuemanager to get the start date and
time of the queuemanager.