models

package
v1.65.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: Apache-2.0 Imports: 0 Imported by: 11 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessWafStatus

type AccessWafStatus struct {

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 接入状态 0代表既没有cname,也没有流量,1代表有cname接入,没有流量,2代表两者都有 (Optional) */
	StatusCode int `json:"statusCode"`

	/* 接入状态描述 (Optional) */
	StatusMsg string `json:"statusMsg"`
}

type AccessWafStatusReq

type AccessWafStatusReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`
}

type AclConf

type AclConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* acl规则个数 (Optional) */
	AclRuleNum int `json:"aclRuleNum"`
}

type AclTopN

type AclTopN struct {

	/* 来源ip的top10 (Optional) */
	Addr_top10 []TopValue `json:"addr_top10"`

	/* acl规则匹配top10 (Optional) */
	Rulename_top10 []TopValue `json:"rulename_top10"`
}

type ActiveFuncByRegionReq

type ActiveFuncByRegionReq struct {

	/* 按地区设置,仅运营后台支持 (Optional) */
	Region string `json:"region"`

	/* 实例id,代表要设置的WAF实例,仅运营后台支持按实例设置 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`
}

type ActiveFuncReq

type ActiveFuncReq struct {

	/* 实例id,代表要设置的WAF实例 (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 是否使能 0表示否 (Optional) */
	Enable *int `json:"enable"`
}

type AddDomain

type AddDomain struct {

	/* 实例id,代表要设置的WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名,单个  */
	Domain string `json:"domain"`

	/* 域名数组 (Optional) */
	Domains []string `json:"domains"`

	/* 使用协议,eg:["http","https"]  */
	Protocols []string `json:"protocols"`

	/* ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3","TLSv1.3"] (Optional) */
	SslProtocols []string `json:"sslProtocols"`

	/* 负载均衡算法,eg:"rr","ip_hash","weight_rr"  */
	LbType string `json:"lbType"`

	/* 回源配置  */
	RsConfig *RsConfig `json:"rsConfig"`

	/* 是否使用前置代理,0为未使用,1为使用 (Optional) */
	PureClient *int `json:"pureClient"`

	/* 1为跳转 0为不跳转 (Optional) */
	HttpsRedirect *int `json:"httpsRedirect"`

	/* 用户服务器是否只能http回源,1为是,0为否 (Optional) */
	RsOnlySupportHttp *int `json:"rsOnlySupportHttp"`

	/* 是否支持国密证书 (Optional) */
	GmCertSupport *int `json:"gmCertSupport"`

	/* Waf侧支持http版本,不传时默认值为http1.1,传"http2"为http2 (Optional) */
	HttpVersion *string `json:"httpVersion"`

	/* 回源是否支持长链接,0为否 (Optional) */
	EnableKeepalive *int `json:"enableKeepalive"`

	/* 加密套件等级,0表示默认为中级,1表示高级,2表示低级, 3表示自定义 (Optional) */
	SuiteLevel *int `json:"suiteLevel"`

	/* 自定义加密套件 (Optional) */
	UserSuiteLevel []string `json:"userSuiteLevel"`

	/* 请求头是否支持下划线,0-否,1-是。缺省为0 (Optional) */
	EnableUnderscores *int `json:"enableUnderscores"`

	/* 禁用被动健康检查,缺省为0-否 (Optional) */
	DisableHealthCheck *int `json:"disableHealthCheck"`

	/* 连接超时时间,3-60s (Optional) */
	ProxyConnectTimeout *int `json:"proxyConnectTimeout"`

	/* 是否支持SSE (Optional) */
	Sse *int `json:"sse"`
}

type AddDomainScdn added in v1.62.0

type AddDomainScdn struct {

	/* 实例id,代表要设置的WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名,单个  */
	Domain string `json:"domain"`

	/* 域名数组 (Optional) */
	Domains []string `json:"domains"`

	/* 使用协议,eg:["http","https"]  */
	Protocols []string `json:"protocols"`

	/* ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3","TLSv1.3"] (Optional) */
	SslProtocols []string `json:"sslProtocols"`

	/* 负载均衡算法,eg:"rr","ip_hash","weight_rr"  */
	LbType string `json:"lbType"`

	/* 真实回源配置  */
	RsConfig RsConfig `json:"rsConfig"`

	/* 是否使用前置代理,0为未使用,1为使用 (Optional) */
	PureClient int `json:"pureClient"`

	/* 1为跳转 0为不跳转 (Optional) */
	HttpsRedirect int `json:"httpsRedirect"`

	/* 用户服务器是否只能http回源,1为是,0为否 (Optional) */
	RsOnlySupportHttp int `json:"rsOnlySupportHttp"`

	/* 是否支持国密证书 (Optional) */
	GmCertSupport int `json:"gmCertSupport"`

	/* Waf侧支持http版本,不传时默认值为http1.1,传"http2"为http2 (Optional) */
	HttpVersion string `json:"httpVersion"`

	/* 回源是否支持长链接,0为否 (Optional) */
	EnableKeepalive int `json:"enableKeepalive"`

	/* 加密套件等级,0表示默认为中级,1表示高级,2表示低级, 3表示自定义 (Optional) */
	SuiteLevel int `json:"suiteLevel"`

	/* 自定义加密套件 (Optional) */
	UserSuiteLevel []string `json:"userSuiteLevel"`

	/* 请求头是否支持下划线,0-否,1-是。缺省为0 (Optional) */
	EnableUnderscores int `json:"enableUnderscores"`

	/* 禁用被动健康检查,缺省为0-否 (Optional) */
	DisableHealthCheck int `json:"disableHealthCheck"`

	/* 连接超时时间,3-60s (Optional) */
	ProxyConnectTimeout int `json:"proxyConnectTimeout"`

	/* 过waf后回源方向,0真实源站,1cdn边缘节点 (Optional) */
	BackSource int `json:"backSource"`
}

type AntiEvent

type AntiEvent struct {

	/* 源ip (Optional) */
	RemoteAddr string `json:"remoteAddr"`

	/* 情报标签 (Optional) */
	CsaInfo string `json:"csaInfo"`

	/* 风险等级 (Optional) */
	RiskLevel string `json:"riskLevel"`

	/* 来源地区 (Optional) */
	Area string `json:"area"`

	/* 产生时间 (Optional) */
	AccessTime int64 `json:"accessTime"`

	/* 方法 (Optional) */
	Method string `json:"method"`

	/* 攻击类型 (Optional) */
	AttackType string `json:"attackType"`

	/* url (Optional) */
	Url string `json:"url"`

	/* 恶意负载 (Optional) */
	PayLoad string `json:"payLoad"`

	/* 动作 (Optional) */
	Action string `json:"action"`

	/* 规则名称 (Optional) */
	RuleName string `json:"ruleName"`

	/* 日志Id (Optional) */
	LogId string `json:"logId"`

	/* 该信息是否已上报AI平台,0表示否 (Optional) */
	IsReported int `json:"isReported"`

	/* 实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 状态码 (Optional) */
	Status string `json:"status"`

	/* 状态标识 (Optional) */
	UpstreamErr string `json:"upstreamErr"`

	/* 是否已加入白名单,0表示否 (Optional) */
	SkipExist int `json:"skipExist"`

	/* 是否已加入黑名单,0表示否 (Optional) */
	DenyExist int `json:"denyExist"`

	/* 攻击详情 (Optional) */
	AntiReqRaw string `json:"antiReqRaw"`
}

type AntiLevelWafReq

type AntiLevelWafReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示宽松,1表示正常,2表示严格, 3表示自定义 (Optional) */
	WafLevel *int `json:"wafLevel"`

	/* 自定义规则集id,wafLevel为3时可以设置 (Optional) */
	UsrPolicy *int64 `json:"usrPolicy"`
}

type AntiMode added in v1.62.0

type AntiMode struct {

	/* waf防护模式 0:拦截 1:检测 (Optional) */
	Waf int `json:"waf"`
}

type AntiModeCcReq

type AntiModeCcReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 防护模式 1宽松模式,2正常模式 3严格模式  */
	CcMode int `json:"ccMode"`

	/* 动作配置  */
	Action DenyActionCfg `json:"action"`
}

type AntiModeWafReq

type AntiModeWafReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示防护,1表示预警 (Optional) */
	WafMode *int `json:"wafMode"`
}

type AntiSpiderConfReq added in v1.56.0

type AntiSpiderConfReq struct {

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 防护模式 1宽松模式,2正常模式,3严格模式 (Optional) */
	SpiderMode int `json:"spiderMode"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`
}

type AntiStatus

type AntiStatus struct {

	/* 自定义规则 (Optional) */
	Acl int `json:"acl"`

	/* cc防护 (Optional) */
	Cc int `json:"cc"`

	/* waf防护 (Optional) */
	Waf int `json:"waf"`
}

type AntiValue added in v1.62.0

type AntiValue struct {

	/* web攻击 (Optional) */
	WafAnti int `json:"wafAnti"`

	/* cc攻击 (Optional) */
	CcAnti int `json:"ccAnti"`

	/* 自定义攻击 (Optional) */
	AclAnti int `json:"aclAnti"`

	/* bot攻击 (Optional) */
	BotAnti int `json:"botAnti"`
}

type ApiEnableReq added in v1.65.0

type ApiEnableReq struct {

	/* WAF实例id (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain *string `json:"domain"`

	/* 1开启 0关闭 (Optional) */
	Active *int `json:"active"`

	/* 功能类型
	detectPre api识别默认规则
	detectUser api识别自定义规则
	tokenPre 登录凭证识别默认规则
	tokenUser 登录凭证识别自定义规则
	senPre 敏感数据识别默认规则
	senUser 敏感数据识别自定义规则
	riskPre 风险识别默认规则
	riskUser 风险识别自定义规则
	 (Optional) */
	FuncType *string `json:"funcType"`
}

type ApiOperateUserReq added in v1.65.0

type ApiOperateUserReq struct {

	/* WAF实例id (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain *string `json:"domain"`

	/* 功能类型
	detectUser api识别自定义规则
	tokenUser 登录凭证识别自定义规则
	senUser 敏感数据识别自定义规则
	riskUser 风险识别自定义规则
	 (Optional) */
	FuncType *string `json:"funcType"`

	/* 操作
	1开启关闭
	0删除
	 (Optional) */
	Operate *int `json:"operate"`

	/* 0关闭 1开启 (Optional) */
	Enable *int `json:"enable"`

	/* 规则ID (Optional) */
	RuleIds []string `json:"ruleIds"`

	/* 内置规则名称,仅支持使能操作 (Optional) */
	PreRuleNames []string `json:"preRuleNames"`
}

type ApiSecAssertLog added in v1.65.0

type ApiSecAssertLog struct {

	/* 最近活跃时间 (Optional) */
	Active string `json:"active"`

	/* api (Optional) */
	Api string `json:"api"`

	/* 调用量 (Optional) */
	Count int `json:"count"`

	/* 实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 实例名称 (Optional) */
	NickName string `json:"nickName"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 请求方法 (Optional) */
	RequestMethod string `json:"requestMethod"`

	/* 接口敏感等级,S1-S4 (Optional) */
	SenLevel string `json:"senLevel"`

	/* 请求敏感数据类型 (Optional) */
	ReqSens []string `json:"reqSens"`

	/* 响应敏感数据类型 (Optional) */
	RespSens []string `json:"respSens"`

	/* 风险识别类型 (Optional) */
	Risk []string `json:"risk"`

	/* 鉴权 (Optional) */
	Token []string `json:"token"`

	/* 是否关注,0无,1有 (Optional) */
	Follow int `json:"follow"`

	/* 备注 (Optional) */
	Tag string `json:"tag"`
}

type ApiSecAssertMain added in v1.65.0

type ApiSecAssertMain struct {

	/* api资产总数 (Optional) */
	Count int `json:"count"`

	/* 活跃api资产数 (Optional) */
	Active_count int `json:"active_count"`

	/* 失活api资产数 (Optional) */
	Inactive_count int `json:"inactive_count"`

	/* 今日新增api资产数 (Optional) */
	Today_register_count int `json:"today_register_count"`

	/* 本周新增api资产数 (Optional) */
	Week_register_count int `json:"week_register_count"`
}

type ApiSecParam added in v1.65.0

type ApiSecParam struct {

	/* api (Optional) */
	Api string `json:"api"`

	/* 首次发现时间 (Optional) */
	Detect int `json:"detect"`

	/* 实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 参数位置 query,[name:type] (Optional) */
	Req_arg []string `json:"req_arg"`

	/* 参数位置 请求体,[name:type] (Optional) */
	Req_body []string `json:"req_body"`

	/* 参数位置 请求头,[name:type] (Optional) */
	Req_header []string `json:"req_header"`

	/* 参数位置 响应头,[name:type] (Optional) */
	Resp_header []string `json:"resp_header"`

	/* 参数位置 响应体,[name:type] (Optional) */
	Resp_body []string `json:"resp_body"`
}

type ApiSecReqSample added in v1.65.0

type ApiSecReqSample struct {

	/* 响应报文 (Optional) */
	AntiRespRaw string `json:"antiRespRaw"`

	/* 请求报文 (Optional) */
	AntiReqRaw string `json:"antiReqRaw"`

	/* 日志记录时间 (Optional) */
	Time string `json:"time"`
}

type ApiSecTopN added in v1.65.0

type ApiSecTopN struct {

	/*  (Optional) */
	Addr_top10 []TopValue `json:"addr_top10"`

	/*  (Optional) */
	Area_top10 []TopValue `json:"area_top10"`

	/*  (Optional) */
	Ua_top10 []TopValue `json:"ua_top10"`
}

type ApiSecTraffic added in v1.65.0

type ApiSecTraffic struct {

	/*  (Optional) */
	Api_traffic ChartItemValue `json:"api_traffic"`
}

type AssignCertReq

type AssignCertReq struct {

	/* 实例id,代表要查询的WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 要绑定证书的Id  */
	CertId string `json:"certId"`

	/* 是否国密 (Optional) */
	IsGm *int `json:"isGm"`
}

type AtCfg

type AtCfg struct {

	/* 黑名单动作配置 (Optional) */
	DenyAction *DenyActionCfg `json:"denyAction"`

	/* 白名单动作配置 (Optional) */
	SkipAction *SkipActionCfg `json:"skipAction"`
}

type AttackInfo

type AttackInfo struct {

	/* 自定义规则防护 (Optional) */
	AclAnti int64 `json:"aclAnti"`

	/* cc防护 (Optional) */
	CcAnti int64 `json:"ccAnti"`

	/* web防护 (Optional) */
	WafAnti int64 `json:"wafAnti"`
}

type BotConf

type BotConf struct {

	/* 已知类型bot。1-使能 0-禁止 (Optional) */
	Enable int `json:"enable"`

	/* 自定义类型bot。1-使能 0-禁止 (Optional) */
	EnableUserDefine int `json:"enableUserDefine"`

	/* bot IDC开关。1-使能 0-禁止 (Optional) */
	EnableThreatIp int `json:"enableThreatIp"`
}

type BotMatchItem

type BotMatchItem struct {

	/* 匹配字段,ruleType为general时,可为ip,uri,user_agent,referer,cookie,Wday(格式:21,6 ;取值范围[0-6]]),Hour(格式:6,0 ;取值范围[0-23]) uri只能设置一个。ruleType为advanced时,可为fingerExist(是否存在),fingerValid(合法性)。 ruleType为evaluate时,对uri,cookie进行配置  */
	Field string `json:"field"`

	/* 0-完全匹配 1-包含匹配, 6-规则生效区间(field为Wday或Hour,Wday) field为fingerExist/fingerValid时无意义。  */
	Logic int `json:"logic"`

	/* filed为ip时支持8/16/24位掩码和完全匹配,field为uri且logic为0时需以"/"开头  */
	Value string `json:"value"`
}

type BotTopN

type BotTopN struct {

	/* 来源ip的top10 (Optional) */
	Addr_top10 []TopValue `json:"addr_top10"`

	/* 攻击路径top10 (Optional) */
	Url_top10 []TopValue `json:"url_top10"`
}

type Bps

type Bps struct {

	/*  (Optional) */
	UpBps ChartItemValue `json:"upBps"`

	/*  (Optional) */
	DownBps ChartItemValue `json:"downBps"`
}

type CacheItemCfg

type CacheItemCfg struct {

	/* 需要缓存的状态码, 当前支持 404 200 302  */
	Code []string `json:"code"`

	/* 缓存过期时间,1m~30m  */
	Time string `json:"time"`
}

type CcConf

type CcConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 防护模式 (Optional) */
	CcMode int `json:"ccMode"`

	/* 是否支持自定义cc,0表示否 (Optional) */
	EnableUserDefine int `json:"enableUserDefine"`

	/* cc自定义规则个数 (Optional) */
	RulesCount int `json:"rulesCount"`

	/* 动作配置,默认为告警,支持1,2,3和5四种类型动作 (Optional) */
	Action DenyActionCfg `json:"action"`
}

type CcTopN

type CcTopN struct {

	/* 来源ip的top10 (Optional) */
	Addr_top10 []TopValue `json:"addr_top10"`

	/* 攻击路径top10 (Optional) */
	Url_top10 []TopValue `json:"url_top10"`
}

type ChartItemValue

type ChartItemValue struct {

	/*  (Optional) */
	Value []int64 `json:"value"`
}

type CommonDenySkipReq

type CommonDenySkipReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单 1表示白名单  */
	Iswhite int `json:"iswhite"`
}

type CommonIpsetReq added in v1.62.0

type CommonIpsetReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* ip集名称  */
	PolicyName string `json:"policyName"`
}

type CommonNameReq

type CommonNameReq struct {

	/* 实例id,WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 名称  */
	Name string `json:"name"`
}

type CommonReq

type CommonReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`
}

type ConditionIdSet

type ConditionIdSet struct {

	/* 条件Id  */
	ConditionId int `json:"conditionId"`

	/* 对条件结果的取反操作,does不取反,doesnot取反  */
	Opposite string `json:"opposite"`
}

type ConditionNameSet

type ConditionNameSet struct {

	/* 条件id (Optional) */
	ConditionId int `json:"conditionId"`

	/* 条件名称 (Optional) */
	ConditionName string `json:"conditionName"`

	/* 条件类型 (Optional) */
	ConditionType string `json:"conditionType"`

	/* 对条件结果的取反操作,does不取反,doesnot取反 (Optional) */
	Opposite string `json:"opposite"`

	/* 与或逻辑 (Optional) */
	Nand string `json:"nand"`
}

type ContactGroup

type ContactGroup struct {

	/* 联系群组Id (Optional) */
	ContactId string `json:"contactId"`

	/* 联系群组名 (Optional) */
	Name string `json:"name"`

	/* 是否选中,1-选中,0-未选中 (Optional) */
	Selected int `json:"selected"`
}

type ContactPerson

type ContactPerson struct {

	/* 联系人Id (Optional) */
	ContactId string `json:"contactId"`

	/* 联系人姓名 (Optional) */
	Name string `json:"name"`

	/* 联系人电话,非账号联系人时不加密 (Optional) */
	PhoneNumber string `json:"phoneNumber"`

	/* 联系人邮箱 (Optional) */
	Email string `json:"email"`

	/* 是否选中,1-选中,0-未选中 (Optional) */
	Selected int `json:"selected"`
}

type Contactor

type Contactor struct {

	/* 联系人/群组Id (Optional) */
	ContactId string `json:"contactId"`

	/* 是否选中,1-选中,0-未选中 (Optional) */
	Selected int `json:"selected"`
}

type DelReq

type DelReq struct {

	/* 规则id  */
	Id int `json:"id"`

	/* 全局告警globle 自定义告警userdefine ,默认是全局告警  */
	RuleType string `json:"ruleType"`
}

type DelRuleNameReq

type DelRuleNameReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 要删除的规则名称  */
	Name string `json:"name"`
}

type DelRulesReq

type DelRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 要删除的id  */
	Ids []int `json:"ids"`

	/* 类型 (Optional) */
	RuleType *string `json:"ruleType"`
}

type DenyActionCfg

type DenyActionCfg struct {

	/* 黑名单匹配动作类型
	拦截-返回自定义页面 1:forbidden@
	拦截-302跳转到指定页面 2:redirect@
	人机交互-验证码(高) 3:verify@captcha
	人机交互-JS挑战(中) 4:verify@jscookie
	观察 5:notice
	人机交互-重定向挑战(低) 6:verify@rdtcookie
	动态防护(仅cc安全防护支持) 7:auto
	拦截-返回自定义内容-200 8:status@200
	拦截-返回自定义内容-403 9:status@403
	*/
	AtOp int `json:"atOp"`

	/* 黑名单匹配动作内容 当atOp为3-7时,atVal为空,atOp=1/8/9时,atVal为自定义页面,atOp=2时,atVal为跳转url。  */
	AtVal string `json:"atVal"`
}

type DenyConf

type DenyConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 规则条数 (Optional) */
	ListNum int `json:"listNum"`
}

type DisableReq

type DisableReq struct {

	/* 0:使用规则,1:禁用规则 (Optional) */
	Disable int `json:"disable"`
}

type DisableRulesReq

type DisableRulesReq struct {

	/* 实例id,代表要设置的WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0:使用规则,1:禁用规则 (Optional) */
	Disable *int `json:"disable"`

	/* 操作的规则id, ruleType非"waf"时必填 (Optional) */
	Ids []int `json:"ids"`

	/* 操作的规则类型,"waf":waf总体防护开关,"cc":cc规则,"ratelimit":限速,"usrdefCookie":cookie类型的黑白名单,"usrdefGeo":geo类型的黑白名单,"usrdefOwner":owner类型的黑白名单,"usrdefHeaders":header类型的黑白名单,"usrdefIP":ip类型的黑白名单,"usrdefURI":uri类型的黑白名单,"filterReqresp":请求头类型的流量管理,"filterSenseinfo":敏感信息防泄漏,"usrdefWaf":waf自定义规则,"rewriteRule":重写规则(目前是uri重写规则),"listRule":黑白名单规则(目前指method黑白名单),"proxycache":url缓存,"botUsr":自定义类型BOT规则,"risk":风险防护规则,"riskEvent":风险控制事件,"riskUsrList":风险控制用户自定义名单  */
	RuleType string `json:"ruleType"`
}

type DnsStatus

type DnsStatus struct {

	/* 接入状态。0表示既没有cname,也没有流量,1表示有cname接入,没有流量,2代表两者都有 (Optional) */
	StatusCode int `json:"statusCode"`

	/* 接入状态描述 (Optional) */
	StatusMsg string `json:"statusMsg"`
}

type DomainActive added in v1.56.0

type DomainActive struct {

	/* 0-未选择,1-选择 (Optional) */
	Active int `json:"active"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`
}

type DomainInfo

type DomainInfo struct {

	/* 实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 回源ip列表 (Optional) */
	RsAddr []string `json:"rsAddr"`

	/* waf防护状态,rs-回源,vip-云端 (Optional) */
	DnsType string `json:"dnsType"`

	/* cname (Optional) */
	Cname string `json:"cname"`
}

type DomainMainConfig

type DomainMainConfig struct {

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* cname域名 (Optional) */
	Cname string `json:"cname"`

	/* 绑定的证书名称 (Optional) */
	CertName string `json:"certName"`

	/* 使用协议,["http","https"] (Optional) */
	Protocols []string `json:"protocols"`

	/* ssl协议,["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3"] (Optional) */
	SslProtocols []string `json:"sslProtocols"`

	/* 前置代理,1:使用 0:不使用 (Optional) */
	PureClient int `json:"pureClient"`

	/* 协议状态,0:正常 (Optional) */
	HttpStatus int `json:"httpStatus"`

	/* https证书绑定状态 (Optional) */
	HttpsCertUpdateStatus int `json:"httpsCertUpdateStatus"`

	/* 国密https证书绑定状态 (Optional) */
	GmHttpsCertUpdateStatus int `json:"gmHttpsCertUpdateStatus"`

	/* 是否支持国密证书 (Optional) */
	GmCertSupport int `json:"gmCertSupport"`

	/* 防护状态,0:关闭 1:开启 (Optional) */
	AntiStatus AntiStatus `json:"antiStatus"`

	/* 防护模式 (Optional) */
	AntiMode AntiMode `json:"antiMode"`

	/* 1:bypass 0:防护模式 (Optional) */
	DisableWaf int `json:"disableWaf"`

	/* 近七天攻击详情 (Optional) */
	AttackInfo AttackInfo `json:"attackInfo"`

	/* 网站dns配置 (Optional) */
	DnsStatus DnsStatus `json:"dnsStatus"`

	/* cname解析状态。0为解析到VIP,1为解析到回源地址 (Optional) */
	EnableCname2Rs int `json:"enableCname2Rs"`

	/* cname解析状态。0为解析到VIP,1为解析到回源地址 (Optional) */
	EnableIpv6 int `json:"enableIpv6"`

	/* 域名的地域信息,类型是map[string]regionVipInfo (Optional) */
	Region DomainRegionInfo `json:"region"`
}

type DomainRegionInfo

type DomainRegionInfo struct {

	/* 域名的在华北的vip和选中信息 (Optional) */
	Hb_bgp RegionVipInfo `json:"hb_bgp"`

	/* 域名的在华东的vip和选中信息 (Optional) */
	Hd_bgp RegionVipInfo `json:"hd_bgp"`

	/* 域名的在华南的vip和选中信息 (Optional) */
	Hn RegionVipInfo `json:"hn"`
}

type EnableConf

type EnableConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`
}

type EnableNameReq

type EnableNameReq struct {

	/* 实例id,WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 名称  */
	Name string `json:"name"`

	/* 是否使能,0表示否 (Optional) */
	Enable int `json:"enable"`
}

type EnableReq

type EnableReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 是否使能,0表示否  */
	Enable int `json:"enable"`
}

type EsLogEvent

type EsLogEvent struct {

	/* 产生时间 (Optional) */
	AccessTime int64 `json:"accessTime"`

	/* 源ip (Optional) */
	RemoteAddr string `json:"remoteAddr"`

	/* 客户端port (Optional) */
	RemotePort string `json:"remotePort"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 来源地区 (Optional) */
	Area string `json:"area"`

	/* 方法 (Optional) */
	Method string `json:"method"`

	/* url (Optional) */
	Url string `json:"url"`

	/* 恶意负载 (Optional) */
	PayLoad string `json:"payLoad"`

	/* 响应信息 (Optional) */
	Status string `json:"status"`

	/* 日志类型 (Optional) */
	LogType string `json:"logType"`

	/* 动作 (Optional) */
	Action string `json:"action"`

	/* 请求ID (Optional) */
	RequestId string `json:"requestId"`

	/* 回源错误信息 (Optional) */
	UpstreamErr string `json:"upstreamErr"`

	/* 日志记录时间 (Optional) */
	TimeLocal string `json:"timeLocal"`

	/* 本机域名 (Optional) */
	Hostname string `json:"hostname"`

	/* 响应长度 (Optional) */
	BytesSent string `json:"bytesSent"`

	/* 请求长度 (Optional) */
	RequestLength string `json:"requestLength"`

	/* 客户端请求的域名 (Optional) */
	Host string `json:"host"`

	/* jfe的server块监听IP (Optional) */
	ServerAddr string `json:"serverAddr"`

	/* jfe的server块监听port (Optional) */
	ServerPort string `json:"serverPort"`

	/* 请求所连接的upstream名称 (Optional) */
	UpstreamHttpName string `json:"upstreamHttpName"`

	/* 请求所连接的upstream服务器IP (Optional) */
	UpstreamAddr string `json:"upstreamAddr"`

	/* 请求所连接的upstream服务器port (Optional) */
	UpstreamHttpPort string `json:"upstreamHttpPort"`

	/* 等待upstream建立连接的时间 (Optional) */
	UpstreamConnectTime string `json:"upstreamConnectTime"`

	/* 接收upstream请求头的时间 (Optional) */
	UpstreamHeaderTime string `json:"upstreamHeaderTime"`

	/* 接收upstream响应头的时间 (Optional) */
	UpstreamResponseTime string `json:"upstreamResponseTime"`

	/* 请求处理时间 (Optional) */
	RequestTime string `json:"requestTime"`

	/* 请求头的UA字段 (Optional) */
	HttpUserAgent string `json:"httpUserAgent"`

	/* 攻击类型 (Optional) */
	AntiReason string `json:"antiReason"`

	/* 请求来源 (Optional) */
	HttpReferer string `json:"httpReferer"`

	/* 请求协议 (Optional) */
	Scheme string `json:"scheme"`

	/* uri (Optional) */
	Uri string `json:"uri"`

	/* 断点续传响应分片位置 (Optional) */
	SentHttpContentRange string `json:"sentHttpContentRange"`

	/* 客户端IP (Optional) */
	AntiRemoteAddr string `json:"antiRemoteAddr"`

	/* 原响应码 (Optional) */
	AntiStatus string `json:"antiStatus"`

	/* 命中规则请求原始请求报文 (Optional) */
	AntiReqRaw string `json:"antiReqRaw"`

	/* 命中规则请求原始响应报文 (Optional) */
	AntiRespRaw string `json:"antiRespRaw"`

	/* 来源地域信息 (Optional) */
	AntiGeo string `json:"antiGeo"`

	/* 指纹ID (Optional) */
	AntiRiskFid string `json:"antiRiskFid"`

	/* 指纹采集详细信息 (Optional) */
	AntiRiskRaw string `json:"antiRiskRaw"`
}

type EsLogFile

type EsLogFile struct {

	/* 日志唯一key值 (Optional) */
	Key string `json:"key"`

	/* 日志文件名称 (Optional) */
	FileName string `json:"fileName"`

	/* 日志更新时间 (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 文件大小 (Optional) */
	Size int `json:"size"`
}

type Exception added in v1.62.0

type Exception struct {

	/*  (Optional) */
	S499 ChartItemValue `json:"s499"`

	/*  (Optional) */
	S503 ChartItemValue `json:"s503"`

	/*  (Optional) */
	S404 ChartItemValue `json:"s404"`

	/*  (Optional) */
	S502 ChartItemValue `json:"s502"`

	/*  (Optional) */
	S504 ChartItemValue `json:"s504"`

	/*  (Optional) */
	S5XX ChartItemValue `json:"s5XX"`
}

type FakeSpdBotRules added in v1.56.0

type FakeSpdBotRules struct {

	/* 伪造蜘蛛库名称 (Optional) */
	Name string `json:"name"`

	/* 1-使用中,0-禁用 (Optional) */
	Enable int `json:"enable"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`
}

type FilterCfg

type FilterCfg struct {

	/* 序号,不作更新使用 (Optional) */
	Id *int `json:"id"`

	/* 请求位置 当匹配类型为"str"/"regex"/"size"时,可选字段:["headers"/"cookie"/"args"/"body"/"uri"/"method"] | 匹配类型为"SQLi"/"XSS"时:可选字段:["headers"/"cookie"/"args"/"body"/"uri"]|当匹配类型为"geo"/"ip"时,该字段为空 (Optional) */
	PartOfReq *string `json:"partOfReq"`

	/* 指定key,匹配类型为"geo"/"ip"时,该字段为空,|  partOfReq为uri/body/method 时,该字段为空,header/cookie时非空,args时选填 (Optional) */
	ReqKey *string `json:"reqKey"`

	/* 匹配类型"str"时:["startsWith"/"endsWith"/"contains"/"equal"]|匹配类型为"geo"/"SQLi"/"XSS"/"regex"时:""|匹配类型为"size"时:["equal"/"notEquals"/"greaterThan"/"greaterThanOrEqual"/"lessThan"/"lessThanOrEqual"] (Optional) */
	MatchLogic *string `json:"matchLogic"`

	/* // 匹配类型为"SQLi"/"XSS"时:"",匹配类型为"geo"时:该值为省份名称。匹配类型为"ip"时,该值为 ipv4/8/16/24/32)/ipv6/64 ipv6/128)| 匹配类型为"size"时:数字字符串 其他类型不限 (Optional) */
	ReqValue *string `json:"reqValue"`

	/* 仅type为str regex SQLi XSS时可非空,取值"","lowercase","trim","base64Decode","urlDecode","htmlDecode","hexDecode","sqlTrim"按先后顺序,多个时用 , 分隔 (Optional) */
	DecodeFunc *string `json:"decodeFunc"`

	/* 不解码"base64Decode"解码,str时才有 (Optional) */
	IsBase64Decode *string `json:"isBase64Decode"`
}

type FilterHeaderConf

type FilterHeaderConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 是否使能请求头 0表示否 (Optional) */
	ReqEnable int `json:"reqEnable"`

	/* 是否使能响应头 0表示否 (Optional) */
	RespEnable int `json:"respEnable"`

	/* 请求头条数 (Optional) */
	ReqHeaderNum int `json:"reqHeaderNum"`

	/* 响应头条数 (Optional) */
	RespHeaderNum int `json:"respHeaderNum"`

	/* 总条数 (Optional) */
	Total int `json:"total"`
}

type FilterReqRespRulesConfig

type FilterReqRespRulesConfig struct {

	/* id为0时为新增,否则为更新 (Optional) */
	Id int `json:"id"`

	/* 规则名称 (Optional) */
	Name string `json:"name"`

	/* 操作对象,["req"/"resp"] (Optional) */
	OpObject string `json:"opObject"`

	/* 匹配类型,["cookie"/"header"] (Optional) */
	MatchType string `json:"matchType"`

	/* 匹配模式,["del"/"set"] (Optional) */
	MatchOp string `json:"matchOp"`

	/* filter key (Optional) */
	Key string `json:"key"`

	/* 匹配值,当匹配模式为"del"时val应为空 (Optional) */
	Val string `json:"val"`

	/* 匹配值类型,"str"(字符型),"php"(脚本类型) (Optional) */
	ValType string `json:"valType"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 0-用户添加 1-运营后台强制添加 (Optional) */
	IsForceApply int `json:"isForceApply"`
}

type FilterSenseConf

type FilterSenseConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 响应码条数  即将废弃 (Optional) */
	RespCodeNum int `json:"respCodeNum"`

	/* 敏感信息条数 (Optional) */
	SenseinfoNum int `json:"senseinfoNum"`

	/* 总条数 (Optional) */
	Total int `json:"total"`
}

type FilterSenseinfoListCfg

type FilterSenseinfoListCfg struct {

	/* 更新时必须且非0,新增时可选若传需传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* equal prefix contain之一 (Optional) */
	MatchLogic string `json:"matchLogic"`

	/* 从 idcard creditcard phone选,多选时使用','分隔 (Optional) */
	MatchType string `json:"matchType"`

	/* notice或filter (Optional) */
	MatchAction string `json:"matchAction"`

	/* 规则名称 (Optional) */
	RuleName string `json:"ruleName"`

	/* uri匹配值 (Optional) */
	MatchVal string `json:"matchVal"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`
}

type FuncList added in v1.44.0

type FuncList struct {

	/* id (Optional) */
	Id int `json:"id"`

	/* 用户名 (Optional) */
	UserPin string `json:"userPin"`

	/* 规则类型 (Optional) */
	RuleType string `json:"ruleType"`

	/* 应用添加人erp (Optional) */
	Operator string `json:"operator"`

	/* 添加时间 "2020-09-14T10:21:37+08:00" (Optional) */
	CreateTime string `json:"createTime"`
}

type GeoCfg

type GeoCfg struct {

	/* 序号id,更新时需要 (Optional) */
	Id int `json:"id"`

	/* geo名称  */
	Val string `json:"val"`

	/* 动作配置,旗舰版全部支持,其它套餐不支持观察  */
	AtCfg AtCfg `json:"atCfg"`
}

type GeoListCfg

type GeoListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* geo名称 黑名单支持海外和大陆某个省份或直辖市 白名单支持配置大陆省份/城市 (Optional) */
	Geo string `json:"geo"`

	/* action配置 (Optional) */
	AtCfg AtCfg `json:"atCfg"`
}

type GetAntiEventReq

type GetAntiEventReq struct {

	/* 实例id,代表要查询的WAF实例,为空时表示当前用户下的所有实例 (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名,为空时表示当前实例下的所有域名 (Optional) */
	Domain *string `json:"domain"`

	/* 攻击类型,支持类型:"cc"(cc攻击),"waf"(Web攻击),"acl"(自定义规则)  */
	AntiType string `json:"antiType"`

	/* 源ip,检索字段 (Optional) */
	RemoteAddr *string `json:"remoteAddr"`

	/* 状态码,检索字段 (Optional) */
	Status *string `json:"status"`

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	End int `json:"end"`

	/* 每页显示的个数。  */
	PageSize int `json:"pageSize"`

	/* 页数。  */
	PageIndex int `json:"pageIndex"`

	/* 排序字段,document_uri:uri, remote_addr:源ip, time:时间 (Optional) */
	SortKey *string `json:"sortKey"`

	/* 排序方式,desc-倒序 asc-增序 (Optional) */
	SortDesc *string `json:"sortDesc"`

	/* false表示查询,true表示导出 (Optional) */
	IsExport *bool `json:"isExport"`
}

type GetApiEnableReq added in v1.65.0

type GetApiEnableReq struct {

	/* WAF实例id (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain *string `json:"domain"`
}

type GetApiSecAssertLogReq added in v1.65.0

type GetApiSecAssertLogReq struct {

	/* 实例id,代表要查询的WAF实例,为空时表示当前用户下的所有实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名,为空时表示当前实例下的所有域名 (Optional) */
	Domain string `json:"domain"`

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	End int `json:"end"`

	/* 检索类型 api api查询,tag 备注查询 (Optional) */
	SearchType string `json:"searchType"`

	/* 检索内容 api查询不支持模糊匹配,备注查询支持模糊匹配 (Optional) */
	Search string `json:"search"`

	/* 是否有鉴权,0无,1有,不做此项筛选不传参 (Optional) */
	Token int `json:"token"`

	/* 请求是否存在敏感数据,0无,1有,不做此项筛选不传参 (Optional) */
	ReqSen int `json:"reqSen"`

	/* 响应是否存在敏感数据,0无,1有,不做此项筛选不传参 (Optional) */
	RespSen int `json:"respSen"`

	/* 是否关注,0无,1有,不做此项筛选不传参 (Optional) */
	Follow int `json:"follow"`

	/* 每页显示的个数,默认是10。 (Optional) */
	PageSize int `json:"pageSize"`

	/* 页数,默认是1。 (Optional) */
	PageIndex int `json:"pageIndex"`
}

type GetApiSecChartReq added in v1.65.0

type GetApiSecChartReq struct {

	/* 实例id,代表要查询的WAF实例,为空时表示当前用户下的所有实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名,为空时表示当前实例下的所有域名 (Optional) */
	Domain string `json:"domain"`

	/* api,总览无效 (Optional) */
	Api string `json:"api"`

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	End int `json:"end"`

	/* getTopN使用,area_top10/addr_top10/ua_top10
	(Optional) */
	ChartItems []string `json:"chartItems"`
}

type GetAvailableCertReq

type GetAvailableCertReq struct {

	/* 实例id,代表要查询的WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 是否国密 (Optional) */
	IsGm *int `json:"isGm"`
}

type GetChartReq

type GetChartReq struct {

	/* 实例id,代表要查询的WAF实例,为空时表示当前用户下的所有实例 (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名,为空时表示当前实例下的所有域名 (Optional) */
	Domain *string `json:"domain"`

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	End int `json:"end"`

	/* true表示和值图,false表示均值图,仅getBpsData, getQpsData时有效。 (Optional) */
	IsSum *bool `json:"isSum"`

	/* true表示查找命中不同规则的waf攻击对应数目。 (Optional) */
	IsWafRule *bool `json:"isWafRule"`

	/* true表示源站返回给waf的异常响应,false表示waf返回给客户端的异常响应,仅getExceptionData时有效。 (Optional) */
	IsRs *bool `json:"isRs"`

	/* ua表示返回ua的饼图数据,仅getPieChart时有效。 (Optional) */
	PieItem *string `json:"pieItem"`

	/* true表示获取状态码统计图、占比图。 (Optional) */
	IsStaCode *bool `json:"isStaCode"`

	/* 指定查询类型,getTopN:area_top10/addr_top10/url_top10/ua_top10/domain_anti_top10/url_anti_top10 (Optional) */
	ChartItems []string `json:"chartItems"`
}

type GetEsLogReq

type GetEsLogReq struct {

	/* 实例id,代表要查询的WAF实例,为空时表示当前用户下的所有实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名,为空时表示当前实例下的所有域名 (Optional) */
	Domain string `json:"domain"`

	/* 来源ip,检索字段 (Optional) */
	RemoteAddr string `json:"remoteAddr"`

	/* 动作,检索字段 (Optional) */
	Action string `json:"action"`

	/* 状态码,检索字段 (Optional) */
	Status string `json:"status"`

	/* 日志类型,检索字段,支持类型:""(为空时,默认查询全部日志类型),"access"(访问日志),"waf"(wafSDK),"acl"(自定义规则),"skip"(白名单),"deny"(黑名单),"cc"(CC攻击),"webcache"(网页防篡改),"css"(跨站脚本攻击),"sqli"(SQL注入攻击),""fileinc"(文件读取/包含攻击),"cmding"(命令/代码执行攻击),"sdd"(敏感文件探测),"malscan"(恶意扫描攻击),"bckack"(恶意/后门文件攻击),"xmli"(XML注入攻击),"dirt"(目录遍历攻击) (Optional) */
	LogType []string `json:"logType"`

	/* 日志Id,检索字段 (Optional) */
	LogId string `json:"logId"`

	/* 状态标识,检索字段 (Optional) */
	UpstreamErr string `json:"upstreamErr"`

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	End int `json:"end"`

	/* 每页显示的个数,默认是10。 (Optional) */
	PageSize int `json:"pageSize"`

	/* 页数,默认是1。 (Optional) */
	PageIndex int `json:"pageIndex"`
}

type GetEsLogUrlReq

type GetEsLogUrlReq struct {

	/* 日志唯一key  */
	Key string `json:"key"`

	/* 实例id,代表要查询的WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`
}

type GetInstanceReq

type GetInstanceReq struct {

	/* 地域信息 (Optional) */
	Region string `json:"region"`
}

type GetPriceReq

type GetPriceReq struct {

	/* 地域信息  */
	Region string `json:"region"`

	/* 购买类型, 1:创建 2:续费 3:升配  */
	BuyType int `json:"buyType"`

	/* 购买时长  */
	TimeSpan int `json:"timeSpan"`

	/* 时间单位,month, year  */
	TimeUnit string `json:"timeUnit"`

	/* 实例id,除新建必传 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 套餐类型 1:高级版, 2:企业版 3:旗舰版  */
	PackageType int `json:"packageType"`

	/* 额外的域名扩展包  */
	ExtraDomainsNum int `json:"extraDomainsNum"`

	/* 额外的qps扩展包,单位为M 该值为50M的倍数  */
	ExtraBitsLimit int `json:"extraBitsLimit"`

	/* 防护扩展包
	0x00000002防护扩展包
	 (Optional) */
	ExtraPackage int `json:"extraPackage"`

	/* 云鼎的appCode (Optional) */
	AppCode string `json:"appCode"`

	/* 云鼎的serviceCode (Optional) */
	ServiceCode string `json:"serviceCode"`
}

type GetStatusCodeReq added in v1.54.0

type GetStatusCodeReq struct {

	/* 实例id,代表要查询的WAF实例,为空时表示当前用户下的所有实例 (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名,为空时表示当前实例下的所有域名 (Optional) */
	Domain *string `json:"domain"`

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	End int `json:"end"`

	/* 指定状态码,仅getStatusCodeInfo时有效 (Optional) */
	StatusCode []string `json:"statusCode"`

	/* true表示获取状态码统计图、占比图。 (Optional) */
	IsStaCode *bool `json:"isStaCode"`
}

type GetUserPinVipInfoReq added in v1.56.0

type GetUserPinVipInfoReq struct {

	/* userPins, 以,间隔, allJDCloudpin表示获取全部 (Optional) */
	UserPins string `json:"userPins"`
}

type GetWafDataReq added in v1.54.0

type GetWafDataReq struct {

	/* userPins (Optional) */
	UserPin []string `json:"userPin"`

	/* 起始时间, utc时间戳 (Optional) */
	StartTime int64 `json:"startTime"`

	/* 结束时间, utc时间戳,必须大于起始时间 (Optional) */
	EndTime int64 `json:"endTime"`
}

type GroupCfg added in v1.62.0

type GroupCfg struct {

	/* 匹配字段  */
	Field string `json:"field"`

	/* 匹配逻辑  */
	Logic int `json:"logic"`

	/* 匹配key,仅匹配字段为cookie/header/args需要 (Optional) */
	Key string `json:"key"`

	/* 匹配值  */
	Value string `json:"value"`
}

type GroupListCfg added in v1.62.0

type GroupListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/* 规则名称 (Optional) */
	RuleName string `json:"ruleName"`

	/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* group配置 (Optional) */
	GroupMatchItems []GroupCfg `json:"groupMatchItems"`

	/* action配置 (Optional) */
	AtCfg AtCfg `json:"atCfg"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`
}

type HandlePackReq added in v1.54.0

type HandlePackReq struct {

	/* 操作,expireDisable:停止;renew:启动;expireDelete:过期删除  */
	Operation string `json:"operation"`
}

type IdReq

type IdReq struct {

	/* id序号  */
	Id int `json:"id"`
}

type ImportIpsetReq added in v1.62.0

type ImportIpsetReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* ip集名称  */
	PolicyName string `json:"policyName"`

	/* 导入的ip  */
	Ips string `json:"ips"`

	/* 0表示新建,1表示修改更新 (Optional) */
	IsUpdate *int `json:"isUpdate"`

	/* 备注 (Optional) */
	Tag *string `json:"tag"`
}

type InstanceIdCfg

type InstanceIdCfg struct {

	/* 实例id (Optional) */
	InstanceId string `json:"instanceId"`

	/* 实例id别称 (Optional) */
	NickName string `json:"nickName"`

	/* 套餐类型 0:内测版,1:高级版, 2:企业版 3:旗舰版 (Optional) */
	PackageType int `json:"packageType"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`

	/* 资源ID,续费,标签用 (Optional) */
	SourceId string `json:"sourceId"`

	/* 额外的域名扩展包 (Optional) */
	DomainPackages int `json:"domainPackages"`

	/* 额外的qps扩展包,单位为M (Optional) */
	ExtraBitsLimit int `json:"extraBitsLimit"`

	/* 防护扩展包
	0x00000002防护扩展包
	 (Optional) */
	ExtraPackage int `json:"extraPackage"`

	/* 创建时间 (Optional) */
	StartTime string `json:"startTime"`

	/* 到期时间 (Optional) */
	EndTime string `json:"endTime"`

	/* 资源预计释放时间,仅过期且未释放时有效 (Optional) */
	ReleaseingTime string `json:"releaseingTime"`

	/* 距离到期时间的天数 (Optional) */
	ExpiringDays int `json:"expiringDays"`

	/* 资源的计费状态,1-服务中,2-过期停服,3-过期释放 (Optional) */
	Status int `json:"status"`

	/* 资源的可用状态,1-可用,其他不可用 (Optional) */
	Valid int `json:"valid"`

	/* 标签 (Optional) */
	Tag InstanceTag `json:"tag"`

	/* vip信息 (Optional) */
	Vips interface{} `json:"vips"`
}

type InstanceTag added in v1.65.0

type InstanceTag struct {

	/*  (Optional) */
	ResourceId string `json:"resourceId"`

	/*  (Optional) */
	Tags []TagInfo `json:"tags"`
}

type IntSemConf

type IntSemConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 模式 (Optional) */
	Mode string `json:"mode"`
}

type IpCfg

type IpCfg struct {

	/* 序号id,更新时需要 (Optional) */
	Id *int `json:"id"`

	/* ruleType为0时,支持ipv4/8,ipv4/16,ipv4/24,ipv4/32,ipv6/64;ruleType为1时,为ip集名称  */
	Val string `json:"val"`

	/* 动作配置,旗舰版全部支持,其它套餐不支持观察  */
	AtCfg *AtCfg `json:"atCfg"`

	/* 备注 (Optional) */
	Tag *string `json:"tag"`
}

type IpDomainInfo

type IpDomainInfo struct {

	/* ip (Optional) */
	Ip string `json:"ip"`

	/* 是否waf的vip,true-是,false-不是 (Optional) */
	IsVip bool `json:"isVip"`

	/* 域名信息 (Optional) */
	DomainInfo []DomainInfo `json:"domainInfo"`
}

type IpListCfg

type IpListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* ruleType为0时,支持ipv4/8,ipv4/16,ipv4/24,ipv4/32,ipv6/64;ruleType为1时,为ip集名称 (Optional) */
	Val string `json:"val"`

	/* 0-单ip 1-ip集 (Optional) */
	RuleType int `json:"ruleType"`

	/* action配置 (Optional) */
	AtCfg AtCfg `json:"atCfg"`

	/* 备注 (Optional) */
	Tag string `json:"tag"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`
}

type IpVipInfo

type IpVipInfo struct {

	/* ip (Optional) */
	Ip string `json:"ip"`

	/* 是否waf的vip,true-是,false-不是 (Optional) */
	IsVip bool `json:"isVip"`
}

type IpbanConf

type IpbanConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 防护模式 (Optional) */
	IpbanMode int `json:"ipbanMode"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`
}

type IpbanUsrConf added in v1.56.0

type IpbanUsrConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 封禁时间,秒 (Optional) */
	IpbanTime int `json:"ipbanTime"`

	/* 检测时间,秒 (Optional) */
	DetectTime int `json:"detectTime"`

	/* 封禁阈值 (Optional) */
	Threshold int `json:"threshold"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`
}

type IpsetlistCfg added in v1.62.0

type IpsetlistCfg struct {

	/* ip集名称 (Optional) */
	PolicyName string `json:"policyName"`

	/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 备注 (Optional) */
	Tag string `json:"tag"`
}

type JsPage

type JsPage struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 匹配类型   完全匹配"" 前缀匹配:"sw" (Optional) */
	MatchOp string `json:"matchOp"`

	/* uri 以/开头 (Optional) */
	Uri string `json:"uri"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`

	/* risk-风控js,bot-bot js (Optional) */
	RuleType string `json:"ruleType"`
}

type KVPair

type KVPair struct {

	/*  (Optional) */
	Key string `json:"key"`

	/*  (Optional) */
	Value int `json:"value"`
}

type KeyPair added in v1.62.0

type KeyPair struct {

	/* 筛选条件名称  */
	Key string `json:"key"`

	/* 筛选条件值  */
	Value int `json:"value"`
}

type KeyValCfg

type KeyValCfg struct {

	/* 序号id,更新时不能为空 (Optional) */
	Id int `json:"id"`

	/* 0-5 7-8 完全匹配0  前缀匹配1 包含2 正则3 大于4 后缀5 不等于7 不包含8 (Optional) */
	MatchOp int `json:"matchOp"`

	/* cookie key  */
	Key string `json:"key"`

	/* val  */
	Val string `json:"val"`

	/* 动作配置,旗舰版全部支持,其它套餐不支持观察  */
	AtCfg AtCfg `json:"atCfg"`
}

type KeyValListCfg

type KeyValListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 0-5 7-8 完全匹配0  前缀匹配1 包含2 正则3 大于4 后缀5 不等于7 不包含8 (Optional) */
	MatchOp int `json:"matchOp"`

	/* cookie key (Optional) */
	Key string `json:"key"`

	/* val (Optional) */
	Val string `json:"val"`

	/* action配置 (Optional) */
	AtCfg AtCfg `json:"atCfg"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`
}

type LastAttackReport

type LastAttackReport struct {

	/* 最后攻击时间,时间戳 (Optional) */
	LastAttackTime int `json:"lastAttackTime"`

	/* 攻击个数 (Optional) */
	AttackCount int `json:"attackCount"`
}

type LbConf

type LbConf struct {

	/* 使用协议,["http","https"]  */
	Protocols []string `json:"protocols"`

	/* ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3","TLSv1.3"] (Optional) */
	SslProtocols []string `json:"sslProtocols"`

	/* 负载均衡算法,eg:"rr","ip_hash"  */
	LbType string `json:"lbType"`

	/* 网站回源配置 (Optional) */
	RsConfig RsConfig `json:"rsConfig"`

	/* 是否使用前置代理,0为未使用,1为使用 (Optional) */
	PureClient int `json:"pureClient"`

	/* 是否可对ssl配置进行修改,0为不可修改,1可修改 (Optional) */
	SslModify int `json:"sslModify"`

	/* 1为跳转 0为不跳转 (Optional) */
	HttpsRedirect int `json:"httpsRedirect"`

	/* 用户服务器是否只能http回源,1为是,0为否 (Optional) */
	RsOnlySupportHttp int `json:"rsOnlySupportHttp"`

	/* https证书状态,非配置项。-10为未绑定,0为已绑定 (Optional) */
	HttpsCertUpdateStatus int `json:"httpsCertUpdateStatus"`

	/* 国密https证书状态,非配置项。-10为未绑定,0为已绑定 (Optional) */
	GmHttpsCertUpdateStatus int `json:"gmHttpsCertUpdateStatus"`

	/* 是否支持国密证书 (Optional) */
	GmCertSupport int `json:"gmCertSupport"`

	/* 协议状态,非配置项。0为正常,-10为不正常 (Optional) */
	HttpStatus int `json:"httpStatus"`

	/* Waf侧支持http版本,""为默认值http1.1,"http2"为http2 (Optional) */
	HttpVersion string `json:"httpVersion"`

	/* 回源是否支持长链接,0为否 (Optional) */
	EnableKeepalive int `json:"enableKeepalive"`

	/* 加密套件等级,0表示默认为中级,1表示高级,2表示低级, 3表示自定义 (Optional) */
	SuiteLevel int `json:"suiteLevel"`

	/* 自定义加密套件 (Optional) */
	UserSuiteLevel []string `json:"userSuiteLevel"`

	/* 请求头是否支持下划线,1-是,0-否 (Optional) */
	EnableUnderscores int `json:"enableUnderscores"`

	/* 请求body最大值,默认300M,可为G/K (Optional) */
	MaxBodySize string `json:"maxBodySize"`

	/* 禁用被动健康检查,缺省为0-否 (Optional) */
	DisableHealthCheck int `json:"disableHealthCheck"`

	/* 连接超时时间,3-60s (Optional) */
	ProxyConnectTimeout int `json:"proxyConnectTimeout"`

	/* 是否支持SSE (Optional) */
	Sse int `json:"sse"`
}

type LbConfig

type LbConfig struct {

	/* 域名  */
	Domain string `json:"domain"`

	/* 网站lb配置  */
	LbConf LbConf `json:"lbConf"`
}

type ListApiUserReq added in v1.65.0

type ListApiUserReq struct {

	/* WAF实例id (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain *string `json:"domain"`

	/* 规则ID,修改必填 (Optional) */
	RuleId *string `json:"ruleId"`

	/* 规则名称 (Optional) */
	RuleName *string `json:"ruleName"`

	/* 规则属性 user自定义规则 pre内置默认规则,为空返回全部 (Optional) */
	Property *string `json:"property"`

	/* 页码,默认为1 (Optional) */
	PageIndex *int `json:"pageIndex"`

	/* 页大小,默认为30 (Optional) */
	PageSize *int `json:"pageSize"`
}

type ListBotFakeSpiderRuleReq added in v1.56.0

type ListBotFakeSpiderRuleReq struct {

	/* 域名  */
	Domain string `json:"domain"`

	/* 页面大小,默认20 (Optional) */
	PageSize int `json:"pageSize"`

	/* 页码,默认1 (Optional) */
	PageIndex int `json:"pageIndex"`
}

type ListBotStdRuleReq

type ListBotStdRuleReq struct {

	/* 域名  */
	Domain string `json:"domain"`

	/* bot类型,模糊检索 (Optional) */
	BotType *string `json:"botType"`

	/* 页面大小,默认10 (Optional) */
	PageSize *int `json:"pageSize"`

	/* 页码,默认1 (Optional) */
	PageIndex *int `json:"pageIndex"`
}

type ListBotThreatIpRuleReq added in v1.54.0

type ListBotThreatIpRuleReq struct {

	/* 域名  */
	Domain string `json:"domain"`

	/* 页面大小,默认10 (Optional) */
	PageSize int `json:"pageSize"`

	/* 页码,默认1 (Optional) */
	PageIndex int `json:"pageIndex"`
}

type ListCcRuleCfg

type ListCcRuleCfg struct {

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 规则名称 (Optional) */
	RuleName string `json:"ruleName"`

	/* uri以/开头 (Optional) */
	Uri string `json:"uri"`

	/* 匹配uri 类型 0 精确匹配,1 前缀匹配(目前就支持精确匹配) (Optional) */
	MatchType int `json:"matchType"`

	/* 检测周期,单位是秒,[30~600] (Optional) */
	DetectPeriod int `json:"detectPeriod"`

	/* ip访问次数,[1~9999999] (Optional) */
	SingleIpLimit int `json:"singleIpLimit"`

	/* 阻断类型 3:封禁,2:人机交互 (Optional) */
	BlockType int `json:"blockType"`

	/* block 持续时间,单位为分钟[1~24*60] (Optional) */
	BlockTime int `json:"blockTime"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 跳转地址,blockType为1时必须为当前实例下的域名的url,为2时为自定义页面名称 (Optional) */
	Redirection string `json:"redirection"`

	/* cc 统计维度,ip或cookie (Optional) */
	Dimension string `json:"dimension"`

	/* cookiename, 只有当 dimension 为 cookie 时才有效 (Optional) */
	Dmvalue string `json:"dmvalue"`
}

type ListDenySkipRulesReq

type ListDenySkipRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单 1表示白名单  */
	Iswhite int `json:"iswhite"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex *int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize *int `json:"pageSize"`
}

type ListDomains

type ListDomains struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain *string `json:"domain"`

	/* 页码,[1-100],默认为1 (Optional) */
	PageIndex *int `json:"pageIndex"`

	/* 页大小,[1-100],默认为20 (Optional) */
	PageSize *int `json:"pageSize"`
}

type ListEsLogDownloadReq

type ListEsLogDownloadReq struct {

	/* 实例id,代表要查询的WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名,为空时表示当前实例下的所有域名 (Optional) */
	Domain string `json:"domain"`

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天。  */
	End int `json:"end"`

	/* 每页显示的个数,默认是10。 (Optional) */
	PageSize int `json:"pageSize"`

	/* 页数,默认是1。 (Optional) */
	PageIndex int `json:"pageIndex"`
}

type ListFilterReqRespRulesReq

type ListFilterReqRespRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 操作对象,["req"/"resp"]  */
	OpObject string `json:"opObject"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListFilterSenseinfoReq

type ListFilterSenseinfoReq struct {

	/* 可选 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListIpsetReq added in v1.62.0

type ListIpsetReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`
}

type ListJsPageReq

type ListJsPageReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 匹配逻辑  */
	MatchOp string `json:"matchOp"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`

	/* risk-风控js,bot-bot js  */
	RuleType string `json:"ruleType"`
}

type ListListRulesReq

type ListListRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单,1表示白名单  */
	Iswhite int `json:"iswhite"`

	/* 黑白名单类型,目前支持"method"  */
	ListType string `json:"listType"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListMainFactor added in v1.62.0

type ListMainFactor struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 页码,[1-100],默认为1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认为20 (Optional) */
	PageSize int `json:"pageSize"`

	/* 筛选条件 (Optional) */
	Factor []KeyPair `json:"factor"`
}

type ListNoticeReq

type ListNoticeReq struct {

	/* 公告类型,1-规则更新通知,2-功能更新公告  */
	NoticeType int `json:"noticeType"`

	/* 页码,默认为1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,默认为10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListPagesReq

type ListPagesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* -1表示该项不是查询条件 0审核中 1通过 2不通过 (Optional) */
	CheckStatus int `json:"checkStatus"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListProxycacheUrl

type ListProxycacheUrl struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* 缓存的uri (Optional) */
	Uri string `json:"uri"`

	/* 协议 (Optional) */
	Proto string `json:"proto"`

	/* 0-缓存生效,1-缓存不生效 (Optional) */
	Disable int `json:"disable"`

	/* 匹配模式 (Optional) */
	MatchOp int `json:"matchOp"`

	/* 更新时间,s时间戳 (Optional) */
	UpdateTime int `json:"updateTime"`
}

type ListProxycacheUrlCfg

type ListProxycacheUrlCfg struct {

	/* 总数 (Optional) */
	Total int `json:"total"`

	/*  (Optional) */
	Urls []ListProxycacheUrl `json:"urls"`
}

type ListReq

type ListReq struct {

	/* 指定规则id (Optional) */
	Id int `json:"id"`

	/* 全局告警globle 自定义告警userdefine ,默认是全局告警 (Optional) */
	RuleType string `json:"ruleType"`

	/* 外部pin,目前仅供云鼎使用 (Optional) */
	UserPinExternal string `json:"userPinExternal"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListRewriteRulesReq

type ListRewriteRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 重写类型 目前支持"uri"  */
	RewriteType string `json:"rewriteType"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListRiskCommonReq added in v1.54.0

type ListRiskCommonReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 请求id, 0-请求全部;1-获取指定id的UsrList (Optional) */
	Id int `json:"id"`

	/* 过滤关键字,在id>0时对UsrList的表项进行过滤 (Optional) */
	RulesFilter string `json:"rulesFilter"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListRiskConfDefaultReq added in v1.54.0

type ListRiskConfDefaultReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则类型 internalVar \| generalVar (Optional) */
	RuleType string `json:"ruleType"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListRiskEventVarsReq added in v1.54.0

type ListRiskEventVarsReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 事件ID (Optional) */
	Id int `json:"id"`

	/* 事件名称 (Optional) */
	Name string `json:"name"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListRiskJsReq

type ListRiskJsReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 匹配逻辑  */
	MatchOp string `json:"matchOp"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListRiskRulesReq added in v1.54.0

type ListRiskRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 场景, account_login / account_register / data_risk_control (Optional) */
	SceneRef string `json:"sceneRef"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListRuleCfg

type ListRuleCfg struct {

	/* 序号id,更新时需要 (Optional) */
	Id int `json:"id"`

	/* 设置值,method黑白名单支持"GET"/"HEAD"/"PUT"/"POST"/"COPY"/"OPTIONS"/"LINK"/"UNLINK"/"PURGE"/"LOCK"/"UNLOCK"/"PROPFIND"/"DELETE"/"PATCH"/"VIEW"  */
	Val string `json:"val"`

	/* 匹配类型 method黑白名单支持0(完全匹配) (Optional) */
	MatchOp int `json:"matchOp"`

	/* action配置  */
	AtCfg AtCfg `json:"atCfg"`
}

type ListRuleListCfg

type ListRuleListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 设置值,method黑白名单支持"GET"/"HEAD"/"PUT"/"POST"/"COPY"/"OPTIONS"/"LINK"/"UNLINK"/"PURGE"/"LOCK"/"UNLOCK"/"PROPFIND"/"DELETE"/"PATCH"/"VIEW" (Optional) */
	Val string `json:"val"`

	/* 匹配类型 method黑白名单支持0(完全匹配) (Optional) */
	MatchOp int `json:"matchOp"`

	/* action配置 (Optional) */
	AtCfg AtCfg `json:"atCfg"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`
}

type ListRulesReq

type ListRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则类型 (Optional) */
	RuleType string `json:"ruleType"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize int `json:"pageSize"`
}

type ListSslConfigReq added in v1.62.0

type ListSslConfigReq struct {

	/* 实例id,代表要设置的WAF实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`
}

type ListWafConditionCfg

type ListWafConditionCfg struct {

	/* 名称 (Optional) */
	ConditionName string `json:"conditionName"`

	/* 匹配类型 (Optional) */
	ConditionType string `json:"conditionType"`

	/* 序号 (Optional) */
	Id int `json:"id"`

	/* 规则名称 (Optional) */
	RuleNames []string `json:"ruleNames"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`
}

type ListWafConditionsReq

type ListWafConditionsReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex *int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize *int `json:"pageSize"`

	/* 可选,筛选条件,对值不做校验 (Optional) */
	ConditionName *string `json:"conditionName"`

	/* 可选,筛选条件,模糊匹配 (Optional) */
	ConditionType *string `json:"conditionType"`

	/* 可选,筛选条件 (Optional) */
	Id *int `json:"id"`
}

type ListWafFilterCfg

type ListWafFilterCfg struct {

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 所属条件的id (Optional) */
	ConditionId string `json:"conditionId"`

	/* 名称 (Optional) */
	ConditionName string `json:"conditionName"`

	/* 匹配类型 (Optional) */
	ConditionType string `json:"conditionType"`

	/* 过滤器配置 (Optional) */
	Filters []FilterCfg `json:"filters"`
}

type ListWafFilterReq

type ListWafFilterReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex *int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize *int `json:"pageSize"`

	/* 筛选条件,所属条件的id  */
	ConditionId int `json:"conditionId"`
}

type ListWafRuleCfg

type ListWafRuleCfg struct {

	/* 使用的条件集 (Optional) */
	Conditions []ConditionNameSet `json:"conditions"`

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* 匹配动作, 拦截:forbidden,redirect,status@200,status@403 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice (Optional) */
	MatchAction string `json:"matchAction"`

	/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden/status时为自定义页面名称 (Optional) */
	Redirection string `json:"redirection"`

	/* 规则名称 (Optional) */
	RuleName string `json:"ruleName"`

	/* 规则更新时间 (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 0-使用中,1-禁用 (Optional) */
	Disable int `json:"disable"`
}

type ListWafRulesReq added in v1.62.0

type ListWafRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则id (Optional) */
	Id *int `json:"id"`

	/* 页码,[1-100],默认是1 (Optional) */
	PageIndex *int `json:"pageIndex"`

	/* 页大小,[1-100],默认是10 (Optional) */
	PageSize *int `json:"pageSize"`
}

type ListWebcacheUrlCfg

type ListWebcacheUrlCfg struct {

	/* 实例id,WAF实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 名称 (Optional) */
	Name string `json:"name"`

	/* 0 网页防篡改 1 网站防篡改 (Optional) */
	Website int `json:"website"`

	/* 是否使能,0表示否 (Optional) */
	Enable int `json:"enable"`

	/* url (Optional) */
	Url string `json:"url"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`
}

type LogReportReq

type LogReportReq struct {

	/* 实例id,代表要查询的WAF实例  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 日志Id  */
	LogId string `json:"logId"`

	/* 产生时间  */
	AccessTime int64 `json:"accessTime"`
}

type LogTypeResp added in v1.65.0

type LogTypeResp struct {

	/* 查询全量日志参数中的logType值 (Optional) */
	LogType string `json:"logType"`

	/* 日志类型名称 (Optional) */
	Name string `json:"name"`
}

type MatchOpValCfg

type MatchOpValCfg struct {

	/* 完全匹配0,后缀匹配1  */
	MatchOp int `json:"matchOp"`

	/* 匹配值  */
	Val string `json:"val"`
}

type NoticeConfig

type NoticeConfig struct {

	/* id序号 (Optional) */
	Id int `json:"id"`

	/* 公告类型,1-规则更新通知,2-功能更新公告 (Optional) */
	NoticeType int `json:"noticeType"`

	/* 标题 (Optional) */
	Title string `json:"title"`

	/* 内容类型 (Optional) */
	DocType int `json:"docType"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`
}

type OrderReq

type OrderReq struct {

	/* 地域信息, hb_bgp, hn, hd_bgp 企业版支持两个,旗舰版支持3个,多个以 , 分隔  */
	Region string `json:"region"`

	/* 购买类型, 1:创建 2:续费 3:升配  */
	BuyType int `json:"buyType"`

	/* 购买时长  */
	TimeSpan int `json:"timeSpan"`

	/* 时间单位,month, year  */
	TimeUnit string `json:"timeUnit"`

	/* 创建时间  */
	StartTime int64 `json:"startTime"`

	/* 实例id,除新建必传 (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 套餐类型 1:高级版, 2:企业版 3:旗舰版  */
	PackageType int `json:"packageType"`

	/* 额外的域名扩展包  */
	ExtraDomainsNum int `json:"extraDomainsNum"`

	/* 实例名,新建订单时必传,只能包含汉字、英文字母、下划线、破折号、数字,且长度不能超过16 (Optional) */
	NickName *string `json:"nickName"`

	/* 下单成功后返回的url, eg:http://abc.com  */
	ReturnURL string `json:"returnURL"`

	/* 额外的qps扩展包,单位为M 该值为50M的倍数  */
	ExtraBitsLimit int `json:"extraBitsLimit"`

	/* 防护扩展包
	0x00000002防护扩展包
	 (Optional) */
	ExtraPackage *int `json:"extraPackage"`

	/* 云鼎的appCode (Optional) */
	AppCode *string `json:"appCode"`

	/* 云鼎的serviceCode (Optional) */
	ServiceCode *string `json:"serviceCode"`

	/* 购物车活动参数 (Optional) */
	BuyScenario *string `json:"buyScenario"`

	/* true表示支持autoPay (Optional) */
	NeedPay *bool `json:"needPay"`
}

type OwnerCfg added in v1.62.0

type OwnerCfg struct {

	/* 序号id,更新时需要 (Optional) */
	Id int `json:"id"`

	/* owner名称  */
	Val string `json:"val"`

	/* 动作配置,旗舰版全部支持,其它套餐不支持观察  */
	AtCfg AtCfg `json:"atCfg"`
}

type OwnerListCfg added in v1.62.0

type OwnerListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* owner所属 (Optional) */
	Owner string `json:"owner"`

	/* action配置 (Optional) */
	AtCfg AtCfg `json:"atCfg"`
}

type PageCfg

type PageCfg struct {

	/* 序号id,新增时为0,更新时必传 (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 自定义页面名称  */
	Name string `json:"name"`

	/* 内容  */
	Content string `json:"content"`

	/* Content-Type (Optional) */
	ContentType string `json:"contentType"`
}

type PageListCfg

type PageListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 自定义页面名称 (Optional) */
	Name string `json:"name"`

	/* 规则更新时间,秒级时间戳 (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 内容 (Optional) */
	Content string `json:"content"`

	/* Content-Type (Optional) */
	ContentType string `json:"contentType"`

	/* 审核状态,0审核中,1通过,2未通过 (Optional) */
	CheckStatus int `json:"checkStatus"`
}

type Proxycacheitem

type Proxycacheitem struct {

	/* 状态码 (Optional) */
	Code []string `json:"code"`

	/* 缓存过期时间 (Optional) */
	Time string `json:"time"`
}

type Qps

type Qps struct {

	/* qps统计数据 (Optional) */
	QpsTotal ChartItemValue `json:"qpsTotal"`

	/* waf防护统计数据 (Optional) */
	WafAnti ChartItemValue `json:"wafAnti"`

	/* bot防护统计数据 (Optional) */
	BotAnti ChartItemValue `json:"botAnti"`

	/* cc防护统计数据 (Optional) */
	CcAnti ChartItemValue `json:"ccAnti"`

	/* 精准访问控制防护统计数据 (Optional) */
	AclAnti ChartItemValue `json:"aclAnti"`

	/* 网站合规异常统计数据 (Optional) */
	CacheTotal ChartItemValue `json:"cacheTotal"`
}

type RateLimitRuleCfg

type RateLimitRuleCfg struct {

	/* 序号id,更新时需要 (Optional) */
	Id int `json:"id"`

	/* 规则名称  */
	Name string `json:"name"`

	/* 限速host配置 (Optional) */
	Host MatchOpValCfg `json:"host"`

	/* 限速url配置 (Optional) */
	Url MatchOpValCfg `json:"url"`

	/* ip配置 (Optional) */
	Ip string `json:"ip"`

	/* 限速大小 (Optional) */
	Rate int `json:"rate"`

	/* 限速burst大小 (Optional) */
	Burst int `json:"burst"`

	/* 匹配动作, 拦截:forbidden,redirect,status@200,status@403 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice (Optional) */
	MatchAction string `json:"matchAction"`

	/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden/status时为自定义页面名称 (Optional) */
	Redirection string `json:"redirection"`
}

type RateLimitRuleListCfg

type RateLimitRuleListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/*  (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 规则名称 (Optional) */
	Name string `json:"name"`

	/* 限速host配置 (Optional) */
	Host MatchOpValCfg `json:"host"`

	/* 限速url配置 (Optional) */
	Url MatchOpValCfg `json:"url"`

	/* ip配置 (Optional) */
	Ip string `json:"ip"`

	/* 限速大小 (Optional) */
	Rate int `json:"rate"`

	/* 限速burst大小 (Optional) */
	Burst int `json:"burst"`

	/* 匹配动作, 拦截:forbidden,redirect,status@200,status@403 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice (Optional) */
	MatchAction string `json:"matchAction"`

	/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden/status时为自定义页面名称 (Optional) */
	Redirection string `json:"redirection"`
}

type RatelimitConf

type RatelimitConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 条数 (Optional) */
	RateLimitNum int `json:"rateLimitNum"`
}

type ReNickNameReq

type ReNickNameReq struct {

	/* 实例名  */
	NickName string `json:"nickName"`
}

type RegionVipInfo

type RegionVipInfo struct {

	/* true-选中,false-未选中 (Optional) */
	Chosen bool `json:"chosen"`

	/* vip (Optional) */
	Vips []string `json:"vips"`
}

type RewriteRuleCfg

type RewriteRuleCfg struct {

	/* 序号id,更新时需要 (Optional) */
	Id int `json:"id"`

	/* 原始值  */
	OriVal string `json:"oriVal"`

	/* 重写值  */
	SetVal string `json:"setVal"`
}

type RewriteRuleListCfg

type RewriteRuleListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 原始值 (Optional) */
	OriVal string `json:"oriVal"`

	/* 重写值 (Optional) */
	SetVal string `json:"setVal"`
}

type RiskConf added in v1.54.0

type RiskConf struct {

	/* 数据风控。1-使能 0-禁止 (Optional) */
	Enable int `json:"enable"`

	/* 账户安全。1-使能 0-禁止 (Optional) */
	EnableAccount int `json:"enableAccount"`
}

type RiskConfDefaultCfg added in v1.54.0

type RiskConfDefaultCfg struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* 配置键 (Optional) */
	Key string `json:"key"`

	/* 配置值 (Optional) */
	Value string `json:"value"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`
}

type RiskEventCfg added in v1.54.0

type RiskEventCfg struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 名称 (Optional) */
	Name string `json:"name"`

	/* 请求uri (Optional) */
	Uri string `json:"uri"`

	/* 编码信息 (Optional) */
	Code string `json:"code"`

	/* 描述信息 (Optional) */
	Desc string `json:"desc"`

	/* 已配置策略数 (Optional) */
	PolicyCount int `json:"policyCount"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`
}

type RiskEventVarsCfg added in v1.54.0

type RiskEventVarsCfg struct {

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 名称 (Optional) */
	Name string `json:"name"`

	/* 事件信息 (Optional) */
	Event RiskEventCfg `json:"event"`

	/* 变量信息 (Optional) */
	Vars []RiskVarCfg `json:"vars"`

	/* 策略信息 (Optional) */
	Policys []RiskPolicyCfg `json:"policys"`
}

type RiskJsCfg

type RiskJsCfg struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 匹配类型   完全匹配"" 前缀匹配:"sw" (Optional) */
	MatchOp string `json:"matchOp"`

	/* uri 以/开头 (Optional) */
	Uri string `json:"uri"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`
}

type RiskPolicyCfg added in v1.54.0

type RiskPolicyCfg struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 名称 (Optional) */
	Name string `json:"name"`

	/* 编码信息 (Optional) */
	Code string `json:"code"`

	/* 描述信息 (Optional) */
	Desc string `json:"desc"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 事件编码 (Optional) */
	EventCode string `json:"eventCode"`

	/* 策略编排逻辑, 1&2&(3\|4) (Optional) */
	Logic string `json:"logic"`

	/* rules (Optional) */
	Rules string `json:"rules"`

	/* 匹配动作, 拦截:forbidden,redirect,status@200,status@403 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice (Optional) */
	Action string `json:"action"`

	/* 跳转地址,Action为redirect时必须为当前实例下的域名的url,forbidden/status时为自定义页面名称 (Optional) */
	Redirection string `json:"redirection"`
}

type RiskPolicyRuleCfg added in v1.54.0

type RiskPolicyRuleCfg struct {

	/* 名称 (Optional) */
	Name string `json:"name"`

	/* 左变量类型 (Optional) */
	LeftType string `json:"leftType"`

	/* 左变量 (Optional) */
	Left string `json:"left"`

	/* 操作符 (Optional) */
	Operator string `json:"operator"`

	/* 右变量类型 (Optional) */
	RightType string `json:"rightType"`

	/* 右变量 (Optional) */
	Right string `json:"right"`
}

type RiskRuleCfg

type RiskRuleCfg struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 规则名称 (Optional) */
	Name string `json:"name"`

	/* uri 以/开头 (Optional) */
	Uri string `json:"uri"`

	/* 匹配动作, 拦截:forbidden,redirect,status@200,status@403 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice (Optional) */
	Action string `json:"action"`

	/* 请求方法 支持 POST:1,GET:1,PUT:1 (Optional) */
	Methods string `json:"methods"`

	/* 场景 支持 account_login / account_register (Optional) */
	SceneRef string `json:"sceneRef"`

	/* 事件 支持 passwd:JSON_BODY.passwd,username:ARGS.username,session:ARGS_BODY.session (Optional) */
	Event string `json:"event"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 跳转地址,Action为redirect时必须为当前实例下的域名的url,forbidden/status时为自定义页面名称 (Optional) */
	Redirection string `json:"redirection"`
}

type RiskRuleDetail added in v1.65.0

type RiskRuleDetail struct {

	/* 匹配字段 (Optional) */
	Field *string `json:"field"`

	/* 匹配参数 (Optional) */
	Key *string `json:"key"`

	/* 逻辑符 (Optional) */
	Logic *string `json:"logic"`

	/* 匹配内容 (Optional) */
	Value *string `json:"value"`
}

type RiskUsrListCfg added in v1.54.0

type RiskUsrListCfg struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 名称 (Optional) */
	Name string `json:"name"`

	/* 编码信息 (Optional) */
	Code string `json:"code"`

	/* 描述信息 (Optional) */
	Desc string `json:"desc"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`

	/* rules,format:["13311112222","13211112222"] (Optional) */
	Rules []string `json:"rules"`
}

type RiskVarCfg added in v1.54.0

type RiskVarCfg struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 规则名称 (Optional) */
	Name string `json:"name"`

	/* desc (Optional) */
	Desc string `json:"desc"`

	/* 0-使用中 1用-禁 (Optional) */
	Disable int `json:"disable"`

	/* 时间编码 (Optional) */
	EventCode string `json:"eventCode"`

	/* 变量类型 template \|  userDefine \|  online \| offline (Optional) */
	VarType string `json:"varType"`

	/* 消耗时间 (Optional) */
	Cost string `json:"cost"`

	/* 输出 (Optional) */
	Output string `json:"output"`

	/* 属性 (Optional) */
	Property string `json:"property"`

	/* 持续时间,单位为秒 (Optional) */
	Dura string `json:"dura"`

	/* 逻辑  and \| or (Optional) */
	Logic string `json:"logic"`

	/* 规则 (Optional) */
	Rules []RiskVarRuleCfg `json:"rules"`

	/* 参数获取位置 (Optional) */
	Pos string `json:"pos"`

	/* 参数的key (Optional) */
	Key string `json:"key"`
}

type RiskVarRuleCfg added in v1.54.0

type RiskVarRuleCfg struct {

	/* 左表达式 (Optional) */
	Left string `json:"left"`

	/* 操作符 (Optional) */
	Operator string `json:"operator"`

	/* 右表达式 (Optional) */
	Right string `json:"right"`

	/* 结果比较运算符 (Optional) */
	ResultOpt string `json:"resultOpt"`

	/* 结果右表达式 (Optional) */
	ResultRight string `json:"resultRight"`
}

type RsConfig

type RsConfig struct {

	/* 回源地址  */
	RsAddr []string `json:"rsAddr"`

	/* 回源地址权重,与rsAddr顺序对应 (Optional) */
	Weight []int `json:"weight"`

	/* http回源端口 (Optional) */
	HttpRsPort []string `json:"httpRsPort"`

	/* https回源端口 (Optional) */
	HttpsRsPort []string `json:"httpsRsPort"`

	/* 回源地址类型,0为ip,1为域名 (Optional) */
	RsType *int `json:"rsType"`
}

type SetApiDetectUser added in v1.65.0

type SetApiDetectUser struct {

	/* WAF实例id (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain *string `json:"domain"`

	/* 规则ID,修改必填 (Optional) */
	RuleId *string `json:"ruleId"`

	/* 规则名称 (Optional) */
	RuleName *string `json:"ruleName"`

	/* 类型
	json json
	urlencoded form表单
	 (Optional) */
	ContentType []string `json:"contentType"`

	/* url (Optional) */
	Url *string `json:"url"`

	/* http状态码 (Optional) */
	HttpStatus *int `json:"httpStatus"`

	/* 规则属性 user自定义规则 pre内置默认规则 (Optional) */
	Property *string `json:"property"`

	/* 规则状态 (Optional) */
	Enable *int `json:"enable"`

	/* 更新时间,list填充 (Optional) */
	UpdateTime *int64 `json:"updateTime"`
}

type SetApiRiskUser added in v1.65.0

type SetApiRiskUser struct {

	/* WAF实例id (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain *string `json:"domain"`

	/* 规则ID,修改必填 (Optional) */
	RuleId *string `json:"ruleId"`

	/* 规则名称 (Optional) */
	RuleName *string `json:"ruleName"`

	/* 规则详情 (Optional) */
	RuleDetail []RiskRuleDetail `json:"ruleDetail"`

	/* 风险等级,R1,R2,R3 (Optional) */
	RiskLevel *string `json:"riskLevel"`

	/* 规则属性 user自定义规则 pre内置默认规则 (Optional) */
	Property *string `json:"property"`

	/* 规则状态 (Optional) */
	Enable *int `json:"enable"`

	/* 更新时间,list填充 (Optional) */
	UpdateTime *int64 `json:"updateTime"`
}

type SetApiSecTagReq added in v1.65.0

type SetApiSecTagReq struct {

	/* 实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* api (Optional) */
	Api string `json:"api"`

	/* 1备注,2关注 (Optional) */
	Operate int `json:"operate"`

	/* operate为2时生效,1关注,0取关 (Optional) */
	Follow int `json:"follow"`

	/* operate为1时生效,备注 (Optional) */
	Tag string `json:"tag"`
}

type SetApiSenUser added in v1.65.0

type SetApiSenUser struct {

	/* WAF实例id (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain *string `json:"domain"`

	/* 规则ID,修改必填 (Optional) */
	RuleId *string `json:"ruleId"`

	/* 规则名称 (Optional) */
	RuleName *string `json:"ruleName"`

	/* 匹配字符类型
	majuscule 大写字母
	lowercase 小写字母
	number 数字
	symbol 符号(连字符、下划线)
	 (Optional) */
	CharType []string `json:"charType"`

	/* 匹配字符长度,[num1,num2] (Optional) */
	CharLength []int `json:"charLength"`

	/* 敏感数据级,S1,S2,S3,S4 (Optional) */
	SenLevel *string `json:"senLevel"`

	/* 规则属性 user自定义规则 pre内置默认规则 (Optional) */
	Property *string `json:"property"`

	/* 规则状态 (Optional) */
	Enable *int `json:"enable"`

	/* 更新时间,list填充 (Optional) */
	UpdateTime *int64 `json:"updateTime"`
}

type SetApiTokenUser added in v1.65.0

type SetApiTokenUser struct {

	/* WAF实例id (Optional) */
	WafInstanceId *string `json:"wafInstanceId"`

	/* 域名 (Optional) */
	Domain *string `json:"domain"`

	/* 规则ID,修改必填 (Optional) */
	RuleId *string `json:"ruleId"`

	/* 规则名称 (Optional) */
	RuleName *string `json:"ruleName"`

	/* 规则详情 (Optional) */
	RuleDetail []TokenRuleDetail `json:"ruleDetail"`

	/* 规则属性 user自定义规则 pre内置默认规则 (Optional) */
	Property *string `json:"property"`

	/* 规则状态 (Optional) */
	Enable *int `json:"enable"`

	/* 更新时间,list填充 (Optional) */
	UpdateTime *int64 `json:"updateTime"`
}

type SetBotFakeSpiderRuleReq added in v1.56.0

type SetBotFakeSpiderRuleReq struct {

	/* 域名  */
	Domain string `json:"domain"`

	/* 要设置的bot伪造蜘蛛类型,list列表中的值  */
	Name string `json:"name"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`

	/* 1-启用 0-禁用 (Optional) */
	Enable int `json:"enable"`
}

type SetBotStdRuleReq

type SetBotStdRuleReq struct {

	/* 域名  */
	Domain string `json:"domain"`

	/* 要设置的bot类型,list列表中的值  */
	BotType string `json:"botType"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`

	/* 0-启用 1-禁用 (Optional) */
	Disable int `json:"disable"`
}

type SetBotThreatIpRuleReq added in v1.54.0

type SetBotThreatIpRuleReq struct {

	/* 域名  */
	Domain string `json:"domain"`

	/* 要设置的bot威胁情报库类型,list列表中的值en  */
	BotType string `json:"botType"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`

	/* 1-启用 0-禁用 (Optional) */
	Enable int `json:"enable"`
}

type SetBotUsrRuleReq

type SetBotUsrRuleReq struct {

	/* 规则id,新增时为0或不传 (Optional) */
	Id int `json:"id"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名  */
	RuleName string `json:"ruleName"`

	/* 次数阈值,[1-20000]  */
	DetectThrsd int `json:"detectThrsd"`

	/* 检测时长,秒,[1-20000]  */
	DetectPeriod int `json:"detectPeriod"`

	/* 匹配条件集,总长度不能超过4096  */
	MatchItems []BotMatchItem `json:"matchItems"`

	/* 动作配置  */
	Action DenyActionCfg `json:"action"`

	/* 规则类型,general-通用规则,advanced-高级规则,evaluate-智能规则 缺省为general (Optional) */
	RuleType string `json:"ruleType"`

	/* 响应状态码 (Optional) */
	Status int `json:"status"`

	/* 状态码数量阀值 (Optional) */
	Ststhrst int `json:"ststhrst"`

	/* 状态码比例阀值 (Optional) */
	StsthrstRatio int `json:"ststhrstRatio"`

	/* 响应码功能是否启用 (Optional) */
	StatusDisable int `json:"statusDisable"`

	/* 规则生效时间是否启用 (Optional) */
	DateDisable int `json:"dateDisable"`

	/* 统计维度 (Optional) */
	Unit string `json:"unit"`

	/* 持续时间, 单位分钟,范围[1-24*60] (Optional) */
	BlockTime int `json:"blockTime"`
}

type SetCcRuleReq

type SetCcRuleReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名称  */
	RuleName string `json:"ruleName"`

	/* uri以/开头  */
	Uri string `json:"uri"`

	/* 精确匹配0  前缀匹配1 包含匹配2 后缀匹配5 (Optional) */
	MatchType int `json:"matchType"`

	/* 检测周期,单位是秒,[30~600]  */
	DetectPeriod int `json:"detectPeriod"`

	/* ip访问次数,[1~9999999]  */
	SingleIpLimit int `json:"singleIpLimit"`

	/* 阻断类型
	拦截-302跳转到指定页面 1:redirect@
	人机交互-验证码(高) 2:verify@captcha
	拦截-返回自定义页面 3:forbidden@
	人机交互-JS挑战(中) 4:verify@jscookie
	观察 5:notice
	人机交互-重定向挑战(低) 6:verify@rdtcookie
	动态防护(仅cc安全防护支持) 7:auto
	拦截-返回自定义内容-200 8:status@200
	拦截-返回自定义内容-403 9:status@403
	*/
	BlockType int `json:"blockType"`

	/* block 持续时间,单位为分钟 [1~24*60]  */
	BlockTime int `json:"blockTime"`

	/* blockType 为3/8/9 时,为自定义页面名称,缺省为default (Optional) */
	Redirection string `json:"redirection"`

	/* cc 统计维度,ip或cookie (Optional) */
	Dimension string `json:"dimension"`

	/* cookiename, 只有当 dimension 为 cookie 时才有效 (Optional) */
	Dmvalue string `json:"dmvalue"`
}

type SetCookieReq

type SetCookieReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单,1表示白名单 (Optional) */
	Iswhite int `json:"iswhite"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`

	/* cookie配置  */
	Cookies []KeyValCfg `json:"cookies"`
}

type SetDomainRegionReq

type SetDomainRegionReq struct {

	/* 地域,多个以逗号分隔  */
	Region string `json:"region"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 是否国密 (Optional) */
	IsGm int `json:"isGm"`
}

type SetFilterReqRespRulesReq

type SetFilterReqRespRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* id为0时为新增,更新时该参数不能为空 (Optional) */
	Id int `json:"id"`

	/* 规则名称  */
	Name string `json:"name"`

	/* 操作对象,["req"/"resp"],更新时该字段不更新  */
	OpObject string `json:"opObject"`

	/* 匹配类型,["cookie"/"header"]  */
	MatchType string `json:"matchType"`

	/* 匹配模式,["del"/"set"]  */
	MatchOp string `json:"matchOp"`

	/* filter key  */
	Key string `json:"key"`

	/* 匹配值,当匹配模式为"del"时val应为空  */
	Val string `json:"val"`

	/* 匹配值类型,默认为"str"(字符型),当设置请求头时,该字段可配置为"php"(表示脚本类型) (Optional) */
	ValType string `json:"valType"`
}

type SetFilterSenseinfoReq

type SetFilterSenseinfoReq struct {

	/* 更新时必须且非0,新增时可选若传需传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* equal prefix contain之一  */
	MatchLogic string `json:"matchLogic"`

	/* 从 idcard creditcard phone选,多选时使用','分隔  */
	MatchType string `json:"matchType"`

	/* notice或filter  */
	MatchAction string `json:"matchAction"`

	/* 规则名称  */
	RuleName string `json:"ruleName"`

	/* uri匹配值  */
	MatchVal string `json:"matchVal"`
}

type SetGeoReq

type SetGeoReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单,1表示白名单 (Optional) */
	Iswhite int `json:"iswhite"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`

	/* geo配置  */
	Geos []GeoCfg `json:"geos"`
}

type SetGroupReq added in v1.62.0

type SetGroupReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名称  */
	RuleName string `json:"ruleName"`

	/* 0表示黑名单,1表示白名单 (Optional) */
	Iswhite int `json:"iswhite"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`

	/* group配置  */
	GroupMatchItems []GroupCfg `json:"groupMatchItems"`

	/* 动作配置,旗舰版全部支持,其它套餐不支持观察 (Optional) */
	AtCfg AtCfg `json:"atCfg"`
}

type SetHeaderReq

type SetHeaderReq struct {

	/*   */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单,1表示白名单 (Optional) */
	Iswhite int `json:"iswhite"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`

	/* header配置  */
	Headers []KeyValCfg `json:"headers"`
}

type SetIntSemReq

type SetIntSemReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示禁止,1表示激活,默认为0 (Optional) */
	EnableIntSem int `json:"enableIntSem"`

	/* 模式,forbidden:拦截模式 或 notice:检测模式  */
	IntSemMode string `json:"intSemMode"`
}

type SetIpReq

type SetIpReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单,1表示白名单 (Optional) */
	Iswhite *int `json:"iswhite"`

	/* 0默认关闭,1默认打开 (Optional) */
	IsEnable *int `json:"isEnable"`

	/* 0-单ip,1-ip集 (Optional) */
	RuleType *int `json:"ruleType"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId *string `json:"skipRuleId"`

	/* ip配置  */
	Ips []IpCfg `json:"ips"`
}

type SetIpbanReq

type SetIpbanReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 防护模式 1宽松模式,2正常模式,3严格模式  */
	IpbanMode int `json:"ipbanMode"`

	/* 动作配置  */
	Action DenyActionCfg `json:"action"`
}

type SetIpbanUsrReq added in v1.56.0

type SetIpbanUsrReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名  */
	RuleName string `json:"ruleName"`

	/* 检测时间 单位秒, 限制[60-600]  */
	DetectTime int `json:"detectTime"`

	/* 封禁阈值,限制[1-20000]  */
	Threshold int `json:"threshold"`

	/* 封禁时间,限制[1-86400]  */
	IpbanTime int `json:"ipbanTime"`

	/* 0-使用中 1-禁用  */
	Disable int `json:"disable"`

	/* 动作配置  */
	Action DenyActionCfg `json:"action"`
}

type SetJsPageReq

type SetJsPageReq struct {

	/* 规则id,新增时传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 匹配类型   完全匹配"" 前缀匹配:"sw" (Optional) */
	MatchOp string `json:"matchOp"`

	/* uri 以/开头  */
	Uri string `json:"uri"`

	/* risk-风控js,bot-bot js  */
	RuleType string `json:"ruleType"`
}

type SetListRulesReq

type SetListRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单,1表示白名单  */
	Iswhite int `json:"iswhite"`

	/* 黑白名单类型,目前支持"method"  */
	ListType string `json:"listType"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`

	/* 黑白名单规则  */
	ListRules []ListRuleCfg `json:"listRules"`
}

type SetOwnerReq added in v1.62.0

type SetOwnerReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单,1表示白名单 (Optional) */
	Iswhite int `json:"iswhite"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`

	/* owner配置  */
	Owners []OwnerCfg `json:"owners"`
}

type SetPagesReq

type SetPagesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 自定义页面配置  */
	Pages []PageCfg `json:"pages"`
}

type SetProxycacheConfigReq

type SetProxycacheConfigReq struct {

	/* 域名  */
	Domain string `json:"domain"`

	/* 是否使能,0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 缓存配置 (Optional) */
	ItemCfg []CacheItemCfg `json:"itemCfg"`
}

type SetProxycacheUrlReq

type SetProxycacheUrlReq struct {

	/* 规则id,新增时传0 (Optional) */
	Id int `json:"id"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 缓存的uri  */
	Uri string `json:"uri"`

	/* 协议  */
	Proto string `json:"proto"`

	/* 完全匹配0(默认值)  后缀5 (Optional) */
	MatchOp int `json:"matchOp"`
}

type SetRatelimitRulesReq

type SetRatelimitRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 限速规则配置  */
	Rules []RateLimitRuleCfg `json:"rules"`
}

type SetReq

type SetReq struct {

	/* 规则id  */
	Id int `json:"id"`

	/* 规则名称 (Optional) */
	RuleName string `json:"ruleName"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名集 (Optional) */
	Domains []string `json:"domains"`

	/* 告警类型,wafAnti-waf攻击告警,ccAnti-cc攻击告警,statusCode-状态码告警,upstreamStatus-回源IP监控  */
	WarnType string `json:"warnType"`

	/* 阈值单位,""-个数,"percent"-百分比。缺省为个数 (Optional) */
	Unit string `json:"unit"`

	/* 检测时长单位,hour/minute,缺省为hour (Optional) */
	DetectUnit string `json:"detectUnit"`

	/* 检测周期  */
	DetectSpan int `json:"detectSpan"`

	/* 告警阈值  */
	DetectThreshold int `json:"detectThreshold"`

	/* warnType为statusCode时为要检测的状态码 (Optional) */
	DetectItems []string `json:"detectItems"`

	/* 告警方式 (Optional) */
	ContactWays []string `json:"contactWays"`

	/* 告警通知人 (Optional) */
	ContactorPersons []ContactPerson `json:"contactorPersons"`

	/* 告警通知群组 (Optional) */
	ContactorGroups []ContactGroup `json:"contactorGroups"`

	/* 是否生效,0-不生效,1-生效 (Optional) */
	Enable int `json:"enable"`

	/* 全局告警状态 (Optional) */
	GlbDisable int `json:"glbDisable"`

	/* 自定义告警状态 (Optional) */
	UsrDisable int `json:"usrDisable"`

	/* 全局告警globle 自定义告警userdefine ,默认是全局告警 (Optional) */
	RuleType string `json:"ruleType"`

	/* 产品类型, 0waf, 1scdn (Optional) */
	Mode int `json:"mode"`

	/* scdn用户名 (Optional) */
	UserPinScdn string `json:"userPinScdn"`

	/* 外部pin,目前仅供云鼎使用 (Optional) */
	UserPinExternal string `json:"userPinExternal"`
}

type SetRewriteRulesReq

type SetRewriteRulesReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 重写类型 目前支持"uri"  */
	RewriteType string `json:"rewriteType"`

	/* 重写规则配置  */
	RewriteRules []RewriteRuleCfg `json:"rewriteRules"`
}

type SetRiskEventReq added in v1.54.0

type SetRiskEventReq struct {

	/* 规则id,新增时传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名称  */
	Name string `json:"name"`

	/* uri 以/开头  */
	Uri string `json:"uri"`

	/* desc  */
	Desc string `json:"desc"`

	/* 0-使用中 1-禁用  */
	Disable int `json:"disable"`
}

type SetRiskEventVarsReq added in v1.54.0

type SetRiskEventVarsReq struct {

	/* 规则id,新增时传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 事件  */
	Event RiskEventCfg `json:"event"`

	/* 变量集  */
	Vars []RiskVarCfg `json:"vars"`

	/* 策略集 (Optional) */
	Policys []RiskPolicyCfg `json:"policys"`
}

type SetRiskJsReq

type SetRiskJsReq struct {

	/* 规则id,新增时传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 匹配类型   完全匹配"" 前缀匹配:"sw" (Optional) */
	MatchOp string `json:"matchOp"`

	/* uri 以/开头  */
	Uri string `json:"uri"`
}

type SetRiskPolicyReq added in v1.54.0

type SetRiskPolicyReq struct {

	/* 规则id,新增时传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名称  */
	Name string `json:"name"`

	/* eventCode  */
	EventCode string `json:"eventCode"`

	/* desc  */
	Desc string `json:"desc"`

	/* 0-使用中 1-禁用  */
	Disable int `json:"disable"`

	/* 策略编排逻辑, 格式:1&2&(3\|4\|5)  */
	Logic string `json:"logic"`

	/* 策略规则  */
	Rules RiskPolicyRuleCfg `json:"rules"`

	/* 匹配动作, 拦截:forbidden,redirect,status@200,status@403 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice  */
	Action string `json:"action"`

	/* 跳转地址,Action为redirect时必须为当前实例下的域名的url,forbidden/status时为自定义页面名称 (Optional) */
	Redirection string `json:"redirection"`
}

type SetRiskRuleReq

type SetRiskRuleReq struct {

	/* 规则id,新增时传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名称  */
	Name string `json:"name"`

	/* uri 以/开头  */
	Uri string `json:"uri"`

	/* 匹配动作, 拦截:forbidden,redirect,status@200,status@403 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice 旗舰版全部支持,高级版不支持人机识别  */
	Action string `json:"action"`

	/* 请求方法 支持 POST:1,GET:1,PUT:1  */
	Methods string `json:"methods"`

	/* 场景 支持 account_login / account_register / data_risk_control  */
	SceneRef string `json:"sceneRef"`

	/* 事件 支持 passwd:BODY.passwd,username:ARGS.username  */
	Event string `json:"event"`

	/* 跳转地址,action为redirect时必须为当前实例下的域名的url,forbidden/status时为自定义页面名称  */
	Redirection string `json:"redirection"`
}

type SetRiskUsrListReq added in v1.54.0

type SetRiskUsrListReq struct {

	/* 规则id,新增时传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名称  */
	Name string `json:"name"`

	/* desc  */
	Desc string `json:"desc"`

	/* 0-使用中 1-禁用  */
	Disable int `json:"disable"`

	/* 策略规则, 格式:["13311112222","13211112222"] (Optional) */
	Rules string `json:"rules"`

	/* 自定义名单上传文件内容,base64编码 (Optional) */
	Bz64File string `json:"bz64File"`
}

type SetRiskVarReq added in v1.54.0

type SetRiskVarReq struct {

	/* 规则id,新增时传0 (Optional) */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名称  */
	Name string `json:"name"`

	/* desc  */
	Desc string `json:"desc"`

	/* 0-使用中 1用-禁  */
	Disable int `json:"disable"`

	/* 时间编码  */
	EventCode string `json:"eventCode"`

	/* 变量类型 template \|  userDefine \|  online \| offline  */
	VarType string `json:"varType"`

	/* 消耗时间 (Optional) */
	Cost string `json:"cost"`

	/* 输出  */
	Output string `json:"output"`

	/* 属性 (Optional) */
	Property string `json:"property"`

	/* 持续时间,单位为秒 (Optional) */
	Dura string `json:"dura"`

	/* 逻辑  and \| or (Optional) */
	Logic string `json:"logic"`

	/* 离线统计规则 (Optional) */
	Rules RiskVarRuleCfg `json:"rules"`

	/* 参数获取位置 (Optional) */
	Pos string `json:"pos"`

	/* 参数的key (Optional) */
	Key string `json:"key"`
}

type SetSslConfigReq added in v1.62.0

type SetSslConfigReq struct {

	/* 实例id,代表要设置的WAF实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3","TLSv1.3"]  */
	SslProtocols []string `json:"sslProtocols"`

	/* 加密套件等级,0表示默认为中级,1表示高级,2表示低级, 3表示自定义  */
	SuiteLevel int `json:"suiteLevel"`

	/* 自定义加密套件 (Optional) */
	UserSuiteLevel []string `json:"userSuiteLevel"`
}

type SetStatusReq

type SetStatusReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 状态码设置  */
	Status []StatusCfg `json:"status"`
}

type SetUriReq

type SetUriReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0表示黑名单,1表示白名单 (Optional) */
	Iswhite int `json:"iswhite"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`

	/* uri配置  */
	Uris []UriCfg `json:"uris"`
}

type SetUserAntiCfgReq

type SetUserAntiCfgReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 是否开启头管理,"1"表示使能,"0"表示否,即将废弃 (Optional) */
	FilterHeaderEnable string `json:"filterHeaderEnable"`

	/* 是否开启请求头管理,"1"表示使能,"0"表示否 (Optional) */
	ReqHeaderEnable string `json:"reqHeaderEnable"`

	/* 是否开启响应头管理,"1"表示使能,"0"表示否 (Optional) */
	RespHeaderEnable string `json:"respHeaderEnable"`

	/* 是否开启敏感信息防泄漏,"1"表示使能,"0"表示否 (Optional) */
	FilterSenseEnable string `json:"filterSenseEnable"`

	/* 是否开启状态码修改,"1"表示使能,"0"表示否 (Optional) */
	StatusEnable string `json:"statusEnable"`

	/* 是否开启白名单,"1"表示使能,"0"表示否 (Optional) */
	SkipEnable string `json:"skipEnable"`

	/* 是否开启黑名单,"1"表示使能,"0"表示否 (Optional) */
	DenyEnable string `json:"denyEnable"`

	/* 是否开启限速,"1"表示使能,"0"表示否 (Optional) */
	RatelimitEnable string `json:"ratelimitEnable"`

	/* 是否开启uri重写,"1"表示使能,"0"表示否 (Optional) */
	UriRewriteEnable string `json:"uriRewriteEnable"`
}

type SetUserPolicyDomainsReq added in v1.56.0

type SetUserPolicyDomainsReq struct {

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 自定义规则组id (Optional) */
	Id int64 `json:"id"`

	/*  (Optional) */
	Domains []DomainActive `json:"domains"`
}

type SetWafConditionReq

type SetWafConditionReq struct {

	/* 0:新增,大于0:更新 (Optional) */
	Id *int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 条件名称,新增时必须 (Optional) */
	ConditionName *string `json:"conditionName"`

	/* 匹配类型,"str"/"regex"/"geo"/"size"/"ip"/"SQLi"/"XSS"  */
	ConditionType string `json:"conditionType"`

	/* 过滤器配置  */
	Filters []FilterCfg `json:"filters"`
}

type SetWafInstanceIdRegionReq

type SetWafInstanceIdRegionReq struct {

	/* 地域,多个以逗号分隔  */
	Region string `json:"region"`
}

type SetWafRuleReq

type SetWafRuleReq struct {

	/* 规则id,新增时传0  */
	Id int `json:"id"`

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 规则名称  */
	RuleName string `json:"ruleName"`

	/* 匹配动作, 拦截:forbidden,redirect,status@200,status@403 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice  */
	MatchAction string `json:"matchAction"`

	/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden/status时为自定义页面名称  */
	Redirection string `json:"redirection"`

	/* 条件集  */
	Conditions []ConditionIdSet `json:"conditions"`
}

type SetWafUserDefineReq

type SetWafUserDefineReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 0禁止,1表示激活,默认为0 (Optional) */
	EnableUserDef *int `json:"enableUserDef"`
}

type SetWebcacheUrlReq

type SetWebcacheUrlReq struct {

	/* WAF实例id  */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名  */
	Domain string `json:"domain"`

	/* 名称  */
	Name string `json:"name"`

	/* 0 网页防篡改 1 网站防篡改  */
	Website int `json:"website"`

	/* url  */
	Url string `json:"url"`
}

type SignatureRuleGroup added in v1.56.0

type SignatureRuleGroup struct {

	/* 规则个数 (Optional) */
	Count int `json:"count"`

	/* 攻击类型 (Optional) */
	RuleType string `json:"ruleType"`

	/* 攻击描述信息 (Optional) */
	Desc string `json:"desc"`
}

type SignatureRuleReq added in v1.56.0

type SignatureRuleReq struct {

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 攻击类型 (Optional) */
	RuleType string `json:"ruleType"`

	/* 危险等级 (Optional) */
	RuleLevel int `json:"ruleLevel"`

	/* 规则名字 (Optional) */
	RuleName string `json:"ruleName"`

	/* CVE (Optional) */
	Cve string `json:"cve"`

	/* 规则id (Optional) */
	RuleId int `json:"ruleId"`

	/* 时间排序 asc 升序/desc降序 (Optional) */
	OrderTime string `json:"orderTime"`
}

type SignatureRules added in v1.56.0

type SignatureRules struct {

	/* 规则id (Optional) */
	RuleId int64 `json:"ruleId"`

	/* 规则名称 (Optional) */
	RuleName string `json:"ruleName"`

	/* 规则类型 (Optional) */
	RuleType string `json:"ruleType"`

	/* 规则等级 (Optional) */
	RuleLevel int `json:"ruleLevel"`

	/* 应用漏洞 (Optional) */
	Cve string `json:"cve"`

	/* 更新时间 (Optional) */
	UpdateTime int64 `json:"updateTime"`

	/* 规则描述 (Optional) */
	RuleDesc string `json:"ruleDesc"`
}

type SkipActionCfg

type SkipActionCfg struct {

	/* 是否跳过所有阶段,1表示是,0表示否  */
	PassAll int `json:"passAll"`

	/* 是否执行cc防护,1表示是,0表示否  */
	Cc int `json:"cc"`

	/* 是否执行waf防护,1表示是,0表示否  */
	Waf int `json:"waf"`

	/* 是否执行deny防护,1表示是,0表示否  */
	Deny int `json:"deny"`

	/* 是否执行限速,1表示是,0表示否  */
	RateLimit int `json:"rateLimit"`

	/* 是否执行bot,1表示是,0表示否  */
	Bot int `json:"bot"`

	/* 是否执行风控,1表示是,0表示否  */
	Risk int `json:"risk"`
}

type SkipConf

type SkipConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 规则条数 (Optional) */
	ListNum int `json:"listNum"`
}

type SpiderConf added in v1.56.0

type SpiderConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 防护模式 (Optional) */
	SpiderMode int `json:"spiderMode"`

	/* 动作配置,默认为告警,支持1,2,5四种类型动作 (Optional) */
	Action DenyActionCfg `json:"action"`
}

type StatusCfg

type StatusCfg struct {

	/* 更新时必传 (Optional) */
	Id int `json:"id"`

	/* 规则名称  */
	Name string `json:"name"`

	/* 原有状态码,不能为"200","493","593"  */
	OriStatus string `json:"oriStatus"`

	/* 设置状态码,只能为"200","302"  */
	SetStatus string `json:"setStatus"`

	/* 设置状态码为"200"时,改值为自定义页面名称,"302"时为跳转url  */
	Val string `json:"val"`
}

type StatusCodeData added in v1.54.0

type StatusCodeData struct {

	/* 异常状态码域名TOP10 (Optional) */
	DomainTop10 []TopCodeValue `json:"domainTop10"`

	/* 异常状态码URL的TOP10 (Optional) */
	UrlTop10 []TopCodeValue `json:"urlTop10"`

	/* 状态码响应统计,当请求字段isStaCode为true时返回 (Optional) */
	StatusCodeTotal ChartItemValue `json:"statusCodeTotal"`

	/* 状态码响应占比,当请求字段isStaCode为true时返回 (Optional) */
	StatusCodePie []TopValue `json:"statusCodePie"`
}

type StatusConf

type StatusConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 响应码条数 (Optional) */
	StatusNum int `json:"statusNum"`
}

type StatusListCfg

type StatusListCfg struct {

	/* id (Optional) */
	Id int `json:"id"`

	/* 规则名称 (Optional) */
	Name string `json:"name"`

	/* 原有状态码 (Optional) */
	OriStatus string `json:"oriStatus"`

	/* 设置状态码,只能为"200","302" (Optional) */
	SetStatus string `json:"setStatus"`

	/* 设置状态码为"200"时,改值为自定义页面名称,"302"时为跳转url (Optional) */
	Val string `json:"val"`

	/* 更新时间,s (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`
}

type StdBotRules

type StdBotRules struct {

	/* bot类型 (Optional) */
	BotType string `json:"botType"`

	/* bot子类 (Optional) */
	SubType []string `json:"subType"`

	/* 0-使用中,1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`
}

type TagInfo added in v1.65.0

type TagInfo struct {

	/*  (Optional) */
	Key string `json:"key"`

	/*  (Optional) */
	Value string `json:"value"`
}

type ThreatIpBotRules added in v1.54.0

type ThreatIpBotRules struct {

	/* 威胁情报库类型en (Optional) */
	BotType string `json:"botType"`

	/* 威胁情报库类型zh (Optional) */
	BotTypeZh string `json:"botTypeZh"`

	/* 1-使用中,0-禁用 (Optional) */
	Enable int `json:"enable"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`
}

type TokenRuleDetail added in v1.65.0

type TokenRuleDetail struct {

	/* 匹配字段,多个逗号分隔
	req.arg 请求参数
	req.header 请求头
	req.cookie 请求Cookie
	req.body 请求body
	 (Optional) */
	Field *string `json:"field"`

	/* 匹配参数 (Optional) */
	Key *string `json:"key"`

	/* 逻辑符
	exist 存在
	gt 存在且大于
	 (Optional) */
	Logic *string `json:"logic"`

	/* 匹配内容 (Optional) */
	Value *string `json:"value"`
}

type TopAntiValue added in v1.54.0

type TopAntiValue struct {

	/* 排名 (Optional) */
	Rank int `json:"rank"`

	/* 具体值 (Optional) */
	Src string `json:"src"`

	/* 统计值 (Optional) */
	Pv int `json:"pv"`

	/* 攻击分布 (Optional) */
	Count AntiValue `json:"count"`
}

type TopCodeValue added in v1.54.0

type TopCodeValue struct {

	/* 排名 (Optional) */
	Rank int `json:"rank"`

	/* 具体值 (Optional) */
	Src string `json:"src"`

	/* 统计值 (Optional) */
	Pv int `json:"pv"`

	/*  (Optional) */
	Status_code []KVPair `json:"status_code"`
}

type TopN

type TopN struct {

	/*  (Optional) */
	Addr_top10 []TopValue `json:"addr_top10"`

	/*  (Optional) */
	Area_top10 []TopValue `json:"area_top10"`

	/*  (Optional) */
	Url_top10 []TopValue `json:"url_top10"`

	/*  (Optional) */
	Ua_top10 []TopValue `json:"ua_top10"`

	/*  (Optional) */
	Domain_anti_top10 []TopAntiValue `json:"domain_anti_top10"`

	/*  (Optional) */
	Url_anti_top10 []TopAntiValue `json:"url_anti_top10"`
}

type TopValue

type TopValue struct {

	/* 排名 (Optional) */
	Rank int `json:"rank"`

	/* 具体值 (Optional) */
	Src string `json:"src"`

	/* 统计值 (Optional) */
	Pv int `json:"pv"`
}

type UpBps added in v1.62.0

type UpBps struct {

	/* 总出Bps (Optional) */
	Total int64 `json:"total"`

	/* web攻击 (Optional) */
	WafAnti int64 `json:"wafAnti"`

	/* cc攻击 (Optional) */
	CcAnti int64 `json:"ccAnti"`

	/* 自定义攻击 (Optional) */
	AclAnti int64 `json:"aclAnti"`

	/* bot攻击 (Optional) */
	BotAnti int64 `json:"botAnti"`

	/* 网站合规异常 (Optional) */
	CacheTotal int64 `json:"cacheTotal"`
}

type UriCfg added in v1.62.0

type UriCfg struct {

	/* 序号id,更新时需要 (Optional) */
	Id int `json:"id"`

	/* 0-5 7-8 完全匹配0  前缀匹配1 包含2 正则3 大于4 后缀5 不等于7 不包含8 (Optional) */
	MatchOp int `json:"matchOp"`

	/* val  */
	Val string `json:"val"`

	/* 动作配置,旗舰版全部支持,其它套餐不支持观察  */
	AtCfg AtCfg `json:"atCfg"`
}

type UriRewriteConf

type UriRewriteConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* uri重写规则条数 (Optional) */
	UriRewriteNum int `json:"uriRewriteNum"`
}

type UrlListCfg added in v1.62.0

type UrlListCfg struct {

	/* 序号id (Optional) */
	Id int `json:"id"`

	/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 0-5 7-8 完全匹配0  前缀匹配1 包含2 正则3 大于4 后缀5 不等于7 不包含8 (Optional) */
	MatchOp int `json:"matchOp"`

	/* val (Optional) */
	Val string `json:"val"`

	/* action配置 (Optional) */
	AtCfg AtCfg `json:"atCfg"`

	/* 白名单不检查指定Web防护规则id, 多个逗号分隔 (Optional) */
	SkipRuleId string `json:"skipRuleId"`
}

type UserDefPageConf

type UserDefPageConf struct {

	/* 条数 (Optional) */
	PageNum int `json:"pageNum"`
}

type UserPin2Ips added in v1.56.0

type UserPin2Ips struct {

	/* userPin (Optional) */
	UserPin string `json:"userPin"`

	/* ipInfo (Optional) */
	Ips []UserPinIpInfo `json:"ips"`
}

type UserPinIpInfo added in v1.56.0

type UserPinIpInfo struct {

	/* 带宽,单位M (Optional) */
	Bandwidth int64 `json:"bandwidth"`

	/* ip addr (Optional) */
	Ip string `json:"ip"`
}

type UserPolicyIdInfo added in v1.56.0

type UserPolicyIdInfo struct {

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 自定义规则组id (Optional) */
	Id int64 `json:"id"`
}

type UserPolicyInfo added in v1.56.0

type UserPolicyInfo struct {

	/* 规则组id (Optional) */
	Id int64 `json:"id"`

	/* 规则组名字 (Optional) */
	Name string `json:"name"`

	/* 规则组里的规则个数 (Optional) */
	Count int `json:"count"`

	/* 规则组应用的域名个数 (Optional) */
	DomainCnt int `json:"domainCnt"`

	/* 规则是否自动更新, 0/1 (Optional) */
	AutoAdd int `json:"autoAdd"`

	/* 导入规则集的等级,0/1/2/-1 (Optional) */
	ImportLevel int `json:"importLevel"`

	/* 规则id (Optional) */
	RuleIds []int `json:"ruleIds"`

	/* 更新时间 (Optional) */
	UpdateTime int64 `json:"updateTime"`

	/* 自定义规则集应用的域名信息 (Optional) */
	WafDomains []UserPolicyWafDomain `json:"wafDomains"`
}

type UserPolicyName added in v1.56.0

type UserPolicyName struct {

	/* 规则组id (Optional) */
	Id int64 `json:"id"`

	/* 规则组名字 (Optional) */
	Name string `json:"name"`
}

type UserPolicyReq added in v1.56.0

type UserPolicyReq struct {

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`
}

type UserPolicySetReq added in v1.56.0

type UserPolicySetReq struct {

	/* 规则组id, 0-新建,非0-编辑 (Optional) */
	Id int64 `json:"id"`

	/* 规则组名字 (Optional) */
	Name string `json:"name"`

	/* 规则是否自动更新, 0/1, importLevel = 0时,autoAdd不能开启 (Optional) */
	AutoAdd int `json:"autoAdd"`

	/* 导入规则集的等级,0-未导入/1-宽松/2-正常/3-严格 (Optional) */
	ImportLevel int `json:"importLevel"`

	/* 规则id (Optional) */
	RuleIds []int `json:"ruleIds"`
}

type UserPolicyWafDomain added in v1.56.0

type UserPolicyWafDomain struct {

	/* 自定义规则组应用的实例 (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 自定义规则组应用的实例nickName (Optional) */
	NickName string `json:"nickName"`

	/* 自定义规则组应用的域名 (Optional) */
	Domains []string `json:"domains"`
}

type UsrBotRules

type UsrBotRules struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* 规则名 (Optional) */
	RuleName string `json:"ruleName"`

	/* 次数阈值 (Optional) */
	DetectThrsd int `json:"detectThrsd"`

	/* 检测时长,秒 (Optional) */
	DetectPeriod int `json:"detectPeriod"`

	/* 匹配条件集,总长度不能超过4096 (Optional) */
	MatchItems []BotMatchItem `json:"matchItems"`

	/* 动作配置 (Optional) */
	Action DenyActionCfg `json:"action"`

	/* 0-使用中 1-禁用 (Optional) */
	Disable int `json:"disable"`

	/* 更新时间 (Optional) */
	UpdateTime int `json:"updateTime"`

	/* 响应状态码 (Optional) */
	Status int `json:"status"`

	/* 状态码数量阀值 (Optional) */
	Ststhrst int `json:"ststhrst"`

	/* 状态码比例阀值 (Optional) */
	StsthrstRatio int `json:"ststhrstRatio"`

	/* 响应码功能是否启用 (Optional) */
	StatusDisable int `json:"statusDisable"`

	/* 规则生效时间是否启用 (Optional) */
	DateDisable int `json:"dateDisable"`

	/* 统计维度 (Optional) */
	Unit string `json:"unit"`

	/* 持续时间, 单位分钟,范围[1-24*60] (Optional) */
	BlockTime int `json:"blockTime"`
}

type WafConf

type WafConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 0表示防护,1表示预警 (Optional) */
	WafMode int `json:"wafMode"`

	/* 0表示宽松,1表示正常,2表示严格, 3表示自定义 (Optional) */
	WafLevel int `json:"wafLevel"`

	/* 自定义规则集Id (Optional) */
	UsrPolicy int64 `json:"usrPolicy"`

	/* 自定义页面名称 (Optional) */
	Redirection string `json:"redirection"`
}

type WafTopN

type WafTopN struct {

	/* 来源ip的top10,当请求字段isWafRule为false时返回 (Optional) */
	Addr_top10 []TopValue `json:"addr_top10"`

	/* web攻击路径top10,当请求字段isWafRule为false时返回 (Optional) */
	Url_top10 []TopValue `json:"url_top10"`

	/* web攻击来源top50,当请求字段isWafRule为false时返回 (Optional) */
	Area_top50 []TopValue `json:"area_top50"`
}

type WarnContactor

type WarnContactor struct {

	/* 联系人/群组Id (Optional) */
	ContactId int `json:"contactId"`

	/* 名称 (Optional) */
	Name string `json:"name"`

	/* 手机号 (Optional) */
	PhoneNumber string `json:"phoneNumber"`

	/* 邮箱 (Optional) */
	Email string `json:"email"`
}

type WarningCfg

type WarningCfg struct {

	/* 规则id (Optional) */
	Id int `json:"id"`

	/* WAF实例id (Optional) */
	WafInstanceId string `json:"wafInstanceId"`

	/* 域名集 (Optional) */
	Domains []string `json:"domains"`

	/* 全局告警globle 自定义告警userdefine (Optional) */
	RuleType string `json:"ruleType"`

	/* 规则名称 (Optional) */
	RuleName string `json:"ruleName"`

	/* 告警类型 (Optional) */
	WarnType string `json:"warnType"`

	/* 是否生效,0-不生效,1-生效 (Optional) */
	Enable int `json:"enable"`

	/* 检测周期 (Optional) */
	DetectSpan int `json:"detectSpan"`

	/* 告警阈值 (Optional) */
	DetectThreshold int `json:"detectThreshold"`

	/* 阈值单位,""-个数,"percent"-百分比,缺省为个数 (Optional) */
	Unit string `json:"unit"`

	/* 检测时长单位,hour/minute (Optional) */
	DetectUnit string `json:"detectUnit"`

	/* 告警方式 (Optional) */
	ContactWays []string `json:"contactWays"`

	/* 告警通知人 (Optional) */
	ContactorPersons []ContactPerson `json:"contactorPersons"`

	/* 告警通知群组 (Optional) */
	ContactorGroups []ContactGroup `json:"contactorGroups"`

	/* warnType为statusCode时为要检测的状态码 (Optional) */
	DetectItems []string `json:"detectItems"`

	/* 产品类型, 0waf, 1scdn (Optional) */
	Mode int `json:"mode"`

	/* scdn用户名 (Optional) */
	UserPinScdn string `json:"userPinScdn"`
}

type WebUserdefConf

type WebUserdefConf struct {

	/* 是否使能 0表示否 (Optional) */
	Enable int `json:"enable"`

	/* 条件条数 (Optional) */
	ConditionNum int `json:"conditionNum"`

	/* 规则条数 (Optional) */
	RuleNum int `json:"ruleNum"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL