Files
mq-api-poc/mqsc.md

334 B

Using the API

curl --insecure \
-k https://localhost:9443/ibmmq/rest/v2/admin/action/qmgr/QM1/mqsc \
-X POST -u admin:passw0rd -H "ibm-mq-rest-csrf-token: value" \
-H "Content-Type: application/json" \
--data @- << EOF
{
  "type": "runCommandJSON",
  "command": "define",
  "qualifier": "qlocal",
  "name": "MSGQ"
}
EOF