Documentation
¶
Index ¶
- type Abnormal
- type AccessWafStatus
- type AccessWafStatusReq
- type AclConf
- type AclTopN
- type ActiveFuncByRegionReq
- type ActiveFuncReq
- type AddDomain
- type AntiEvent
- type AntiLevelWafReq
- type AntiModeCcReq
- type AntiModeWafReq
- type AntiStatus
- type AssignCertReq
- type AtCfg
- type AttackInfo
- type BotConf
- type BotMatchItem
- type BotTopN
- type Bps
- type CacheItemCfg
- type CcConf
- type CcTopN
- type ChartItemValue
- type CommonDenySkipReq
- type CommonNameReq
- type CommonReq
- type ConditionIdSet
- type ConditionNameSet
- type ContactGroup
- type ContactPerson
- type Contactor
- type DelReq
- type DelRuleNameReq
- type DelRulesReq
- type DenyActionCfg
- type DenyConf
- type DisableReq
- type DisableRulesReq
- type DnsStatus
- type DomainConfig
- type DomainInfo
- type DomainMainConfig
- type DomainRegionInfo
- type EnableConf
- type EnableNameReq
- type EnableReq
- type EnableWebcacheReq
- type EsLogEvent
- type EsLogFile
- type FilterCfg
- type FilterHeaderConf
- type FilterReqRespRulesConfig
- type FilterSenseConf
- type FilterSenseinfoListCfg
- type GeoCfg
- type GeoListCfg
- type GetAntiEventReq
- type GetAvailableCertReq
- type GetChartReq
- type GetEsLogReq
- type GetEsLogUrlReq
- type GetInstanceReq
- type GetPriceReq
- type IdReq
- type InstanceIdCfg
- type IntSemConf
- type IpCfg
- type IpDomainInfo
- type IpListCfg
- type IpVipInfo
- type IpbanConf
- type JsPage
- type KVPair
- type KeyValCfg
- type KeyValListCfg
- type LastAttackReport
- type LbConf
- type LbConfig
- type ListBotStdRuleReq
- type ListCcRuleCfg
- type ListDenySkipRulesReq
- type ListDomains
- type ListEsLogDownloadReq
- type ListFilterReqRespRulesReq
- type ListFilterSenseinfoReq
- type ListJsPageReq
- type ListListRulesReq
- type ListNoticeReq
- type ListPagesReq
- type ListProxycacheUrl
- type ListProxycacheUrlCfg
- type ListReq
- type ListRewriteRulesReq
- type ListRiskJsReq
- type ListRuleCfg
- type ListRuleListCfg
- type ListRulesReq
- type ListWafConditionCfg
- type ListWafConditionsReq
- type ListWafFilterCfg
- type ListWafFilterReq
- type ListWafRuleCfg
- type ListWebcacheUrlCfg
- type LogReportReq
- type MatchOpValCfg
- type NoticeConfig
- type OrderReq
- type PageCfg
- type PageListCfg
- type Proxycacheitem
- type Qps
- type RateLimitRuleCfg
- type RateLimitRuleListCfg
- type RatelimitConf
- type ReNickNameReq
- type RegionVipInfo
- type RewriteRuleCfg
- type RewriteRuleListCfg
- type RiskJsCfg
- type RiskRuleCfg
- type RsConfig
- type SetBotStdRuleReq
- type SetBotUsrRuleReq
- type SetCcRuleReq
- type SetCookieReq
- type SetDomainRegionReq
- type SetFilterReqRespRulesReq
- type SetFilterSenseinfoReq
- type SetGeoReq
- type SetHeaderReq
- type SetIntSemReq
- type SetIpReq
- type SetIpbanReq
- type SetJsPageReq
- type SetListRulesReq
- type SetPagesReq
- type SetProxycacheConfigReq
- type SetProxycacheUrlReq
- type SetRatelimitRulesReq
- type SetReq
- type SetRewriteRulesReq
- type SetRiskJsReq
- type SetRiskRuleReq
- type SetStatusReq
- type SetUriReq
- type SetUserAntiCfgReq
- type SetWafConditionReq
- type SetWafInstanceIdRegionReq
- type SetWafRuleReq
- type SetWafUserDefineReq
- type SetWebcacheUrlReq
- type SkipActionCfg
- type SkipConf
- type StatusCfg
- type StatusConf
- type StatusListCfg
- type StdBotRules
- type TopN
- type TopValue
- type UriRewriteConf
- type UserDefPageConf
- type UsrBotRules
- type ValCfg
- type ValListCfg
- type WafConf
- type WafTopN
- type WarnContactor
- type WarningCfg
- type WebUserdefConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Abnormal ¶
type Abnormal struct {
/* (Optional) */
NoResp ChartItemValue `json:"noResp"`
/* (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 AccessWafStatus ¶
type AccessWafStatusReq ¶
type ActiveFuncByRegionReq ¶
type ActiveFuncReq ¶
type AddDomain ¶
type AddDomain struct {
/* 实例id,代表要设置的WAF实例 */
WafInstanceId string `json:"wafInstanceId"`
/* 域名 */
Domain string `json:"domain"`
/* 使用协议,eg:["http","https"] */
Protocols []string `json:"protocols"`
/* ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3"] (Optional) */
SslProtocols []string `json:"sslProtocols"`
/* 负载均衡算法,eg:"rr","ip_hash" */
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"`
/* Waf侧支持http版本,不传时默认值为http1.1,传"http2"为http2 (Optional) */
HttpVersion *string `json:"httpVersion"`
/* 回源是否支持长链接,0为否 (Optional) */
EnableKeepalive *int `json:"enableKeepalive"`
/* 加密套件等级,0表示默认为中级,1表示高级,2表示低级 (Optional) */
SuiteLevel *int `json:"suiteLevel"`
/* 请求头是否支持下划线,0-否,1-是。缺省为0 (Optional) */
EnableUnderscores *int `json:"enableUnderscores"`
}
type AntiEvent ¶
type AntiEvent struct {
/* 源ip (Optional) */
RemoteAddr string `json:"remoteAddr"`
/* 情报标签 (Optional) */
CsaInfo string `json:"csaInfo"`
/* 来源地区 (Optional) */
Area string `json:"area"`
/* 产生时间 (Optional) */
AccessTime int `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"`
}
type AntiLevelWafReq ¶
type AntiModeCcReq ¶
type AntiModeWafReq ¶
type AntiStatus ¶
type AssignCertReq ¶
type AtCfg ¶
type AtCfg struct {
/* 黑名单动作配置 (Optional) */
DenyAction *DenyActionCfg `json:"denyAction"`
/* 白名单动作配置 (Optional) */
SkipAction *SkipActionCfg `json:"skipAction"`
}
type AttackInfo ¶
type BotMatchItem ¶
type BotMatchItem struct {
/* 匹配字段,ruleType为general时,可为ip,uri,user_agent,referer,cookie, uri只能设置一个。ruleType为advanced时,可为fingerExist(是否存在),fingerValid(合法性) */
Field string `json:"field"`
/* 0-完全匹配 1-包含匹配, field为fingerExist/fingerValid时无意义。 */
Logic int `json:"logic"`
/* filed为ip时支持8/16/24位掩码和完全匹配,field为uri且logic为0时需以"/"开头 */
Value string `json:"value"`
}
type Bps ¶
type Bps struct {
/* (Optional) */
UpBps ChartItemValue `json:"upBps"`
/* (Optional) */
DownBps ChartItemValue `json:"downBps"`
}
type CacheItemCfg ¶
type CcConf ¶
type CcConf struct {
/* 是否使能 0表示否 (Optional) */
Enable int `json:"enable"`
/* 0表示正常,1表示攻击紧急 (Optional) */
CcMode int `json:"ccMode"`
/* qps配置 (Optional) */
Qps int `json:"qps"`
/* 是否支持自定义cc,0表示否 (Optional) */
EnableUserDefine int `json:"enableUserDefine"`
/* cc自定义规则个数 (Optional) */
RulesCount int `json:"rulesCount"`
}
type ChartItemValue ¶
type ChartItemValue struct {
/* (Optional) */
Value []int `json:"value"`
}
type CommonDenySkipReq ¶
type CommonNameReq ¶
type ConditionIdSet ¶
type ConditionNameSet ¶
type ContactGroup ¶
type ContactPerson ¶
type ContactPerson struct {
/* 联系人Id (Optional) */
ContactId int `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 DelRuleNameReq ¶
type DelRulesReq ¶
type DenyActionCfg ¶
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类型的黑白名单,"usrdefHeaders":header类型的黑白名单,"usrdefIP":ip类型的黑白名单,"usrdefURI":uri类型的黑白名单,"filterReqresp":请求头类型的流量管理,"filterSenseinfo":敏感信息防泄漏,"usrdefWaf":waf自定义规则,"rewriteRule":重写规则(目前是uri重写规则),"listRule":黑白名单规则(目前指method黑白名单),"proxycache":url缓存,"botUsr":自定义类型BOT规则,"risk":风险防护规则 */
RuleType string `json:"ruleType"`
}
type DomainConfig ¶
type DomainConfig struct {
/* 域名 (Optional) */
Domain string `json:"domain"`
/* cname域名 (Optional) */
Cname string `json:"cname"`
/* 绑定的证书名称 (Optional) */
CertName string `json:"certName"`
/* 网站lb配置 (Optional) */
LbConf LbConf `json:"lbConf"`
/* 网站dns配置 (Optional) */
DnsStatus DnsStatus `json:"dnsStatus"`
/* 网站waf防护配置 (Optional) */
WafConf WafConf `json:"wafConf"`
/* 网站cc防护配置 (Optional) */
CcConf CcConf `json:"ccConf"`
/* 网站acl防护配置 (Optional) */
AclConf AclConf `json:"aclConf"`
/* 网站恶意ip防护配置 (Optional) */
IpbanConf IpbanConf `json:"ipbanConf"`
/* 网站过去两天攻击情况 (Optional) */
LastAttackReport LastAttackReport `json:"lastAttackReport"`
/* 网站防爬虫防护配置 (Optional) */
AntispiderConf EnableConf `json:"antispiderConf"`
/* 网站防篡改防护配置 (Optional) */
WebcacheConf EnableConf `json:"webcacheConf"`
/* 是否关闭waf, 1表示是 (Optional) */
DisableWaf int `json:"disableWaf"`
/* 网站白名单防护配置 (Optional) */
SkipConf SkipConf `json:"skipConf"`
/* 网站黑名单防护配置 (Optional) */
DenyConf DenyConf `json:"denyConf"`
/* 网站web自定义规则防护配置 (Optional) */
WebUserdefConf WebUserdefConf `json:"webUserdefConf"`
/* 网站限速规则防护配置 (Optional) */
RatelimitConf RatelimitConf `json:"ratelimitConf"`
/* 网站自定义页面配置 (Optional) */
UserDefPageConf UserDefPageConf `json:"userDefPageConf"`
/* 网站请求头管理防护配置 (Optional) */
FilterHeaderConf FilterHeaderConf `json:"filterHeaderConf"`
/* 网站敏感信息防护配置 (Optional) */
FilterSenseConf FilterSenseConf `json:"filterSenseConf"`
/* 网站智能语义引擎防护配置 (Optional) */
IntSemConf IntSemConf `json:"intSemConf"`
/* 网站uri重写规则配置 (Optional) */
UriRewriteConf UriRewriteConf `json:"uriRewriteConf"`
/* 网站威胁情报防护配置 (Optional) */
ThreatinfoConf EnableConf `json:"threatinfoConf"`
/* proxy缓存配置 (Optional) */
ProxycacheConf EnableConf `json:"proxycacheConf"`
/* bot配置 (Optional) */
BotConf EnableConf `json:"botConf"`
}
type DomainInfo ¶
type DomainInfo struct {
/* 域名 (Optional) */
Domain string `json:"domain"`
/* 回源ip列表 (Optional) */
RsAddr []string `json:"rsAddr"`
/* waf防护状态,rs-回源,vip-云端 (Optional) */
DnsType string `json:"dnsType"`
/* 备用cname (Optional) */
BackupCname string `json:"backupCname"`
/* 是否切清洗,0-否,1-是 (Optional) */
Enable2Dos int `json:"enable2Dos"`
}
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"`
/* 防护状态,0:关闭 1:开启 (Optional) */
AntiStatus AntiStatus `json:"antiStatus"`
/* 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 RegionVipInfo `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 EnableWebcacheReq ¶
type EsLogEvent ¶
type EsLogEvent struct {
/* 产生时间 (Optional) */
AccessTime int `json:"accessTime"`
/* 源ip (Optional) */
RemoteAddr string `json:"remoteAddr"`
/* 域名 (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"`
}
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",按先后顺序,多个时用 , 分隔 (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 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 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"`
/* 开始时间戳,单位毫秒,时间间隔要求大于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"`
}
type GetAvailableCertReq ¶
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"`
}
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"`
/* (Optional) */
LogType []string `json:"logType"`
/* 日志Id,检索字段 (Optional) */
LogId string `json:"logId"`
/* 开始时间戳,单位毫秒,时间间隔要求大于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 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:旗舰版 4:基础版 */
PackageType int `json:"packageType"`
/* 额外的域名扩展包 */
ExtraDomainsNum int `json:"extraDomainsNum"`
/* 额外的qps扩展包,单位为M 该值为50M的倍数 */
ExtraBitsLimit int `json:"extraBitsLimit"`
}
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"`
/* 创建时间 (Optional) */
StartTime int `json:"startTime"`
/* 资源预计释放时间,仅过期且未释放时有效 (Optional) */
ReleaseingTime int `json:"releaseingTime"`
/* 资源的计费状态,1-服务中,2-过期停服,3-过期释放 (Optional) */
Status int `json:"status"`
/* 资源的可用状态,1-可用,其他不可用 (Optional) */
Valid int `json:"valid"`
}
type IntSemConf ¶
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"`
/* 支持 ipv4/8 ipv4/16 ipv4/24 ipv4/32 ipv6/64 (Optional) */
Ip string `json:"ip"`
/* action配置 (Optional) */
AtCfg AtCfg `json:"atCfg"`
}
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 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 完全匹配0 前缀匹配1 包含2 正则3 大于4 后缀5 (Optional) */
MatchOp int `json:"matchOp"`
/* cookie key (Optional) */
Key string `json:"key"`
/* val (Optional) */
Val string `json:"val"`
/* action配置 (Optional) */
AtCfg AtCfg `json:"atCfg"`
}
type LastAttackReport ¶
type LbConf ¶
type LbConf struct {
/* 使用协议,["http","https"] */
Protocols []string `json:"protocols"`
/* ssl协议,eg:["TLSv1","TLSv1.1","TLSv1.2","SSLv2","SSLv3"] (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"`
/* 1为跳转 0为不跳转 (Optional) */
HttpsRedirect int `json:"httpsRedirect"`
/* 用户服务器是否只能http回源,1为是,0为否 (Optional) */
RsOnlySupportHttp int `json:"rsOnlySupportHttp"`
/* https证书状态,非配置项。-10为未绑定,0为已绑定 (Optional) */
HttpsCertUpdateStatus int `json:"httpsCertUpdateStatus"`
/* 协议状态,非配置项。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表示低级 (Optional) */
SuiteLevel int `json:"suiteLevel"`
/* 请求头是否支持下划线,1-是,0-否 (Optional) */
EnableUnderscores int `json:"enableUnderscores"`
/* 请求body最大值,默认300M,可为G/K (Optional) */
MaxBodySize string `json:"maxBodySize"`
}
type ListBotStdRuleReq ¶
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~9999999] (Optional) */
BlockTime int `json:"blockTime"`
/* 更新时间,s (Optional) */
UpdateTime int `json:"updateTime"`
/* 0-使用中 1-禁用 (Optional) */
Disable int `json:"disable"`
/* blockType 为3 时,为自定义页面名称,缺省为default (Optional) */
Redirection string `json:"redirection"`
}
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 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 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 ListNoticeReq ¶
type ListPagesReq ¶
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 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 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 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"`
}
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 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"`
/* 匹配动作 (Optional) */
MatchAction string `json:"matchAction"`
/* 重定向连接 (Optional) */
Redirection string `json:"redirection"`
/* 规则名称 (Optional) */
RuleName string `json:"ruleName"`
/* 规则更新时间 (Optional) */
UpdateTime int `json:"updateTime"`
/* 0-使用中,1-禁用 (Optional) */
Disable int `json:"disable"`
}
type ListWebcacheUrlCfg ¶
type ListWebcacheUrlCfg struct {
/* 实例id,WAF实例 (Optional) */
WafInstanceId string `json:"wafInstanceId"`
/* 域名 (Optional) */
Domain string `json:"domain"`
/* 名称 (Optional) */
Name string `json:"name"`
/* 是否使能,0表示否 (Optional) */
Enable int `json:"enable"`
/* url (Optional) */
Url string `json:"url"`
/* 更新时间,s (Optional) */
UpdateTime int `json:"updateTime"`
}
type LogReportReq ¶
type MatchOpValCfg ¶
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 int `json:"startTime"`
/* 实例id,除新建必传 (Optional) */
WafInstanceId *string `json:"wafInstanceId"`
/* 套餐类型 1:高级版, 2:企业版 3:旗舰版 4:基础版 */
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"`
}
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"`
/* 审核状态,0审核中,1通过,2未通过 (Optional) */
CheckStatus int `json:"checkStatus"`
}
type Proxycacheitem ¶
type Qps ¶
type Qps struct {
/* qps统计数据 (Optional) */
QpsTotal ChartItemValue `json:"qpsTotal"`
/* waf防护统计数据 (Optional) */
WafAnti ChartItemValue `json:"wafAnti"`
/* 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"`
/* forbidden redirect,缺省为forbidden (Optional) */
MatchAction string `json:"matchAction"`
/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden时为自定义页面名称,缺省为default (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"`
/* forbidden redirect (Optional) */
MatchAction string `json:"matchAction"`
/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden时为自定义页面名称 (Optional) */
Redirection string `json:"redirection"`
}
type RatelimitConf ¶
type ReNickNameReq ¶
type ReNickNameReq struct {
/* 实例名 */
NickName string `json:"nickName"`
}
type RegionVipInfo ¶
type RewriteRuleCfg ¶
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 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 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"`
/* 动作 支持notice / verify@captcha (Optional) */
Action string `json:"action"`
/* 0-使用中 1-禁用 (Optional) */
Disable int `json:"disable"`
/* 更新时间,s (Optional) */
UpdateTime int `json:"updateTime"`
}
type SetBotStdRuleReq ¶
type SetBotStdRuleReq struct {
/* 域名 */
Domain string `json:"domain"`
/* 要设置的bot类型,list列表中的值 */
BotType string `json:"botType"`
/* 动作配置,默认为告警,仅支持1和4和5三种类型动作 (Optional) */
Action *DenyActionCfg `json:"action"`
/* 0-启用 1-禁用 (Optional) */
Disable *int `json:"disable"`
}
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"`
/* 动作配置,默认为告警,仅支持1和4和5三种动作 */
Action *DenyActionCfg `json:"action"`
/* 规则类型,general-通用规则,advanced-高级规则,缺省为general (Optional) */
RuleType *string `json:"ruleType"`
}
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"`
/* 阻断类型 3:封禁,2:人机交互 */
BlockType int `json:"blockType"`
/* block 持续时间,单位为分钟 [1~9999999] */
BlockTime int `json:"blockTime"`
/* blockType 为3 时,为自定义页面名称,缺省为default (Optional) */
Redirection string `json:"redirection"`
}
type SetCookieReq ¶
type SetDomainRegionReq ¶
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 SetHeaderReq ¶
type SetIntSemReq ¶
type SetIpbanReq ¶
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"`
/* 黑白名单规则 */
ListRules []ListRuleCfg `json:"listRules"`
}
type SetPagesReq ¶
type SetProxycacheConfigReq ¶
type SetProxycacheConfigReq struct {
/* 域名 */
Domain string `json:"domain"`
/* 是否使能,0表示否 (Optional) */
Enable int `json:"enable"`
/* 缓存配置 (Optional) */
ItemCfg []CacheItemCfg `json:"itemCfg"`
}
type SetProxycacheUrlReq ¶
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"`
}
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 SetRiskJsReq ¶
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"`
/* 动作 支持notice / verify@captcha */
Action string `json:"action"`
}
type SetStatusReq ¶
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 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 verify@jscookie verify@captcha notice */
MatchAction string `json:"matchAction"`
/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden时为自定义页面名称 */
Redirection string `json:"redirection"`
/* 条件集 */
Conditions []ConditionIdSet `json:"conditions"`
}
type SetWafUserDefineReq ¶
type SetWebcacheUrlReq ¶
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 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 StatusConf ¶
type StatusListCfg ¶
type StatusListCfg struct {
/* 规则名称 (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 UriRewriteConf ¶
type UserDefPageConf ¶
type UserDefPageConf struct {
/* 条数 (Optional) */
PageNum int `json:"pageNum"`
}
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"`
}
type ValListCfg ¶
type ValListCfg struct {
/* 序号id (Optional) */
Id int `json:"id"`
/* 规则更新时间,秒级时间戳, 0 表示历史数据无记录 (Optional) */
UpdateTime string `json:"updateTime"`
/* 0-使用中 1-禁用 (Optional) */
Disable int `json:"disable"`
/* 0-5 完全匹配0 前缀匹配1 包含2 正则3 大于4 后缀5 (Optional) */
MatchOp int `json:"matchOp"`
/* val (Optional) */
Val string `json:"val"`
/* action配置 (Optional) */
AtCfg AtCfg `json:"atCfg"`
}
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"`
/* web攻击规则个数,当请求字段isWafRule为true时返回 (Optional) */
Waf_rule_sum []TopValue `json:"waf_rule_sum"`
}
type WarnContactor ¶
type WarningCfg ¶
type WarningCfg struct {
/* 规则id (Optional) */
Id int `json:"id"`
/* 用户名 (Optional) */
UserPin string `json:"userPin"`
/* 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"`
}
type WebUserdefConf ¶
Source Files
¶
- Abnormal.go
- AccessWafStatus.go
- AccessWafStatusReq.go
- AclConf.go
- AclTopN.go
- ActiveFuncByRegionReq.go
- ActiveFuncReq.go
- AddDomain.go
- AntiEvent.go
- AntiLevelWafReq.go
- AntiModeCcReq.go
- AntiModeWafReq.go
- AntiStatus.go
- AssignCertReq.go
- AtCfg.go
- AttackInfo.go
- BotConf.go
- BotMatchItem.go
- BotTopN.go
- Bps.go
- CacheItemCfg.go
- CcConf.go
- CcTopN.go
- ChartItemValue.go
- CommonDenySkipReq.go
- CommonNameReq.go
- CommonReq.go
- ConditionIdSet.go
- ConditionNameSet.go
- ContactGroup.go
- ContactPerson.go
- Contactor.go
- DelReq.go
- DelRuleNameReq.go
- DelRulesReq.go
- DenyActionCfg.go
- DenyConf.go
- DisableReq.go
- DisableRulesReq.go
- DnsStatus.go
- DomainConfig.go
- DomainInfo.go
- DomainMainConfig.go
- DomainRegionInfo.go
- EnableConf.go
- EnableNameReq.go
- EnableReq.go
- EnableWebcacheReq.go
- EsLogEvent.go
- EsLogFile.go
- FilterCfg.go
- FilterHeaderConf.go
- FilterReqRespRulesConfig.go
- FilterSenseConf.go
- FilterSenseinfoListCfg.go
- GeoCfg.go
- GeoListCfg.go
- GetAntiEventReq.go
- GetAvailableCertReq.go
- GetChartReq.go
- GetEsLogReq.go
- GetEsLogUrlReq.go
- GetInstanceReq.go
- GetPriceReq.go
- IdReq.go
- InstanceIdCfg.go
- IntSemConf.go
- IpCfg.go
- IpDomainInfo.go
- IpListCfg.go
- IpVipInfo.go
- IpbanConf.go
- JsPage.go
- KVPair.go
- KeyValCfg.go
- KeyValListCfg.go
- LastAttackReport.go
- LbConf.go
- LbConfig.go
- ListBotStdRuleReq.go
- ListCcRuleCfg.go
- ListDenySkipRulesReq.go
- ListDomains.go
- ListEsLogDownloadReq.go
- ListFilterReqRespRulesReq.go
- ListFilterSenseinfoReq.go
- ListJsPageReq.go
- ListListRulesReq.go
- ListNoticeReq.go
- ListPagesReq.go
- ListProxycacheUrl.go
- ListProxycacheUrlCfg.go
- ListReq.go
- ListRewriteRulesReq.go
- ListRiskJsReq.go
- ListRuleCfg.go
- ListRuleListCfg.go
- ListRulesReq.go
- ListWafConditionCfg.go
- ListWafConditionsReq.go
- ListWafFilterCfg.go
- ListWafFilterReq.go
- ListWafRuleCfg.go
- ListWebcacheUrlCfg.go
- LogReportReq.go
- MatchOpValCfg.go
- NoticeConfig.go
- OrderReq.go
- PageCfg.go
- PageListCfg.go
- Proxycacheitem.go
- Qps.go
- RateLimitRuleCfg.go
- RateLimitRuleListCfg.go
- RatelimitConf.go
- ReNickNameReq.go
- RegionVipInfo.go
- RewriteRuleCfg.go
- RewriteRuleListCfg.go
- RiskJsCfg.go
- RiskRuleCfg.go
- RsConfig.go
- SetBotStdRuleReq.go
- SetBotUsrRuleReq.go
- SetCcRuleReq.go
- SetCookieReq.go
- SetDomainRegionReq.go
- SetFilterReqRespRulesReq.go
- SetFilterSenseinfoReq.go
- SetGeoReq.go
- SetHeaderReq.go
- SetIntSemReq.go
- SetIpReq.go
- SetIpbanReq.go
- SetJsPageReq.go
- SetListRulesReq.go
- SetPagesReq.go
- SetProxycacheConfigReq.go
- SetProxycacheUrlReq.go
- SetRatelimitRulesReq.go
- SetReq.go
- SetRewriteRulesReq.go
- SetRiskJsReq.go
- SetRiskRuleReq.go
- SetStatusReq.go
- SetUriReq.go
- SetUserAntiCfgReq.go
- SetWafConditionReq.go
- SetWafInstanceIdRegionReq.go
- SetWafRuleReq.go
- SetWafUserDefineReq.go
- SetWebcacheUrlReq.go
- SkipActionCfg.go
- SkipConf.go
- StatusCfg.go
- StatusConf.go
- StatusListCfg.go
- StdBotRules.go
- TopN.go
- TopValue.go
- UriRewriteConf.go
- UserDefPageConf.go
- UsrBotRules.go
- ValCfg.go
- ValListCfg.go
- WafConf.go
- WafTopN.go
- WarnContactor.go
- WarningCfg.go
- WebUserdefConf.go
Click to show internal directories.
Click to hide internal directories.