rabbitmq__CreateQueue
Creates a queue on a Huawei Cloud RabbitMQ instance with settings for durability, auto-deletion, message TTL, lazy mode, and dead-letter routing.
Instructions
[RABBITMQ] 创建Queue。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"auto_delete": "<auto_delete>",
"instance_id": "<instance_id>",
"name": "<name>",
"project_id": "<project_id>",
"vhost": "<vhost>"
},
"name": "rabbitmq__CreateQueue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Queue名称 | |
| vhost | Yes | Vhost名称 | |
| durable | No | 是否持久化(AMQP版本默认持久化,不涉及此字段) | |
| lazy_mode | No | 若设置惰性队列,请输入lazy。惰性队列模式会在磁盘上存储尽可能多的消息以减少内存使用;若不设置,队列将消息存储在内存缓存以尽可能快地传递消息。(AMQP版本默认将消息存储到磁盘,不涉及此字段) | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](rabbitmq-api-190611012.xml)。 | |
| auto_delete | Yes | 是否自动删除 | |
| instance_id | Yes | 实例ID | |
| message_ttl | No | 发布到Queue的消息在被丢弃之前可以存活多长时间 | |
| dead_letter_exchange | No | 死信Exchange名称,消息被拒绝或过期时将重新发布到该Exchange。 | |
| dead_letter_routing_key | No | 死信Exchange的RoutingKey,死信Exchange会发送死信消息到绑定对应RoutingKey的Queue上。 |