Documentation
¶
Index ¶
- type AccessWafStatus
- type AccessWafStatusReq
- type AclConf
- type AclTopN
- type ActiveFuncByRegionReq
- type ActiveFuncReq
- type AddDomain
- type AddDomainScdn
- type AntiEvent
- type AntiLevelWafReq
- type AntiMode
- type AntiModeCcReq
- type AntiModeWafReq
- type AntiSpiderConfReq
- type AntiStatus
- type AntiValue
- 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 CommonIpsetReq
- 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 DomainActive
- type DomainInfo
- type DomainMainConfig
- type DomainRegionInfo
- type EnableConf
- type EnableNameReq
- type EnableReq
- type EsLogEvent
- type EsLogFile
- type Exception
- type FakeSpdBotRules
- type FilterCfg
- type FilterHeaderConf
- type FilterReqRespRulesConfig
- type FilterSenseConf
- type FilterSenseinfoListCfg
- type FuncList
- type GeoCfg
- type GeoListCfg
- type GetAntiEventReq
- type GetAvailableCertReq
- type GetChartReq
- type GetEsLogReq
- type GetEsLogUrlReq
- type GetInstanceReq
- type GetPriceReq
- type GetStatusCodeReq
- type GetUserPinVipInfoReq
- type GetWafDataReq
- type GroupCfg
- type GroupListCfg
- type HandlePackReq
- type IdReq
- type ImportIpsetReq
- type InstanceIdCfg
- type IntSemConf
- type IpCfg
- type IpDomainInfo
- type IpListCfg
- type IpVipInfo
- type IpbanConf
- type IpbanUsrConf
- type IpsetlistCfg
- type JsPage
- type KVPair
- type KeyPair
- type KeyValCfg
- type KeyValListCfg
- type LastAttackReport
- type LbConf
- type LbConfig
- type ListBotFakeSpiderRuleReq
- type ListBotStdRuleReq
- type ListBotThreatIpRuleReq
- type ListCcRuleCfg
- type ListDenySkipRulesReq
- type ListDomains
- type ListEsLogDownloadReq
- type ListFilterReqRespRulesReq
- type ListFilterSenseinfoReq
- type ListIpsetReq
- type ListJsPageReq
- type ListListRulesReq
- type ListMainFactor
- type ListNoticeReq
- type ListPagesReq
- type ListProxycacheUrl
- type ListProxycacheUrlCfg
- type ListReq
- type ListRewriteRulesReq
- type ListRiskCommonReq
- type ListRiskConfDefaultReq
- type ListRiskEventVarsReq
- type ListRiskJsReq
- type ListRiskRulesReq
- type ListRuleCfg
- type ListRuleListCfg
- type ListRulesReq
- type ListSslConfigReq
- type ListWafConditionCfg
- type ListWafConditionsReq
- type ListWafFilterCfg
- type ListWafFilterReq
- type ListWafRuleCfg
- type ListWafRulesReq
- type ListWebcacheUrlCfg
- type LogReportReq
- type MatchOpValCfg
- type NoticeConfig
- type OrderReq
- type OwnerCfg
- type OwnerListCfg
- type PageCfg
- type PageListCfg
- type Proxycacheitem
- type Qps
- type RateLimitRuleCfg
- type RateLimitRuleListCfg
- type RatelimitConf
- type ReNickNameReq
- type RegionVipInfo
- type RewriteRuleCfg
- type RewriteRuleListCfg
- type RiskConf
- type RiskConfDefaultCfg
- type RiskEventCfg
- type RiskEventVarsCfg
- type RiskJsCfg
- type RiskPolicyCfg
- type RiskPolicyRuleCfg
- type RiskRuleCfg
- type RiskUsrListCfg
- type RiskVarCfg
- type RiskVarRuleCfg
- type RsConfig
- type SetBotFakeSpiderRuleReq
- type SetBotStdRuleReq
- type SetBotThreatIpRuleReq
- type SetBotUsrRuleReq
- type SetCcRuleReq
- type SetCookieReq
- type SetDomainRegionReq
- type SetFilterReqRespRulesReq
- type SetFilterSenseinfoReq
- type SetGeoReq
- type SetGroupReq
- type SetHeaderReq
- type SetIntSemReq
- type SetIpReq
- type SetIpbanReq
- type SetIpbanUsrReq
- type SetJsPageReq
- type SetListRulesReq
- type SetOwnerReq
- type SetPagesReq
- type SetProxycacheConfigReq
- type SetProxycacheUrlReq
- type SetRatelimitRulesReq
- type SetReq
- type SetRewriteRulesReq
- type SetRiskEventReq
- type SetRiskEventVarsReq
- type SetRiskJsReq
- type SetRiskPolicyReq
- type SetRiskRuleReq
- type SetRiskUsrListReq
- type SetRiskVarReq
- type SetSslConfigReq
- type SetStatusReq
- type SetUriReq
- type SetUserAntiCfgReq
- type SetUserPolicyDomainsReq
- type SetWafConditionReq
- type SetWafInstanceIdRegionReq
- type SetWafRuleReq
- type SetWafUserDefineReq
- type SetWebcacheUrlReq
- type SignatureRuleGroup
- type SignatureRuleReq
- type SignatureRules
- type SkipActionCfg
- type SkipConf
- type SpiderConf
- type StatusCfg
- type StatusCodeData
- type StatusConf
- type StatusListCfg
- type StdBotRules
- type ThreatIpBotRules
- type TopAntiValue
- type TopCodeValue
- type TopN
- type TopValue
- type UpBps
- type UriCfg
- type UriRewriteConf
- type UrlListCfg
- type UserDefPageConf
- type UserPin2Ips
- type UserPinIpInfo
- type UserPolicyIdInfo
- type UserPolicyInfo
- type UserPolicyName
- type UserPolicyReq
- type UserPolicySetReq
- type UserPolicyWafDomain
- type UsrBotRules
- 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 AccessWafStatus ¶
type AccessWafStatusReq ¶
type ActiveFuncByRegionReq ¶
type ActiveFuncReq ¶
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"`
}
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 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 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 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,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 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"`
/* 防护模式 (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 ChartItemValue ¶
type ChartItemValue struct {
/* (Optional) */
Value []int64 `json:"value"`
}
type CommonDenySkipReq ¶
type CommonIpsetReq ¶ added in v1.62.0
type CommonNameReq ¶
type ConditionIdSet ¶
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 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 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类型的黑白名单,"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 DomainActive ¶ added in v1.56.0
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 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 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 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 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 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"`
/* 指定状态码,仅getStatusCodeInfo时有效 (Optional) */
StatusCode []string `json:"statusCode"`
/* true表示获取状态码统计图、占比图。 (Optional) */
IsStaCode *bool `json:"isStaCode"`
}
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:旗舰版 */
PackageType int `json:"packageType"`
/* 额外的域名扩展包 */
ExtraDomainsNum int `json:"extraDomainsNum"`
/* 额外的qps扩展包,单位为M 该值为50M的倍数 */
ExtraBitsLimit int `json:"extraBitsLimit"`
/* 云鼎的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 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 ImportIpsetReq ¶ added in v1.62.0
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 string `json:"startTime"`
/* 资源预计释放时间,仅过期且未释放时有效 (Optional) */
ReleaseingTime string `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"`
/* 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 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 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 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 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"`
}
type ListBotFakeSpiderRuleReq ¶ added in v1.56.0
type ListBotStdRuleReq ¶
type ListBotThreatIpRuleReq ¶ added in v1.54.0
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 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 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 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 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice (Optional) */
MatchAction string `json:"matchAction"`
/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden时为自定义页面名称 (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 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 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"`
/* 云鼎的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 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 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"`
/* 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 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice (Optional) */
MatchAction string `json:"matchAction"`
/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden时为自定义页面名称 (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 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice (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 RiskConfDefaultCfg ¶ added in v1.54.0
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 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice (Optional) */
Action string `json:"action"`
/* 跳转地址,Action为redirect时必须为当前实例下的域名的url,forbidden时为自定义页面名称 (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 人机识别: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时为自定义页面名称 (Optional) */
Redirection string `json:"redirection"`
}
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 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"`
/* 阻断类型 1:302跳转到指定页面 2:验证码 3:拦截返回自定义页面 4:js跳转 5:观察 6:重定向 */
BlockType int `json:"blockType"`
/* block 持续时间,单位为分钟 [1~24*60] */
BlockTime int `json:"blockTime"`
/* blockType 为3 时,为自定义页面名称,缺省为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 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 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 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"`
/* 检测周期 */
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"`
}
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 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 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice */
Action string `json:"action"`
/* 跳转地址,Action为redirect时必须为当前实例下的域名的url,forbidden时为自定义页面名称 (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 人机识别: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时为自定义页面名称 */
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 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 人机识别:verify@jscookie,verify@captcha,verify@rdtcookie 观察:notice */
MatchAction string `json:"matchAction"`
/* 跳转地址,matchAction为redirect时必须为当前实例下的域名的url,forbidden时为自定义页面名称 */
Redirection string `json:"redirection"`
/* 条件集 */
Conditions []ConditionIdSet `json:"conditions"`
}
type SetWafUserDefineReq ¶
type SetWebcacheUrlReq ¶
type SignatureRuleGroup ¶ added in v1.56.0
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 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 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 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 TopAntiValue ¶ added in v1.54.0
type TopCodeValue ¶ added in v1.54.0
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 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 UriRewriteConf ¶
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 UserPolicyIdInfo ¶ added in v1.56.0
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 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 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 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"`
/* 产品类型, 0waf, 1scdn (Optional) */
Mode int `json:"mode"`
/* scdn用户名 (Optional) */
UserPinScdn string `json:"userPinScdn"`
}
type WebUserdefConf ¶
Source Files
¶
- AccessWafStatus.go
- AccessWafStatusReq.go
- AclConf.go
- AclTopN.go
- ActiveFuncByRegionReq.go
- ActiveFuncReq.go
- AddDomain.go
- AddDomainScdn.go
- AntiEvent.go
- AntiLevelWafReq.go
- AntiMode.go
- AntiModeCcReq.go
- AntiModeWafReq.go
- AntiSpiderConfReq.go
- AntiStatus.go
- AntiValue.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
- CommonIpsetReq.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
- DomainActive.go
- DomainInfo.go
- DomainMainConfig.go
- DomainRegionInfo.go
- EnableConf.go
- EnableNameReq.go
- EnableReq.go
- EsLogEvent.go
- EsLogFile.go
- Exception.go
- FakeSpdBotRules.go
- FilterCfg.go
- FilterHeaderConf.go
- FilterReqRespRulesConfig.go
- FilterSenseConf.go
- FilterSenseinfoListCfg.go
- FuncList.go
- GeoCfg.go
- GeoListCfg.go
- GetAntiEventReq.go
- GetAvailableCertReq.go
- GetChartReq.go
- GetEsLogReq.go
- GetEsLogUrlReq.go
- GetInstanceReq.go
- GetPriceReq.go
- GetStatusCodeReq.go
- GetUserPinVipInfoReq.go
- GetWafDataReq.go
- GroupCfg.go
- GroupListCfg.go
- HandlePackReq.go
- IdReq.go
- ImportIpsetReq.go
- InstanceIdCfg.go
- IntSemConf.go
- IpCfg.go
- IpDomainInfo.go
- IpListCfg.go
- IpVipInfo.go
- IpbanConf.go
- IpbanUsrConf.go
- IpsetlistCfg.go
- JsPage.go
- KVPair.go
- KeyPair.go
- KeyValCfg.go
- KeyValListCfg.go
- LastAttackReport.go
- LbConf.go
- LbConfig.go
- ListBotFakeSpiderRuleReq.go
- ListBotStdRuleReq.go
- ListBotThreatIpRuleReq.go
- ListCcRuleCfg.go
- ListDenySkipRulesReq.go
- ListDomains.go
- ListEsLogDownloadReq.go
- ListFilterReqRespRulesReq.go
- ListFilterSenseinfoReq.go
- ListIpsetReq.go
- ListJsPageReq.go
- ListListRulesReq.go
- ListMainFactor.go
- ListNoticeReq.go
- ListPagesReq.go
- ListProxycacheUrl.go
- ListProxycacheUrlCfg.go
- ListReq.go
- ListRewriteRulesReq.go
- ListRiskCommonReq.go
- ListRiskConfDefaultReq.go
- ListRiskEventVarsReq.go
- ListRiskJsReq.go
- ListRiskRulesReq.go
- ListRuleCfg.go
- ListRuleListCfg.go
- ListRulesReq.go
- ListSslConfigReq.go
- ListWafConditionCfg.go
- ListWafConditionsReq.go
- ListWafFilterCfg.go
- ListWafFilterReq.go
- ListWafRuleCfg.go
- ListWafRulesReq.go
- ListWebcacheUrlCfg.go
- LogReportReq.go
- MatchOpValCfg.go
- NoticeConfig.go
- OrderReq.go
- OwnerCfg.go
- OwnerListCfg.go
- PageCfg.go
- PageListCfg.go
- Proxycacheitem.go
- Qps.go
- RateLimitRuleCfg.go
- RateLimitRuleListCfg.go
- RatelimitConf.go
- ReNickNameReq.go
- RegionVipInfo.go
- RewriteRuleCfg.go
- RewriteRuleListCfg.go
- RiskConf.go
- RiskConfDefaultCfg.go
- RiskEventCfg.go
- RiskEventVarsCfg.go
- RiskJsCfg.go
- RiskPolicyCfg.go
- RiskPolicyRuleCfg.go
- RiskRuleCfg.go
- RiskUsrListCfg.go
- RiskVarCfg.go
- RiskVarRuleCfg.go
- RsConfig.go
- SetBotFakeSpiderRuleReq.go
- SetBotStdRuleReq.go
- SetBotThreatIpRuleReq.go
- SetBotUsrRuleReq.go
- SetCcRuleReq.go
- SetCookieReq.go
- SetDomainRegionReq.go
- SetFilterReqRespRulesReq.go
- SetFilterSenseinfoReq.go
- SetGeoReq.go
- SetGroupReq.go
- SetHeaderReq.go
- SetIntSemReq.go
- SetIpReq.go
- SetIpbanReq.go
- SetIpbanUsrReq.go
- SetJsPageReq.go
- SetListRulesReq.go
- SetOwnerReq.go
- SetPagesReq.go
- SetProxycacheConfigReq.go
- SetProxycacheUrlReq.go
- SetRatelimitRulesReq.go
- SetReq.go
- SetRewriteRulesReq.go
- SetRiskEventReq.go
- SetRiskEventVarsReq.go
- SetRiskJsReq.go
- SetRiskPolicyReq.go
- SetRiskRuleReq.go
- SetRiskUsrListReq.go
- SetRiskVarReq.go
- SetSslConfigReq.go
- SetStatusReq.go
- SetUriReq.go
- SetUserAntiCfgReq.go
- SetUserPolicyDomainsReq.go
- SetWafConditionReq.go
- SetWafInstanceIdRegionReq.go
- SetWafRuleReq.go
- SetWafUserDefineReq.go
- SetWebcacheUrlReq.go
- SignatureRuleGroup.go
- SignatureRuleReq.go
- SignatureRules.go
- SkipActionCfg.go
- SkipConf.go
- SpiderConf.go
- StatusCfg.go
- StatusCodeData.go
- StatusConf.go
- StatusListCfg.go
- StdBotRules.go
- ThreatIpBotRules.go
- TopAntiValue.go
- TopCodeValue.go
- TopN.go
- TopValue.go
- UpBps.go
- UriCfg.go
- UriRewriteConf.go
- UrlListCfg.go
- UserDefPageConf.go
- UserPin2Ips.go
- UserPinIpInfo.go
- UserPolicyIdInfo.go
- UserPolicyInfo.go
- UserPolicyName.go
- UserPolicyReq.go
- UserPolicySetReq.go
- UserPolicyWafDomain.go
- UsrBotRules.go
- WafConf.go
- WafTopN.go
- WarnContactor.go
- WarningCfg.go
- WebUserdefConf.go
Click to show internal directories.
Click to hide internal directories.