48 lines
871 B
Markdown
48 lines
871 B
Markdown
### GET /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue
|
|
```bash
|
|
# Get all queues
|
|
curl -X GET \
|
|
--insecure --header 'Accept: application/json' \
|
|
-u admin:passw0rd \
|
|
'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue'
|
|
|
|
# Get all DEV* queues
|
|
curl -X GET \
|
|
--insecure --header 'Accept: application/json' \
|
|
-u admin:passw0rd \
|
|
'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue?name=DEV*'
|
|
```
|
|
|
|
## Expected output
|
|
### 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"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
### Search for queue that doesn't exist
|
|
Status: 200 OK
|
|
```json
|
|
{
|
|
"queue": []
|
|
}
|
|
``` |