This article contains a list of REST API commands that pertain to IBM MQ topics.
For a walk-through of the Navigator REST API using the demo site, see Using the REST API using the Navigator demo system. No installation is required. The article Performing REST API operations using the Swagger UI includes three detailed examples, as well as instructions for issuing plain text or JSON-formatted MQSC Commands through the REST API.
Read MQ Object Authority Records
GET /ibmmq/topics/{nodeName}/{qmgrName}/{topicName}/auth-recs
Purpose: Lists authority records for the topic.
Curl example
curl -X GET "http://jenkins.nastel.com:8019/rest/v1/ibmmq/topics/LEUNAME/QA/SYSTEM.ADMIN.TOPIC/auth-recs" -H "accept: application/json" -H "Authorization: Basic QWRtaW46YWRtaW4="
Example Response
{
"authRecs": [
{
"objectType": "topic",
"objectName": "SYSTEM.ADMIN.TOPIC",
"principalName": "MUSR_MQADMIN@LEUNAME",
"auths": [
"chg",
"clr",
"dlt",
"dsp",
"passall",
"passid",
"setall",
"setid",
"ctrl",
"pub",
"sub",
"resume"
]
},
{
"objectType": "topic",
"objectName": "SYSTEM.ADMIN.TOPIC",
"groupName": "mqm@LEUNAME",
"auths": [
"chg",
"clr",
"dlt",
"dsp",
"passall",
"passid",
"setall",
"setid",
"ctrl",
"pub",
"sub",
"resume"
]
}
],
"overallCompletionCode": 0,
"overallReasonCode": 0
}