model

package
v0.1.126 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyHttpPolicyRequest added in v0.1.116

type ApplyHttpPolicyRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`

	Body *ApplyHttpPolicyRequestBody `json:"body,omitempty"`
}

ApplyHttpPolicyRequest Request Object

func (ApplyHttpPolicyRequest) String added in v0.1.116

func (o ApplyHttpPolicyRequest) String() string

type ApplyHttpPolicyRequestBody added in v0.1.116

type ApplyHttpPolicyRequestBody struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 待关联域名的id
	Hosts []string `json:"hosts"`
}

func (ApplyHttpPolicyRequestBody) String added in v0.1.116

type ApplyHttpPolicyResponse added in v0.1.116

type ApplyHttpPolicyResponse struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

ApplyHttpPolicyResponse Response Object

func (ApplyHttpPolicyResponse) String added in v0.1.116

func (o ApplyHttpPolicyResponse) String() string

type AttackTypeClassificationItem added in v0.1.120

type AttackTypeClassificationItem struct {

	// AttackTypeItem的总数量
	Total *int32 `json:"total,omitempty"`

	// AttackTypeItem详细信息
	Items *[]AttackTypeItem `json:"items,omitempty"`
}

func (AttackTypeClassificationItem) String added in v0.1.120

type AttackTypeItem added in v0.1.120

type AttackTypeItem struct {

	// 攻击事件类型
	Key *string `json:"key,omitempty"`

	// 数量
	Num *int32 `json:"num,omitempty"`
}

AttackTypeItem 攻击事件分布统计

func (AttackTypeItem) String added in v0.1.120

func (o AttackTypeItem) String() string

type CommonStatItem added in v0.1.120

type CommonStatItem struct {

	// 对应请求参数group_by的子类别。例如在Http攻击分布统计接口中,group_by为action时,key可为:log、block、captcha、js_challenge;在Http攻击Top接口中,group_by为url时,key可为请求的URL,例:/abc。
	Key string `json:"key"`

	// 攻击请求数
	Value int64 `json:"value"`
}

CommonStatItem 单个统计模型

func (CommonStatItem) String added in v0.1.120

func (o CommonStatItem) String() string

type CreateDomainRequest added in v0.1.120

type CreateDomainRequest struct {
	Body *CreateDomainRequestBody `json:"body,omitempty"`
}

CreateDomainRequest Request Object

func (CreateDomainRequest) String added in v0.1.120

func (o CreateDomainRequest) String() string

type CreateDomainRequestBody

type CreateDomainRequestBody struct {

	// 防护域名(可带端口)
	DomainName string `json:"domain_name"`

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 防护域名关联的策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 域名描述
	Description *string `json:"description,omitempty"`
}

CreateDomainRequestBody 创建防护域名的请求

func (CreateDomainRequestBody) String

func (o CreateDomainRequestBody) String() string

type CreateDomainResponse added in v0.1.120

type CreateDomainResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateDomainResponse Response Object

func (CreateDomainResponse) String added in v0.1.120

func (o CreateDomainResponse) String() string

type CreateHttpAccessControlRuleRequest added in v0.1.120

type CreateHttpAccessControlRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	Body *CreateHttpAccessControlRuleRequestBody `json:"body,omitempty"`
}

CreateHttpAccessControlRuleRequest Request Object

func (CreateHttpAccessControlRuleRequest) String added in v0.1.120

type CreateHttpAccessControlRuleRequestBody added in v0.1.120

type CreateHttpAccessControlRuleRequestBody struct {

	// 规则名称
	Name string `json:"name"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 精准防护规则生效时间:  - “false”:表示该规则立即生效。   - “true”:表示自定义生效时间。
	Time bool `json:"time"`

	// 精准防护规则生效的起始时间戳(秒)。当time=true,才需要填写该参数。
	Start *int64 `json:"start,omitempty"`

	// 精准防护规则生效的终止时间戳(秒)。当time=true,才需要填写该参数。
	Terminal *int64 `json:"terminal,omitempty"`

	// 执行该规则的优先级,值越小,优先级越高,值相同时,规则创建时间早,优先级越高。取值范围:0到1000。
	Priority int32 `json:"priority"`

	// 命中条件
	Conditions []HttpAccessControlRuleCondition `json:"conditions"`

	Action *HttpRuleAction `json:"action"`
}

func (CreateHttpAccessControlRuleRequestBody) String added in v0.1.120

type CreateHttpAccessControlRuleResponse added in v0.1.120

type CreateHttpAccessControlRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 是否设定生效时间
	Time *bool `json:"time,omitempty"`

	// 生效时间
	Start *int64 `json:"start,omitempty"`

	// 失效时间
	Terminal *int64 `json:"terminal,omitempty"`

	// 优先级
	Priority *int32 `json:"priority,omitempty"`

	// 命中条件
	Conditions *[]HttpAccessControlRuleCondition `json:"conditions,omitempty"`

	Action *HttpRuleAction `json:"action,omitempty"`

	// 创建来源
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateHttpAccessControlRuleResponse Response Object

func (CreateHttpAccessControlRuleResponse) String added in v0.1.120

type CreateHttpBlockTrustIpRuleRequest added in v0.1.120

type CreateHttpBlockTrustIpRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	Body *CreateHttpBlockTrustIpRuleRequestBody `json:"body,omitempty"`
}

CreateHttpBlockTrustIpRuleRequest Request Object

func (CreateHttpBlockTrustIpRuleRequest) String added in v0.1.120

type CreateHttpBlockTrustIpRuleRequestBody added in v0.1.120

type CreateHttpBlockTrustIpRuleRequestBody struct {

	// 规则名称
	Name string `json:"name"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// ip地址/地址段;ip地址/地址段或者ip地址组id至少有一个
	Addr *string `json:"addr,omitempty"`

	// - 0:拦截 - 1:放行 - 2:仅记录
	White int32 `json:"white"`

	// 攻击惩罚规则id
	FollowedActionId *string `json:"followed_action_id,omitempty"`

	// ip地址组id;ip地址/地址段或者ip地址组id至少有一个
	IpGroupId *string `json:"ip_group_id,omitempty"`
}

func (CreateHttpBlockTrustIpRuleRequestBody) String added in v0.1.120

type CreateHttpBlockTrustIpRuleResponse added in v0.1.120

type CreateHttpBlockTrustIpRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关: - 0:关闭 - 1:开启
	Status *int32 `json:"status,omitempty"`

	// ip地址/地址段
	Addr *string `json:"addr,omitempty"`

	// - 0:拦截 - 1:放行 - 2:仅记录
	White *int32 `json:"white,omitempty"`

	// 攻击惩罚规则id
	FollowedActionId *string `json:"followed_action_id,omitempty"`

	IpGroup        *HttpIpGroup `json:"ip_group,omitempty"`
	HttpStatusCode int          `json:"-"`
}

CreateHttpBlockTrustIpRuleResponse Response Object

func (CreateHttpBlockTrustIpRuleResponse) String added in v0.1.120

type CreateHttpCcRuleRequest added in v0.1.120

type CreateHttpCcRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	Body *CreateHttpCcRuleRequestBody `json:"body,omitempty"`
}

CreateHttpCcRuleRequest Request Object

func (CreateHttpCcRuleRequest) String added in v0.1.120

func (o CreateHttpCcRuleRequest) String() string

type CreateHttpCcRuleRequestBody added in v0.1.120

type CreateHttpCcRuleRequestBody struct {

	// 规则名称
	Name string `json:"name"`

	// cc规则优先级,越大优先级越高,默认1,创建必填
	Priority int32 `json:"priority"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// cc规则防护模式,现在只支持创建高级cc规则防护模式。   - 0:标准,只支持对域名的防护路径做限制。  - 1:高级,支持对路径、IP、Cookie、Header、Params字段做限制。
	Mode int32 `json:"mode"`

	// 所有用户的周期内请求次数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 单个用户的周期内请求次数
	LimitNum int32 `json:"limit_num"`

	// 限速周期
	LimitPeriod int32 `json:"limit_period"`

	// 阻断时长
	LockTime *int32 `json:"lock_time,omitempty"`

	// 防护模式
	TagType string `json:"tag_type"`

	// 防护模式标签
	TagIndex *string `json:"tag_index,omitempty"`

	TagCondition *HttpCcRuleCondition `json:"tag_condition,omitempty"`

	// 放行次数
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 是否聚合域名
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// cc规则防护规则限速条件,当cc防护规则为高级模式(mode参数值为1)时,该参数必填。
	Conditions *[]HttpCcRuleCondition `json:"conditions,omitempty"`

	Action *HttpRuleAction `json:"action"`

	// 生效模式
	TimeMode CreateHttpCcRuleRequestBodyTimeMode `json:"time_mode"`

	// customize生效时间区间开始
	Start *int64 `json:"start,omitempty"`

	// customize生效时间区间结束
	Terminal *int64 `json:"terminal,omitempty"`

	// period每日生效时间类型,目前只有day
	PeriodType *CreateHttpCcRuleRequestBodyPeriodType `json:"period_type,omitempty"`

	// period每日生效时间区间
	TimeRange *[]TimeRangeItem `json:"time_range,omitempty"`
}

func (CreateHttpCcRuleRequestBody) String added in v0.1.120

type CreateHttpCcRuleRequestBodyPeriodType added in v0.1.120

type CreateHttpCcRuleRequestBodyPeriodType struct {
	// contains filtered or unexported fields
}

func (CreateHttpCcRuleRequestBodyPeriodType) MarshalJSON added in v0.1.120

func (c CreateHttpCcRuleRequestBodyPeriodType) MarshalJSON() ([]byte, error)

func (*CreateHttpCcRuleRequestBodyPeriodType) UnmarshalJSON added in v0.1.120

func (c *CreateHttpCcRuleRequestBodyPeriodType) UnmarshalJSON(b []byte) error

func (CreateHttpCcRuleRequestBodyPeriodType) Value added in v0.1.120

type CreateHttpCcRuleRequestBodyPeriodTypeEnum added in v0.1.120

type CreateHttpCcRuleRequestBodyPeriodTypeEnum struct {
	DAY CreateHttpCcRuleRequestBodyPeriodType
}

func GetCreateHttpCcRuleRequestBodyPeriodTypeEnum added in v0.1.120

func GetCreateHttpCcRuleRequestBodyPeriodTypeEnum() CreateHttpCcRuleRequestBodyPeriodTypeEnum

type CreateHttpCcRuleRequestBodyTimeMode added in v0.1.120

type CreateHttpCcRuleRequestBodyTimeMode struct {
	// contains filtered or unexported fields
}

func (CreateHttpCcRuleRequestBodyTimeMode) MarshalJSON added in v0.1.120

func (c CreateHttpCcRuleRequestBodyTimeMode) MarshalJSON() ([]byte, error)

func (*CreateHttpCcRuleRequestBodyTimeMode) UnmarshalJSON added in v0.1.120

func (c *CreateHttpCcRuleRequestBodyTimeMode) UnmarshalJSON(b []byte) error

func (CreateHttpCcRuleRequestBodyTimeMode) Value added in v0.1.120

type CreateHttpCcRuleRequestBodyTimeModeEnum added in v0.1.120

type CreateHttpCcRuleRequestBodyTimeModeEnum struct {
	PERMANENT CreateHttpCcRuleRequestBodyTimeMode
	PERIOD    CreateHttpCcRuleRequestBodyTimeMode
	CUSTOMIZE CreateHttpCcRuleRequestBodyTimeMode
}

func GetCreateHttpCcRuleRequestBodyTimeModeEnum added in v0.1.120

func GetCreateHttpCcRuleRequestBodyTimeModeEnum() CreateHttpCcRuleRequestBodyTimeModeEnum

type CreateHttpCcRuleResponse added in v0.1.120

type CreateHttpCcRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// cc规则优先级,越大优先级越高,默认1
	Priority *int32 `json:"priority,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 规则类型(0:标准/1:高级)
	Mode *int32 `json:"mode,omitempty"`

	// 所有用户的周期内请求次数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 单个用户的周期内请求次数
	LimitNum *int32 `json:"limit_num,omitempty"`

	// 限速周期
	LimitPeriod *int32 `json:"limit_period,omitempty"`

	// 锁定时长
	LockTime *int32 `json:"lock_time,omitempty"`

	// 防护模式
	TagType *string `json:"tag_type,omitempty"`

	// 防护模式标签
	TagIndex *string `json:"tag_index,omitempty"`

	TagCondition *HttpCcRuleCondition `json:"tag_condition,omitempty"`

	// 放行次数
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 是否聚合域名
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 条件列表参数较为复杂,存在级联关系,建议同时使用控制台上的添加误报屏蔽规则,单击F12键查看路径后缀为/cc-rule,方法为POST的请求参数,便于理解参数的填写
	Conditions *[]HttpCcRuleCondition `json:"conditions,omitempty"`

	Action *HttpRuleAction `json:"action,omitempty"`

	// 创建来源
	Producer *int32 `json:"producer,omitempty"`

	// 生效模式
	TimeMode *string `json:"time_mode,omitempty"`

	// customize生效时间区间开始
	Start *int64 `json:"start,omitempty"`

	// customize生效时间区间结束
	Terminal *int64 `json:"terminal,omitempty"`

	// period每日生效时间类型,目前只有day
	PeriodType *string `json:"period_type,omitempty"`

	// period每日生效时间区间
	TimeRange      *[]TimeRangeItem `json:"time_range,omitempty"`
	HttpStatusCode int              `json:"-"`
}

CreateHttpCcRuleResponse Response Object

func (CreateHttpCcRuleResponse) String added in v0.1.120

func (o CreateHttpCcRuleResponse) String() string

type CreateHttpGeoIpRuleRequest added in v0.1.120

type CreateHttpGeoIpRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	Body *CreateHttpGeoIpRuleRequestBody `json:"body,omitempty"`
}

CreateHttpGeoIpRuleRequest Request Object

func (CreateHttpGeoIpRuleRequest) String added in v0.1.120

type CreateHttpGeoIpRuleRequestBody added in v0.1.120

type CreateHttpGeoIpRuleRequestBody struct {

	// 规则名称
	Name string `json:"name"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (北京:CN_BJ,上海:CN_SH,天津:CN_TJ,重庆:CN_CQ,广东:CN_GD,浙江:CN_ZJ,江苏:CN_JS,福建:CN_FJ,吉林:CN_JL,辽宁:CN_LN,台湾:CN_TW,贵州:CN_GZ,安徽:CN_AH,黑龙江:CN_HL,河南:CN_HA,四川:CN_SC,河北:CN_HE,云南:CN_YN,湖北:CN_HB,海南:CN_HI,青海:CN_QH,湖南:CN_HN,江西:CN_JX,山西:CN_SX,陕西:CN_SN,甘肃:CN_GS,山东:CN_SD,澳门:CN_MO,香港:CN_HK,宁夏:CN_NX,广西:CN_GX,新疆:CN_XJ,西藏:CN_XZ,内蒙古:CN_NM,印度:IN,美国:US,印度尼西亚:ID,巴基斯坦:PK,巴西:BR,尼日利亚:NG,孟加拉国:BD,俄罗斯联邦:RU,日本:JP,墨西哥:MX,埃塞俄比亚:ET,菲律宾:PH,埃及:EG,越南:VN,德国:DE,土耳其:TR,泰国:TH,法国:FR,英国:GB,意大利:IT,南非:ZA,缅甸:MM,肯尼亚:KE,坦桑尼亚:TZ,哥伦比亚:CO,西班牙:ES,乌克兰:UA,伊拉克:IQ,波兰:PL,沙特阿拉伯:SA,秘鲁:PE,乌干达:UG,马来西亚:MY,苏丹:SD,罗马尼亚:RO,阿富汗:AF,加拿大:CA,摩洛哥:MA,智利:CL,刚果(金):CD,伊朗:IR,韩国:KR,安哥拉:AO,加纳:GH,莫桑比克:MZ,阿根廷:AR,阿尔及利亚:DZ,尼泊尔:NP,马达加斯加:MG,朝鲜:KP,喀麦隆:CM,科特迪瓦:CI,澳大利亚:AU,荷兰:NL,尼日尔:NE,斯里兰卡:LK,布基纳法索:BF,乌兹别克斯坦:UZ,马里:ML,委内瑞拉:VE,哈萨克斯坦:KZ,马拉维:MW,赞比亚:ZM,也门:YE,比利时:BE,危地马拉:GT,叙利亚:SY,厄瓜多尔:EC,塞内加尔:SN,乍得:TD,索马里:SO,津巴布韦:ZW,几内亚:GN,卢旺达:RW,突尼斯:TN,贝宁:BJ,捷克:CZ,玻利维亚:BO,古巴:CU,布隆迪:BI,海地:HT,柬埔寨:KH,希腊:GR,多米尼加:DO,瑞典:SE,葡萄牙:PT,约旦:JO,南苏丹:SS,阿塞拜疆:AZ,匈牙利:HU,阿联酋:AE,洪都拉斯:HN,白俄罗斯:BY,塔吉克斯坦:TJ,以色列:IL,奥地利:AT,巴布亚新几内亚:PG,瑞士:CH,多哥:TG,塞拉利昂:SL,老挝:LA,保加利亚:BG,塞尔维亚:RS,巴拉圭:PY,黎巴嫩:LB,利比亚:LY,尼加拉瓜:NI,萨尔瓦多:SV,吉尔吉斯斯坦:KG,土库曼斯坦:TM,丹麦:DK,新加坡:SG,芬兰:FI,斯洛伐克:SK,挪威:NO,刚果(布):CG,哥斯达黎加:CR,新西兰:NZ,爱尔兰:IE,阿曼:OM,利比里亚:LR,中非:CF,巴勒斯坦:PS,毛利塔尼亚:MR,巴拿马:PA,科威特:KW,克罗地亚:HR,格鲁吉亚:GE,摩尔多瓦:MD,乌拉圭:UY,波黑:BA,波多黎各:PR,蒙古:MN,亚美尼亚:AM,牙买加:JM,阿尔巴尼亚:AL,立陶宛:LT,卡塔尔:QA,纳米比亚:NA,冈比亚:GM,博茨瓦纳:BW,加蓬:GA,莱索托:LS,前南马其顿:MK,斯洛文尼亚:SI,拉脱维亚:LV,几内亚比绍:GW,科索沃:XK,巴林:BH,特立尼达和多巴哥:TT,爱沙尼亚:EE,赤道几内亚:GQ,东帝汶:TL,毛里求斯:MU,塞浦路斯:CY,斯威士兰:SZ,吉布提:DJ,斐济:FJ,留尼汪:RE,科摩罗:KM,圭亚那:GY,不丹:BT,所罗门群岛:SB,黑山:ME,卢森堡:LU,苏里南:SR,佛得角:CV,马尔代夫:MV,西撒哈拉:EH,马耳他:MT,文莱:BN,瓜德罗普:GP,巴哈马:BS,伯利兹:BZ,马提尼克:MQ,冰岛:IS,法属圭亚那:GF,瓦努阿图:VU,巴巴多斯:BB,新喀里多尼亚:NC,法属波利尼西亚:PF,马约特:YT,荷属安的列斯:AN,圣多美和普林西比:ST,萨摩亚:WS,圣卢西亚:LC,关岛:GU,库拉索:CW,基里巴斯:KI,密克罗尼西亚联邦:FM,格林纳达:GD,圣文森特和格林纳丁斯:VC,美属维尔京群岛:VI,泽西岛:JE,阿鲁巴:AW,汤加:TO,塞舌尔:SC,安提瓜和巴布达:AG,英国属地曼岛:IM,安道尔:AD,多米尼克:DM,开曼群岛:KY,百慕大:BM,格恩西岛:GG,马绍尔群岛:MH,北马里亚纳:MP,格陵兰:GL,美属萨摩亚:AS,圣基茨和尼维斯:KN,法罗群岛:FO,荷属圣马丁:SX,摩纳哥:MC,列支敦士登:LI,特克斯和凯科斯群岛:TC,法属圣马丁:MF,圣马力诺:SM,直布罗陀:GI,英属维尔京群岛:VG,奥兰群岛:AX,博奈尔:BQ,帕劳:PW,库克群岛:CK,安圭拉:AI,瑙鲁:NR,瓦利斯和富图纳:WF,图瓦卢:TV,圣巴泰勒米:BL,圣皮埃尔和密克隆:PM,蒙特塞拉特:MS,圣赫勒拿:SH,福克兰群岛(马尔维纳斯):FK,诺福克岛:NF,纽埃:NU,托克劳:TK,圣诞岛:CX,梵蒂冈:VA,科科斯(基林)群岛:CC,美国本土外小岛屿:UM,皮特凯恩:PN,南乔治亚岛和南桑德韦奇岛:GS,南极洲:AQ,布维岛:BV,厄立特里亚:ER,赫德岛和麦克唐纳岛:HM,英属印度洋领地:IO,法属南部领地:TF,斯瓦尔巴岛和扬马延岛:SJ)
	GeoIp string `json:"geo_ip"`

	// 防护动作:  - 0 拦截  - 1 放行  - 2 仅记录
	White int32 `json:"white"`
}

func (CreateHttpGeoIpRuleRequestBody) String added in v0.1.120

type CreateHttpGeoIpRuleResponse added in v0.1.120

type CreateHttpGeoIpRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 地理位置
	GeoIp *string `json:"geo_ip,omitempty"`

	// 地理位置列表
	GeoTagList *[]string `json:"geo_tag_list,omitempty"`

	// 拦截/放行/仅记录
	White          *int32 `json:"white,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateHttpGeoIpRuleResponse Response Object

func (CreateHttpGeoIpRuleResponse) String added in v0.1.120

type CreateHttpIgnoreRuleRequest added in v0.1.120

type CreateHttpIgnoreRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	Body *CreateHttpIgnoreRuleRequestBody `json:"body,omitempty"`
}

CreateHttpIgnoreRuleRequest Request Object

func (CreateHttpIgnoreRuleRequest) String added in v0.1.120

type CreateHttpIgnoreRuleRequestBody added in v0.1.120

type CreateHttpIgnoreRuleRequestBody struct {

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 误报路径
	Url *string `json:"url,omitempty"`

	// 规则编号
	Rule string `json:"rule"`

	// 误报屏蔽模式,默认为0即旧模式
	Mode int32 `json:"mode"`

	// 域名列表
	Domains []string `json:"domains"`

	// 屏蔽规则url类型(前缀:prefix,等于:equal)
	UrlLogic *string `json:"url_logic,omitempty"`

	Advanced *HttpIgnoreRuleCondition `json:"advanced,omitempty"`

	// 命中条件
	Conditions []HttpIgnoreRuleCondition `json:"conditions"`
}

func (CreateHttpIgnoreRuleRequestBody) String added in v0.1.120

type CreateHttpIgnoreRuleResponse added in v0.1.120

type CreateHttpIgnoreRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 误报路径
	Url *string `json:"url,omitempty"`

	// 规则编号
	Rule *string `json:"rule,omitempty"`

	// 误报屏蔽模式,默认为0即旧模式
	Mode *int32 `json:"mode,omitempty"`

	// 域名列表
	Domains *[]string `json:"domains,omitempty"`

	// 屏蔽规则url类型(前缀:prefix,等于:equal)
	UrlLogic *string `json:"url_logic,omitempty"`

	Advanced *HttpIgnoreRuleCondition `json:"advanced,omitempty"`

	// 命中条件
	Conditions *[]HttpIgnoreRuleCondition `json:"conditions,omitempty"`

	// 命中次数
	HitNum *int32 `json:"hit_num,omitempty"`

	// 最后更新时间戳
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 上一次命中次数清零时间戳
	ClearTime      *int64 `json:"clear_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateHttpIgnoreRuleResponse Response Object

func (CreateHttpIgnoreRuleResponse) String added in v0.1.120

type CreateHttpIpGroupRequest added in v0.1.120

type CreateHttpIpGroupRequest struct {
	Body *CreateHttpIpGroupRequestBody `json:"body,omitempty"`
}

CreateHttpIpGroupRequest Request Object

func (CreateHttpIpGroupRequest) String added in v0.1.120

func (o CreateHttpIpGroupRequest) String() string

type CreateHttpIpGroupRequestBody added in v0.1.120

type CreateHttpIpGroupRequestBody struct {

	// IP地址组名称
	Name string `json:"name"`

	// IP地址/IP段,以英文逗号分隔,最多配置200个IP/IP段
	Ips string `json:"ips"`

	// IP地址组备注,最长512字符
	Description *string `json:"description,omitempty"`
}

CreateHttpIpGroupRequestBody 创建IP地址组的请求

func (CreateHttpIpGroupRequestBody) String added in v0.1.120

type CreateHttpIpGroupResponse added in v0.1.120

type CreateHttpIpGroupResponse struct {

	// IP地址组id
	Id *string `json:"id,omitempty"`

	// IP地址组名称
	Name *string `json:"name,omitempty"`

	// IP地址/地址段
	Ips *string `json:"ips,omitempty"`

	// IP地址/地址段大小
	Size *string `json:"size,omitempty"`

	// IP地址组备注
	Description *string `json:"description,omitempty"`

	// 创建IP地址组的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 使用IP地址组的策略和规则列表
	Rules          *[]HttpRuleInfo `json:"rules,omitempty"`
	HttpStatusCode int             `json:"-"`
}

CreateHttpIpGroupResponse Response Object

func (CreateHttpIpGroupResponse) String added in v0.1.120

func (o CreateHttpIpGroupResponse) String() string

type CreateHttpPolicyRequest added in v0.1.116

type CreateHttpPolicyRequest struct {
	Body *CreateHttpPolicyRequestBody `json:"body,omitempty"`
}

CreateHttpPolicyRequest Request Object

func (CreateHttpPolicyRequest) String added in v0.1.116

func (o CreateHttpPolicyRequest) String() string

type CreateHttpPolicyRequestBody added in v0.1.116

type CreateHttpPolicyRequestBody struct {

	// 防护策略名
	Name string `json:"name"`
}

func (CreateHttpPolicyRequestBody) String added in v0.1.116

type CreateHttpPolicyResponse added in v0.1.116

type CreateHttpPolicyResponse struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

CreateHttpPolicyResponse Response Object

func (CreateHttpPolicyResponse) String added in v0.1.116

func (o CreateHttpPolicyResponse) String() string

type CreateHttpPunishmentRuleRequest added in v0.1.120

type CreateHttpPunishmentRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	Body *CreateHttpPunishmentRuleRequestBody `json:"body,omitempty"`
}

CreateHttpPunishmentRuleRequest Request Object

func (CreateHttpPunishmentRuleRequest) String added in v0.1.120

type CreateHttpPunishmentRuleRequestBody added in v0.1.120

type CreateHttpPunishmentRuleRequestBody struct {

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 拦截类型,可选值为:long_ip_block(长时间IP拦截)、long_cookie_block(长时间Cookie拦截)、long_params_block(长时间Params拦截)、short_ip_block(短时间IP拦截)、short_cookie_block(短时间Cookie拦截)、short_params_block(短时间Params拦截)
	Category string `json:"category"`

	// 拦截时间,如果选择前缀为long的攻击惩罚类别,则block_time时长范围设置为301-1800;选择前缀为short的攻击惩罚类别,则block_time时长范围为0-300之间
	BlockTime int32 `json:"block_time"`
}

func (CreateHttpPunishmentRuleRequestBody) String added in v0.1.120

type CreateHttpPunishmentRuleResponse added in v0.1.120

type CreateHttpPunishmentRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 拦截类型,可选值为:long_ip_block(长时间IP拦截)、long_cookie_block(长时间Cookie拦截)、long_params_block(长时间Params拦截)、short_ip_block(短时间IP拦截)、short_cookie_block(短时间Cookie拦截)、short_params_block(短时间Params拦截)
	Category *string `json:"category,omitempty"`

	// 拦截时长
	BlockTime      *int32 `json:"block_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateHttpPunishmentRuleResponse Response Object

func (CreateHttpPunishmentRuleResponse) String added in v0.1.120

type CreateHttpReferenceTableRequest added in v0.1.120

type CreateHttpReferenceTableRequest struct {
	Body *CreateHttpReferenceTableRequestBody `json:"body,omitempty"`
}

CreateHttpReferenceTableRequest Request Object

func (CreateHttpReferenceTableRequest) String added in v0.1.120

type CreateHttpReferenceTableRequestBody added in v0.1.120

type CreateHttpReferenceTableRequestBody struct {

	// 引用表名称
	Name string `json:"name"`

	// 引用表类型,可选值为:url、params、ip、cookie、referer、user-agent、header、response_code、response_header、response_body。
	Type string `json:"type"`

	// 引用表的值
	Values []string `json:"values"`

	// 引用表描述,最长128字符
	Description *string `json:"description,omitempty"`
}

func (CreateHttpReferenceTableRequestBody) String added in v0.1.120

type CreateHttpReferenceTableResponse added in v0.1.120

type CreateHttpReferenceTableResponse struct {

	// 引用表id
	Id *string `json:"id,omitempty"`

	// 引用表名称
	Name *string `json:"name,omitempty"`

	// 引用表类型
	Type *string `json:"type,omitempty"`

	// 引用表描述
	Description *string `json:"description,omitempty"`

	// 引用表时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 引用表的值
	Values *[]string `json:"values,omitempty"`

	// 创建来源
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateHttpReferenceTableResponse Response Object

func (CreateHttpReferenceTableResponse) String added in v0.1.120

type DdosAttackLog added in v0.1.120

type DdosAttackLog struct {

	// ddos攻击时间
	AttackTime *int64 `json:"attack_time,omitempty"`

	// 攻击流量带宽平均值
	AvgBps *int64 `json:"avg_bps,omitempty"`

	// 攻击流量带宽峰值
	AvgPps *int64 `json:"avg_pps,omitempty"`

	// 包转发率平均值
	MaxBps *int64 `json:"max_bps,omitempty"`

	// 包转发率峰值
	MaxPps *int64 `json:"max_pps,omitempty"`
}

DdosAttackLog http攻击日志详情

func (DdosAttackLog) String added in v0.1.120

func (o DdosAttackLog) String() string

type DeleteDomainRequest added in v0.1.120

type DeleteDomainRequest struct {

	// 防护域名id
	DomainId string `json:"domain_id"`

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

DeleteDomainRequest Request Object

func (DeleteDomainRequest) String added in v0.1.120

func (o DeleteDomainRequest) String() string

type DeleteDomainResponse added in v0.1.120

type DeleteDomainResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteDomainResponse Response Object

func (DeleteDomainResponse) String added in v0.1.120

func (o DeleteDomainResponse) String() string

type DeleteHttpAccessControlRuleRequest added in v0.1.120

type DeleteHttpAccessControlRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

DeleteHttpAccessControlRuleRequest Request Object

func (DeleteHttpAccessControlRuleRequest) String added in v0.1.120

type DeleteHttpAccessControlRuleResponse added in v0.1.120

type DeleteHttpAccessControlRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpAccessControlRuleResponse Response Object

func (DeleteHttpAccessControlRuleResponse) String added in v0.1.120

type DeleteHttpBlockTrustIpRuleRequest added in v0.1.120

type DeleteHttpBlockTrustIpRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

DeleteHttpBlockTrustIpRuleRequest Request Object

func (DeleteHttpBlockTrustIpRuleRequest) String added in v0.1.120

type DeleteHttpBlockTrustIpRuleResponse added in v0.1.120

type DeleteHttpBlockTrustIpRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpBlockTrustIpRuleResponse Response Object

func (DeleteHttpBlockTrustIpRuleResponse) String added in v0.1.120

type DeleteHttpCcRuleRequest added in v0.1.120

type DeleteHttpCcRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// cc规则id
	RuleId string `json:"rule_id"`
}

DeleteHttpCcRuleRequest Request Object

func (DeleteHttpCcRuleRequest) String added in v0.1.120

func (o DeleteHttpCcRuleRequest) String() string

type DeleteHttpCcRuleResponse added in v0.1.120

type DeleteHttpCcRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpCcRuleResponse Response Object

func (DeleteHttpCcRuleResponse) String added in v0.1.120

func (o DeleteHttpCcRuleResponse) String() string

type DeleteHttpGeoIpRuleRequest added in v0.1.120

type DeleteHttpGeoIpRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

DeleteHttpGeoIpRuleRequest Request Object

func (DeleteHttpGeoIpRuleRequest) String added in v0.1.120

type DeleteHttpGeoIpRuleResponse added in v0.1.120

type DeleteHttpGeoIpRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpGeoIpRuleResponse Response Object

func (DeleteHttpGeoIpRuleResponse) String added in v0.1.120

type DeleteHttpIgnoreRuleRequest added in v0.1.120

type DeleteHttpIgnoreRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

DeleteHttpIgnoreRuleRequest Request Object

func (DeleteHttpIgnoreRuleRequest) String added in v0.1.120

type DeleteHttpIgnoreRuleResponse added in v0.1.120

type DeleteHttpIgnoreRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpIgnoreRuleResponse Response Object

func (DeleteHttpIgnoreRuleResponse) String added in v0.1.120

type DeleteHttpIpGroupRequest added in v0.1.120

type DeleteHttpIpGroupRequest struct {

	// IP地址组id
	IpGroupId string `json:"ip_group_id"`
}

DeleteHttpIpGroupRequest Request Object

func (DeleteHttpIpGroupRequest) String added in v0.1.120

func (o DeleteHttpIpGroupRequest) String() string

type DeleteHttpIpGroupResponse added in v0.1.120

type DeleteHttpIpGroupResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpIpGroupResponse Response Object

func (DeleteHttpIpGroupResponse) String added in v0.1.120

func (o DeleteHttpIpGroupResponse) String() string

type DeleteHttpPolicyRequest added in v0.1.116

type DeleteHttpPolicyRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`
}

DeleteHttpPolicyRequest Request Object

func (DeleteHttpPolicyRequest) String added in v0.1.116

func (o DeleteHttpPolicyRequest) String() string

type DeleteHttpPolicyResponse added in v0.1.116

type DeleteHttpPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpPolicyResponse Response Object

func (DeleteHttpPolicyResponse) String added in v0.1.116

func (o DeleteHttpPolicyResponse) String() string

type DeleteHttpPunishmentRuleRequest added in v0.1.120

type DeleteHttpPunishmentRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

DeleteHttpPunishmentRuleRequest Request Object

func (DeleteHttpPunishmentRuleRequest) String added in v0.1.120

type DeleteHttpPunishmentRuleResponse added in v0.1.120

type DeleteHttpPunishmentRuleResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpPunishmentRuleResponse Response Object

func (DeleteHttpPunishmentRuleResponse) String added in v0.1.120

type DeleteHttpReferenceTableRequest added in v0.1.120

type DeleteHttpReferenceTableRequest struct {

	// 引用表id
	TableId string `json:"table_id"`
}

DeleteHttpReferenceTableRequest Request Object

func (DeleteHttpReferenceTableRequest) String added in v0.1.120

type DeleteHttpReferenceTableResponse added in v0.1.120

type DeleteHttpReferenceTableResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpReferenceTableResponse Response Object

func (DeleteHttpReferenceTableResponse) String added in v0.1.120

type DomainClassificationItem added in v0.1.120

type DomainClassificationItem struct {

	// DomainItem的总数量
	Total *int32 `json:"total,omitempty"`

	// DomainItem详细信息
	Items *[]DomainItem `json:"items,omitempty"`
}

func (DomainClassificationItem) String added in v0.1.120

func (o DomainClassificationItem) String() string

type DomainInfo

type DomainInfo struct {

	// 域名id
	Id *string `json:"id,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// - 调度状态: - 调度异常:dispatch_abnormal - 未调度:un_dispatch - 调度中:dispatching - 已调度:dispatched - 删除中:dispatch_deleting
	DispatchStatus *string `json:"dispatch_status,omitempty"`

	// 网站名称
	WebName *string `json:"web_name,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	// 策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// - 防护状态: - 防护中:on - 未防护:off
	ProtectStatus *string `json:"protect_status,omitempty"`

	// 创建域名的时间
	CreateTime *int64 `json:"create_time,omitempty"`

	// 更新域名的时间
	UpdateTime *int64 `json:"update_time,omitempty"`
}

DomainInfo 防护域名详情

func (DomainInfo) String

func (o DomainInfo) String() string

type DomainItem added in v0.1.120

type DomainItem struct {

	// 域名
	Key *string `json:"key,omitempty"`

	// 数量
	Num *int32 `json:"num,omitempty"`

	// 网站名称
	WebTag *string `json:"web_tag,omitempty"`
}

DomainItem 受攻击域名统计

func (DomainItem) String added in v0.1.120

func (o DomainItem) String() string

type DownloadDdosAttackLogsRequest added in v0.1.120

type DownloadDdosAttackLogsRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 起始时间(13位时间戳)
	StartTime int64 `json:"start_time"`

	// 结束时间(13位时间戳)
	EndTime int64 `json:"end_time"`

	// 查询列表的偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 查询列表每一页的条数
	Limit *int32 `json:"limit,omitempty"`
}

DownloadDdosAttackLogsRequest Request Object

func (DownloadDdosAttackLogsRequest) String added in v0.1.120

type DownloadDdosAttackLogsResponse added in v0.1.120

type DownloadDdosAttackLogsResponse struct {
	HttpStatusCode int           `json:"-"`
	Body           io.ReadCloser `json:"-" type:"stream"`
}

DownloadDdosAttackLogsResponse Response Object

func (DownloadDdosAttackLogsResponse) Consume added in v0.1.120

func (o DownloadDdosAttackLogsResponse) Consume(writer io.Writer) (int64, error)

func (DownloadDdosAttackLogsResponse) String added in v0.1.120

type GeoClassificationItem added in v0.1.120

type GeoClassificationItem struct {

	// GeoItem的总数量
	Total *int32 `json:"total,omitempty"`

	// GeoItem详细信息
	Items *[]GeoItem `json:"items,omitempty"`
}

func (GeoClassificationItem) String added in v0.1.120

func (o GeoClassificationItem) String() string

type GeoItem added in v0.1.120

type GeoItem struct {

	// 攻击来源区域
	Key *string `json:"key,omitempty"`

	// 数量
	Num *int32 `json:"num,omitempty"`
}

GeoItem 攻击来源区域统计

func (GeoItem) String added in v0.1.120

func (o GeoItem) String() string

type HttpAccessControlRuleCondition added in v0.1.120

type HttpAccessControlRuleCondition struct {

	// 字段类型。可选值为:url、custom_asn、custom_geoip、robot、user-agent、ip、params、cookie、referer、header、method、request_line、request、response_code、response_length、response_time、response_header、response_body
	Category *string `json:"category,omitempty"`

	// 子字段:  - 字段类型为url、custom_asn、custom_geoip、robot、user-agent、referer、request_line、method、request、response_code、response_length、response_time、response_body时,不需要传index参数    - 字段类型为params、cookie、header、response_header并且子字段为自定义时,index的值为自定义子字段
	Index *string `json:"index,omitempty"`

	// 内容列表
	Contents *[]string `json:"contents,omitempty"`

	// 处理逻辑
	LogicOperation *string `json:"logic_operation,omitempty"`

	// 引用表id
	ValueListId *string `json:"value_list_id,omitempty"`

	// 若防护规则涉及阈值,即使用该字段
	Size *int64 `json:"size,omitempty"`

	// 1.所有子字段/2.任意子字段
	CheckAllIndexesLogic *int32 `json:"check_all_indexes_logic,omitempty"`
}

HttpAccessControlRuleCondition 条件列表参数较为复杂,存在级联关系,建议同时使用控制台上的添加误报屏蔽规则,单击F12键查看路径后缀为/access-control-rule,方法为POST的请求参数,便于理解参数的填写

func (HttpAccessControlRuleCondition) String added in v0.1.120

type HttpCcRuleCondition added in v0.1.120

type HttpCcRuleCondition struct {

	// 防护规则字段
	Category HttpCcRuleConditionCategory `json:"category"`

	// 子字段,当字段类型(category)选择“params”、“cookie”、“header”时,请根据实际需求配置子字段且该参数必填。
	Index *string `json:"index,omitempty"`

	// 条件列表逻辑匹配内容。当logic_operation参数不以any或者all结尾时,需要传该参数。
	Contents *[]string `json:"contents,omitempty"`

	// 条件列表匹配逻辑。   -  如果字段类型category是url, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 contain_any、 not_contain_all、 equal_any、 not_equal_all、 equal_any、 not_equal_all、 prefix_any、 not_prefix_all、 suffix_any、 not_suffix_all、 len_greater、 len_less、len_equal或者len_not_equal   - 如果字段类型category是ip或者ipv6,匹配逻辑可以为: equal、not_equal、equal_any或者not_equal_all   - 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 contain_any、 not_contain_all、 equal_any、not_equal_all、 equal_any、 not_equal_all、 prefix_any、 not_prefix_all、 suffix_any、 not_suffix_all、 len_greater、 len_less、len_equal、len_not_equal、、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist
	LogicOperation string `json:"logic_operation"`

	// 引用表id。当logic_operation参数以any或者all结尾时,需要传该参数。此外,引用表类型要与category类型保持一致。
	ValueListId *string `json:"value_list_id,omitempty"`

	// 若防护规则涉及阈值,即使用该字段
	Size *int64 `json:"size,omitempty"`

	// - 1:所有子字段 - 2:任意子字段
	CheckAllIndexesLogic *int32 `json:"check_all_indexes_logic,omitempty"`
}

HttpCcRuleCondition 防护规则条件

func (HttpCcRuleCondition) String added in v0.1.120

func (o HttpCcRuleCondition) String() string

type HttpCcRuleConditionCategory added in v0.1.120

type HttpCcRuleConditionCategory struct {
	// contains filtered or unexported fields
}

func (HttpCcRuleConditionCategory) MarshalJSON added in v0.1.120

func (c HttpCcRuleConditionCategory) MarshalJSON() ([]byte, error)

func (*HttpCcRuleConditionCategory) UnmarshalJSON added in v0.1.120

func (c *HttpCcRuleConditionCategory) UnmarshalJSON(b []byte) error

func (HttpCcRuleConditionCategory) Value added in v0.1.120

type HttpCcRuleConditionCategoryEnum added in v0.1.120

func GetHttpCcRuleConditionCategoryEnum added in v0.1.120

func GetHttpCcRuleConditionCategoryEnum() HttpCcRuleConditionCategoryEnum

type HttpIgnoreRuleCondition added in v0.1.120

type HttpIgnoreRuleCondition struct {

	// 字段类型,可选值有ip、url、params、cookie、header
	Category string `json:"category"`

	// 字段类型为ip且子字段为客户端ip时,不需要传index参数;子字段类型为X-Forwarded-For时,值为x-forwarded-for;字段类型为params、header、cookie并且子字段为自定义时,index的值为自定义子字段
	Index *string `json:"index,omitempty"`

	// 内容列表
	Contents []string `json:"contents"`

	// 匹配逻辑,匹配逻辑根据字段类型变化,字段类型为ip时,匹配逻辑支持(equal:等于,not_equal:不等于),字段类型为url、header、params、cookie时,匹配逻辑支持(equal:等于,not_equal:不等于,contain:包含,not_contain:不包含,prefix:前缀为,not_prefix:前缀不为,suffix:后缀为,not_suffix:后缀不为,regular_match:正则匹配,regular_not_match:正则不匹配)
	LogicOperation string `json:"logic_operation"`

	// 引用表id
	ValueListId *string `json:"value_list_id,omitempty"`

	// 若防护规则涉及阈值,即使用该字段
	Size *int64 `json:"size,omitempty"`

	// 1.所有子字段/2.任意子字段
	CheckAllIndexesLogic *int32 `json:"check_all_indexes_logic,omitempty"`
}

HttpIgnoreRuleCondition 条件列表参数较为复杂,存在级联关系,建议同时使用控制台上的添加误报屏蔽规则,单击F12键查看路径后缀为/ignore-rule,方法为POST的请求参数,便于理解参数的填写

func (HttpIgnoreRuleCondition) String added in v0.1.120

func (o HttpIgnoreRuleCondition) String() string

type HttpIpGroup added in v0.1.120

type HttpIpGroup struct {

	// ip地址组id
	Id *string `json:"id,omitempty"`

	// ip地址组名称
	Name *string `json:"name,omitempty"`

	// ip地址/地址段列表
	Ips *[]string `json:"ips,omitempty"`

	// ip地址/地址段大小
	Size *int32 `json:"size,omitempty"`

	// ip地址组描述
	Description *string `json:"description,omitempty"`

	// ip地址组创建时间戳
	CreateTime *int64 `json:"create_time,omitempty"`
}

HttpIpGroup ip地址组

func (HttpIpGroup) String added in v0.1.120

func (o HttpIpGroup) String() string

type HttpPolicyAction added in v0.1.116

type HttpPolicyAction struct {

	// 防护等级
	Category *string `json:"category,omitempty"`

	// 攻击惩罚规则ID
	FollowedActionId *string `json:"followed_action_id,omitempty"`
}

HttpPolicyAction 操作

func (HttpPolicyAction) String added in v0.1.116

func (o HttpPolicyAction) String() string

type HttpPolicyBindHost added in v0.1.116

type HttpPolicyBindHost struct {

	// 域名ID
	Id *string `json:"id,omitempty"`

	// 域名
	Hostname *string `json:"hostname,omitempty"`
}

HttpPolicyBindHost 绑定的域名信息

func (HttpPolicyBindHost) String added in v0.1.116

func (o HttpPolicyBindHost) String() string

type HttpPolicyOption added in v0.1.116

type HttpPolicyOption struct {

	// 基础防护是否开启
	Webattack *bool `json:"webattack,omitempty"`

	// 常规检测是否开启
	Common *bool `json:"common,omitempty"`

	// 所有反爬虫是否开启
	BotEnable *bool `json:"bot_enable,omitempty"`

	// 特征反爬虫是否开启
	Crawler *bool `json:"crawler,omitempty"`

	// 搜索engine是否开启
	CrawlerEngine *bool `json:"crawler_engine,omitempty"`

	// 扫描器是否开启
	CrawlerScanner *bool `json:"crawler_scanner,omitempty"`

	// 脚本反爬虫是否开启
	CrawlerScript *bool `json:"crawler_script,omitempty"`

	// 其他爬虫是否开启
	CrawlerOther *bool `json:"crawler_other,omitempty"`

	// Webshell检测是否开启
	Webshell *bool `json:"webshell,omitempty"`

	// cc规则是否开启
	Cc *bool `json:"cc,omitempty"`

	// 精准防护是否开启
	Custom *bool `json:"custom,omitempty"`

	// 攻击惩罚是否开启
	FollowedAction *bool `json:"followed_action,omitempty"`

	// 黑白名单防护是否开启
	Whiteblackip *bool `json:"whiteblackip,omitempty"`

	// 地理位置规则是否开启
	Geoip *bool `json:"geoip,omitempty"`

	// 误报屏蔽是否开启
	Ignore *bool `json:"ignore,omitempty"`

	// 隐私屏蔽是否开启
	Privacy *bool `json:"privacy,omitempty"`

	// 网页防篡改规则是否开启
	Antitamper *bool `json:"antitamper,omitempty"`

	// 防敏感信息泄露规则是否开启
	Antileakage *bool `json:"antileakage,omitempty"`

	// 脚本反爬虫规则是否开启
	Anticrawler *bool `json:"anticrawler,omitempty"`

	// 三方BOT是否开启
	ThirdBotRiver *bool `json:"third_bot_river,omitempty"`
}

HttpPolicyOption 选项

func (HttpPolicyOption) String added in v0.1.116

func (o HttpPolicyOption) String() string

type HttpRiverConfig added in v0.1.116

type HttpRiverConfig struct {

	// 瑞数站点ID
	SiteId *string `json:"site_id,omitempty"`

	// 瑞数站点名称
	SiteName *string `json:"site_name,omitempty"`

	// 连接超时(毫秒)
	ConnectTimeout *int32 `json:"connect_timeout,omitempty"`

	// 读超时(毫秒)
	ReadTimeout *int32 `json:"read_timeout,omitempty"`

	// 写超时(毫秒)
	SendTimeout *int32 `json:"send_timeout,omitempty"`
}

HttpRiverConfig 瑞数配置项

func (HttpRiverConfig) String added in v0.1.116

func (o HttpRiverConfig) String() string

type HttpRuleAction added in v0.1.120

type HttpRuleAction struct {

	// 操作类型。   - “block”:拦截。   - “pass”:放行。   - “log”:仅记录
	Category string `json:"category"`

	// 攻击惩罚规则id,只有当category参数值为block时才可配置该参数
	FollowedActionId *string `json:"followed_action_id,omitempty"`

	Detail *HttpRuleActionDetail `json:"detail,omitempty"`
}

HttpRuleAction 防护规则动作

func (HttpRuleAction) String added in v0.1.120

func (o HttpRuleAction) String() string

type HttpRuleActionDetail added in v0.1.120

type HttpRuleActionDetail struct {

	// 返回页面重定向的url
	RedirectUrl *string `json:"redirect_url,omitempty"`

	Response *HttpRuleActionResponse `json:"response,omitempty"`
}

HttpRuleActionDetail 防护规则动作

func (HttpRuleActionDetail) String added in v0.1.120

func (o HttpRuleActionDetail) String() string

type HttpRuleActionResponse added in v0.1.120

type HttpRuleActionResponse struct {

	// 内容类型
	ContentType *string `json:"content_type,omitempty"`

	// 内容
	Content *string `json:"content,omitempty"`
}

HttpRuleActionResponse 防护规则返回页面

func (HttpRuleActionResponse) String added in v0.1.120

func (o HttpRuleActionResponse) String() string

type HttpRuleInfo added in v0.1.120

type HttpRuleInfo struct {

	// 策略下的规则id
	RuleId *string `json:"rule_id,omitempty"`

	// 策略下的规则名称
	RuleName *string `json:"rule_name,omitempty"`

	// 策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 策略名称
	PolicyName *string `json:"policy_name,omitempty"`
}

HttpRuleInfo Http防护策略和规则信息

func (HttpRuleInfo) String added in v0.1.120

func (o HttpRuleInfo) String() string

type HttpStatisticsItem added in v0.1.120

type HttpStatisticsItem struct {

	// 攻击类别
	AttackCategory *string `json:"attack_category,omitempty"`

	// 统计数量
	StatNum *int64 `json:"stat_num,omitempty"`
}

func (HttpStatisticsItem) String added in v0.1.120

func (o HttpStatisticsItem) String() string

type HttpThirdBotOptions added in v0.1.116

type HttpThirdBotOptions struct {
	RiverConfig *HttpRiverConfig `json:"river_config,omitempty"`
}

HttpThirdBotOptions 三方BOT操作

func (HttpThirdBotOptions) String added in v0.1.116

func (o HttpThirdBotOptions) String() string

type IpClassificationItem added in v0.1.120

type IpClassificationItem struct {

	// IpItem的总数量
	Total *int32 `json:"total,omitempty"`

	// IpItem详细信息
	Items *[]IpItem `json:"items,omitempty"`
}

func (IpClassificationItem) String added in v0.1.120

func (o IpClassificationItem) String() string

type IpItem added in v0.1.120

type IpItem struct {

	// ip地址
	Key *string `json:"key,omitempty"`

	// 数量
	Num *int32 `json:"num,omitempty"`
}

IpItem 攻击源Ip

func (IpItem) String added in v0.1.120

func (o IpItem) String() string

type ResetHttpIgnoreRuleRequest added in v0.1.120

type ResetHttpIgnoreRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

ResetHttpIgnoreRuleRequest Request Object

func (ResetHttpIgnoreRuleRequest) String added in v0.1.120

type ResetHttpIgnoreRuleResponse added in v0.1.120

type ResetHttpIgnoreRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 误报路径
	Url *string `json:"url,omitempty"`

	// 规则编号
	Rule *string `json:"rule,omitempty"`

	// 误报屏蔽模式,默认为0即旧模式
	Mode *int32 `json:"mode,omitempty"`

	// 域名列表
	Domains *[]string `json:"domains,omitempty"`

	// 屏蔽规则url类型(前缀:prefix,等于:equal)
	UrlLogic *string `json:"url_logic,omitempty"`

	Advanced *HttpIgnoreRuleCondition `json:"advanced,omitempty"`

	// 命中条件
	Conditions *[]HttpIgnoreRuleCondition `json:"conditions,omitempty"`

	// 命中次数
	HitNum *int32 `json:"hit_num,omitempty"`

	// 最后更新时间戳
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 上一次命中次数清零时间戳
	ClearTime      *int64 `json:"clear_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ResetHttpIgnoreRuleResponse Response Object

func (ResetHttpIgnoreRuleResponse) String added in v0.1.120

type ShowDdosAttackLogsRequest added in v0.1.120

type ShowDdosAttackLogsRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 起始时间(13位时间戳)
	StartTime int64 `json:"start_time"`

	// 结束时间(13位时间戳)
	EndTime int64 `json:"end_time"`

	// 查询列表的偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 查询列表每一页的条数
	Limit *int32 `json:"limit,omitempty"`
}

ShowDdosAttackLogsRequest Request Object

func (ShowDdosAttackLogsRequest) String added in v0.1.120

func (o ShowDdosAttackLogsRequest) String() string

type ShowDdosAttackLogsResponse added in v0.1.120

type ShowDdosAttackLogsResponse struct {

	// 攻击日志数量
	Total *int64 `json:"total,omitempty"`

	// 攻击日志详情
	Items          *[]DdosAttackLog `json:"items,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ShowDdosAttackLogsResponse Response Object

func (ShowDdosAttackLogsResponse) String added in v0.1.120

type ShowDdosAttackTimelineStatsRequest added in v0.1.120

type ShowDdosAttackTimelineStatsRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 安全统计指标类型,目前支持bw、pps
	StatType ShowDdosAttackTimelineStatsRequestStatType `json:"stat_type"`

	// bw对应(max_bps、avg_bps),pps对应(max_pps、avg_pps)
	GroupBy ShowDdosAttackTimelineStatsRequestGroupBy `json:"group_by"`

	// 开始时间
	StartTime int64 `json:"start_time"`

	// 结束时间
	EndTime int64 `json:"end_time"`
}

ShowDdosAttackTimelineStatsRequest Request Object

func (ShowDdosAttackTimelineStatsRequest) String added in v0.1.120

type ShowDdosAttackTimelineStatsRequestGroupBy added in v0.1.120

type ShowDdosAttackTimelineStatsRequestGroupBy struct {
	// contains filtered or unexported fields
}

func (ShowDdosAttackTimelineStatsRequestGroupBy) MarshalJSON added in v0.1.120

func (*ShowDdosAttackTimelineStatsRequestGroupBy) UnmarshalJSON added in v0.1.120

func (ShowDdosAttackTimelineStatsRequestGroupBy) Value added in v0.1.120

type ShowDdosAttackTimelineStatsRequestGroupByEnum added in v0.1.120

func GetShowDdosAttackTimelineStatsRequestGroupByEnum added in v0.1.120

func GetShowDdosAttackTimelineStatsRequestGroupByEnum() ShowDdosAttackTimelineStatsRequestGroupByEnum

type ShowDdosAttackTimelineStatsRequestStatType added in v0.1.120

type ShowDdosAttackTimelineStatsRequestStatType struct {
	// contains filtered or unexported fields
}

func (ShowDdosAttackTimelineStatsRequestStatType) MarshalJSON added in v0.1.120

func (*ShowDdosAttackTimelineStatsRequestStatType) UnmarshalJSON added in v0.1.120

func (ShowDdosAttackTimelineStatsRequestStatType) Value added in v0.1.120

type ShowDdosAttackTimelineStatsRequestStatTypeEnum added in v0.1.120

type ShowDdosAttackTimelineStatsRequestStatTypeEnum struct {
	BW  ShowDdosAttackTimelineStatsRequestStatType
	PPS ShowDdosAttackTimelineStatsRequestStatType
}

func GetShowDdosAttackTimelineStatsRequestStatTypeEnum added in v0.1.120

func GetShowDdosAttackTimelineStatsRequestStatTypeEnum() ShowDdosAttackTimelineStatsRequestStatTypeEnum

type ShowDdosAttackTimelineStatsResponse added in v0.1.120

type ShowDdosAttackTimelineStatsResponse struct {

	// 指标类型
	StatType *string `json:"stat_type,omitempty"`

	// 分组类型
	GroupBy *string `json:"group_by,omitempty"`

	// 时间粒度(单位:秒)
	Interval *int32 `json:"interval,omitempty"`

	// 值数组
	Values         *[]TimeStatItem `json:"values,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowDdosAttackTimelineStatsResponse Response Object

func (ShowDdosAttackTimelineStatsResponse) String added in v0.1.120

type ShowDomainDetailRequest

type ShowDomainDetailRequest struct {

	// 防护域名id
	DomainId string `json:"domain_id"`
}

ShowDomainDetailRequest Request Object

func (ShowDomainDetailRequest) String

func (o ShowDomainDetailRequest) String() string

type ShowDomainDetailResponse

type ShowDomainDetailResponse struct {

	// 域名id
	Id *string `json:"id,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 域名描述
	Description *string `json:"description,omitempty"`

	// 策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// - 防护状态: - 防护中:on - 未防护:off
	ProtectStatus *string `json:"protect_status,omitempty"`

	// 创建域名的时间
	CreateTime *int64 `json:"create_time,omitempty"`

	// 更新域名的时间
	UpdateTime     *int64 `json:"update_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowDomainDetailResponse Response Object

func (ShowDomainDetailResponse) String

func (o ShowDomainDetailResponse) String() string

type ShowDomainsRequest

type ShowDomainsRequest struct {

	// 查询列表的偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 查询列表每一页的条数
	Limit *int32 `json:"limit,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`

	// 策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ShowDomainsRequest Request Object

func (ShowDomainsRequest) String

func (o ShowDomainsRequest) String() string

type ShowDomainsResponse

type ShowDomainsResponse struct {

	// 全部防护域名的数量
	Total *int64 `json:"total,omitempty"`

	// 域名已使用配额
	DomainUsedQuota *int64 `json:"domain_used_quota,omitempty"`

	// 详细的防护域名信息
	DomainList     *[]DomainInfo `json:"domain_list,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ShowDomainsResponse Response Object

func (ShowDomainsResponse) String

func (o ShowDomainsResponse) String() string

type ShowHttpAccessControlRuleRequest added in v0.1.120

type ShowHttpAccessControlRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

ShowHttpAccessControlRuleRequest Request Object

func (ShowHttpAccessControlRuleRequest) String added in v0.1.120

type ShowHttpAccessControlRuleResponse added in v0.1.120

type ShowHttpAccessControlRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 是否设定生效时间
	Time *bool `json:"time,omitempty"`

	// 生效时间
	Start *int64 `json:"start,omitempty"`

	// 失效时间
	Terminal *int64 `json:"terminal,omitempty"`

	// 优先级
	Priority *int32 `json:"priority,omitempty"`

	// 命中条件
	Conditions *[]HttpAccessControlRuleCondition `json:"conditions,omitempty"`

	Action *HttpRuleAction `json:"action,omitempty"`

	// 创建来源
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowHttpAccessControlRuleResponse Response Object

func (ShowHttpAccessControlRuleResponse) String added in v0.1.120

type ShowHttpAccessControlRuleResponseBody added in v0.1.120

type ShowHttpAccessControlRuleResponseBody struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 是否设定生效时间
	Time *bool `json:"time,omitempty"`

	// 生效时间
	Start *int64 `json:"start,omitempty"`

	// 失效时间
	Terminal *int64 `json:"terminal,omitempty"`

	// 优先级
	Priority *int32 `json:"priority,omitempty"`

	// 命中条件
	Conditions *[]HttpAccessControlRuleCondition `json:"conditions,omitempty"`

	Action *HttpRuleAction `json:"action,omitempty"`

	// 创建来源
	Producer *int32 `json:"producer,omitempty"`
}

func (ShowHttpAccessControlRuleResponseBody) String added in v0.1.120

type ShowHttpAccessControlRulesRequest added in v0.1.120

type ShowHttpAccessControlRulesRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页显示pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ShowHttpAccessControlRulesRequest Request Object

func (ShowHttpAccessControlRulesRequest) String added in v0.1.120

type ShowHttpAccessControlRulesResponse added in v0.1.120

type ShowHttpAccessControlRulesResponse struct {

	// 策略下防护规则数量
	Total *int32 `json:"total,omitempty"`

	// 防护规则列表
	Items          *[]ShowHttpAccessControlRuleResponseBody `json:"items,omitempty"`
	HttpStatusCode int                                      `json:"-"`
}

ShowHttpAccessControlRulesResponse Response Object

func (ShowHttpAccessControlRulesResponse) String added in v0.1.120

type ShowHttpAttackDistributionStatsRequest added in v0.1.120

type ShowHttpAttackDistributionStatsRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`

	// 安全统计指标类型。 比如req_num(请求次数),bw(带宽),目前支持req_num
	StatType ShowHttpAttackDistributionStatsRequestStatType `json:"stat_type"`

	// 目前支持action(防护动作), attack_type(攻击类型)
	GroupBy ShowHttpAttackDistributionStatsRequestGroupBy `json:"group_by"`

	// 起始时间,使用秒级时间戳
	StartTime int64 `json:"start_time"`

	// 结束时间,使用秒级时间戳
	EndTime int64 `json:"end_time"`
}

ShowHttpAttackDistributionStatsRequest Request Object

func (ShowHttpAttackDistributionStatsRequest) String added in v0.1.120

type ShowHttpAttackDistributionStatsRequestGroupBy added in v0.1.120

type ShowHttpAttackDistributionStatsRequestGroupBy struct {
	// contains filtered or unexported fields
}

func (ShowHttpAttackDistributionStatsRequestGroupBy) MarshalJSON added in v0.1.120

func (*ShowHttpAttackDistributionStatsRequestGroupBy) UnmarshalJSON added in v0.1.120

func (ShowHttpAttackDistributionStatsRequestGroupBy) Value added in v0.1.120

type ShowHttpAttackDistributionStatsRequestGroupByEnum added in v0.1.120

type ShowHttpAttackDistributionStatsRequestGroupByEnum struct {
	ACTION      ShowHttpAttackDistributionStatsRequestGroupBy
	ATTACK_TYPE ShowHttpAttackDistributionStatsRequestGroupBy
}

func GetShowHttpAttackDistributionStatsRequestGroupByEnum added in v0.1.120

func GetShowHttpAttackDistributionStatsRequestGroupByEnum() ShowHttpAttackDistributionStatsRequestGroupByEnum

type ShowHttpAttackDistributionStatsRequestStatType added in v0.1.120

type ShowHttpAttackDistributionStatsRequestStatType struct {
	// contains filtered or unexported fields
}

func (ShowHttpAttackDistributionStatsRequestStatType) MarshalJSON added in v0.1.120

func (*ShowHttpAttackDistributionStatsRequestStatType) UnmarshalJSON added in v0.1.120

func (ShowHttpAttackDistributionStatsRequestStatType) Value added in v0.1.120

type ShowHttpAttackDistributionStatsRequestStatTypeEnum added in v0.1.120

type ShowHttpAttackDistributionStatsRequestStatTypeEnum struct {
	REQ_NUM ShowHttpAttackDistributionStatsRequestStatType
	BW      ShowHttpAttackDistributionStatsRequestStatType
}

func GetShowHttpAttackDistributionStatsRequestStatTypeEnum added in v0.1.120

func GetShowHttpAttackDistributionStatsRequestStatTypeEnum() ShowHttpAttackDistributionStatsRequestStatTypeEnum

type ShowHttpAttackDistributionStatsResponse added in v0.1.120

type ShowHttpAttackDistributionStatsResponse struct {

	// 安全统计指标类型。
	StatType *string `json:"stat_type,omitempty"`

	// 分组统计维度
	GroupBy *string `json:"group_by,omitempty"`

	// 统计数量
	StatNum *int64 `json:"stat_num,omitempty"`

	// 统计数组
	Values *[]CommonStatItem `json:"values,omitempty"`

	// 开始时间
	StartTime *int64 `json:"start_time,omitempty"`

	// 结束时间
	EndTime        *int64 `json:"end_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowHttpAttackDistributionStatsResponse Response Object

func (ShowHttpAttackDistributionStatsResponse) String added in v0.1.120

type ShowHttpAttackTimelineStatsRequest added in v0.1.120

type ShowHttpAttackTimelineStatsRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`

	// 指标类型,当前仅支持req_num
	StatType ShowHttpAttackTimelineStatsRequestStatType `json:"stat_type"`

	// 分组类型,当前仅支持action,attack_category
	GroupBy ShowHttpAttackTimelineStatsRequestGroupBy `json:"group_by"`

	// 分组类型对应的具体的值,不传的话默认总和(例如:action指标类型:log、block、captcha、js_challenge) (例如:attack_category指标类型:cc、access_control、bot、web_app_attack)
	GroupByValue *string `json:"group_by_value,omitempty"`

	// 时间粒度(单位:秒),不同时间范围有不同的可选时间粒度。[0,1H],可选时间粒度为1M、5M;(1H,1D],可选时间粒度为1M、5M、1H;(1D,3D],可选时间粒度为1M、5M、1H、1D;(3D,7D],可选时间粒度为5M、1H、1D;(7D,30D],可选时间粒度为1H、1D。其中M代表分钟,H代表小时,D代表天。
	Interval int32 `json:"interval"`

	// 开始时间
	StartTime int64 `json:"start_time"`

	// 结束时间
	EndTime int64 `json:"end_time"`
}

ShowHttpAttackTimelineStatsRequest Request Object

func (ShowHttpAttackTimelineStatsRequest) String added in v0.1.120

type ShowHttpAttackTimelineStatsRequestGroupBy added in v0.1.120

type ShowHttpAttackTimelineStatsRequestGroupBy struct {
	// contains filtered or unexported fields
}

func (ShowHttpAttackTimelineStatsRequestGroupBy) MarshalJSON added in v0.1.120

func (*ShowHttpAttackTimelineStatsRequestGroupBy) UnmarshalJSON added in v0.1.120

func (ShowHttpAttackTimelineStatsRequestGroupBy) Value added in v0.1.120

type ShowHttpAttackTimelineStatsRequestGroupByEnum added in v0.1.120

type ShowHttpAttackTimelineStatsRequestGroupByEnum struct {
	ACTION          ShowHttpAttackTimelineStatsRequestGroupBy
	ATTACK_CATEGORY ShowHttpAttackTimelineStatsRequestGroupBy
}

func GetShowHttpAttackTimelineStatsRequestGroupByEnum added in v0.1.120

func GetShowHttpAttackTimelineStatsRequestGroupByEnum() ShowHttpAttackTimelineStatsRequestGroupByEnum

type ShowHttpAttackTimelineStatsRequestStatType added in v0.1.120

type ShowHttpAttackTimelineStatsRequestStatType struct {
	// contains filtered or unexported fields
}

func (ShowHttpAttackTimelineStatsRequestStatType) MarshalJSON added in v0.1.120

func (*ShowHttpAttackTimelineStatsRequestStatType) UnmarshalJSON added in v0.1.120

func (ShowHttpAttackTimelineStatsRequestStatType) Value added in v0.1.120

type ShowHttpAttackTimelineStatsRequestStatTypeEnum added in v0.1.120

type ShowHttpAttackTimelineStatsRequestStatTypeEnum struct {
	REQ_NUM ShowHttpAttackTimelineStatsRequestStatType
}

func GetShowHttpAttackTimelineStatsRequestStatTypeEnum added in v0.1.120

func GetShowHttpAttackTimelineStatsRequestStatTypeEnum() ShowHttpAttackTimelineStatsRequestStatTypeEnum

type ShowHttpAttackTimelineStatsResponse added in v0.1.120

type ShowHttpAttackTimelineStatsResponse struct {

	// 指标类型
	StatType *string `json:"stat_type,omitempty"`

	// 分组类型
	GroupBy *string `json:"group_by,omitempty"`

	// 分组类型对应的具体的值
	GroupByValue *string `json:"group_by_value,omitempty"`

	// 时间粒度(单位:秒)
	Interval *int32 `json:"interval,omitempty"`

	// 值数组
	Values         *[]TimeStatItem `json:"values,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowHttpAttackTimelineStatsResponse Response Object

func (ShowHttpAttackTimelineStatsResponse) String added in v0.1.120

type ShowHttpAttackTopStatsRequest added in v0.1.120

type ShowHttpAttackTopStatsRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`

	// 指标类型。例如:req_num(请求次数)、bw(带宽)。目前只支持req_num
	StatType ShowHttpAttackTopStatsRequestStatType `json:"stat_type"`

	// 分组类型。响应值按分组类型进行统计,类型可为:host(请求的服务器域名)、sip(请求的客户端IP)、url(请求URL)、rule(自定义的策略类型描述)、user-agent(用户代理)、method(请求方法)、country(国家维度统计)。
	GroupBy string `json:"group_by"`

	// 限制Top数量(不超过100,默认为10)
	Limit *int32 `json:"limit,omitempty"`

	// 时间枚举(LATEST(最近30mins)、TODAY(今天)、CUSTOMIZE(自定义,昨天到近30天任意整数天内))
	TimeType ShowHttpAttackTopStatsRequestTimeType `json:"time_type"`

	// 开始时间
	StartTime *int64 `json:"start_time,omitempty"`

	// 结束时间
	EndTime *int64 `json:"end_time,omitempty"`
}

ShowHttpAttackTopStatsRequest Request Object

func (ShowHttpAttackTopStatsRequest) String added in v0.1.120

type ShowHttpAttackTopStatsRequestStatType added in v0.1.120

type ShowHttpAttackTopStatsRequestStatType struct {
	// contains filtered or unexported fields
}

func (ShowHttpAttackTopStatsRequestStatType) MarshalJSON added in v0.1.120

func (c ShowHttpAttackTopStatsRequestStatType) MarshalJSON() ([]byte, error)

func (*ShowHttpAttackTopStatsRequestStatType) UnmarshalJSON added in v0.1.120

func (c *ShowHttpAttackTopStatsRequestStatType) UnmarshalJSON(b []byte) error

func (ShowHttpAttackTopStatsRequestStatType) Value added in v0.1.120

type ShowHttpAttackTopStatsRequestStatTypeEnum added in v0.1.120

type ShowHttpAttackTopStatsRequestStatTypeEnum struct {
	REQ_NUM ShowHttpAttackTopStatsRequestStatType
	BW      ShowHttpAttackTopStatsRequestStatType
}

func GetShowHttpAttackTopStatsRequestStatTypeEnum added in v0.1.120

func GetShowHttpAttackTopStatsRequestStatTypeEnum() ShowHttpAttackTopStatsRequestStatTypeEnum

type ShowHttpAttackTopStatsRequestTimeType added in v0.1.120

type ShowHttpAttackTopStatsRequestTimeType struct {
	// contains filtered or unexported fields
}

func (ShowHttpAttackTopStatsRequestTimeType) MarshalJSON added in v0.1.120

func (c ShowHttpAttackTopStatsRequestTimeType) MarshalJSON() ([]byte, error)

func (*ShowHttpAttackTopStatsRequestTimeType) UnmarshalJSON added in v0.1.120

func (c *ShowHttpAttackTopStatsRequestTimeType) UnmarshalJSON(b []byte) error

func (ShowHttpAttackTopStatsRequestTimeType) Value added in v0.1.120

type ShowHttpAttackTopStatsRequestTimeTypeEnum added in v0.1.120

type ShowHttpAttackTopStatsRequestTimeTypeEnum struct {
	LATEST    ShowHttpAttackTopStatsRequestTimeType
	TODAY     ShowHttpAttackTopStatsRequestTimeType
	CUSTOMIZE ShowHttpAttackTopStatsRequestTimeType
}

func GetShowHttpAttackTopStatsRequestTimeTypeEnum added in v0.1.120

func GetShowHttpAttackTopStatsRequestTimeTypeEnum() ShowHttpAttackTopStatsRequestTimeTypeEnum

type ShowHttpAttackTopStatsResponse added in v0.1.120

type ShowHttpAttackTopStatsResponse struct {

	// 指标类型
	StatType *string `json:"stat_type,omitempty"`

	// 分组类型
	GroupBy *string `json:"group_by,omitempty"`

	Values *[]CommonStatItem `json:"values,omitempty"`

	// 开始时间
	StartTime *int64 `json:"start_time,omitempty"`

	// 结束时间
	EndTime        *int64 `json:"end_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowHttpAttackTopStatsResponse Response Object

func (ShowHttpAttackTopStatsResponse) String added in v0.1.120

type ShowHttpBlockTrustIpRuleRequest added in v0.1.120

type ShowHttpBlockTrustIpRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

ShowHttpBlockTrustIpRuleRequest Request Object

func (ShowHttpBlockTrustIpRuleRequest) String added in v0.1.120

type ShowHttpBlockTrustIpRuleResponse added in v0.1.120

type ShowHttpBlockTrustIpRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关: - 0:关闭 - 1:开启
	Status *int32 `json:"status,omitempty"`

	// ip地址/地址段
	Addr *string `json:"addr,omitempty"`

	// - 0:拦截 - 1:放行 - 2:仅记录
	White *int32 `json:"white,omitempty"`

	// 攻击惩罚规则id
	FollowedActionId *string `json:"followed_action_id,omitempty"`

	IpGroup        *HttpIpGroup `json:"ip_group,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowHttpBlockTrustIpRuleResponse Response Object

func (ShowHttpBlockTrustIpRuleResponse) String added in v0.1.120

type ShowHttpBlockTrustIpRuleResponseBody added in v0.1.120

type ShowHttpBlockTrustIpRuleResponseBody struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关: - 0:关闭 - 1:开启
	Status *int32 `json:"status,omitempty"`

	// ip地址/地址段
	Addr *string `json:"addr,omitempty"`

	// - 0:拦截 - 1:放行 - 2:仅记录
	White *int32 `json:"white,omitempty"`

	// 攻击惩罚规则id
	FollowedActionId *string `json:"followed_action_id,omitempty"`

	IpGroup *HttpIpGroup `json:"ip_group,omitempty"`
}

func (ShowHttpBlockTrustIpRuleResponseBody) String added in v0.1.120

type ShowHttpBlockTrustIpRulesRequest added in v0.1.120

type ShowHttpBlockTrustIpRulesRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// ip/ip段
	Addr *string `json:"addr,omitempty"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页显示pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ShowHttpBlockTrustIpRulesRequest Request Object

func (ShowHttpBlockTrustIpRulesRequest) String added in v0.1.120

type ShowHttpBlockTrustIpRulesResponse added in v0.1.120

type ShowHttpBlockTrustIpRulesResponse struct {

	// 策略下防护规则数量
	Total *int32 `json:"total,omitempty"`

	// 防护规则列表
	Items *[]ShowHttpBlockTrustIpRuleResponseBody `json:"items,omitempty"`

	// 防护规则下IP/IP段数量
	Size           *int64 `json:"size,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowHttpBlockTrustIpRulesResponse Response Object

func (ShowHttpBlockTrustIpRulesResponse) String added in v0.1.120

type ShowHttpCcRuleRequest added in v0.1.120

type ShowHttpCcRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// cc规则id
	RuleId string `json:"rule_id"`
}

ShowHttpCcRuleRequest Request Object

func (ShowHttpCcRuleRequest) String added in v0.1.120

func (o ShowHttpCcRuleRequest) String() string

type ShowHttpCcRuleResponse added in v0.1.120

type ShowHttpCcRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// cc规则优先级,越大优先级越高,默认1
	Priority *int32 `json:"priority,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 规则类型(0:标准/1:高级)
	Mode *int32 `json:"mode,omitempty"`

	// 所有用户的周期内请求次数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 单个用户的周期内请求次数
	LimitNum *int32 `json:"limit_num,omitempty"`

	// 限速周期
	LimitPeriod *int32 `json:"limit_period,omitempty"`

	// 锁定时长
	LockTime *int32 `json:"lock_time,omitempty"`

	// 防护模式
	TagType *string `json:"tag_type,omitempty"`

	// 防护模式标签
	TagIndex *string `json:"tag_index,omitempty"`

	TagCondition *HttpCcRuleCondition `json:"tag_condition,omitempty"`

	// 放行次数
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 是否聚合域名
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 条件列表参数较为复杂,存在级联关系,建议同时使用控制台上的添加误报屏蔽规则,单击F12键查看路径后缀为/cc-rule,方法为POST的请求参数,便于理解参数的填写
	Conditions *[]HttpCcRuleCondition `json:"conditions,omitempty"`

	Action *HttpRuleAction `json:"action,omitempty"`

	// 创建来源
	Producer *int32 `json:"producer,omitempty"`

	// 生效模式
	TimeMode *string `json:"time_mode,omitempty"`

	// customize生效时间区间开始
	Start *int64 `json:"start,omitempty"`

	// customize生效时间区间结束
	Terminal *int64 `json:"terminal,omitempty"`

	// period每日生效时间类型,目前只有day
	PeriodType *string `json:"period_type,omitempty"`

	// period每日生效时间区间
	TimeRange      *[]TimeRangeItem `json:"time_range,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ShowHttpCcRuleResponse Response Object

func (ShowHttpCcRuleResponse) String added in v0.1.120

func (o ShowHttpCcRuleResponse) String() string

type ShowHttpCcRuleResponseBody added in v0.1.120

type ShowHttpCcRuleResponseBody struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// cc规则优先级,越大优先级越高,默认1
	Priority *int32 `json:"priority,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 规则类型(0:标准/1:高级)
	Mode *int32 `json:"mode,omitempty"`

	// 所有用户的周期内请求次数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 单个用户的周期内请求次数
	LimitNum *int32 `json:"limit_num,omitempty"`

	// 限速周期
	LimitPeriod *int32 `json:"limit_period,omitempty"`

	// 锁定时长
	LockTime *int32 `json:"lock_time,omitempty"`

	// 防护模式
	TagType *string `json:"tag_type,omitempty"`

	// 防护模式标签
	TagIndex *string `json:"tag_index,omitempty"`

	TagCondition *HttpCcRuleCondition `json:"tag_condition,omitempty"`

	// 放行次数
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 是否聚合域名
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 条件列表参数较为复杂,存在级联关系,建议同时使用控制台上的添加误报屏蔽规则,单击F12键查看路径后缀为/cc-rule,方法为POST的请求参数,便于理解参数的填写
	Conditions *[]HttpCcRuleCondition `json:"conditions,omitempty"`

	Action *HttpRuleAction `json:"action,omitempty"`

	// 创建来源
	Producer *int32 `json:"producer,omitempty"`

	// 生效模式
	TimeMode *string `json:"time_mode,omitempty"`

	// customize生效时间区间开始
	Start *int64 `json:"start,omitempty"`

	// customize生效时间区间结束
	Terminal *int64 `json:"terminal,omitempty"`

	// period每日生效时间类型,目前只有day
	PeriodType *string `json:"period_type,omitempty"`

	// period每日生效时间区间
	TimeRange *[]TimeRangeItem `json:"time_range,omitempty"`
}

func (ShowHttpCcRuleResponseBody) String added in v0.1.120

type ShowHttpCcRulesRequest added in v0.1.120

type ShowHttpCcRulesRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页显示pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ShowHttpCcRulesRequest Request Object

func (ShowHttpCcRulesRequest) String added in v0.1.120

func (o ShowHttpCcRulesRequest) String() string

type ShowHttpCcRulesResponse added in v0.1.120

type ShowHttpCcRulesResponse struct {

	// 策略下cc规则数量
	Total *int32 `json:"total,omitempty"`

	// cc规则列表
	Items          *[]ShowHttpCcRuleResponseBody `json:"items,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

ShowHttpCcRulesResponse Response Object

func (ShowHttpCcRulesResponse) String added in v0.1.120

func (o ShowHttpCcRulesResponse) String() string

type ShowHttpGeoIpRuleRequest added in v0.1.120

type ShowHttpGeoIpRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

ShowHttpGeoIpRuleRequest Request Object

func (ShowHttpGeoIpRuleRequest) String added in v0.1.120

func (o ShowHttpGeoIpRuleRequest) String() string

type ShowHttpGeoIpRuleResponse added in v0.1.120

type ShowHttpGeoIpRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 地理位置
	GeoIp *string `json:"geo_ip,omitempty"`

	// 地理位置列表
	GeoTagList *[]string `json:"geo_tag_list,omitempty"`

	// 拦截/放行/仅记录
	White          *int32 `json:"white,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowHttpGeoIpRuleResponse Response Object

func (ShowHttpGeoIpRuleResponse) String added in v0.1.120

func (o ShowHttpGeoIpRuleResponse) String() string

type ShowHttpGeoIpRuleResponseBody added in v0.1.120

type ShowHttpGeoIpRuleResponseBody struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 地理位置
	GeoIp *string `json:"geo_ip,omitempty"`

	// 地理位置列表
	GeoTagList *[]string `json:"geo_tag_list,omitempty"`

	// 拦截/放行/仅记录
	White *int32 `json:"white,omitempty"`
}

func (ShowHttpGeoIpRuleResponseBody) String added in v0.1.120

type ShowHttpGeoIpRulesRequest added in v0.1.120

type ShowHttpGeoIpRulesRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页显示pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ShowHttpGeoIpRulesRequest Request Object

func (ShowHttpGeoIpRulesRequest) String added in v0.1.120

func (o ShowHttpGeoIpRulesRequest) String() string

type ShowHttpGeoIpRulesResponse added in v0.1.120

type ShowHttpGeoIpRulesResponse struct {

	// 策略下防护规则数量
	Total *int32 `json:"total,omitempty"`

	// 防护规则列表
	Items          *[]ShowHttpGeoIpRuleResponseBody `json:"items,omitempty"`
	HttpStatusCode int                              `json:"-"`
}

ShowHttpGeoIpRulesResponse Response Object

func (ShowHttpGeoIpRulesResponse) String added in v0.1.120

type ShowHttpIgnoreRuleRequest added in v0.1.120

type ShowHttpIgnoreRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

ShowHttpIgnoreRuleRequest Request Object

func (ShowHttpIgnoreRuleRequest) String added in v0.1.120

func (o ShowHttpIgnoreRuleRequest) String() string

type ShowHttpIgnoreRuleResponse added in v0.1.120

type ShowHttpIgnoreRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 误报路径
	Url *string `json:"url,omitempty"`

	// 规则编号
	Rule *string `json:"rule,omitempty"`

	// 误报屏蔽模式,默认为0即旧模式
	Mode *int32 `json:"mode,omitempty"`

	// 域名列表
	Domains *[]string `json:"domains,omitempty"`

	// 屏蔽规则url类型(前缀:prefix,等于:equal)
	UrlLogic *string `json:"url_logic,omitempty"`

	Advanced *HttpIgnoreRuleCondition `json:"advanced,omitempty"`

	// 命中条件
	Conditions *[]HttpIgnoreRuleCondition `json:"conditions,omitempty"`

	// 命中次数
	HitNum *int32 `json:"hit_num,omitempty"`

	// 最后更新时间戳
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 上一次命中次数清零时间戳
	ClearTime      *int64 `json:"clear_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowHttpIgnoreRuleResponse Response Object

func (ShowHttpIgnoreRuleResponse) String added in v0.1.120

type ShowHttpIgnoreRuleResponseBody added in v0.1.120

type ShowHttpIgnoreRuleResponseBody struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 误报路径
	Url *string `json:"url,omitempty"`

	// 规则编号
	Rule *string `json:"rule,omitempty"`

	// 误报屏蔽模式,默认为0即旧模式
	Mode *int32 `json:"mode,omitempty"`

	// 域名列表
	Domains *[]string `json:"domains,omitempty"`

	// 屏蔽规则url类型(前缀:prefix,等于:equal)
	UrlLogic *string `json:"url_logic,omitempty"`

	Advanced *HttpIgnoreRuleCondition `json:"advanced,omitempty"`

	// 命中条件
	Conditions *[]HttpIgnoreRuleCondition `json:"conditions,omitempty"`

	// 命中次数
	HitNum *int32 `json:"hit_num,omitempty"`

	// 最后更新时间戳
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 上一次命中次数清零时间戳
	ClearTime *int64 `json:"clear_time,omitempty"`
}

func (ShowHttpIgnoreRuleResponseBody) String added in v0.1.120

type ShowHttpIgnoreRulesRequest added in v0.1.120

type ShowHttpIgnoreRulesRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页显示pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`

	// 不检测模块类型
	Rule *string `json:"rule,omitempty"`
}

ShowHttpIgnoreRulesRequest Request Object

func (ShowHttpIgnoreRulesRequest) String added in v0.1.120

type ShowHttpIgnoreRulesResponse added in v0.1.120

type ShowHttpIgnoreRulesResponse struct {

	// 策略下防护规则数量
	Total *int32 `json:"total,omitempty"`

	// 防护规则列表
	Items          *[]ShowHttpIgnoreRuleResponseBody `json:"items,omitempty"`
	HttpStatusCode int                               `json:"-"`
}

ShowHttpIgnoreRulesResponse Response Object

func (ShowHttpIgnoreRulesResponse) String added in v0.1.120

type ShowHttpIpGroupRequest added in v0.1.120

type ShowHttpIpGroupRequest struct {

	// IP地址组id
	IpGroupId string `json:"ip_group_id"`
}

ShowHttpIpGroupRequest Request Object

func (ShowHttpIpGroupRequest) String added in v0.1.120

func (o ShowHttpIpGroupRequest) String() string

type ShowHttpIpGroupResponse added in v0.1.120

type ShowHttpIpGroupResponse struct {

	// IP地址组id
	Id *string `json:"id,omitempty"`

	// IP地址组名称
	Name *string `json:"name,omitempty"`

	// IP地址/地址段
	Ips *string `json:"ips,omitempty"`

	// IP地址/地址段大小
	Size *string `json:"size,omitempty"`

	// IP地址组备注
	Description *string `json:"description,omitempty"`

	// 创建IP地址组的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 使用IP地址组的策略和规则列表
	Rules          *[]HttpRuleInfo `json:"rules,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowHttpIpGroupResponse Response Object

func (ShowHttpIpGroupResponse) String added in v0.1.120

func (o ShowHttpIpGroupResponse) String() string

type ShowHttpIpGroupResponseBody added in v0.1.120

type ShowHttpIpGroupResponseBody struct {

	// IP地址组id
	Id *string `json:"id,omitempty"`

	// IP地址组名称
	Name *string `json:"name,omitempty"`

	// IP地址/地址段
	Ips *string `json:"ips,omitempty"`

	// IP地址/地址段大小
	Size *string `json:"size,omitempty"`

	// IP地址组备注
	Description *string `json:"description,omitempty"`

	// 创建IP地址组的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 使用IP地址组的策略和规则列表
	Rules *[]HttpRuleInfo `json:"rules,omitempty"`
}

ShowHttpIpGroupResponseBody IP地址组详情

func (ShowHttpIpGroupResponseBody) String added in v0.1.120

type ShowHttpIpGroupsRequest added in v0.1.120

type ShowHttpIpGroupsRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页显示pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`

	// IP地址组名称
	Name *string `json:"name,omitempty"`

	// IP地址/地址段
	Ip *string `json:"ip,omitempty"`
}

ShowHttpIpGroupsRequest Request Object

func (ShowHttpIpGroupsRequest) String added in v0.1.120

func (o ShowHttpIpGroupsRequest) String() string

type ShowHttpIpGroupsResponse added in v0.1.120

type ShowHttpIpGroupsResponse struct {

	// 全部IP地址组的数量
	Total *int32 `json:"total,omitempty"`

	// 详细的IP地址组信息
	Items          *[]ShowHttpIpGroupResponseBody `json:"items,omitempty"`
	HttpStatusCode int                            `json:"-"`
}

ShowHttpIpGroupsResponse Response Object

func (ShowHttpIpGroupsResponse) String added in v0.1.120

func (o ShowHttpIpGroupsResponse) String() string

type ShowHttpOverviewsRequest added in v0.1.120

type ShowHttpOverviewsRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 起始时间
	From int64 `json:"from"`

	// 结束时间
	To int64 `json:"to"`

	// 要查询的前几的结果
	Top *int32 `json:"top,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`
}

ShowHttpOverviewsRequest Request Object

func (ShowHttpOverviewsRequest) String added in v0.1.120

func (o ShowHttpOverviewsRequest) String() string

type ShowHttpOverviewsResponse added in v0.1.120

type ShowHttpOverviewsResponse struct {
	Domain *DomainClassificationItem `json:"domain,omitempty"`

	AttackType *AttackTypeClassificationItem `json:"attack_type,omitempty"`

	Ip *IpClassificationItem `json:"ip,omitempty"`

	Url *UrlClassificationItem `json:"url,omitempty"`

	Geo            *GeoClassificationItem `json:"geo,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowHttpOverviewsResponse Response Object

func (ShowHttpOverviewsResponse) String added in v0.1.120

func (o ShowHttpOverviewsResponse) String() string

type ShowHttpPoliciesRequest added in v0.1.116

type ShowHttpPoliciesRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页显示pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`

	// 模糊查询策略名称
	Name *string `json:"name,omitempty"`

	// 根据域名模糊查询策略
	Hostname *string `json:"hostname,omitempty"`
}

ShowHttpPoliciesRequest Request Object

func (ShowHttpPoliciesRequest) String added in v0.1.116

func (o ShowHttpPoliciesRequest) String() string

type ShowHttpPoliciesResponse added in v0.1.116

type ShowHttpPoliciesResponse struct {

	// 防护策略的数量
	Total *int32 `json:"total,omitempty"`

	// 防护策略的具体内容
	Items          *[]ShowHttpPolicyResponseBody `json:"items,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

ShowHttpPoliciesResponse Response Object

func (ShowHttpPoliciesResponse) String added in v0.1.116

func (o ShowHttpPoliciesResponse) String() string

type ShowHttpPolicyRequest added in v0.1.116

type ShowHttpPolicyRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`
}

ShowHttpPolicyRequest Request Object

func (ShowHttpPolicyRequest) String added in v0.1.116

func (o ShowHttpPolicyRequest) String() string

type ShowHttpPolicyResponse added in v0.1.116

type ShowHttpPolicyResponse struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

ShowHttpPolicyResponse Response Object

func (ShowHttpPolicyResponse) String added in v0.1.116

func (o ShowHttpPolicyResponse) String() string

type ShowHttpPolicyResponseBody added in v0.1.116

type ShowHttpPolicyResponseBody struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
}

func (ShowHttpPolicyResponseBody) String added in v0.1.116

type ShowHttpPunishmentRuleRequest added in v0.1.120

type ShowHttpPunishmentRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`
}

ShowHttpPunishmentRuleRequest Request Object

func (ShowHttpPunishmentRuleRequest) String added in v0.1.120

type ShowHttpPunishmentRuleResponse added in v0.1.120

type ShowHttpPunishmentRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 拦截类型,可选值为:long_ip_block(长时间IP拦截)、long_cookie_block(长时间Cookie拦截)、long_params_block(长时间Params拦截)、short_ip_block(短时间IP拦截)、short_cookie_block(短时间Cookie拦截)、short_params_block(短时间Params拦截)
	Category *string `json:"category,omitempty"`

	// 拦截时长
	BlockTime      *int32 `json:"block_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowHttpPunishmentRuleResponse Response Object

func (ShowHttpPunishmentRuleResponse) String added in v0.1.120

type ShowHttpPunishmentRuleResponseBody added in v0.1.120

type ShowHttpPunishmentRuleResponseBody struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 拦截类型,可选值为:long_ip_block(长时间IP拦截)、long_cookie_block(长时间Cookie拦截)、long_params_block(长时间Params拦截)、short_ip_block(短时间IP拦截)、short_cookie_block(短时间Cookie拦截)、short_params_block(短时间Params拦截)
	Category *string `json:"category,omitempty"`

	// 拦截时长
	BlockTime *int32 `json:"block_time,omitempty"`
}

func (ShowHttpPunishmentRuleResponseBody) String added in v0.1.120

type ShowHttpPunishmentRulesRequest added in v0.1.120

type ShowHttpPunishmentRulesRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页显示pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ShowHttpPunishmentRulesRequest Request Object

func (ShowHttpPunishmentRulesRequest) String added in v0.1.120

type ShowHttpPunishmentRulesResponse added in v0.1.120

type ShowHttpPunishmentRulesResponse struct {

	// 策略下防护规则数量
	Total *int32 `json:"total,omitempty"`

	// 防护规则列表
	Items          *[]ShowHttpPunishmentRuleResponseBody `json:"items,omitempty"`
	HttpStatusCode int                                   `json:"-"`
}

ShowHttpPunishmentRulesResponse Response Object

func (ShowHttpPunishmentRulesResponse) String added in v0.1.120

type ShowHttpReferenceTableResponseBody added in v0.1.120

type ShowHttpReferenceTableResponseBody struct {

	// 引用表id
	Id *string `json:"id,omitempty"`

	// 引用表名称
	Name *string `json:"name,omitempty"`

	// 引用表类型
	Type *string `json:"type,omitempty"`

	// 引用表描述
	Description *string `json:"description,omitempty"`

	// 引用表时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 引用表的值
	Values *[]string `json:"values,omitempty"`

	// 创建来源
	Producer *int32 `json:"producer,omitempty"`
}

func (ShowHttpReferenceTableResponseBody) String added in v0.1.120

type ShowHttpReferenceTablesRequest added in v0.1.120

type ShowHttpReferenceTablesRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`

	// 模糊查询引用表名称
	Name *string `json:"name,omitempty"`
}

ShowHttpReferenceTablesRequest Request Object

func (ShowHttpReferenceTablesRequest) String added in v0.1.120

type ShowHttpReferenceTablesResponse added in v0.1.120

type ShowHttpReferenceTablesResponse struct {

	// 引用表数量
	Total *int32 `json:"total,omitempty"`

	// 引用表列表
	Items          *[]ShowHttpReferenceTableResponseBody `json:"items,omitempty"`
	HttpStatusCode int                                   `json:"-"`
}

ShowHttpReferenceTablesResponse Response Object

func (ShowHttpReferenceTablesResponse) String added in v0.1.120

type ShowHttpStatisticsRequest added in v0.1.120

type ShowHttpStatisticsRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 起始时间
	From int64 `json:"from"`

	// 结束时间
	To int64 `json:"to"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`
}

ShowHttpStatisticsRequest Request Object

func (ShowHttpStatisticsRequest) String added in v0.1.120

func (o ShowHttpStatisticsRequest) String() string

type ShowHttpStatisticsResponse added in v0.1.120

type ShowHttpStatisticsResponse struct {

	// 安全统计数据
	Body           *[]HttpStatisticsItem `json:"body,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

ShowHttpStatisticsResponse Response Object

func (ShowHttpStatisticsResponse) String added in v0.1.120

type TimeRangeItem added in v0.1.120

type TimeRangeItem struct {

	// period每日生效时间区间开始
	St *int32 `json:"st,omitempty"`

	// period每日生效时间区间结束
	End *int32 `json:"end,omitempty"`
}

TimeRangeItem period每日生效时间区间

func (TimeRangeItem) String added in v0.1.120

func (o TimeRangeItem) String() string

type TimeStatItem added in v0.1.120

type TimeStatItem struct {

	// 时间戳,按时间粒度向左对齐。例如时间粒度为5分钟级,统计[19:10,19:15),则该时间戳为19:10时刻时间
	Key int64 `json:"key"`

	// 攻击请求数
	Value int64 `json:"value"`
}

TimeStatItem 时间统计模型

func (TimeStatItem) String added in v0.1.120

func (o TimeStatItem) String() string

type UpdateDomainRequest added in v0.1.120

type UpdateDomainRequest struct {

	// 域名
	DomainId string `json:"domain_id"`

	Body *UpdateDomainRequestBody `json:"body,omitempty"`
}

UpdateDomainRequest Request Object

func (UpdateDomainRequest) String added in v0.1.120

func (o UpdateDomainRequest) String() string

type UpdateDomainRequestBody

type UpdateDomainRequestBody struct {

	// 防护状态:防护中-on;未防护-off
	ProtectStatus *string `json:"protect_status,omitempty"`

	// 域名描述
	Description *string `json:"description,omitempty"`
}

UpdateDomainRequestBody 更新防护域名的请求

func (UpdateDomainRequestBody) String

func (o UpdateDomainRequestBody) String() string

type UpdateDomainResponse added in v0.1.120

type UpdateDomainResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateDomainResponse Response Object

func (UpdateDomainResponse) String added in v0.1.120

func (o UpdateDomainResponse) String() string

type UpdateHttpAccessControlRuleRequest added in v0.1.120

type UpdateHttpAccessControlRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`

	Body *UpdateHttpAccessControlRuleRequestBody `json:"body,omitempty"`
}

UpdateHttpAccessControlRuleRequest Request Object

func (UpdateHttpAccessControlRuleRequest) String added in v0.1.120

type UpdateHttpAccessControlRuleRequestBody added in v0.1.120

type UpdateHttpAccessControlRuleRequestBody struct {

	// 规则名称
	Name string `json:"name"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 是否设定生效时间
	Time bool `json:"time"`

	// 生效时间
	Start *int64 `json:"start,omitempty"`

	// 失效时间
	Terminal *int64 `json:"terminal,omitempty"`

	// 优先级
	Priority int32 `json:"priority"`

	// 命中条件
	Conditions []HttpAccessControlRuleCondition `json:"conditions"`

	Action *HttpRuleAction `json:"action"`
}

func (UpdateHttpAccessControlRuleRequestBody) String added in v0.1.120

type UpdateHttpAccessControlRuleResponse added in v0.1.120

type UpdateHttpAccessControlRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 是否设定生效时间
	Time *bool `json:"time,omitempty"`

	// 生效时间
	Start *int64 `json:"start,omitempty"`

	// 失效时间
	Terminal *int64 `json:"terminal,omitempty"`

	// 优先级
	Priority *int32 `json:"priority,omitempty"`

	// 命中条件
	Conditions *[]HttpAccessControlRuleCondition `json:"conditions,omitempty"`

	Action *HttpRuleAction `json:"action,omitempty"`

	// 创建来源
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateHttpAccessControlRuleResponse Response Object

func (UpdateHttpAccessControlRuleResponse) String added in v0.1.120

type UpdateHttpBlockTrustIpRuleRequest added in v0.1.120

type UpdateHttpBlockTrustIpRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`

	Body *UpdateHttpBlockTrustIpRuleRequestBody `json:"body,omitempty"`
}

UpdateHttpBlockTrustIpRuleRequest Request Object

func (UpdateHttpBlockTrustIpRuleRequest) String added in v0.1.120

type UpdateHttpBlockTrustIpRuleRequestBody added in v0.1.120

type UpdateHttpBlockTrustIpRuleRequestBody struct {

	// 规则名称
	Name string `json:"name"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 规则开关: - 0:关闭 - 1:开启
	Status *int32 `json:"status,omitempty"`

	// ip地址/地址段;ip地址/地址段或者ip地址组id至少有一个
	Addr *string `json:"addr,omitempty"`

	// - 0:拦截 - 1:放行 - 2:仅记录
	White int32 `json:"white"`

	// 攻击惩罚规则id
	FollowedActionId *string `json:"followed_action_id,omitempty"`

	// ip地址组id;ip地址/地址段或者ip地址组id至少有一个
	IpGroupId *string `json:"ip_group_id,omitempty"`
}

func (UpdateHttpBlockTrustIpRuleRequestBody) String added in v0.1.120

type UpdateHttpBlockTrustIpRuleResponse added in v0.1.120

type UpdateHttpBlockTrustIpRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关: - 0:关闭 - 1:开启
	Status *int32 `json:"status,omitempty"`

	// ip地址/地址段
	Addr *string `json:"addr,omitempty"`

	// - 0:拦截 - 1:放行 - 2:仅记录
	White *int32 `json:"white,omitempty"`

	// 攻击惩罚规则id
	FollowedActionId *string `json:"followed_action_id,omitempty"`

	IpGroup        *HttpIpGroup `json:"ip_group,omitempty"`
	HttpStatusCode int          `json:"-"`
}

UpdateHttpBlockTrustIpRuleResponse Response Object

func (UpdateHttpBlockTrustIpRuleResponse) String added in v0.1.120

type UpdateHttpCcRuleRequest added in v0.1.120

type UpdateHttpCcRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// cc规则id
	RuleId string `json:"rule_id"`

	Body *UpdateHttpCcRuleRequestBody `json:"body,omitempty"`
}

UpdateHttpCcRuleRequest Request Object

func (UpdateHttpCcRuleRequest) String added in v0.1.120

func (o UpdateHttpCcRuleRequest) String() string

type UpdateHttpCcRuleRequestBody added in v0.1.120

type UpdateHttpCcRuleRequestBody struct {

	// 规则名称
	Name string `json:"name"`

	// cc规则优先级,越大优先级越高,默认1
	Priority int32 `json:"priority"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// cc规则防护模式,现在只支持创建高级cc规则防护模式。   - 0:标准,只支持对域名的防护路径做限制。  - 1:高级,支持对路径、IP、Cookie、Header、Params字段做限制。
	Mode int32 `json:"mode"`

	// 所有用户的周期内请求次数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 单个用户的周期内请求次数
	LimitNum int32 `json:"limit_num"`

	// 限速周期
	LimitPeriod int32 `json:"limit_period"`

	// 锁定时长
	LockTime *int32 `json:"lock_time,omitempty"`

	// 限速模式:   - ip:IP限速,根据IP区分单个Web访问者。   - cookie:用户限速,根据Cookie键值区分单个Web访问者。   - header:用户限速,根据Header区分单个Web访问者。   - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。   - policy: 策略限速   - domain: 域名限速     - url: url限速
	TagType UpdateHttpCcRuleRequestBodyTagType `json:"tag_type"`

	// 用户标识,当限速模式为用户限速(cookie或header)时,需要传该参数。   - 选择cookie时,设置cookie字段名,即用户需要根据网站实际情况配置唯一可识别Web访问者的cookie中的某属性变量名。用户标识的cookie,不支持正则,必须完全匹配。例如:如果网站使用cookie中的某个字段name唯一标识用户,那么可以选取name字段来区分Web访问者。   - 选择header时,设置需要防护的自定义HTTP首部,即用户需要根据网站实际情况配置可识别Web访问者的HTTP首部。
	TagIndex *string `json:"tag_index,omitempty"`

	TagCondition *HttpCcRuleCondition `json:"tag_condition,omitempty"`

	// 放行次数
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 是否聚合域名
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 区分大小写,默认不区分false,统一存放小写
	ValueCase *bool `json:"value_case,omitempty"`

	// 限速条件
	Conditions []HttpCcRuleCondition `json:"conditions"`

	Action *HttpRuleAction `json:"action"`

	// 生效模式
	TimeMode *UpdateHttpCcRuleRequestBodyTimeMode `json:"time_mode,omitempty"`

	// customize生效时间区间开始
	Start *int64 `json:"start,omitempty"`

	// customize生效时间区间结束
	Terminal *int64 `json:"terminal,omitempty"`

	// period每日生效时间类型,目前只有day
	PeriodType *UpdateHttpCcRuleRequestBodyPeriodType `json:"period_type,omitempty"`

	// period每日生效时间区间
	TimeRange *[]TimeRangeItem `json:"time_range,omitempty"`
}

func (UpdateHttpCcRuleRequestBody) String added in v0.1.120

type UpdateHttpCcRuleRequestBodyPeriodType added in v0.1.120

type UpdateHttpCcRuleRequestBodyPeriodType struct {
	// contains filtered or unexported fields
}

func (UpdateHttpCcRuleRequestBodyPeriodType) MarshalJSON added in v0.1.120

func (c UpdateHttpCcRuleRequestBodyPeriodType) MarshalJSON() ([]byte, error)

func (*UpdateHttpCcRuleRequestBodyPeriodType) UnmarshalJSON added in v0.1.120

func (c *UpdateHttpCcRuleRequestBodyPeriodType) UnmarshalJSON(b []byte) error

func (UpdateHttpCcRuleRequestBodyPeriodType) Value added in v0.1.120

type UpdateHttpCcRuleRequestBodyPeriodTypeEnum added in v0.1.120

type UpdateHttpCcRuleRequestBodyPeriodTypeEnum struct {
	DAY UpdateHttpCcRuleRequestBodyPeriodType
}

func GetUpdateHttpCcRuleRequestBodyPeriodTypeEnum added in v0.1.120

func GetUpdateHttpCcRuleRequestBodyPeriodTypeEnum() UpdateHttpCcRuleRequestBodyPeriodTypeEnum

type UpdateHttpCcRuleRequestBodyTagType added in v0.1.120

type UpdateHttpCcRuleRequestBodyTagType struct {
	// contains filtered or unexported fields
}

func (UpdateHttpCcRuleRequestBodyTagType) MarshalJSON added in v0.1.120

func (c UpdateHttpCcRuleRequestBodyTagType) MarshalJSON() ([]byte, error)

func (*UpdateHttpCcRuleRequestBodyTagType) UnmarshalJSON added in v0.1.120

func (c *UpdateHttpCcRuleRequestBodyTagType) UnmarshalJSON(b []byte) error

func (UpdateHttpCcRuleRequestBodyTagType) Value added in v0.1.120

type UpdateHttpCcRuleRequestBodyTagTypeEnum added in v0.1.120

type UpdateHttpCcRuleRequestBodyTagTypeEnum struct {
	IP     UpdateHttpCcRuleRequestBodyTagType
	COOKIE UpdateHttpCcRuleRequestBodyTagType
}

func GetUpdateHttpCcRuleRequestBodyTagTypeEnum added in v0.1.120

func GetUpdateHttpCcRuleRequestBodyTagTypeEnum() UpdateHttpCcRuleRequestBodyTagTypeEnum

type UpdateHttpCcRuleRequestBodyTimeMode added in v0.1.120

type UpdateHttpCcRuleRequestBodyTimeMode struct {
	// contains filtered or unexported fields
}

func (UpdateHttpCcRuleRequestBodyTimeMode) MarshalJSON added in v0.1.120

func (c UpdateHttpCcRuleRequestBodyTimeMode) MarshalJSON() ([]byte, error)

func (*UpdateHttpCcRuleRequestBodyTimeMode) UnmarshalJSON added in v0.1.120

func (c *UpdateHttpCcRuleRequestBodyTimeMode) UnmarshalJSON(b []byte) error

func (UpdateHttpCcRuleRequestBodyTimeMode) Value added in v0.1.120

type UpdateHttpCcRuleRequestBodyTimeModeEnum added in v0.1.120

type UpdateHttpCcRuleRequestBodyTimeModeEnum struct {
	PERMANENT UpdateHttpCcRuleRequestBodyTimeMode
	PERIOD    UpdateHttpCcRuleRequestBodyTimeMode
	CUSTOMIZE UpdateHttpCcRuleRequestBodyTimeMode
}

func GetUpdateHttpCcRuleRequestBodyTimeModeEnum added in v0.1.120

func GetUpdateHttpCcRuleRequestBodyTimeModeEnum() UpdateHttpCcRuleRequestBodyTimeModeEnum

type UpdateHttpCcRuleResponse added in v0.1.120

type UpdateHttpCcRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// cc规则优先级,越大优先级越高,默认1
	Priority *int32 `json:"priority,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 规则类型(0:标准/1:高级)
	Mode *int32 `json:"mode,omitempty"`

	// 所有用户的周期内请求次数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 单个用户的周期内请求次数
	LimitNum *int32 `json:"limit_num,omitempty"`

	// 限速周期
	LimitPeriod *int32 `json:"limit_period,omitempty"`

	// 锁定时长
	LockTime *int32 `json:"lock_time,omitempty"`

	// 防护模式
	TagType *string `json:"tag_type,omitempty"`

	// 防护模式标签
	TagIndex *string `json:"tag_index,omitempty"`

	TagCondition *HttpCcRuleCondition `json:"tag_condition,omitempty"`

	// 放行次数
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 是否聚合域名
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 条件列表参数较为复杂,存在级联关系,建议同时使用控制台上的添加误报屏蔽规则,单击F12键查看路径后缀为/cc-rule,方法为POST的请求参数,便于理解参数的填写
	Conditions *[]HttpCcRuleCondition `json:"conditions,omitempty"`

	Action *HttpRuleAction `json:"action,omitempty"`

	// 创建来源
	Producer *int32 `json:"producer,omitempty"`

	// 生效模式
	TimeMode *string `json:"time_mode,omitempty"`

	// customize生效时间区间开始
	Start *int64 `json:"start,omitempty"`

	// customize生效时间区间结束
	Terminal *int64 `json:"terminal,omitempty"`

	// period每日生效时间类型,目前只有day
	PeriodType *string `json:"period_type,omitempty"`

	// period每日生效时间区间
	TimeRange      *[]TimeRangeItem `json:"time_range,omitempty"`
	HttpStatusCode int              `json:"-"`
}

UpdateHttpCcRuleResponse Response Object

func (UpdateHttpCcRuleResponse) String added in v0.1.120

func (o UpdateHttpCcRuleResponse) String() string

type UpdateHttpGeoIpRuleRequest added in v0.1.120

type UpdateHttpGeoIpRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`

	Body *UpdateHttpGeoIpRuleRequestBody `json:"body,omitempty"`
}

UpdateHttpGeoIpRuleRequest Request Object

func (UpdateHttpGeoIpRuleRequest) String added in v0.1.120

type UpdateHttpGeoIpRuleRequestBody added in v0.1.120

type UpdateHttpGeoIpRuleRequestBody struct {

	// 规则名称
	Name string `json:"name"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (北京:CN_BJ,上海:CN_SH,天津:CN_TJ,重庆:CN_CQ,广东:CN_GD,浙江:CN_ZJ,江苏:CN_JS,福建:CN_FJ,吉林:CN_JL,辽宁:CN_LN,台湾:CN_TW,贵州:CN_GZ,安徽:CN_AH,黑龙江:CN_HL,河南:CN_HA,四川:CN_SC,河北:CN_HE,云南:CN_YN,湖北:CN_HB,海南:CN_HI,青海:CN_QH,湖南:CN_HN,江西:CN_JX,山西:CN_SX,陕西:CN_SN,甘肃:CN_GS,山东:CN_SD,澳门:CN_MO,香港:CN_HK,宁夏:CN_NX,广西:CN_GX,新疆:CN_XJ,西藏:CN_XZ,内蒙古:CN_NM,印度:IN,美国:US,印度尼西亚:ID,巴基斯坦:PK,巴西:BR,尼日利亚:NG,孟加拉国:BD,俄罗斯联邦:RU,日本:JP,墨西哥:MX,埃塞俄比亚:ET,菲律宾:PH,埃及:EG,越南:VN,德国:DE,土耳其:TR,泰国:TH,法国:FR,英国:GB,意大利:IT,南非:ZA,缅甸:MM,肯尼亚:KE,坦桑尼亚:TZ,哥伦比亚:CO,西班牙:ES,乌克兰:UA,伊拉克:IQ,波兰:PL,沙特阿拉伯:SA,秘鲁:PE,乌干达:UG,马来西亚:MY,苏丹:SD,罗马尼亚:RO,阿富汗:AF,加拿大:CA,摩洛哥:MA,智利:CL,刚果(金):CD,伊朗:IR,韩国:KR,安哥拉:AO,加纳:GH,莫桑比克:MZ,阿根廷:AR,阿尔及利亚:DZ,尼泊尔:NP,马达加斯加:MG,朝鲜:KP,喀麦隆:CM,科特迪瓦:CI,澳大利亚:AU,荷兰:NL,尼日尔:NE,斯里兰卡:LK,布基纳法索:BF,乌兹别克斯坦:UZ,马里:ML,委内瑞拉:VE,哈萨克斯坦:KZ,马拉维:MW,赞比亚:ZM,也门:YE,比利时:BE,危地马拉:GT,叙利亚:SY,厄瓜多尔:EC,塞内加尔:SN,乍得:TD,索马里:SO,津巴布韦:ZW,几内亚:GN,卢旺达:RW,突尼斯:TN,贝宁:BJ,捷克:CZ,玻利维亚:BO,古巴:CU,布隆迪:BI,海地:HT,柬埔寨:KH,希腊:GR,多米尼加:DO,瑞典:SE,葡萄牙:PT,约旦:JO,南苏丹:SS,阿塞拜疆:AZ,匈牙利:HU,阿联酋:AE,洪都拉斯:HN,白俄罗斯:BY,塔吉克斯坦:TJ,以色列:IL,奥地利:AT,巴布亚新几内亚:PG,瑞士:CH,多哥:TG,塞拉利昂:SL,老挝:LA,保加利亚:BG,塞尔维亚:RS,巴拉圭:PY,黎巴嫩:LB,利比亚:LY,尼加拉瓜:NI,萨尔瓦多:SV,吉尔吉斯斯坦:KG,土库曼斯坦:TM,丹麦:DK,新加坡:SG,芬兰:FI,斯洛伐克:SK,挪威:NO,刚果(布):CG,哥斯达黎加:CR,新西兰:NZ,爱尔兰:IE,阿曼:OM,利比里亚:LR,中非:CF,巴勒斯坦:PS,毛利塔尼亚:MR,巴拿马:PA,科威特:KW,克罗地亚:HR,格鲁吉亚:GE,摩尔多瓦:MD,乌拉圭:UY,波黑:BA,波多黎各:PR,蒙古:MN,亚美尼亚:AM,牙买加:JM,阿尔巴尼亚:AL,立陶宛:LT,卡塔尔:QA,纳米比亚:NA,冈比亚:GM,博茨瓦纳:BW,加蓬:GA,莱索托:LS,前南马其顿:MK,斯洛文尼亚:SI,拉脱维亚:LV,几内亚比绍:GW,科索沃:XK,巴林:BH,特立尼达和多巴哥:TT,爱沙尼亚:EE,赤道几内亚:GQ,东帝汶:TL,毛里求斯:MU,塞浦路斯:CY,斯威士兰:SZ,吉布提:DJ,斐济:FJ,留尼汪:RE,科摩罗:KM,圭亚那:GY,不丹:BT,所罗门群岛:SB,黑山:ME,卢森堡:LU,苏里南:SR,佛得角:CV,马尔代夫:MV,西撒哈拉:EH,马耳他:MT,文莱:BN,瓜德罗普:GP,巴哈马:BS,伯利兹:BZ,马提尼克:MQ,冰岛:IS,法属圭亚那:GF,瓦努阿图:VU,巴巴多斯:BB,新喀里多尼亚:NC,法属波利尼西亚:PF,马约特:YT,荷属安的列斯:AN,圣多美和普林西比:ST,萨摩亚:WS,圣卢西亚:LC,关岛:GU,库拉索:CW,基里巴斯:KI,密克罗尼西亚联邦:FM,格林纳达:GD,圣文森特和格林纳丁斯:VC,美属维尔京群岛:VI,泽西岛:JE,阿鲁巴:AW,汤加:TO,塞舌尔:SC,安提瓜和巴布达:AG,英国属地曼岛:IM,安道尔:AD,多米尼克:DM,开曼群岛:KY,百慕大:BM,格恩西岛:GG,马绍尔群岛:MH,北马里亚纳:MP,格陵兰:GL,美属萨摩亚:AS,圣基茨和尼维斯:KN,法罗群岛:FO,荷属圣马丁:SX,摩纳哥:MC,列支敦士登:LI,特克斯和凯科斯群岛:TC,法属圣马丁:MF,圣马力诺:SM,直布罗陀:GI,英属维尔京群岛:VG,奥兰群岛:AX,博奈尔:BQ,帕劳:PW,库克群岛:CK,安圭拉:AI,瑙鲁:NR,瓦利斯和富图纳:WF,图瓦卢:TV,圣巴泰勒米:BL,圣皮埃尔和密克隆:PM,蒙特塞拉特:MS,圣赫勒拿:SH,福克兰群岛(马尔维纳斯):FK,诺福克岛:NF,纽埃:NU,托克劳:TK,圣诞岛:CX,梵蒂冈:VA,科科斯(基林)群岛:CC,美国本土外小岛屿:UM,皮特凯恩:PN,南乔治亚岛和南桑德韦奇岛:GS,南极洲:AQ,布维岛:BV,厄立特里亚:ER,赫德岛和麦克唐纳岛:HM,英属印度洋领地:IO,法属南部领地:TF,斯瓦尔巴岛和扬马延岛:SJ)
	GeoIp string `json:"geo_ip"`

	// 防护动作:  - 0 拦截  - 1 放行  - 2 仅记录
	White int32 `json:"white"`
}

func (UpdateHttpGeoIpRuleRequestBody) String added in v0.1.120

type UpdateHttpGeoIpRuleResponse added in v0.1.120

type UpdateHttpGeoIpRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 地理位置
	GeoIp *string `json:"geo_ip,omitempty"`

	// 地理位置列表
	GeoTagList *[]string `json:"geo_tag_list,omitempty"`

	// 拦截/放行/仅记录
	White          *int32 `json:"white,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateHttpGeoIpRuleResponse Response Object

func (UpdateHttpGeoIpRuleResponse) String added in v0.1.120

type UpdateHttpIgnoreRuleRequest added in v0.1.120

type UpdateHttpIgnoreRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`

	Body *UpdateHttpIgnoreRuleRequestBody `json:"body,omitempty"`
}

UpdateHttpIgnoreRuleRequest Request Object

func (UpdateHttpIgnoreRuleRequest) String added in v0.1.120

type UpdateHttpIgnoreRuleRequestBody added in v0.1.120

type UpdateHttpIgnoreRuleRequestBody struct {

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 误报路径
	Url *string `json:"url,omitempty"`

	// 需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔   - 当需要屏蔽某一条内置规则时,该参数值为该内置规则id,可以在Web应用防火墙控制台的防护策略->策略名称->Web基础防护的高级设置->防护规则中查询;也可以在防护事件的事件详情中查询内置规则id   - 当需要屏蔽web基础防护某一类规则时,该参数值为需要屏蔽的web基础防护某一类规则名。其中,xss:xss攻击;webshell:网站木马;vuln:其他类型攻击;sqli:sql注入攻击;robot:恶意爬虫;rfi:远程文件包含;lfi:本地文件包含;cmdi:命令注入攻击   - 当需要屏蔽Web基础防护模块,该参数值为:all   - 当需要屏蔽规则为所有检测模块时,该参数值为:bypass
	Rule string `json:"rule"`

	// 误报屏蔽模式,默认为0即旧模式
	Mode int32 `json:"mode"`

	// 防护域名或防护网站,数组长度为0时,代表规则对全部域名或防护网站生效
	Domains []string `json:"domains"`

	// 屏蔽规则url类型(前缀:prefix,等于:equal)
	UrlLogic *string `json:"url_logic,omitempty"`

	Advanced *HttpIgnoreRuleCondition `json:"advanced,omitempty"`

	// 命中条件
	Conditions []HttpIgnoreRuleCondition `json:"conditions"`
}

func (UpdateHttpIgnoreRuleRequestBody) String added in v0.1.120

type UpdateHttpIgnoreRuleResponse added in v0.1.120

type UpdateHttpIgnoreRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则名称
	Name *string `json:"name,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 规则所在策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 规则开关状态
	Status *int32 `json:"status,omitempty"`

	// 误报路径
	Url *string `json:"url,omitempty"`

	// 规则编号
	Rule *string `json:"rule,omitempty"`

	// 误报屏蔽模式,默认为0即旧模式
	Mode *int32 `json:"mode,omitempty"`

	// 域名列表
	Domains *[]string `json:"domains,omitempty"`

	// 屏蔽规则url类型(前缀:prefix,等于:equal)
	UrlLogic *string `json:"url_logic,omitempty"`

	Advanced *HttpIgnoreRuleCondition `json:"advanced,omitempty"`

	// 命中条件
	Conditions *[]HttpIgnoreRuleCondition `json:"conditions,omitempty"`

	// 命中次数
	HitNum *int32 `json:"hit_num,omitempty"`

	// 最后更新时间戳
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 上一次命中次数清零时间戳
	ClearTime      *int64 `json:"clear_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateHttpIgnoreRuleResponse Response Object

func (UpdateHttpIgnoreRuleResponse) String added in v0.1.120

type UpdateHttpIpGroupRequest added in v0.1.120

type UpdateHttpIpGroupRequest struct {

	// IP地址组id
	IpGroupId string `json:"ip_group_id"`

	Body *UpdateHttpIpGroupRequestBody `json:"body,omitempty"`
}

UpdateHttpIpGroupRequest Request Object

func (UpdateHttpIpGroupRequest) String added in v0.1.120

func (o UpdateHttpIpGroupRequest) String() string

type UpdateHttpIpGroupRequestBody added in v0.1.120

type UpdateHttpIpGroupRequestBody struct {

	// IP地址组名称
	Name string `json:"name"`

	// IP地址/地址段
	Ips string `json:"ips"`

	// IP地址组备注,最长512字符
	Description *string `json:"description,omitempty"`
}

UpdateHttpIpGroupRequestBody 更新IP地址组的请求

func (UpdateHttpIpGroupRequestBody) String added in v0.1.120

type UpdateHttpIpGroupResponse added in v0.1.120

type UpdateHttpIpGroupResponse struct {

	// IP地址组id
	Id *string `json:"id,omitempty"`

	// IP地址组名称
	Name *string `json:"name,omitempty"`

	// IP地址/地址段
	Ips *string `json:"ips,omitempty"`

	// IP地址/地址段大小
	Size *string `json:"size,omitempty"`

	// IP地址组备注
	Description *string `json:"description,omitempty"`

	// 创建IP地址组的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 使用IP地址组的策略和规则列表
	Rules          *[]HttpRuleInfo `json:"rules,omitempty"`
	HttpStatusCode int             `json:"-"`
}

UpdateHttpIpGroupResponse Response Object

func (UpdateHttpIpGroupResponse) String added in v0.1.120

func (o UpdateHttpIpGroupResponse) String() string

type UpdateHttpPolicyRequest added in v0.1.116

type UpdateHttpPolicyRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`

	Body *UpdateHttpPolicyRequestBody `json:"body,omitempty"`
}

UpdateHttpPolicyRequest Request Object

func (UpdateHttpPolicyRequest) String added in v0.1.116

func (o UpdateHttpPolicyRequest) String() string

type UpdateHttpPolicyRequestBody added in v0.1.116

type UpdateHttpPolicyRequestBody struct {

	// 防护策略名
	Name *string `json:"name,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	ThirdBotOptions *HttpThirdBotOptions `json:"third_bot_options,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`
}

func (UpdateHttpPolicyRequestBody) String added in v0.1.116

type UpdateHttpPolicyResponse added in v0.1.116

type UpdateHttpPolicyResponse struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

UpdateHttpPolicyResponse Response Object

func (UpdateHttpPolicyResponse) String added in v0.1.116

func (o UpdateHttpPolicyResponse) String() string

type UpdateHttpPolicyRuleStatusRequest added in v0.1.116

type UpdateHttpPolicyRuleStatusRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`

	// 防护策略规则 cc-rule|access-control-rule|blocktrustip-rule|privacy-rule|ignore-rule|geoip-rule|punishment-rule
	RuleType string `json:"rule_type"`

	// 防护策略规则id
	RuleId string `json:"rule_id"`

	Body *UpdateHttpPolicyRuleStatusRequestBody `json:"body,omitempty"`
}

UpdateHttpPolicyRuleStatusRequest Request Object

func (UpdateHttpPolicyRuleStatusRequest) String added in v0.1.116

type UpdateHttpPolicyRuleStatusRequestBody added in v0.1.116

type UpdateHttpPolicyRuleStatusRequestBody struct {

	// 0-关闭 1-开启
	Status int32 `json:"status"`
}

func (UpdateHttpPolicyRuleStatusRequestBody) String added in v0.1.116

type UpdateHttpPolicyRuleStatusResponse added in v0.1.116

type UpdateHttpPolicyRuleStatusResponse struct {

	// 规则类别
	Category *string `json:"category,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	// 规则id
	Id *string `json:"id,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则状态
	Status *int32 `json:"status,omitempty"`

	// 规则添加时间
	Timestamp      float32 `json:"timestamp,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateHttpPolicyRuleStatusResponse Response Object

func (UpdateHttpPolicyRuleStatusResponse) String added in v0.1.116

type UpdateHttpPunishmentRuleRequest added in v0.1.120

type UpdateHttpPunishmentRuleRequest struct {

	// 策略id
	PolicyId string `json:"policy_id"`

	// 防护规则id
	RuleId string `json:"rule_id"`

	Body *UpdateHttpPunishmentRuleRequestBody `json:"body,omitempty"`
}

UpdateHttpPunishmentRuleRequest Request Object

func (UpdateHttpPunishmentRuleRequest) String added in v0.1.120

type UpdateHttpPunishmentRuleRequestBody added in v0.1.120

type UpdateHttpPunishmentRuleRequestBody struct {

	// 规则描述,最长512字符
	Description *string `json:"description,omitempty"`

	// 拦截时间,如果选择前缀为long的攻击惩罚类别,则block_time时长范围设置为301-1800;选择前缀为short的攻击惩罚类别,则block_time时长范围为1-300之间
	BlockTime int32 `json:"block_time"`
}

func (UpdateHttpPunishmentRuleRequestBody) String added in v0.1.120

type UpdateHttpPunishmentRuleResponse added in v0.1.120

type UpdateHttpPunishmentRuleResponse struct {

	// 规则id
	Id *string `json:"id,omitempty"`

	// 规则所在策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 创建规则时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	// 拦截类型,可选值为:long_ip_block(长时间IP拦截)、long_cookie_block(长时间Cookie拦截)、long_params_block(长时间Params拦截)、short_ip_block(短时间IP拦截)、short_cookie_block(短时间Cookie拦截)、short_params_block(短时间Params拦截)
	Category *string `json:"category,omitempty"`

	// 拦截时长
	BlockTime      *int32 `json:"block_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateHttpPunishmentRuleResponse Response Object

func (UpdateHttpPunishmentRuleResponse) String added in v0.1.120

type UpdateHttpReferenceTableRequest added in v0.1.120

type UpdateHttpReferenceTableRequest struct {

	// 引用表id
	TableId string `json:"table_id"`

	Body *UpdateHttpReferenceTableRequestBody `json:"body,omitempty"`
}

UpdateHttpReferenceTableRequest Request Object

func (UpdateHttpReferenceTableRequest) String added in v0.1.120

type UpdateHttpReferenceTableRequestBody added in v0.1.120

type UpdateHttpReferenceTableRequestBody struct {

	// 引用表名称
	Name string `json:"name"`

	// 引用表类型,可选值为:url、params、ip、cookie、referer、user-agent、header、response_code、response_header、response_body。
	Type string `json:"type"`

	// 引用表的值
	Values []string `json:"values"`

	// 引用表描述,最长128字符
	Description *string `json:"description,omitempty"`
}

func (UpdateHttpReferenceTableRequestBody) String added in v0.1.120

type UpdateHttpReferenceTableResponse added in v0.1.120

type UpdateHttpReferenceTableResponse struct {

	// 引用表id
	Id *string `json:"id,omitempty"`

	// 引用表名称
	Name *string `json:"name,omitempty"`

	// 引用表类型
	Type *string `json:"type,omitempty"`

	// 引用表描述
	Description *string `json:"description,omitempty"`

	// 引用表时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 引用表的值
	Values *[]string `json:"values,omitempty"`

	// 创建来源
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateHttpReferenceTableResponse Response Object

func (UpdateHttpReferenceTableResponse) String added in v0.1.120

type UrlClassificationItem added in v0.1.120

type UrlClassificationItem struct {

	// UrlItem的总数量
	Total *int32 `json:"total,omitempty"`

	// UrlItem详细信息
	Items *[]UrlItem `json:"items,omitempty"`
}

func (UrlClassificationItem) String added in v0.1.120

func (o UrlClassificationItem) String() string

type UrlItem added in v0.1.120

type UrlItem struct {

	// url路径
	Key *string `json:"key,omitempty"`

	// 数量
	Num *int32 `json:"num,omitempty"`

	// 域名
	Host *string `json:"host,omitempty"`
}

UrlItem 受攻击URL统计

func (UrlItem) String added in v0.1.120

func (o UrlItem) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL