52 lines
967 B
Markdown
52 lines
967 B
Markdown
## GET /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue
|
|
```bash
|
|
# Get all queues
|
|
curl -X GET 'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue' \
|
|
--insecure \
|
|
--header 'Accept: application/json' \
|
|
-u admin:passw0rd
|
|
```
|
|
|
|
|
|
## GET /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue?name={queue name or wildcard}
|
|
```bash
|
|
# Get all DEV* queues
|
|
curl -X GET 'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue?name=DEV*' \
|
|
--insecure \
|
|
--header 'Accept: application/json' \
|
|
-u admin:passw0rd
|
|
```
|
|
|
|
## Expected output
|
|
### A search for all queues, or queues that does exist.
|
|
Status: 200 OK
|
|
```json
|
|
{
|
|
"queue": [
|
|
{
|
|
"name": "DEV.DEAD.LETTER.QUEUE",
|
|
"type": "local"
|
|
},
|
|
{
|
|
"name": "DEV.QUEUE.3",
|
|
"type": "local"
|
|
},
|
|
{
|
|
"name": "DEV.QUEUE.1",
|
|
"type": "local"
|
|
},
|
|
{
|
|
"name": "DEV.QUEUE.2",
|
|
"type": "local"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
### A search for queue that doesn't exist
|
|
Status: 200 OK
|
|
```json
|
|
{
|
|
"queue": []
|
|
}
|
|
``` |