get_channel
Get a single IBM MQ channel's definition, optionally including its runtime status. Supply queue manager and channel name; status errors are returned as an object for easy parsing.
Instructions
查询单个通道的定义,可选附带运行状态。
Args: qmgr: 队列管理器名称,例如 QM1 name: 通道名称,例如 DEV.APP.SVRCONN include_status: 为 true 时额外查询 CHSTATUS(通道未运行时该查询会返回错误)。 查询失败时 status 字段是 {"error": "..."},而不是错误文本字符串—— 无论成功失败,status 字段始终是对象,便于解析。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| qmgr | Yes | ||
| include_status | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |