Updated examples
This commit is contained in:
@@ -1,17 +1,74 @@
|
||||
## POST /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue
|
||||
```bash
|
||||
# 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'
|
||||
curl -X POST 'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue' \
|
||||
--insecure \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'ibm-mq-rest-csrf-token: value' \
|
||||
-u admin:passw0rd \
|
||||
--data-binary @- << EOF
|
||||
{
|
||||
"name": "API.QUEUE.1",
|
||||
"type": "local"
|
||||
}
|
||||
EOF
|
||||
```
|
||||
|
||||
## POST /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue&like={existing queue name}
|
||||
```bash
|
||||
# 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'
|
||||
```
|
||||
curl -X POST 'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue?like=DEV.QUEUE.1' \
|
||||
--insecure \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'ibm-mq-rest-csrf-token: value' \
|
||||
-u admin:passw0rd \
|
||||
--data-binary @- << EOF
|
||||
{
|
||||
"name": "API.QUEUE.2",
|
||||
"type": "local"
|
||||
}
|
||||
EOF
|
||||
```
|
||||
|
||||
## POST /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue&like=<existing queue name>
|
||||
```bash
|
||||
# New queue like DEV.QUEUE.1 replacing a few values
|
||||
curl -X POST 'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue?like=DEV.QUEUE.1' \
|
||||
--insecure \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'ibm-mq-rest-csrf-token: value' \
|
||||
-u admin:passw0rd \
|
||||
--data-binary @- << EOF
|
||||
{
|
||||
"name": "API.QUEUE.3",
|
||||
"type": "local",
|
||||
"storage": {
|
||||
"maximumDepth": 10,
|
||||
"pageSet": 5,
|
||||
"maximumMessageLength": 50,
|
||||
"messageDeliverySequence": "FIFO"
|
||||
},
|
||||
"trigger": {
|
||||
"depth": 1,
|
||||
"processName": "API.QUEUE.2.PROCESS",
|
||||
"enabled": true
|
||||
},
|
||||
"events": {
|
||||
"depth": {
|
||||
"lowPercentage": 0,
|
||||
"highPercentage": 0,
|
||||
"lowEnabled": true,
|
||||
"fullEnabled": true,
|
||||
"highEnabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
```
|
||||
|
||||
## Expected result
|
||||
Status: 201 Created
|
||||
Status: 400 Bad Request
|
||||
Reference in New Issue
Block a user