MQWeb
Administrating WebSphere MQ with your browser.
ClusterQueueManagerController
The second part of the URI must be clusqmgr
to call the ClusterQueueManagerController.
- inquire : Inquire cluster information
- suspend : Suspend queuemanager in cluster
- resume : Resume queuemanager in cluster
inquire
Get information from clusters. This action executes the
MQCMD_INQUIRE_CLUSTER_Q_MGR pcf command.
On success, the returned JSON object will have a data
array, on failure an
error
object.
URL Parameters
/api/clusqmgr/inquire/<QueueManager>/<ClusterName>/<ClusterQMgrName>
QueueManager
The name of the queuemanager. This parameter is required!
ClusterName
The name of a cluster. Generic names are supported. When this parameter is used, the query parameter for ClusterName is ignored.
ClusterQMgrName
The name of a queuemanager that is part of the cluster. Generic names are supported. When this parameter is used, the query parameter for ClusterQMgr is ignored.
Query Parameters
Channel
Specifies that eligible cluster queue managers are limited to those having the specified channel name. Generic names are supported.
ClusterName
The name of a cluster. Generic names are supported. This parameter is ignored, when a URL parameter is used.
ClusterQMgrAttrs
With the ClusterQMgrAttrs 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 ClusterQMgrAttrs
ClusterQMgrName
The name of a queuemanager that is part of the cluster. This parameter is ignored when a URL parameter is used. When omitted a * is used.
CommandScope
Specifies how the command is executed when the queue manager is a member of a queue-sharing group. This parameter applies to z/OS only.
Filter
Speficies which filter to use: I
means Integerfilter, S
means Stringfilter.
FilterParam and FilterValue are required to create the filter. When a
filter can’t be build because of too little information, it will be silently
discarded.
FilterOp
The operator that is being used to evaluate whether the parameter satisfies the filter-value.
The default is EQ
.
The following values are allowed:
GT
: Greater thanLT
: Less thanEQ
: Equal toNE
: Not equal toNLT
: Not less thanNGT
: Not greater thanLE
: Less than or equal toGE
: Greater than or equal toCT
: ContainsEX
: Excludes
A Stringfilter can use some additional operators:
LK
: Matches a generic stringNL
: Does not match a generic stringCTG
: Contains an item which matches a generic stringEXG
: Does not contain any item which matches a generic string.
FilterParam
The name of the parameter to filter on. The names are based on the names used in the WebSphere MQ information center.
FilterValue
The value to use for filtering. When a string is passed for an Integerfilter, a WebSphere MQ constant is assumed.
QSGDisposition
Disposition of the object within the group. Possible values are Live
, Copy
,
Group
, QMgr
, Private
or All
. This parameter applies to z/OS only.
Example
/api/clusqmgr/inquire/PIGEON/BIRDS
/api/clusqmgr/inquire/PIGEON/BIRDS/BLACKBIRD
/api/clusqmgr/inquire/PIGEON?ClusterName=BIRDS
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
- ClusterQMgrAttrs is a JSON array with attributenames as element.
- ClusQMgrName is required.
- A filter is an object: IntegerFilterCommand can be used to filter on parameters which has integer values, while StringFilterCommand can be used to filter on parameters with string values. The filter object has these three properties: Parameter (see FilterParam), Operator (see FilterOp) and FilterValue (see FilterValue).
An IntegerFilterCommand can’t be used together with a StringFilterCommand
suspend
Suspend the queuemanager in a cluster. This action executes the MQCMD_SUSPEND_Q_MGR_CLUSTER pcf command.
The returned JSON object will have an error
object when a WebSphere MQ
error occurred.
URL Parameters
/api/clusqmgr/suspend/<QueueManager>/<ClusterName>
QueueManager
The name of the queuemanager. This parameter is required!
ClusterName
The name of a cluster. When this parameter is used, the query parameter for ClusterName is ignored.
Query Parameters
ClusterName
The name of a cluster. This parameter is ignored, when a URL parameter is used.
ClusterNamelist
The name of a cluster namelist. This parameter can not be used together with ClusterName.
CommandScope
Specifies how the command is executed when the queue manager is a member of a queue-sharing group. This parameter applies to z/OS only.
Mode
The mode on how the local queue manager is suspended from the cluster. The
case-sensitive value can be Quiesce
or Force
.
Example
/api/clusqmgr/suspend/PIGEON/BIRDS
/api/clusqmgr/suspend/PIGEON?ClusterName=BIRDS&Mode=Quiesce
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.
resume
Resume the queuemanager in a cluster. This action executes the MQCMD_RESUME_Q_MGR_CLUSTER pcf command.
The returned JSON object will have an error
object when a WebSphere MQ
error occurred.
ClusterName
The name of a cluster. This parameter is ignored, when a URL parameter is used.
ClusterNamelist
The name of a cluster namelist. This parameter can not be used together with ClusterName.
CommandScope
Specifies how the command is executed when the queue manager is a member of a queue-sharing group. This parameter applies to z/OS only.
Example
/api/clusqmgr/resume/PIGEON/BIRDS
/api/clusqmgr/resume/PIGEON?ClusterName=BIRDS
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.