public class ManagedRules extends AbstractModel
header, skipSign
Constructor and Description |
---|
ManagedRules() |
ManagedRules(ManagedRules 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 |
---|---|
ManagedRuleAutoUpdate |
getAutoUpdate()
Get 托管规则自动更新选项。
|
String |
getDetectionOnly()
Get 评估模式是否开启,仅在 Enabled 参数为 on 时有效。取值有:on:开启,表示所有托管规则以观察模式生效;off:关闭,表示所有托管规则以实际配置生效。
|
String |
getEnabled()
Get 托管规则是否开启。取值有:on:开启,所有托管规则按配置生效;off:关闭,所有托管规则不生效。
|
FrequentScanningProtection |
getFrequentScanningProtection()
Get 高频扫描防护配置选项,当某一访客的请求频繁命中「配置为拦截」的托管规则时,在一段时间内封禁该访客所有请求。
|
ManagedRuleGroup[] |
getManagedRuleGroups()
Get 托管规则组的配置。如果此结构传空数组或 GroupId 未包含在列表内将按照默认方式处理。
|
String |
getSemanticAnalysis()
Get 托管规则语义分析选项是否开启,仅在 Enabled 参数为 on 时有效。取值有:on:开启,对请求进行语义分析后进行处理;off:关闭,对请求不进行语义分析,直接进行处理。
默认为 off。 |
void |
setAutoUpdate(ManagedRuleAutoUpdate AutoUpdate)
Set 托管规则自动更新选项。
|
void |
setDetectionOnly(String DetectionOnly)
Set 评估模式是否开启,仅在 Enabled 参数为 on 时有效。取值有:on:开启,表示所有托管规则以观察模式生效;off:关闭,表示所有托管规则以实际配置生效。
|
void |
setEnabled(String Enabled)
Set 托管规则是否开启。取值有:on:开启,所有托管规则按配置生效;off:关闭,所有托管规则不生效。
|
void |
setFrequentScanningProtection(FrequentScanningProtection FrequentScanningProtection)
Set 高频扫描防护配置选项,当某一访客的请求频繁命中「配置为拦截」的托管规则时,在一段时间内封禁该访客所有请求。
|
void |
setManagedRuleGroups(ManagedRuleGroup[] ManagedRuleGroups)
Set 托管规则组的配置。如果此结构传空数组或 GroupId 未包含在列表内将按照默认方式处理。
|
void |
setSemanticAnalysis(String SemanticAnalysis)
Set 托管规则语义分析选项是否开启,仅在 Enabled 参数为 on 时有效。取值有:on:开启,对请求进行语义分析后进行处理;off:关闭,对请求不进行语义分析,直接进行处理。
默认为 off。 |
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, toJsonString
public ManagedRules()
public ManagedRules(ManagedRules source)
public String getEnabled()
public void setEnabled(String Enabled)
Enabled
- 托管规则是否开启。取值有:public String getDetectionOnly()
public void setDetectionOnly(String DetectionOnly)
DetectionOnly
- 评估模式是否开启,仅在 Enabled 参数为 on 时有效。取值有:public String getSemanticAnalysis()
public void setSemanticAnalysis(String SemanticAnalysis)
SemanticAnalysis
- 托管规则语义分析选项是否开启,仅在 Enabled 参数为 on 时有效。取值有:public ManagedRuleAutoUpdate getAutoUpdate()
public void setAutoUpdate(ManagedRuleAutoUpdate AutoUpdate)
AutoUpdate
- 托管规则自动更新选项。public ManagedRuleGroup[] getManagedRuleGroups()
public void setManagedRuleGroups(ManagedRuleGroup[] ManagedRuleGroups)
ManagedRuleGroups
- 托管规则组的配置。如果此结构传空数组或 GroupId 未包含在列表内将按照默认方式处理。public FrequentScanningProtection getFrequentScanningProtection()
public void setFrequentScanningProtection(FrequentScanningProtection FrequentScanningProtection)
FrequentScanningProtection
- 高频扫描防护配置选项,当某一访客的请求频繁命中「配置为拦截」的托管规则时,在一段时间内封禁该访客所有请求。Copyright © 2025. All rights reserved.