Files
mq-api-poc/display-qlocal.md

871 B

GET /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue

# Get all queues
curl -X GET \
--insecure --header 'Accept: application/json' \
-u admin:passw0rd \
'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue'

# Get all DEV* queues
curl -X GET \
--insecure --header 'Accept: application/json' \
-u admin:passw0rd \
'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue?name=DEV*'

Expected output

Search for all queues, or queues that does exist.

Status: 200 OK

{
  "queue": [
    {
      "name": "DEV.DEAD.LETTER.QUEUE",
      "type": "local"
    },
    {
      "name": "DEV.QUEUE.3",
      "type": "local"
    },
    {
      "name": "DEV.QUEUE.1",
      "type": "local"
    },
    {
      "name": "DEV.QUEUE.2",
      "type": "local"
    }
  ]
}

Search for queue that doesn't exist

Status: 200 OK

{
  "queue": []
}