Files
mq-api-poc/mqsc.md

15 lines
334 B
Markdown

## Using the API
```bash
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
```