MQWeb
Administrating WebSphere MQ with your browser.
AuthorityRecordController
The second part of the URI must be authrec
to call the AuthorityRecordController.
This controller can be used to get attributes of authority records.
AuthorityRecordController is not available for z/OS.
inquire
Get information about one or more authority records. This action executes
the MQCMD_INQUIRE_AUTH_RECS pcf command. On success, the returned JSON object
will have a data
array, on failure an error
object.
URL Parameters
/api/authrec/inquire/<QueueManager>/<ProfileName>
QueueManager
The name of the queuemanager. This parameter is required!
ProfileName
This parameter is the name of the profile for which to retrieve authorizations. Generic profile names are supported. When this parameter is used, the ProfileName query parameter is ignored. This parameter is optional.
Query Parameters
EntityName
Depending on the value of EntityType this value means: a principal name or a group name.
EntityType
Type of the entity: Group
or Principal
. The value is case-sensitive.
ObjectType
The type of object referred to by the profile. Possible values are : All
, Authentication Information
, Channel
,
Client-connection Channel
, Communication Information
, Listener
, Namelist
, Process
, Queue
, Queuemanager
,
Remote Queuemanager
, Service
or Topic
. The value is case-sensitive.
Options
Options can be set to control the set of authority records that is returned. Options can be passed multiple times. Possible values are:
Name All Matching
: Return all profiles the names of which match the specified ProfileName.Name Explicit
: Return only those profiles the names of which exactly match the ProfileName.Entity Explicit
: Return all profiles the entity fields of which match the specified EntityName.Entity Set
: Return profiles with the entity of which matches the specified EntityName and the profiles pertaining to any groups in which EntityName is a member that contribute to the cumulative authority for the specified entity.Name As Wildcard
: Interpret ProfileName as a filter on the profile name of the authority records.
The values are case sensitive.
ProfileAttrs
With the ProfileAttrs 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 ProfileAttrs
ProfileName
The name of the profile for which to retrieve authorizations. When a ProfileName is passed as
part of the URL, this query parameter will be ignored. A profilename is not
required when ObjectType is Queuemanager
.
ServiceComponent
Name of the service component.
Example
/api/authrec/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
- ProfileAttrs is a JSON array with attributenames as element.
- Options is a JSON array.