public class ManagedRuleGroup extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ManagedRuleGroup() | 
| ManagedRuleGroup(ManagedRuleGroup source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| SecurityAction | getAction()Get 托管规则组的处置动作。SecurityAction 的 Name 取值支持:Deny:拦截,响应拦截页面;Monitor:观察,不处理请求记录安全事件到日志中;Disabled:未启用,不扫描请求跳过该规则。 | 
| String | getGroupId()Get 托管规则的组名称,未指定配置的规则分组将按照默认配置处理,GroupId 的具体取值参考产品文档。 | 
| ManagedRuleGroupMeta | getMetaData()Get 托管规则组信息,仅出参。 | 
| ManagedRuleAction[] | getRuleActions()Get 托管规则组下规则项的具体配置,仅在 SensitivityLevel 为 custom 时配置生效。 | 
| String | getSensitivityLevel()Get 托管规则组的防护级别。取值有:loose:宽松,只包含超高风险规则,此时需配置Action,且RuleActions配置无效;normal:正常,包含超高风险和高风险规则,此时需配置Action,且RuleActions配置无效;strict:严格,包含超高风险、高风险和中风险规则,此时需配置Action,且RuleActions配置无效;extreme:超严格,包含超高风险、高风险、中风险和低风险规则,此时需配置Action,且RuleActions配置无效;custom:自定义,精细化策略,按单条规则配置处置方式,此时Action字段无效,使用RuleActions配置单条规则的精细化策略。 | 
| void | setAction(SecurityAction Action)Set 托管规则组的处置动作。SecurityAction 的 Name 取值支持:Deny:拦截,响应拦截页面;Monitor:观察,不处理请求记录安全事件到日志中;Disabled:未启用,不扫描请求跳过该规则。 | 
| void | setGroupId(String GroupId)Set 托管规则的组名称,未指定配置的规则分组将按照默认配置处理,GroupId 的具体取值参考产品文档。 | 
| void | setMetaData(ManagedRuleGroupMeta MetaData)Set 托管规则组信息,仅出参。 | 
| void | setRuleActions(ManagedRuleAction[] RuleActions)Set 托管规则组下规则项的具体配置,仅在 SensitivityLevel 为 custom 时配置生效。 | 
| void | setSensitivityLevel(String SensitivityLevel)Set 托管规则组的防护级别。取值有:loose:宽松,只包含超高风险规则,此时需配置Action,且RuleActions配置无效;normal:正常,包含超高风险和高风险规则,此时需配置Action,且RuleActions配置无效;strict:严格,包含超高风险、高风险和中风险规则,此时需配置Action,且RuleActions配置无效;extreme:超严格,包含超高风险、高风险、中风险和低风险规则,此时需配置Action,且RuleActions配置无效;custom:自定义,精细化策略,按单条规则配置处置方式,此时Action字段无效,使用RuleActions配置单条规则的精细化策略。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ManagedRuleGroup()
public ManagedRuleGroup(ManagedRuleGroup source)
public String getGroupId()
public void setGroupId(String GroupId)
GroupId - 托管规则的组名称,未指定配置的规则分组将按照默认配置处理,GroupId 的具体取值参考产品文档。public String getSensitivityLevel()
public void setSensitivityLevel(String SensitivityLevel)
SensitivityLevel - 托管规则组的防护级别。取值有:public SecurityAction getAction()
public void setAction(SecurityAction Action)
Action - 托管规则组的处置动作。SecurityAction 的 Name 取值支持:public ManagedRuleAction[] getRuleActions()
public void setRuleActions(ManagedRuleAction[] RuleActions)
RuleActions - 托管规则组下规则项的具体配置,仅在 SensitivityLevel 为 custom 时配置生效。public ManagedRuleGroupMeta getMetaData()
public void setMetaData(ManagedRuleGroupMeta MetaData)
MetaData - 托管规则组信息,仅出参。Copyright © 2025. All rights reserved.