public class UpsertCCRuleRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
UpsertCCRuleRequest() |
UpsertCCRuleRequest(UpsertCCRuleRequest 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 |
---|---|
String |
getActionType()
Get 动作,20表示观察,21表示人机识别,22表示拦截,23表示精准拦截,26表示精准人机识别,27表示JS校验
|
String |
getAdvance()
Get 高级模式(是否使用Session检测),0表示不启用,1表示启用
|
String |
getCelRule()
Get cel表达式
|
Long |
getCreateTime()
Get 规则创建时间
|
String |
getDomain()
Get 域名
|
String |
getEdition()
Get waf版本,sparta-waf或者clb-waf
|
String |
getEventId()
Get 添加规则的来源事件id
|
String |
getInterval()
Get CC检测周期
|
Long |
getLength()
Get url长度
|
String |
getLimit()
Get CC检测阈值
|
String |
getLimitMethod()
Get 限频方式
|
String |
getLogicalOp()
Get 配置方式的逻辑操作符,and或者or
|
Long |
getMatchFunc()
Get 匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
|
String |
getName()
Get 名称
|
String |
getOptionsArr()
Get CC的匹配条件JSON序列化的字符串,示例:[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
|
Long |
getPriority()
Get 优先级
|
Long |
getRuleId()
Get 规则ID,新增时填0
|
Long[] |
getSessionApplied()
Get 规则需要启用的SessionID
|
Long |
getStatus()
Get 状态
|
Long |
getType()
Get 操作类型
|
String |
getUrl()
Get 检测Url
|
Long |
getValidTime()
Get 动作有效时间
|
void |
setActionType(String ActionType)
Set 动作,20表示观察,21表示人机识别,22表示拦截,23表示精准拦截,26表示精准人机识别,27表示JS校验
|
void |
setAdvance(String Advance)
Set 高级模式(是否使用Session检测),0表示不启用,1表示启用
|
void |
setCelRule(String CelRule)
Set cel表达式
|
void |
setCreateTime(Long CreateTime)
Set 规则创建时间
|
void |
setDomain(String Domain)
Set 域名
|
void |
setEdition(String Edition)
Set waf版本,sparta-waf或者clb-waf
|
void |
setEventId(String EventId)
Set 添加规则的来源事件id
|
void |
setInterval(String Interval)
Set CC检测周期
|
void |
setLength(Long Length)
Set url长度
|
void |
setLimit(String Limit)
Set CC检测阈值
|
void |
setLimitMethod(String LimitMethod)
Set 限频方式
|
void |
setLogicalOp(String LogicalOp)
Set 配置方式的逻辑操作符,and或者or
|
void |
setMatchFunc(Long MatchFunc)
Set 匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
|
void |
setName(String Name)
Set 名称
|
void |
setOptionsArr(String OptionsArr)
Set CC的匹配条件JSON序列化的字符串,示例:[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。
|
void |
setPriority(Long Priority)
Set 优先级
|
void |
setRuleId(Long RuleId)
Set 规则ID,新增时填0
|
void |
setSessionApplied(Long[] SessionApplied)
Set 规则需要启用的SessionID
|
void |
setStatus(Long Status)
Set 状态
|
void |
setType(Long Type)
Set 操作类型
|
void |
setUrl(String Url)
Set 检测Url
|
void |
setValidTime(Long ValidTime)
Set 动作有效时间
|
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 UpsertCCRuleRequest()
public UpsertCCRuleRequest(UpsertCCRuleRequest source)
public String getDomain()
public void setDomain(String Domain)
Domain
- 域名public String getName()
public void setName(String Name)
Name
- 名称public Long getStatus()
public void setStatus(Long Status)
Status
- 状态public String getAdvance()
public void setAdvance(String Advance)
Advance
- 高级模式(是否使用Session检测),0表示不启用,1表示启用public String getLimit()
public void setLimit(String Limit)
Limit
- CC检测阈值public String getInterval()
public void setInterval(String Interval)
Interval
- CC检测周期public String getActionType()
public void setActionType(String ActionType)
ActionType
- 动作,20表示观察,21表示人机识别,22表示拦截,23表示精准拦截,26表示精准人机识别,27表示JS校验public Long getPriority()
public void setPriority(Long Priority)
Priority
- 优先级public Long getValidTime()
public void setValidTime(Long ValidTime)
ValidTime
- 动作有效时间public String getUrl()
public void setUrl(String Url)
Url
- 检测Urlpublic Long getMatchFunc()
public void setMatchFunc(Long MatchFunc)
MatchFunc
- 匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含public String getOptionsArr()
public void setOptionsArr(String OptionsArr)
OptionsArr
- CC的匹配条件JSON序列化的字符串,示例:[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。args用来表示匹配内容,需要设置encodeflag为true,当Key为Post、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当Key为Referer、User-Agent时,用等号=来串接Value,类似=YWJj。public String getEdition()
public void setEdition(String Edition)
Edition
- waf版本,sparta-waf或者clb-wafpublic Long getType()
public void setType(Long Type)
Type
- 操作类型public String getEventId()
public void setEventId(String EventId)
EventId
- 添加规则的来源事件idpublic Long[] getSessionApplied()
public void setSessionApplied(Long[] SessionApplied)
SessionApplied
- 规则需要启用的SessionIDpublic Long getRuleId()
public void setRuleId(Long RuleId)
RuleId
- 规则ID,新增时填0public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime
- 规则创建时间public Long getLength()
public void setLength(Long Length)
Length
- url长度public String getLimitMethod()
public void setLimitMethod(String LimitMethod)
LimitMethod
- 限频方式public String getCelRule()
public void setCelRule(String CelRule)
CelRule
- cel表达式public String getLogicalOp()
public void setLogicalOp(String LogicalOp)
LogicalOp
- 配置方式的逻辑操作符,and或者orCopyright © 2025. All rights reserved.