ces__BatchDeleteAlarmTemplates
Batch delete custom alarm templates in Huawei Cloud CES by ID list, with optional cascading removal of associated alarm rules. Use it to clean up multiple templates at once.
Instructions
[CES] 批量删除自定义告警模板
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": {
"delete_associate_alarm": "<delete_associate_alarm>",
"project_id": "<project_id>",
"template_ids": "<template_ids>"
},
"name": "ces__BatchDeleteAlarmTemplates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | 租户ID | |
| template_ids | Yes | 需要批量删除的告警模板的ID列表。未关联告警规则的模板可以批量删除多个;已关联告警规则的告警模板,单次只允许删除一个,若同时删除多个已关联告警规则的告警模板,将返回异常 | |
| delete_associate_alarm | Yes | 如果告警模板关联了告警规则,是否级联删除告警规则,true代表级联删除,false代表只删除告警模板 |