dsc__AddRule
Creates a custom sensitive data recognition rule for Huawei Cloud DSC using the specified rule name, type, risk level, minimum matches, and rule content.
Instructions
[DSC] 根据指定的规则名称、规则类型、风险等级、最小匹配次数等参数创建自定义的敏感数据识别规则
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": {
"category": "<category>",
"logic_operator": "<logic_operator>",
"min_match": "<min_match>",
"project_id": "<project_id>",
"risk_level": "<risk_level>",
"rule_content": "<rule_content>",
"rule_name": "<rule_name>",
"rule_type": "<rule_type>"
},
"name": "dsc__AddRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | 规则ID | |
| category | Yes | 规则类别,内置规则(BUILT_IN)或自建规则(BUILT_SELF) | |
| min_match | Yes | 最小匹配次数 | |
| rule_desc | No | 规则描述 | |
| rule_name | Yes | 规则名称 | |
| rule_type | Yes | 规则类型,关键字(KEYWORD)、正则表达式(REGEX)或自然语言(NLP) | |
| project_id | Yes | 项目ID | |
| risk_level | Yes | 风险等级 | |
| rule_content | Yes | 规则内容 | |
| logic_operator | Yes | 逻辑运算符,"AND","OR","REGEX" |