Split into multiple markdown files
This commit is contained in:
26
readme.md
26
readme.md
@@ -1,5 +1,5 @@
|
||||
## Creating a MQ container
|
||||
https://www.ibm.com/docs/en/ibm-mq/9.3?topic=containers-mq-advanced-developers-container-image
|
||||
IBM documentation: https://www.ibm.com/docs/en/ibm-mq/9.3?topic=containers-mq-advanced-developers-container-image
|
||||
|
||||
```bash
|
||||
# Cleanup previous container
|
||||
@@ -38,25 +38,5 @@ exit
|
||||
docker restart QM1
|
||||
```
|
||||
## Webconsole / Swagger UI
|
||||
https://localhost:9443/ibmmq/console/#/
|
||||
|
||||
https://localhost:9443/ibm/api/explorer
|
||||
|
||||
## 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 "{\"type\": \"runCommandJSON\",\"command\": \"define\", \"qualifier\": \"qlocal\",\"name\": \"MSGQ\"}"
|
||||
```
|
||||
|
||||
### Expected output:
|
||||
```bash
|
||||
rasmus@pop-os:~$ 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 "{\"type\": \"runCommandJSON\",\"command\": \"define\", \"qualifier\": \"qlocal\",\"name\": \"MSGQ\"}"
|
||||
|
||||
{
|
||||
"commandResponse": [{
|
||||
"completionCode": 0,
|
||||
"reasonCode": 0,
|
||||
"message": ["AMQ8006I: IBM MQ queue created."]
|
||||
}],
|
||||
"overallReasonCode": 0,
|
||||
"overallCompletionCode": 0
|
||||
```
|
||||
* https://localhost:9443/ibmmq/console/#/
|
||||
* https://localhost:9443/ibm/api/explorer
|
||||
Reference in New Issue
Block a user