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

589 B

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

# New queue from scratch
curl --insecure --header 'Content-Type: application/json' \
-X POST --header 'Accept: application/json' \
-d '{ \ 
   "name": "RLN.TEST.QUEUE", \ 
   "type": "QLOCAL" \ 
 }' \
'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue'

# New queue like DEV.QUEUE.1
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ 
   "name": "RLN.TEST.QUEUE", \ 
   "type": "QLOCAL" \ 
 }' 'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue?like=DEV.QUEUE.1'