model

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessProgress

type AccessProgress struct {

	// 步骤   - 1: 指回源IP加白   - 2: 指本地验证   - 3:指修改DNS解析
	Step *int32 `json:"step,omitempty"`

	// 状态,0:未完成这个步骤;1:已完成这个状态”
	Status *int32 `json:"status,omitempty"`
}

AccessProgress 冗余参数,仅用于新版console(前端)使用

func (AccessProgress) String

func (o AccessProgress) String() string

type Action

type Action struct {

	// 特征反爬虫中防护动作信息   - log:仅记录   - block:拦截
	Category *string `json:"category,omitempty"`
}

Action 用来保存网站反爬虫中特征反爬虫的防护动作信息

func (Action) String

func (o Action) String() string

type Advanced

type Advanced struct {

	// 字段类型,支持的字段类型有:Params、Cookie、Header、Body、Multipart。   - 当选择“Params”、“Cookie”或者“Header”字段时,可以配置“全部”或根据需求配置子字段   - 当选择“Body”或“Multipart”字段时,可以配置“全部”
	Index *string `json:"index,omitempty"`

	// 指定字段类型的子字段,默认值为“全部”
	Contensts *[]string `json:"contensts,omitempty"`
}

Advanced 若想忽略来源于某攻击事件下指定字段的攻击,可在“高级设置”里选择指定字段进行配置,配置完成后,WAF将不再拦截指定字段的攻击事件。当时,当不检测模块为所有检测模块时,不支持配置该高级配置。

func (Advanced) String

func (o Advanced) String() string

type AlertNoticeConfigResponse

type AlertNoticeConfigResponse struct {

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

	// 告警通知名称
	Name *string `json:"name,omitempty"`

	// 是否开启   - false: 不开启   - true: 开启
	Enabled *bool `json:"enabled,omitempty"`

	// 主题
	TopicUrn *string `json:"topic_urn,omitempty"`

	// 时间间隔,单位为分钟。当通知类型为防护事件时,该参数表示在该时间间隔内,攻击次数等于或者大于设定阈值时,将发送告警通知,支持的值:5、15、30、60、120、360、720、1440;当通知类型为证书到期时,该参数表示每隔多长时间发送一次告警通知,支持的值1天、1周(需要转换成分钟)。
	Sendfreq *int32 `json:"sendfreq,omitempty"`

	// 语言
	Locale *string `json:"locale,omitempty"`

	// 当通知类型为防护事件时,需要填写该参数。在该时间间隔内,当攻击次数大于或等于您设置的阈值时才会发送告警通知
	Times *int32 `json:"times,omitempty"`

	// 事件类型
	Threat *[]string `json:"threat,omitempty"`

	// 预留参数,可忽略
	PreferHtml *bool `json:"prefer_html,omitempty"`

	// 通知类型
	NoticeClass *string `json:"notice_class,omitempty"`

	// 提前通知天数
	NearlyExpiredTime *string `json:"nearly_expired_time,omitempty"`

	// 是否是所有企业项目
	IsAllEnterpriseProject *bool `json:"is_all_enterprise_project,omitempty"`

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

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

func (AlertNoticeConfigResponse) String

func (o AlertNoticeConfigResponse) String() string

type AlterWafProductInfo

type AlterWafProductInfo struct {

	// waf规格   - detection: 入门版   - professional:标准版   - enterprise:专业版   ultimate:铂金版
	ResourceSpecCode *string `json:"resource_spec_code,omitempty"`
}

func (AlterWafProductInfo) String

func (o AlterWafProductInfo) String() string

type AntiTamperRuleResponseBody

type AntiTamperRuleResponseBody struct {

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

	// 该规则所属防护策略的id
	Policyid *string `json:"policyid,omitempty"`

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

	// 该规则备注
	Description *string `json:"description,omitempty"`

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

	// 防篡改的域名
	Hostname *string `json:"hostname,omitempty"`

	// 防篡改的url
	Url *string `json:"url,omitempty"`
}

func (AntiTamperRuleResponseBody) String

type AnticrawlerCondition

type AnticrawlerCondition struct {

	// 字段类型
	Category *AnticrawlerConditionCategory `json:"category,omitempty"`

	// 条件列表匹配逻辑, 包括:contain、not_contain、equal、not_equal、prefix、not_prefix、suffix、not_suffix、contain_any、not_contain_all、equal_any、not_equal_all、prefix_any、not_prefix_all、suffix_any、not_suffix_all
	LogicOperation *string `json:"logic_operation,omitempty"`

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

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

func (AnticrawlerCondition) String

func (o AnticrawlerCondition) String() string

type AnticrawlerConditionCategory

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

func (AnticrawlerConditionCategory) MarshalJSON

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

func (*AnticrawlerConditionCategory) UnmarshalJSON

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

func (AnticrawlerConditionCategory) Value

type AnticrawlerConditionCategoryEnum

type AnticrawlerConditionCategoryEnum struct {
	URL        AnticrawlerConditionCategory
	USER_AGENT AnticrawlerConditionCategory
}

func GetAnticrawlerConditionCategoryEnum

func GetAnticrawlerConditionCategoryEnum() AnticrawlerConditionCategoryEnum

type AnticrawlerRule

type AnticrawlerRule struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 匹配条件列表
	Conditions *[]AnticrawlerCondition `json:"conditions,omitempty"`

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

	// JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
	Type *string `json:"type,omitempty"`

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

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

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

func (AnticrawlerRule) String

func (o AnticrawlerRule) String() string

type ApplyCertificateToHostRequest

type ApplyCertificateToHostRequest struct {

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

	// https证书id,您可以通过调用查询证书列表(ListCertificates)接口获取证书id
	CertificateId string `json:"certificate_id"`

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

ApplyCertificateToHostRequest Request Object

func (ApplyCertificateToHostRequest) String

type ApplyCertificateToHostRequestBody

type ApplyCertificateToHostRequestBody struct {

	// 云模式HTTPS域名id,通过查询云模式防护域名列表(ListHost)接口获取
	CloudHostIds *[]string `json:"cloud_host_ids,omitempty"`

	// 独享模式HTTPS域名id,通过独享模式域名列表(ListPremiumHost)接口获取
	PremiumHostIds *[]string `json:"premium_host_ids,omitempty"`
}

ApplyCertificateToHostRequestBody 绑定证书和域名的请求体,云模式HTTPS域名id(cloud_host_ids)与独享模式HTTPS域名id(premium_host_ids)至少填一项

func (ApplyCertificateToHostRequestBody) String

type ApplyCertificateToHostResponse

type ApplyCertificateToHostResponse struct {

	// 证书id
	Id *string `json:"id,omitempty"`

	// 证书名
	Name *string `json:"name,omitempty"`

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

	// 过期时间
	ExpireTime *int64 `json:"expire_time,omitempty"`

	// 绑定域名列表
	BindHost       *[]CertificateBundingHostBody `json:"bind_host,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

ApplyCertificateToHostResponse Response Object

func (ApplyCertificateToHostResponse) String

type AttackTypeClassificationItem

type AttackTypeClassificationItem struct {

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

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

func (AttackTypeClassificationItem) String

type AttackTypeItem

type AttackTypeItem struct {

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

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

AttackTypeItem 攻击事件分布统计

func (AttackTypeItem) String

func (o AttackTypeItem) String() string

type BandwidthStatisticsTimelineItem

type BandwidthStatisticsTimelineItem struct {

	// 键值,包括带宽(BANDWIDTH)、入带宽(IN_BANDWIDTH)以及出带宽(OUT_BANDWIDTH)
	Key *string `json:"key,omitempty"`

	// 对应键值的时间线统计数据,包含两个字段,time字段值为时间点;num字段为time对应时间点与前一时间点间隔内的统计数值
	Timeline *[]TimeLineItem `json:"timeline,omitempty"`
}

BandwidthStatisticsTimelineItem 带宽(BANDWIDTH)、入带宽(IN_BANDWIDTH)以及出带宽(OUT_BANDWIDTH)统计数据项

func (BandwidthStatisticsTimelineItem) String

type BindHost

type BindHost struct {

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

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

	// 域名对应模式:cloud(云模式)/premium(独享模式)
	WafType *string `json:"waf_type,omitempty"`

	// 仅独享模式涉及特殊域名模式
	Mode *string `json:"mode,omitempty"`
}

BindHost 绑定的域名信息

func (BindHost) String

func (o BindHost) String() string

type BlockPage

type BlockPage struct {

	// 模板名称
	Template string `json:"template"`

	CustomPage *CustomPage `json:"custom_page,omitempty"`

	// “重定向”页面URL
	RedirectUrl *string `json:"redirect_url,omitempty"`
}

BlockPage 告警页面配置参数,用于配置“自定义”或者“重定向”页面

func (BlockPage) String

func (o BlockPage) String() string

type CcCondition

type CcCondition struct {

	// 字段类型
	Category CcConditionCategory `json:"category"`

	// 条件列表匹配逻辑。   -  如果字段类型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是response_code,匹配逻辑可以为: equal或者not_equal   - 如果字段类型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"`

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

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

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

func (CcCondition) String

func (o CcCondition) String() string

type CcConditionCategory

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

func (CcConditionCategory) MarshalJSON

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

func (*CcConditionCategory) UnmarshalJSON

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

func (CcConditionCategory) Value

func (c CcConditionCategory) Value() string

type CcConditionCategoryEnum

type CcConditionCategoryEnum struct {
	URL           CcConditionCategory
	IP            CcConditionCategory
	IPV6          CcConditionCategory
	PARAMS        CcConditionCategory
	COOKIE        CcConditionCategory
	HEADER        CcConditionCategory
	RESPONSE_CODE CcConditionCategory
}

func GetCcConditionCategoryEnum

func GetCcConditionCategoryEnum() CcConditionCategoryEnum

type CcrulesListInfo

type CcrulesListInfo struct {

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

	// Rule ID.
	Id *string `json:"id,omitempty"`

	// Policy ID.
	Policyid *string `json:"policyid,omitempty"`

	// 当mode值为0时,该参数有返回值。规则应用的URL链接,不包含域名。
	Url *string `json:"url,omitempty"`

	// 路径是否为前缀模式,当防护url以*结束,则为前缀模式。当mode值为0时,该参数有返回值。
	Prefix *bool `json:"prefix,omitempty"`

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

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

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

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

	// 限速模式:   - ip:IP限速,根据IP区分单个Web访问者。   - cookie:用户限速,根据Cookie键值区分单个Web访问者。   - header:用户限速,根据Header区分单个Web访问者。   - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。   - policy: 策略限速   - domain: 域名限速     - url: url限速
	TagType *CcrulesListInfoTagType `json:"tag_type,omitempty"`

	// 用户标识,当限速模式为用户限速(cookie或header)时,需要传该参数。   - 选择cookie时,设置cookie字段名,即用户需要根据网站实际情况配置唯一可识别Web访问者的cookie中的某属性变量名。用户标识的cookie,不支持正则,必须完全匹配。例如:如果网站使用cookie中的某个字段name唯一标识用户,那么可以选取name字段来区分Web访问者。   - 选择header时,设置需要防护的自定义HTTP首部,即用户需要根据网站实际情况配置可识别Web访问者的HTTP首部。
	TagIndex *string `json:"tag_index,omitempty"`

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

	// 限制频率,单位为次,范围为1~2147483647
	LimitNum *int32 `json:"limit_num,omitempty"`

	// 限速周期,单位为秒,范围1~3600
	LimitPeriod *int32 `json:"limit_period,omitempty"`

	// 放行频率,单位为次,范围为0~2147483647。只有当防护动作类型为dynamic_block时,才需要传该参数。
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 阻断时间,单位为秒,范围为0~65535。当“防护动作”选择“阻断”时,可设置阻断后恢复正常访问页面的时间。
	LockTime *int32 `json:"lock_time,omitempty"`

	// 是否开启域名聚合统计。
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 是否开启全局计数。
	RegionAggregation *bool `json:"region_aggregation,omitempty"`

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

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Unaggregation *bool `json:"unaggregation,omitempty"`

	// 规则老化时间,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	AgingTime *int32 `json:"aging_time,omitempty"`

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer *int32 `json:"producer,omitempty"`

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

func (CcrulesListInfo) String

func (o CcrulesListInfo) String() string

type CcrulesListInfoAction

type CcrulesListInfoAction struct {

	// 动作类型:  - captcha:人机验证,阻断后用户需要输入正确的验证码,恢复正确的访问页面。  -block:阻断。   - log: 仅记录   - dynamic_block: 上一个限速周期内,请求频率超过“限速频率”将被阻断,那么在下一个限速周期内,请求频率超过“放行频率”将被阻断。注:只有当cc防护规则模式为高级模式时才支持设置dynamic_block防护动作。
	Category CcrulesListInfoActionCategory `json:"category"`

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

CcrulesListInfoAction 请求次数限制到达后采取的防护动作

func (CcrulesListInfoAction) String

func (o CcrulesListInfoAction) String() string

type CcrulesListInfoActionCategory

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

func (CcrulesListInfoActionCategory) MarshalJSON

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

func (*CcrulesListInfoActionCategory) UnmarshalJSON

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

func (CcrulesListInfoActionCategory) Value

type CcrulesListInfoActionDetail

type CcrulesListInfoActionDetail struct {
	Response *CcrulesListInfoActionDetailResponse `json:"response,omitempty"`
}

CcrulesListInfoActionDetail 阻断页面信息。当防护动作(category)选择阻断(block)或者动态阻断(dynamic_block)时,需要设置返回的阻断页面。 - 如果需要返回的阻断页面为系统默认的阻断页面,不需要传该参数。 - 如果用户想防护自定义的阻断页面,可以通过此参数设置

func (CcrulesListInfoActionDetail) String

type CcrulesListInfoActionDetailResponse

type CcrulesListInfoActionDetailResponse struct {

	// 内容类型,值可为“application/json”、“text/html”、“text/xml”。
	ContentType *CcrulesListInfoActionDetailResponseContentType `json:"content_type,omitempty"`

	// 阻断页面内容
	Content *string `json:"content,omitempty"`
}

CcrulesListInfoActionDetailResponse 阻断页面

func (CcrulesListInfoActionDetailResponse) String

type CcrulesListInfoActionDetailResponseContentType

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

func (CcrulesListInfoActionDetailResponseContentType) MarshalJSON

func (*CcrulesListInfoActionDetailResponseContentType) UnmarshalJSON

func (CcrulesListInfoActionDetailResponseContentType) Value

type CcrulesListInfoTagCondition

type CcrulesListInfoTagCondition struct {

	// 用户标识字段,其值固定为referer
	Category *string `json:"category,omitempty"`

	// 用户标识字段内容
	Contents *[]string `json:"contents,omitempty"`
}

CcrulesListInfoTagCondition 用户标识,当限速模式为other时,需要传该参数。根据Referer(自定义请求访问的来源)字段区分单个Web访问者

func (CcrulesListInfoTagCondition) String

type CcrulesListInfoTagType

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

func (CcrulesListInfoTagType) MarshalJSON

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

func (*CcrulesListInfoTagType) UnmarshalJSON

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

func (CcrulesListInfoTagType) Value

func (c CcrulesListInfoTagType) Value() string

type CertificateBody

type CertificateBody struct {

	// 证书id
	Id string `json:"id"`

	// 证书名
	Name string `json:"name"`

	// 证书过期时间戳
	ExpireTime *int64 `json:"expire_time,omitempty"`

	// 证书过期状态,0-未过期,1-已过期,2-即将过期(一个月内即将过期)
	ExpStatus *int32 `json:"exp_status,omitempty"`

	// 证书上传时间戳
	Timestamp int64 `json:"timestamp"`

	// 证书关联的域名信息
	BindHost *[]BindHost `json:"bind_host,omitempty"`
}

func (CertificateBody) String

func (o CertificateBody) String() string

type CertificateBundingHostBody

type CertificateBundingHostBody struct {

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

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

	// waf模式(分为云模式:cloud,独享模式:premium)
	WafType *CertificateBundingHostBodyWafType `json:"waf_type,omitempty"`
}

CertificateBundingHostBody 绑定域名列表

func (CertificateBundingHostBody) String

type CertificateBundingHostBodyWafType

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

func (CertificateBundingHostBodyWafType) MarshalJSON

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

func (*CertificateBundingHostBodyWafType) UnmarshalJSON

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

func (CertificateBundingHostBodyWafType) Value

type CertificateBundingHostBodyWafTypeEnum

type CertificateBundingHostBodyWafTypeEnum struct {
	CLOUD   CertificateBundingHostBodyWafType
	PREMIUM CertificateBundingHostBodyWafType
}

func GetCertificateBundingHostBodyWafTypeEnum

func GetCertificateBundingHostBodyWafTypeEnum() CertificateBundingHostBodyWafTypeEnum

type ChangePrepaidCloudWafRequest

type ChangePrepaidCloudWafRequest struct {

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

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

ChangePrepaidCloudWafRequest Request Object

func (ChangePrepaidCloudWafRequest) String

type ChangePrepaidCloudWafRequestBody

type ChangePrepaidCloudWafRequestBody struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 是否自动支付    - false: 否(需要客户手动去支付)    - true:是(自动支付)
	IsAutoPay bool `json:"is_auto_pay"`

	WafProductInfo *AlterWafProductInfo `json:"waf_product_info,omitempty"`

	DomainExpackProductInfo *ExpackProductInfo `json:"domain_expack_product_info,omitempty"`

	BandwidthExpackProductInfo *ExpackProductInfo `json:"bandwidth_expack_product_info,omitempty"`

	RuleExpackProductInfo *ExpackProductInfo `json:"rule_expack_product_info,omitempty"`
}

ChangePrepaidCloudWafRequestBody 变更包周期云模式waf规格请求体

func (ChangePrepaidCloudWafRequestBody) String

type ChangePrepaidCloudWafResponse

type ChangePrepaidCloudWafResponse struct {

	// 订单id
	OrderId        *string `json:"orderId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangePrepaidCloudWafResponse Response Object

func (ChangePrepaidCloudWafResponse) String

type CircuitBreaker

type CircuitBreaker struct {

	// 熔断开关,是否开启连接保护   - true:开启连接保护   - false: 关闭连接保护
	Switch *bool `json:"switch,omitempty"`

	// 502/504数量阈值,每30s累加的502/504数量阈值
	DeadNum *int32 `json:"dead_num,omitempty"`

	// 502/504数量占比(%),总请求数量中502/504数量占比达到所设定值,并且与数量阈值同时满足时触发宕机保护
	DeadRatio float32 `json:"dead_ratio,omitempty"`

	// 初次触发宕机的保护时间,即WAF将停止转发用户请求的时间。
	BlockTime *int32 `json:"block_time,omitempty"`

	// 连续触发时,保护时间延长最大倍数,叠加周期为3600s。例如,“初次保护时间”设置为180s,“连续触发叠加系数”设置为3。   - 当触发次数为2(即小于3)时,保护时间为360s。   - 当次数大于等于3时,保护时间为540s。   - 当累计保护时间超过1小时(3600s),叠加次数会从头计数。
	SuperpositionNum *int32 `json:"superposition_num,omitempty"`

	// 读等待URL请求数量阈值,读等待URL请求数量到达设定值即触发连接保护
	SuspendNum *int32 `json:"suspend_num,omitempty"`

	// 读等待URL请求数量超过阈值后的熔断时间,达到数量阈值所触发的保护时间,即WAF将停止转发用户请求的时间。
	SusBlockTime *int32 `json:"sus_block_time,omitempty"`
}

CircuitBreaker 熔断配置,当502/504请求数量或读等待URL请求数量以及占比阈值达到您设置的值时,将触发WAF熔断功能开关,实现宕机保护和读等待URL请求保护

func (CircuitBreaker) String

func (o CircuitBreaker) String() string

type CloudWafHostItem

type CloudWafHostItem struct {

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

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

	// 华为云区域ID,控制台创建的域名会携带此参数,api调用创建的域名此参数为空,可以通过华为云上地区和终端节点文档查询区域ID对应的中文名称
	Region *string `json:"region,omitempty"`

	// 域名描述信息,可选参数。
	Description *string `json:"description,omitempty"`

	// WAF部署模式,默认是1,目前仅支持反代模式,冗余参数
	Type *int32 `json:"type,omitempty"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 创建的云模式防护域名
	Hostname *string `json:"hostname,omitempty"`

	// cname前缀
	AccessCode *string `json:"access_code,omitempty"`

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

	// 创建防护域名的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 是否使用独享ip   - true:使用独享ip   - false:不实用独享ip
	ExclusiveIp *bool `json:"exclusive_ip,omitempty"`

	// 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。
	PaidType *string `json:"paid_type,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	Flag *Flag `json:"flag,omitempty"`
}

func (CloudWafHostItem) String

func (o CloudWafHostItem) String() string

type CloudWafServer

type CloudWafServer struct {

	// 客户端请求访问防护域名源站服务器的协议
	FrontProtocol CloudWafServerFrontProtocol `json:"front_protocol"`

	// WAF转发客户端请求到防护域名源站服务器的协议
	BackProtocol CloudWafServerBackProtocol `json:"back_protocol"`

	// 源站权重,负载均衡算法将按该权重将请求分配给源站,默认值是1,云模式的冗余字段
	Weight *int32 `json:"weight,omitempty"`

	// 客户端访问的源站服务器的IP地址
	Address string `json:"address"`

	// WAF转发客户端请求到源站服务的业务端口
	Port int32 `json:"port"`

	// 源站地址为ipv4或ipv6
	Type CloudWafServerType `json:"type"`
}

CloudWafServer 防护域名的源站服务器配置信息

func (CloudWafServer) String

func (o CloudWafServer) String() string

type CloudWafServerBackProtocol

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

func (CloudWafServerBackProtocol) MarshalJSON

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

func (*CloudWafServerBackProtocol) UnmarshalJSON

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

func (CloudWafServerBackProtocol) Value

type CloudWafServerBackProtocolEnum

type CloudWafServerBackProtocolEnum struct {
	HTTP  CloudWafServerBackProtocol
	HTTPS CloudWafServerBackProtocol
}

func GetCloudWafServerBackProtocolEnum

func GetCloudWafServerBackProtocolEnum() CloudWafServerBackProtocolEnum

type CloudWafServerFrontProtocol

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

func (CloudWafServerFrontProtocol) MarshalJSON

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

func (*CloudWafServerFrontProtocol) UnmarshalJSON

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

func (CloudWafServerFrontProtocol) Value

type CloudWafServerFrontProtocolEnum

type CloudWafServerFrontProtocolEnum struct {
	HTTP  CloudWafServerFrontProtocol
	HTTPS CloudWafServerFrontProtocol
}

func GetCloudWafServerFrontProtocolEnum

func GetCloudWafServerFrontProtocolEnum() CloudWafServerFrontProtocolEnum

type CloudWafServerType

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

func (CloudWafServerType) MarshalJSON

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

func (*CloudWafServerType) UnmarshalJSON

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

func (CloudWafServerType) Value

func (c CloudWafServerType) Value() string

type CloudWafServerTypeEnum

type CloudWafServerTypeEnum struct {
	IPV4 CloudWafServerType
	IPV6 CloudWafServerType
}

func GetCloudWafServerTypeEnum

func GetCloudWafServerTypeEnum() CloudWafServerTypeEnum

type CompositeHostResponse

type CompositeHostResponse struct {

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

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

	// 创建的云模式防护域名
	Hostname *string `json:"hostname,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// cname前缀
	AccessCode *string `json:"access_code,omitempty"`

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 创建防护域名的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。
	PaidType *string `json:"paid_type,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

	// 域名所属WAF模式,cloud为云模式,premium为独享模式
	WafType *string `json:"waf_type,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	// 接入进度,仅用于新版console(前端)使用
	AccessProgress *[]AccessProgress `json:"access_progress,omitempty"`

	// 租户引擎实例信息列表
	PremiumWafInstances *[]PremiumWafInstances `json:"premium_waf_instances,omitempty"`

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

	// 是否使用独享ip   - true:使用独享ip   - false:不实用独享ip
	ExclusiveIp *bool `json:"exclusive_ip,omitempty"`

	// 华为云区域ID,控制台创建的域名会携带此参数,api调用创建的域名此参数为空,可以通过华为云上地区和终端节点文档查询区域ID对应的中文名称
	Region *string `json:"region,omitempty"`
}

func (CompositeHostResponse) String

func (o CompositeHostResponse) String() string

type Condition

type Condition struct {

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

	// 内容,数组长度限制为1,内容格式根据字段类型变化,例如,字段类型为ip时,contents内容格式需为ip地址或ip地址段;字段类型为url时,contents内容格式需为标准url格式;字段类型为params、cookie、header时,内容的格式不做限制
	Contents *[]string `json:"contents,omitempty"`

	// 匹配逻辑,匹配逻辑根据字段类型变化,字段类型为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,omitempty"`

	// 字段类型为url或ip时不存在check_all_indexes_logic字段,其它情况下(1:检查所有子字段,2:检查任意子字段,null:使用自定义子字段)
	CheckAllIndexesLogic *int32 `json:"check_all_indexes_logic,omitempty"`

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

func (Condition) String

func (o Condition) String() string

type CountItem

type CountItem struct {

	// 类型,包括请求总量(ACCESS)、Bot攻击防护(CRAWLER)、攻击总量(ATTACK)、Web基础防护(WEB_ATTACK)、精准防护(PRECISE)以及CC攻击防护(CC)
	Key *string `json:"key,omitempty"`

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

CountItem 攻击事件统计结果

func (CountItem) String

func (o CountItem) String() string

type CreateAntiTamperRuleRequest

type CreateAntiTamperRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

CreateAntiTamperRuleRequest Request Object

func (CreateAntiTamperRuleRequest) String

type CreateAntiTamperRuleResponse

type CreateAntiTamperRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 防篡改的域名
	Hostname *string `json:"hostname,omitempty"`

	// 防篡改的url,
	Url *string `json:"url,omitempty"`

	// 创建规则的时间戳
	Description *string `json:"description,omitempty"`

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

CreateAntiTamperRuleResponse Response Object

func (CreateAntiTamperRuleResponse) String

type CreateAntiTamperRulesRequestBody

type CreateAntiTamperRulesRequestBody struct {

	// 防护网站,查询云模式防护域名列表(ListHost)接口获取防护域名,响应体中的的hostname字段
	Hostname string `json:"hostname"`

	// 防篡改规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/_*,以\"*\"号结尾代表路径前缀
	Url string `json:"url"`

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

func (CreateAntiTamperRulesRequestBody) String

type CreateAnticrawlerRuleRequest

type CreateAnticrawlerRuleRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

CreateAnticrawlerRuleRequest Request Object

func (CreateAnticrawlerRuleRequest) String

type CreateAnticrawlerRuleRequestbody

type CreateAnticrawlerRuleRequestbody struct {

	// 匹配条件列表
	Conditions []AnticrawlerCondition `json:"conditions"`

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

	// JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
	Type string `json:"type"`

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

func (CreateAnticrawlerRuleRequestbody) String

type CreateAnticrawlerRuleResponse

type CreateAnticrawlerRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 匹配条件列表
	Conditions *[]AnticrawlerCondition `json:"conditions,omitempty"`

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

	// JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
	Type *string `json:"type,omitempty"`

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

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

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

CreateAnticrawlerRuleResponse Response Object

func (CreateAnticrawlerRuleResponse) String

type CreateAntileakageRuleRequest

type CreateAntileakageRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

CreateAntileakageRuleRequest Request Object

func (CreateAntileakageRuleRequest) String

type CreateAntileakageRuleRequestBody

type CreateAntileakageRuleRequestBody struct {

	// 规则应用的url
	Url string `json:"url"`

	// 类别(响应码:code,敏感信息:sensitive)
	Category CreateAntileakageRuleRequestBodyCategory `json:"category"`

	// 规则内容(http状态码:400 、401、402 、 403 、404 、 405 、500 、501 、502 、503、 504 、507;手机:phone、身份证号:id_card、邮箱:email)
	Contents []string `json:"contents"`

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

func (CreateAntileakageRuleRequestBody) String

type CreateAntileakageRuleRequestBodyCategory

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

func (CreateAntileakageRuleRequestBodyCategory) MarshalJSON

func (*CreateAntileakageRuleRequestBodyCategory) UnmarshalJSON

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

func (CreateAntileakageRuleRequestBodyCategory) Value

type CreateAntileakageRuleRequestBodyCategoryEnum

type CreateAntileakageRuleRequestBodyCategoryEnum struct {
	CODE      CreateAntileakageRuleRequestBodyCategory
	SENSITIVE CreateAntileakageRuleRequestBodyCategory
}

func GetCreateAntileakageRuleRequestBodyCategoryEnum

func GetCreateAntileakageRuleRequestBodyCategoryEnum() CreateAntileakageRuleRequestBodyCategoryEnum

type CreateAntileakageRuleResponse

type CreateAntileakageRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则应用的url
	Url *string `json:"url,omitempty"`

	// 类别(响应码:code,敏感信息:sensitive)
	Category *string `json:"category,omitempty"`

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

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

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

CreateAntileakageRuleResponse Response Object

func (CreateAntileakageRuleResponse) String

type CreateCcRuleRequest

type CreateCcRuleRequest struct {

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

	// 策略id(策略id从查询防护策略列表接口获取)
	PolicyId string `json:"policy_id"`

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

CreateCcRuleRequest Request Object

func (CreateCcRuleRequest) String

func (o CreateCcRuleRequest) String() string

type CreateCcRuleRequestBody

type CreateCcRuleRequestBody struct {

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

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

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

	Action *CreateCcRuleRequestBodyAction `json:"action"`

	// 限速模式:   - ip:IP限速,根据IP区分单个Web访问者。   - cookie:用户限速,根据Cookie键值区分单个Web访问者。   - header:用户限速,根据Header区分单个Web访问者。   - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。   - policy: 策略限速   - domain: 域名限速     - url: url限速
	TagType CreateCcRuleRequestBodyTagType `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 *CcrulesListInfoTagCondition `json:"tag_condition,omitempty"`

	// 限制频率,单位为次,范围为1~2147483647
	LimitNum int32 `json:"limit_num"`

	// 限速周期,单位为秒,范围1~3600
	LimitPeriod int32 `json:"limit_period"`

	// 放行频率,单位为次,范围为0~2147483647。只有当防护动作类型为dynamic_block时,才需要传该参数。
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 阻断时间,单位为秒,范围为0~65535。当“防护动作”选择“阻断”时,可设置阻断后恢复正常访问页面的时间。
	LockTime *int32 `json:"lock_time,omitempty"`

	// 是否开启域名聚合统计。
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 是否开启全局计数。
	RegionAggregation *bool `json:"region_aggregation,omitempty"`

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

func (CreateCcRuleRequestBody) String

func (o CreateCcRuleRequestBody) String() string

type CreateCcRuleRequestBodyAction

type CreateCcRuleRequestBodyAction struct {

	// 动作类型:  - captcha:人机验证,阻断后用户需要输入正确的验证码,恢复正确的访问页面。  -block:阻断。   - log: 仅记录   - dynamic_block: 上一个限速周期内,请求频率超过“限速频率”将被阻断,那么在下一个限速周期内,请求频率超过“放行频率”将被阻断。注:只有当cc防护规则模式为高级模式时才支持设置dynamic_block防护动作。
	Category CreateCcRuleRequestBodyActionCategory `json:"category"`

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

CreateCcRuleRequestBodyAction 请求次数限制到达后采取的防护动作

func (CreateCcRuleRequestBodyAction) String

type CreateCcRuleRequestBodyActionCategory

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

func (CreateCcRuleRequestBodyActionCategory) MarshalJSON

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

func (*CreateCcRuleRequestBodyActionCategory) UnmarshalJSON

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

func (CreateCcRuleRequestBodyActionCategory) Value

type CreateCcRuleRequestBodyActionDetail

type CreateCcRuleRequestBodyActionDetail struct {
	Response *CreateCcRuleRequestBodyActionDetailResponse `json:"response,omitempty"`
}

CreateCcRuleRequestBodyActionDetail 阻断页面信息。当防护动作(category)选择阻断(block)或者动态阻断(dynamic_block)时,需要设置返回的阻断页面。 - 如果需要返回的阻断页面为系统默认的阻断页面,不需要传该参数。 - 如果用户想防护自定义的阻断页面,可以通过此参数设置

func (CreateCcRuleRequestBodyActionDetail) String

type CreateCcRuleRequestBodyActionDetailResponse

type CreateCcRuleRequestBodyActionDetailResponse struct {

	// 内容类型,值可为“application/json”、“text/html”、“text/xml”。
	ContentType *CreateCcRuleRequestBodyActionDetailResponseContentType `json:"content_type,omitempty"`

	// 防护页面内容
	Content *string `json:"content,omitempty"`
}

CreateCcRuleRequestBodyActionDetailResponse 返回页面

func (CreateCcRuleRequestBodyActionDetailResponse) String

type CreateCcRuleRequestBodyActionDetailResponseContentType

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

func (CreateCcRuleRequestBodyActionDetailResponseContentType) MarshalJSON

func (*CreateCcRuleRequestBodyActionDetailResponseContentType) UnmarshalJSON

func (CreateCcRuleRequestBodyActionDetailResponseContentType) Value

type CreateCcRuleRequestBodyTagType

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

func (CreateCcRuleRequestBodyTagType) MarshalJSON

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

func (*CreateCcRuleRequestBodyTagType) UnmarshalJSON

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

func (CreateCcRuleRequestBodyTagType) Value

type CreateCcRuleResponse

type CreateCcRuleResponse struct {

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

	// Rule ID.
	Id *string `json:"id,omitempty"`

	// Policy ID.
	Policyid *string `json:"policyid,omitempty"`

	// 当mode值为0时,该参数有返回值。规则应用的URL链接。
	Url *string `json:"url,omitempty"`

	// 路径是否为前缀模式,当防护url以*结束,则为前缀模式。
	Prefix *bool `json:"prefix,omitempty"`

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

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

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

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

	// 限速模式:   - ip:IP限速,根据IP区分单个Web访问者。   - cookie:用户限速,根据Cookie键值区分单个Web访问者。   - header:用户限速,根据Header区分单个Web访问者。   - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。   - policy: 策略限速   - domain: 域名限速     - url: url限速
	TagType *CreateCcRuleResponseTagType `json:"tag_type,omitempty"`

	// 用户标识,当限速模式为用户限速(cookie或header)时,需要传该参数。   - 选择cookie时,设置cookie字段名,即用户需要根据网站实际情况配置唯一可识别Web访问者的cookie中的某属性变量名。用户标识的cookie,不支持正则,必须完全匹配。例如:如果网站使用cookie中的某个字段name唯一标识用户,那么可以选取name字段来区分Web访问者。   - 选择header时,设置需要防护的自定义HTTP首部,即用户需要根据网站实际情况配置可识别Web访问者的HTTP首部。
	TagIndex *string `json:"tag_index,omitempty"`

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

	// 限制频率,单位为次,范围为1~2147483647
	LimitNum *int32 `json:"limit_num,omitempty"`

	// 限速周期,单位为秒,范围1~3600
	LimitPeriod *int32 `json:"limit_period,omitempty"`

	// 放行频率,单位为次,范围为0~2147483647。只有当防护动作类型为dynamic_block时,才需要传该参数。
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 阻断时间,单位为秒,范围为0~65535。当“防护动作”选择“阻断”时,可设置阻断后恢复正常访问页面的时间。
	LockTime *int32 `json:"lock_time,omitempty"`

	// 是否开启域名聚合统计。
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 是否开启全局计数。
	RegionAggregation *bool `json:"region_aggregation,omitempty"`

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

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Unaggregation *bool `json:"unaggregation,omitempty"`

	// 规则老化时间,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	AgingTime *int32 `json:"aging_time,omitempty"`

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer *int32 `json:"producer,omitempty"`

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

CreateCcRuleResponse Response Object

func (CreateCcRuleResponse) String

func (o CreateCcRuleResponse) String() string

type CreateCcRuleResponseTagType

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

func (CreateCcRuleResponseTagType) MarshalJSON

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

func (*CreateCcRuleResponseTagType) UnmarshalJSON

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

func (CreateCcRuleResponseTagType) Value

type CreateCertificateRequest

type CreateCertificateRequest struct {

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

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

CreateCertificateRequest Request Object

func (CreateCertificateRequest) String

func (o CreateCertificateRequest) String() string

type CreateCertificateRequestBody

type CreateCertificateRequestBody struct {

	// 证书名称,证书名称只能由数字、字母、中划线、下划线和英文句点组成,长度不能超过64位字符
	Name string `json:"name"`

	// 证书文件,仅支持PEM格式的证书和私钥文件,且文件中的换行符应以\\n替换,如请求示例所示
	Content string `json:"content"`

	// 证书私钥,仅支持PEM格式的证书和私钥文件,且文件中的换行符应以\\n替换,如请求示例所示
	Key string `json:"key"`
}

func (CreateCertificateRequestBody) String

type CreateCertificateResponse

type CreateCertificateResponse struct {

	// 证书ID
	Id *string `json:"id,omitempty"`

	// 证书名
	Name *string `json:"name,omitempty"`

	// 证书文件,PEM编码
	Content *string `json:"content,omitempty"`

	// 证书私钥,PEM编码
	Key *string `json:"key,omitempty"`

	// 证书过期时间戳
	ExpireTime *int64 `json:"expire_time,omitempty"`

	// 证书过期状态,0-未过期,1-已过期,2-即将过期
	ExpStatus *int32 `json:"exp_status,omitempty"`

	// 证书上传时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 证书关联的域名信息
	BindHost       *[]BindHost `json:"bind_host,omitempty"`
	HttpStatusCode int         `json:"-"`
}

CreateCertificateResponse Response Object

func (CreateCertificateResponse) String

func (o CreateCertificateResponse) String() string

type CreateCloudWafPostPaidResourceRequest

type CreateCloudWafPostPaidResourceRequest struct {

	// 区域id
	Region string `json:"region"`

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

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

CreateCloudWafPostPaidResourceRequest Request Object

func (CreateCloudWafPostPaidResourceRequest) String

type CreateCloudWafPostPaidResourceRequestbody

type CreateCloudWafPostPaidResourceRequestbody struct {

	// 租户所在的站点,hec-hk:华为云国际站
	ConsoleArea string `json:"console_area"`
}

CreateCloudWafPostPaidResourceRequestbody 开通云模式按需请求体

func (CreateCloudWafPostPaidResourceRequestbody) String

type CreateCloudWafPostPaidResourceResponse

type CreateCloudWafPostPaidResourceResponse struct {

	// 云模式版本   - -2:已冻结   - -1:未订购   - 2:标准版   - 3:专业版   - 4:铂金版   - 7: 入门版   - 22:按需版本
	Type *int32 `json:"type,omitempty"`

	// 资源列表
	Resources *[]ResourceResponse `json:"resources,omitempty"`

	// 是否为新用户
	IsNewUser      *bool `json:"isNewUser,omitempty"`
	HttpStatusCode int   `json:"-"`
}

CreateCloudWafPostPaidResourceResponse Response Object

func (CreateCloudWafPostPaidResourceResponse) String

type CreateCondition

type CreateCondition struct {

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

	// 内容,数组长度限制为1,内容格式根据字段类型变化,例如,字段类型为ip时,contents内容格式需为ip地址或ip地址段;字段类型为url时,contents内容格式需为标准url格式;字段类型为params,cookie,header时,内容的格式不做限制
	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"`

	// 使用自定义子字段、字段类型为url或ip时不需要传check_all_indexes_logic参数,其它情况下(1:检查所有子字段,2:检查任意子字段)
	CheckAllIndexesLogic *int32 `json:"check_all_indexes_logic,omitempty"`

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

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

func (CreateCondition) String

func (o CreateCondition) String() string

type CreateCustomRuleRequest

type CreateCustomRuleRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

CreateCustomRuleRequest Request Object

func (CreateCustomRuleRequest) String

func (o CreateCustomRuleRequest) String() string

type CreateCustomRuleRequestBody

type CreateCustomRuleRequestBody struct {

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

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

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

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

	// 匹配条件列表
	Conditions []CustomConditions `json:"conditions"`

	Action *CustomAction `json:"action"`

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

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

CreateCustomRuleRequestBody 创建精准防护规则body

func (CreateCustomRuleRequestBody) String

type CreateCustomRuleResponse

type CreateCustomRuleResponse struct {

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

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

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

	// 匹配条件列表,匹配条件必须同时满足。
	Conditions *[]CustomRuleConditions `json:"conditions,omitempty"`

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

	// 预留参数,可忽略。
	ActionMode *bool `json:"action_mode,omitempty"`

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

	// 创建精准防护规则的
	Timestamp *int64 `json:"timestamp,omitempty"`

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

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

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

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateCustomRuleResponse Response Object

func (CreateCustomRuleResponse) String

func (o CreateCustomRuleResponse) String() string

type CreateGeoIpRuleRequestBody

type CreateGeoIpRuleRequestBody struct {

	// 地理位置控制规则名称
	Name *string `json:"name,omitempty"`

	// 地理位置封禁区域,选择区域对应的字母代号,用中划线|分隔: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古)
	Geoip string `json:"geoip"`

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

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

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

func (CreateGeoIpRuleRequestBody) String

type CreateGeoipRuleRequest

type CreateGeoipRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

CreateGeoipRuleRequest Request Object

func (CreateGeoipRuleRequest) String

func (o CreateGeoipRuleRequest) String() string

type CreateGeoipRuleResponse

type CreateGeoipRuleResponse struct {

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

	// 地理位置控制规则名称
	Name *string `json:"name,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 地理位置封禁区域: (CN: 中国,,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古)
	Geoip *string `json:"geoip,omitempty"`

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

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

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

CreateGeoipRuleResponse Response Object

func (CreateGeoipRuleResponse) String

func (o CreateGeoipRuleResponse) String() string

type CreateHostRequest

type CreateHostRequest struct {

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

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

CreateHostRequest Request Object

func (CreateHostRequest) String

func (o CreateHostRequest) String() string

type CreateHostRequestBody

type CreateHostRequestBody struct {

	// 域名(域名只能由字母、数字、-、_和.组成,长度不能超过64个字符,如www.domain.com)
	Hostname string `json:"hostname"`

	// 防护域名初始绑定的策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id
	Policyid *string `json:"policyid,omitempty"`

	// 防护域名的源站服务器配置信息
	Server []CloudWafServer `json:"server"`

	// 证书id,通过查询证书列表接口(ListCertificates)接口获取证书id   - 对外协议为HTTP时不需要填写   - 对外协议HTTPS时为必填参数
	Certificateid *string `json:"certificateid,omitempty"`

	// 证书名   - 对外协议为HTTP时不需要填写   - 对外协议HTTPS时为必填参数
	Certificatename *string `json:"certificatename,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	// 是否使用独享ip   - true:使用独享ip   - false:不实用独享ip
	ExclusiveIp *bool `json:"exclusive_ip,omitempty"`

	// 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。
	PaidType *string `json:"paid_type,omitempty"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy bool `json:"proxy"`

	// LB负载均衡,仅专业版(原企业版)和铂金版(原旗舰版)支持配置负载均衡算法   - 源IP Hash:将某个IP的请求定向到同一个服务器   - 加权轮询:所有请求将按权重轮流分配给源站服务器   - Session Hash:将某个Session标识的请求定向到同一个源站服务器,请确保在域名添加完毕后配置攻击惩罚的流量标识,否则Session Hash配置不生效
	LbAlgorithm *CreateHostRequestBodyLbAlgorithm `json:"lb_algorithm,omitempty"`

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

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`
}

CreateHostRequestBody 域名请求体

func (CreateHostRequestBody) String

func (o CreateHostRequestBody) String() string

type CreateHostRequestBodyLbAlgorithm

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

func (CreateHostRequestBodyLbAlgorithm) MarshalJSON

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

func (*CreateHostRequestBodyLbAlgorithm) UnmarshalJSON

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

func (CreateHostRequestBodyLbAlgorithm) Value

type CreateHostRequestBodyLbAlgorithmEnum

type CreateHostRequestBodyLbAlgorithmEnum struct {
	IP_HASH      CreateHostRequestBodyLbAlgorithm
	ROUND_ROBIN  CreateHostRequestBodyLbAlgorithm
	SESSION_HASH CreateHostRequestBodyLbAlgorithm
}

func GetCreateHostRequestBodyLbAlgorithmEnum

func GetCreateHostRequestBodyLbAlgorithmEnum() CreateHostRequestBodyLbAlgorithmEnum

type CreateHostResponse

type CreateHostResponse struct {

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

	// 创建的云模式防护域名
	Hostname *string `json:"hostname,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// cname前缀
	AccessCode *string `json:"access_code,omitempty"`

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// LB负载均衡,仅专业版(原企业版)和铂金版(原旗舰版)支持配置负载均衡算法   - 源IP Hash:将某个IP的请求定向到同一个服务器   - 加权轮询:所有请求将按权重轮流分配给源站服务器   - Session Hash:将某个Session标识的请求定向到同一个源站服务器,请确保在域名添加完毕后配置攻击惩罚的流量标识,否则Session Hash配置不生效
	LbAlgorithm *CreateHostResponseLbAlgorithm `json:"lb_algorithm,omitempty"`

	// 返回的客户端协议类型
	Protocol *string `json:"protocol,omitempty"`

	// 返回的证书id
	Certificateid *string `json:"certificateid,omitempty"`

	// 证书名称
	Certificatename *string `json:"certificatename,omitempty"`

	// 防护域名的源站服务器配置信息
	Server *[]CloudWafServer `json:"server,omitempty"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 创建防护域名的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 是否使用独享ip   - true:使用独享ip   - false:不实用独享ip
	ExclusiveIp *bool `json:"exclusive_ip,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	// 是否支持http2   - true:表示支持http2   - false:表示不支持http2
	Http2Enable *bool `json:"http2_enable,omitempty"`

	BlockPage *BlockPage `json:"block_page,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

	// 扩展字段,用于保存防护域名的一些配置信息。
	Extend map[string]string `json:"extend,omitempty"`

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`
	HttpStatusCode   int               `json:"-"`
}

CreateHostResponse Response Object

func (CreateHostResponse) String

func (o CreateHostResponse) String() string

type CreateHostResponseLbAlgorithm

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

func (CreateHostResponseLbAlgorithm) MarshalJSON

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

func (*CreateHostResponseLbAlgorithm) UnmarshalJSON

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

func (CreateHostResponseLbAlgorithm) Value

type CreateHostResponseLbAlgorithmEnum

type CreateHostResponseLbAlgorithmEnum struct {
	IP_HASH      CreateHostResponseLbAlgorithm
	ROUND_ROBIN  CreateHostResponseLbAlgorithm
	SESSION_HASH CreateHostResponseLbAlgorithm
}

func GetCreateHostResponseLbAlgorithmEnum

func GetCreateHostResponseLbAlgorithmEnum() CreateHostResponseLbAlgorithmEnum

type CreateIgnoreRuleRequest

type CreateIgnoreRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

CreateIgnoreRuleRequest Request Object

func (CreateIgnoreRuleRequest) String

func (o CreateIgnoreRuleRequest) String() string

type CreateIgnoreRuleRequestBody

type CreateIgnoreRuleRequestBody struct {

	// 防护域名或防护网站,数组长度为0时,代表规则对全部域名或防护网站生效
	Domain []string `json:"domain"`

	// 条件列表
	Conditions []CreateCondition `json:"conditions"`

	// 固定值为1,代表v2版本误报屏蔽规则,v1版本仅用于兼容旧版本,不支持创建
	Mode int32 `json:"mode"`

	// 需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔   - 当需要屏蔽某一条内置规则时,该参数值为该内置规则id,可以在Web应用防火墙控制台的防护策略->策略名称->Web基础防护的高级设置->防护规则中查询;也可以在防护事件的事件详情中查询内置规则id   - 当需要屏蔽web基础防护某一类规则时,该参数值为需要屏蔽的web基础防护某一类规则名。其中,xss:xxs攻击;webshell:网站木马;vuln:其他类型攻击;sqli:sql注入攻击;robot:恶意爬虫;rfi:远程文件包含;lfi:本地文件包含;cmdi:命令注入攻击   - 当需要屏蔽Web基础防护模块,该参数值为:all   - 当需要屏蔽规则为所有检测模块时,该参数值为:bypass
	Rule string `json:"rule"`

	// 高级配置项。**当前该参数类型错误,请用户忽略该参数**;正确类型可先参考更新接口,后续将改正。
	Advanced *[]Advanced `json:"advanced,omitempty"`

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

CreateIgnoreRuleRequestBody 创建误报屏蔽规则请求体

func (CreateIgnoreRuleRequestBody) String

type CreateIgnoreRuleResponse

type CreateIgnoreRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

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

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

	// 需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔   - 当需要屏蔽某一条内置规则时,该参数值为该内置规则id,可以在Web应用防火墙控制台的防护策略->策略名称->Web基础防护的高级设置->防护规则中查询;也可以在防护事件的事件详情中查询内置规则id   - 当需要屏蔽web基础防护某一类规则时,该参数值为需要屏蔽的web基础防护某一类规则名。其中,xss:xxs攻击;webshell:网站木马;vuln:其他类型攻击;sqli:sql注入攻击;robot:恶意爬虫;rfi:远程文件包含;lfi:本地文件包含;cmdi:命令注入攻击   - 当需要屏蔽Web基础防护模块,该参数值为:all   - 当需要屏蔽规则为所有检测模块时,该参数值为:bypass
	Rule *string `json:"rule,omitempty"`

	// 版本号固定值为1,代表v2版本误报屏蔽规则,v1版本仅支持兼容旧版本,不支持创建
	Mode *int32 `json:"mode,omitempty"`

	// 条件列表
	Conditions *[]Condition `json:"conditions,omitempty"`

	// 高级配置项。**当前该参数类型错误,请用户忽略该参数**;正确类型可先参考更新接口,后续将改正。
	Advanced *[]Advanced `json:"advanced,omitempty"`

	// 防护域名或防护网站
	Domain         *[]string `json:"domain,omitempty"`
	HttpStatusCode int       `json:"-"`
}

CreateIgnoreRuleResponse Response Object

func (CreateIgnoreRuleResponse) String

func (o CreateIgnoreRuleResponse) String() string

type CreateInstanceRequest

type CreateInstanceRequest struct {

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

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

CreateInstanceRequest Request Object

func (CreateInstanceRequest) String

func (o CreateInstanceRequest) String() string

type CreateInstanceRequestBody

type CreateInstanceRequestBody struct {

	// 收费模式,当前仅支持按需收费(30)
	Chargemode *int32 `json:"chargemode,omitempty"`

	// 需要创建独享引擎的局点,例如:北京四(cn-north-4)
	Region string `json:"region"`

	// 需要创建独享引擎的可用区,例如:北京四可用区1(cn-north-4a)
	AvailableZone string `json:"available_zone"`

	// 独享引擎CPU架构,例如:x86与arm
	Arch string `json:"arch"`

	// 独享引擎名称前缀
	Instancename string `json:"instancename"`

	// 独享引擎版本规格   - 企业版:waf.instance.enterprise   - 专业版:waf.instance.professional
	Specification string `json:"specification"`

	// 独享引擎ECS规格,实例规格企业版对应8U16G的ecs规格,专业版对应2U4G的ecs规格(通过调用ECS的ListFlavors接口获取应8U16G的ecs和2U4G的ecs对应规格id)
	CpuFlavor string `json:"cpu_flavor"`

	// 独享引擎所在VPC的ID(通过调用虚拟私有云ListVpcs接口获取所有的VPC列表查询VPC的ID,如果需要关联企业项目,则调用虚拟私有云的接口也需要关联企业项目ID)
	VpcId string `json:"vpc_id"`

	// 独享引擎所在VPC内的子网ID(通过调用虚拟私有云ListSubnets接口获取所有的子网列表查询子网的ID,如果需要关联企业项目,则调用虚拟私有云的接口也需要关联企业项目ID)
	SubnetId string `json:"subnet_id"`

	// 独享引擎需要绑定的安全组ID(通过调用虚拟私有云ListSecurityGroups接口获取所有的安全组列表查询安全组的ID,如果需要关联企业项目,则调用虚拟私有云的接口也需要关联企业项目ID)
	SecurityGroup []string `json:"security_group"`

	// 申请的独享引擎数量
	Count int32 `json:"count"`

	// 是否为资源租户类,默认值为false。   - true: 资源租户类   - false: 普通租户类
	ResTenant *bool `json:"res_tenant,omitempty"`
}

CreateInstanceRequestBody CreateInstanceRequestBody

func (CreateInstanceRequestBody) String

func (o CreateInstanceRequestBody) String() string

type CreateInstanceResponse

type CreateInstanceResponse struct {

	// instances
	Instances      *[]InstanceInfo `json:"instances,omitempty"`
	HttpStatusCode int             `json:"-"`
}

CreateInstanceResponse Response Object

func (CreateInstanceResponse) String

func (o CreateInstanceResponse) String() string

type CreateIpGroupRequest

type CreateIpGroupRequest struct {

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

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

CreateIpGroupRequest Request Object

func (CreateIpGroupRequest) String

func (o CreateIpGroupRequest) String() string

type CreateIpGroupRequestBody

type CreateIpGroupRequestBody struct {

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

	// 以逗号分隔的ip或ip段
	Ips string `json:"ips"`

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

func (CreateIpGroupRequestBody) String

func (o CreateIpGroupRequestBody) String() string

type CreateIpGroupResponse

type CreateIpGroupResponse struct {

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

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

	// 地址组ip(以逗号分隔的ip或ip段)
	Ips *string `json:"ips,omitempty"`

	// 地址组长度
	Size *int32 `json:"size,omitempty"`

	// ip地址组绑定的规则列表
	Rules *[]RuleInfo `json:"rules,omitempty"`

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

	// 时间戳
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateIpGroupResponse Response Object

func (CreateIpGroupResponse) String

func (o CreateIpGroupResponse) String() string

type CreatePolicyRequest

type CreatePolicyRequest struct {

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

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

CreatePolicyRequest Request Object

func (CreatePolicyRequest) String

func (o CreatePolicyRequest) String() string

type CreatePolicyRequestBody

type CreatePolicyRequestBody struct {

	// 策略名称(策略名称只能由数字、字母和下划线组成,长度不能超过64为字符)
	Name string `json:"name"`
}

func (CreatePolicyRequestBody) String

func (o CreatePolicyRequestBody) String() string

type CreatePolicyResponse

type CreatePolicyResponse struct {

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

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

	// Web基础防护等级   - 1 : 宽松,防护粒度较粗,只拦截攻击特征比较明显的请求。当误报情况较多的场景下,建议选择“宽松”模式。   - 2:中等,默认为“中等”防护模式,满足大多数场景下的Web防护需求。   - 3:严格,防护粒度最精细,可以拦截具有复杂的绕过特征的攻击请求,例如jolokia网络攻击、探测CGI漏洞、探测 Druid SQL注入攻击
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式。   - false:短路检测,当用户的请求符合精准防护中的拦截条件时,便立刻终止检测,进行拦截   - true :全检测,请求符合精准防护中的拦截条件时,全检测不会立即拦截,会继续执行其他防护的检测,最后进行拦截。
	FullDetection *bool `json:"full_detection,omitempty"`

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

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

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

	// 智能访问控制防护项相关配置信息,目前该特性还处于公测阶段,只有部分局点支持该特性
	ModulexOptions map[string]interface{} `json:"modulex_options,omitempty"`

	// 与防护策略绑定的防护的域名id数组
	Hosts *[]string `json:"hosts,omitempty"`

	// 与防护策略绑定的防护的域名信息数组,相对于hosts字段,包含更详细的域名信息
	BindHost *[]BindHost `json:"bind_host,omitempty"`

	// 扩展字段,用于存放Web基础防护中一些开关配置等信息
	Extend map[string]string `json:"extend,omitempty"`

	// 创建防护策略的时间
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreatePolicyResponse Response Object

func (CreatePolicyResponse) String

func (o CreatePolicyResponse) String() string

type CreatePremiumHostRequest

type CreatePremiumHostRequest struct {

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

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

CreatePremiumHostRequest Request Object

func (CreatePremiumHostRequest) String

func (o CreatePremiumHostRequest) String() string

type CreatePremiumHostRequestBody

type CreatePremiumHostRequestBody struct {

	// 证书id,通过查询证书列表接口(ListCertificates)接口获取证书id   - 对外协议为HTTP时不需要填写   - 对外协议HTTPS时为必填参数
	Certificateid *string `json:"certificateid,omitempty"`

	// 证书名   - 对外协议为HTTP时不需要填写   - 对外协议HTTPS时为必填参数
	Certificatename *string `json:"certificatename,omitempty"`

	// 防护域名或IP(可带端口)
	Hostname string `json:"hostname"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy bool `json:"proxy"`

	// 防护域名初始绑定的防护策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id
	Policyid *string `json:"policyid,omitempty"`

	// 防护域名的源站服务器配置信息
	Server []PremiumWafServer `json:"server"`

	BlockPage *BlockPage `json:"block_page,omitempty"`

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`

	// 防护域名备注
	Description *string `json:"description,omitempty"`
}

CreatePremiumHostRequestBody 创建独享模式域名的请求体

func (CreatePremiumHostRequestBody) String

type CreatePremiumHostResponse

type CreatePremiumHostResponse struct {

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

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

	// 对外协议,客户端(例如浏览器)请求访问网站的协议类型
	Protocol *CreatePremiumHostResponseProtocol `json:"protocol,omitempty"`

	// 防护域名的源站服务器配置信息
	Server *[]PremiumWafServer `json:"server,omitempty"`

	// 是否使用代理   - true:代表使用代理   - false:代表未使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 域名冻结状态,0表示未冻结,1表示为冻结,冗余参数
	Locked *int32 `json:"locked,omitempty"`

	// 创建域名的时间,13位毫秒时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 配置的最低TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,对于低于最低TLS版本的请求,将无法正常访问网站
	Tls *CreatePremiumHostResponseTls `json:"tls,omitempty"`

	// 对外协议为https时才有cipher参数,加密套件(cipher_1,cipher_2,cipher_3,cipher_4,cipher_default):  - cipher_1: 加密算法为ECDHE-ECDSA-AES256-GCM-SHA384:HIGH:!MEDIUM:!LOW:!aNULL:!eNULL:!DES:!MD5:!PSK:!RC4:!kRSA:!SRP:!3DES:!DSS:!EXP:!CAMELLIA:@STRENGTH   - cipher_2:加密算法为EECDH+AESGCM:EDH+AESGCM   - cipher_3:加密算法为ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH   - cipher_4:加密算法为ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!EDH   - cipher_default: 加密算法为ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM
	Cipher *CreatePremiumHostResponseCipher `json:"cipher,omitempty"`

	// 扩展字段,用于保存防护域名的一些配置信息。
	Extend map[string]string `json:"extend,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

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

	// 防护域名初始绑定的防护策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id
	Policyid *string `json:"policyid,omitempty"`

	// 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID
	Domainid *string `json:"domainid,omitempty"`

	// 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
	Projectid *string `json:"projectid,omitempty"`

	// 企业项目ID,对应华为云控制台用户名->企业->项目管理->点击项目名称->ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 域名防护状态:  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	BlockPage *BlockPage `json:"block_page,omitempty"`

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`
	HttpStatusCode   int               `json:"-"`
}

CreatePremiumHostResponse Response Object

func (CreatePremiumHostResponse) String

func (o CreatePremiumHostResponse) String() string

type CreatePremiumHostResponseCipher

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

func (CreatePremiumHostResponseCipher) MarshalJSON

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

func (*CreatePremiumHostResponseCipher) UnmarshalJSON

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

func (CreatePremiumHostResponseCipher) Value

type CreatePremiumHostResponseProtocol

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

func (CreatePremiumHostResponseProtocol) MarshalJSON

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

func (*CreatePremiumHostResponseProtocol) UnmarshalJSON

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

func (CreatePremiumHostResponseProtocol) Value

type CreatePremiumHostResponseTls

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

func (CreatePremiumHostResponseTls) MarshalJSON

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

func (*CreatePremiumHostResponseTls) UnmarshalJSON

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

func (CreatePremiumHostResponseTls) Value

type CreatePremiumHostResponseTlsEnum

type CreatePremiumHostResponseTlsEnum struct {
	TLS_V1_0 CreatePremiumHostResponseTls
	TLS_V1_1 CreatePremiumHostResponseTls
	TLS_V1_2 CreatePremiumHostResponseTls
}

func GetCreatePremiumHostResponseTlsEnum

func GetCreatePremiumHostResponseTlsEnum() CreatePremiumHostResponseTlsEnum

type CreatePrepaidCloudWafRequest

type CreatePrepaidCloudWafRequest struct {

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

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

CreatePrepaidCloudWafRequest Request Object

func (CreatePrepaidCloudWafRequest) String

type CreatePrepaidCloudWafRequestBody

type CreatePrepaidCloudWafRequestBody struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 是否自动支付    - false: 否(需要客户手动去支付)   - true:是(自动支付)
	IsAutoPay bool `json:"is_auto_pay"`

	// 是否自动续订   -  true:自动续订   - false:不自动续订
	IsAutoRenew bool `json:"is_auto_renew"`

	// region Id
	RegionId string `json:"region_id"`

	WafProductInfo *WafProductInfo `json:"waf_product_info,omitempty"`

	DomainExpackProductInfo *ExpackProductInfo `json:"domain_expack_product_info,omitempty"`

	BandwidthExpackProductInfo *ExpackProductInfo `json:"bandwidth_expack_product_info,omitempty"`

	RuleExpackProductInfo *ExpackProductInfo `json:"rule_expack_product_info,omitempty"`
}

CreatePrepaidCloudWafRequestBody 购买包周期云模式waf请求参数

func (CreatePrepaidCloudWafRequestBody) String

type CreatePrepaidCloudWafResponse

type CreatePrepaidCloudWafResponse struct {

	// 订单id
	OrderId        *string `json:"orderId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreatePrepaidCloudWafResponse Response Object

func (CreatePrepaidCloudWafResponse) String

type CreatePrivacyRuleRequest

type CreatePrivacyRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

CreatePrivacyRuleRequest Request Object

func (CreatePrivacyRuleRequest) String

func (o CreatePrivacyRuleRequest) String() string

type CreatePrivacyRuleRequestBody

type CreatePrivacyRuleRequestBody struct {

	// 隐私屏蔽规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/_*,以\"*\"(星号)结尾代表路径前缀
	Url string `json:"url"`

	// 屏蔽字段   - Params:请求参数   - Cookie:根据Cookie区分的Web访问者   - Header:自定义HTTP首部   - Form:表单参数
	Category CreatePrivacyRuleRequestBodyCategory `json:"category"`

	// 屏蔽字段名,根据“屏蔽字段”设置字段名,被屏蔽的字段将不会出现在日志中。屏蔽字段名的长度不能超过2048字节,且只能由数字、字母、下划线和中划线组成。
	Index string `json:"index"`

	// 规则描述,可选参数,设置该规则的备注信息。
	Description *string `json:"description,omitempty"`
}

func (CreatePrivacyRuleRequestBody) String

type CreatePrivacyRuleRequestBodyCategory

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

func (CreatePrivacyRuleRequestBodyCategory) MarshalJSON

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

func (*CreatePrivacyRuleRequestBodyCategory) UnmarshalJSON

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

func (CreatePrivacyRuleRequestBodyCategory) Value

type CreatePrivacyRuleResponse

type CreatePrivacyRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 创建规则的时间,格式为13位毫秒时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

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

	// 隐私屏蔽规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/_*,以\"*\"号结尾代表路径前缀
	Url *string `json:"url,omitempty"`

	// 屏蔽字段   - Params:请求参数   - Cookie:根据Cookie区分的Web访问者   - Header:自定义HTTP首部   - Form:表单参数
	Category *CreatePrivacyRuleResponseCategory `json:"category,omitempty"`

	// 屏蔽字段名,根据“屏蔽字段”设置字段名,被屏蔽的字段将不会出现在日志中。
	Index *string `json:"index,omitempty"`

	// 规则描述,可选参数,设置该规则的备注信息。
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreatePrivacyRuleResponse Response Object

func (CreatePrivacyRuleResponse) String

func (o CreatePrivacyRuleResponse) String() string

type CreatePrivacyRuleResponseCategory

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

func (CreatePrivacyRuleResponseCategory) MarshalJSON

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

func (*CreatePrivacyRuleResponseCategory) UnmarshalJSON

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

func (CreatePrivacyRuleResponseCategory) Value

type CreatePunishmentRuleRequest

type CreatePunishmentRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

CreatePunishmentRuleRequest Request Object

func (CreatePunishmentRuleRequest) String

type CreatePunishmentRuleRequestBody

type CreatePunishmentRuleRequestBody struct {

	// 攻击惩罚类别
	Category CreatePunishmentRuleRequestBodyCategory `json:"category"`

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

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

func (CreatePunishmentRuleRequestBody) String

type CreatePunishmentRuleRequestBodyCategory

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

func (CreatePunishmentRuleRequestBodyCategory) MarshalJSON

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

func (*CreatePunishmentRuleRequestBodyCategory) UnmarshalJSON

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

func (CreatePunishmentRuleRequestBodyCategory) Value

type CreatePunishmentRuleResponse

type CreatePunishmentRuleResponse struct {

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

	// 所属策略id
	Policyid *string `json:"policyid,omitempty"`

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

	// 攻击惩罚类别
	Category *string `json:"category,omitempty"`

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

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

CreatePunishmentRuleResponse Response Object

func (CreatePunishmentRuleResponse) String

type CreateValueListRequest

type CreateValueListRequest struct {

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

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

CreateValueListRequest Request Object

func (CreateValueListRequest) String

func (o CreateValueListRequest) String() string

type CreateValueListRequestBody

type CreateValueListRequestBody struct {

	// 引用表名称,只能由数字、字母、中划线、下划线和英文句点组成,长度不能超过64
	Name string `json:"name"`

	// 引用表类型,参见枚举列表
	Type CreateValueListRequestBodyType `json:"type"`

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

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

CreateValueListRequestBody 创建或更新引用表

func (CreateValueListRequestBody) String

type CreateValueListRequestBodyType

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

func (CreateValueListRequestBodyType) MarshalJSON

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

func (*CreateValueListRequestBodyType) UnmarshalJSON

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

func (CreateValueListRequestBodyType) Value

type CreateValueListResponse

type CreateValueListResponse 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"`

	// 引用表来源:  - 1:表示来源于用户手动创建  - 2:表示来源于智能访问控制自动创建
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateValueListResponse Response Object

func (CreateValueListResponse) String

func (o CreateValueListResponse) String() string

type CreateWhiteBlackIpRuleRequestBody

type CreateWhiteBlackIpRuleRequestBody struct {

	// 规则名称只能由字母、数字、-、_和.组成,长度不能超过64个字符
	Name string `json:"name"`

	// 黑白名单ip地址,需要输入标准的ip地址或地址段,例如:42.123.120.66或42.123.120.0/16
	Addr *string `json:"addr,omitempty"`

	// 黑白名单规则描述
	Description *string `json:"description,omitempty"`

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

	// 创建的Ip地址组id,该参数与addr参数只能使用一个;Ip地址组可在控制台中对象管理->地址组管理中添加。
	IpGroupId *string `json:"ip_group_id,omitempty"`
}

CreateWhiteBlackIpRuleRequestBody 创建黑白名单规则body

func (CreateWhiteBlackIpRuleRequestBody) String

type CreateWhiteblackipRuleRequest

type CreateWhiteblackipRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

CreateWhiteblackipRuleRequest Request Object

func (CreateWhiteblackipRuleRequest) String

type CreateWhiteblackipRuleResponse

type CreateWhiteblackipRuleResponse struct {

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

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 黑白名单ip地址,需要输入标准的ip地址或地址段,例如:42.123.120.66或42.123.120.0/16
	Addr *string `json:"addr,omitempty"`

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

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

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

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

	// 创建规则的时间戳,13位毫秒时间戳
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateWhiteblackipRuleResponse Response Object

func (CreateWhiteblackipRuleResponse) String

type CustomAction

type CustomAction struct {

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

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

CustomAction 精准防护规则命中后操作对象

func (CustomAction) String

func (o CustomAction) String() string

type CustomActionCategory

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

func (CustomActionCategory) MarshalJSON

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

func (*CustomActionCategory) UnmarshalJSON

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

func (CustomActionCategory) Value

func (c CustomActionCategory) Value() string

type CustomActionCategoryEnum

type CustomActionCategoryEnum struct {
	BLOCK CustomActionCategory
	PASS  CustomActionCategory
	LOG   CustomActionCategory
}

func GetCustomActionCategoryEnum

func GetCustomActionCategoryEnum() CustomActionCategoryEnum

type CustomConditions

type CustomConditions struct {

	// 字段类型。可选值为:url、user-agent、ip、params、cookie、referer、header、request_line、method、request
	Category *CustomConditionsCategory `json:"category,omitempty"`

	// 子字段:  - 字段类型为url、user-agent、ip、refer、request_line、method、request时,不需要传index参数    - 字段类型为params、header、cookie并且子字段为自定义时,index的值为自定义子字段
	Index *string `json:"index,omitempty"`

	// 条件列表匹配逻辑。   -  如果字段类型category是url、user-agent或者referer, 匹配逻辑可以为: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, 匹配逻辑可以为: equal、not_equal、equal_any或者not_equal_all   - 如果字段类型category是method, 匹配逻辑可以为: equal或者not_equal n - 如果字段类型category是request_line或者request, 匹配逻辑可以为: len_greater、len_less、len_equal或者len_not_equal   - 如果字段类型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,omitempty"`

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

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

func (CustomConditions) String

func (o CustomConditions) String() string

type CustomConditionsCategory

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

func (CustomConditionsCategory) MarshalJSON

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

func (*CustomConditionsCategory) UnmarshalJSON

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

func (CustomConditionsCategory) Value

func (c CustomConditionsCategory) Value() string

type CustomPage

type CustomPage struct {

	// 返回状态码
	StatusCode string `json:"status_code"`

	// “自定义”告警页面内容类型,可选择text/html、text/xml和application/json三种类型
	ContentType string `json:"content_type"`

	// 根据选择的“页面类型”配置对应的页面内容,具体示例可以参考“Web应用防火墙 WAF”用户手册
	Content string `json:"content"`
}

CustomPage 自定义告警页面

func (CustomPage) String

func (o CustomPage) String() string

type CustomRule

type CustomRule struct {

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

	// 策略ID
	Policyid *string `json:"policyid,omitempty"`

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

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

	// 匹配条件列表,匹配条件必须同时满足。
	Conditions *[]CustomRuleConditions `json:"conditions,omitempty"`

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

	// 预留参数,可忽略。
	ActionMode *bool `json:"action_mode,omitempty"`

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

	// 创建精准防护规则的时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

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

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

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

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer *int32 `json:"producer,omitempty"`

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

func (CustomRule) String

func (o CustomRule) String() string

type CustomRuleConditions

type CustomRuleConditions struct {

	// 字段类型。可选值为:url、user-agent、ip、params、cookie、referer、header、request_line、method、reqeust
	Category *string `json:"category,omitempty"`

	// 子字段:  - 字段类型为url、user-agent、ip、refer、request_line、method、reqeust时,不需要传index参数    - 字段类型为params、header、cookie并且子字段为自定义时,index的值为自定义子字段
	Index *string `json:"index,omitempty"`

	// 条件匹配逻辑。
	LogicOperation *string `json:"logic_operation,omitempty"`

	// 条件匹配的内容
	Contents *[]string `json:"contents,omitempty"`

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

func (CustomRuleConditions) String

func (o CustomRuleConditions) String() string

type DeleteAnticrawlerRuleRequest

type DeleteAnticrawlerRuleRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

DeleteAnticrawlerRuleRequest Request Object

func (DeleteAnticrawlerRuleRequest) String

type DeleteAnticrawlerRuleResponse

type DeleteAnticrawlerRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 匹配条件列表
	Conditions *[]AnticrawlerCondition `json:"conditions,omitempty"`

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

	// JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
	Type *string `json:"type,omitempty"`

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

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

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

DeleteAnticrawlerRuleResponse Response Object

func (DeleteAnticrawlerRuleResponse) String

type DeleteAntileakageRuleRequest

type DeleteAntileakageRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取
	RuleId string `json:"rule_id"`
}

DeleteAntileakageRuleRequest Request Object

func (DeleteAntileakageRuleRequest) String

type DeleteAntileakageRuleResponse

type DeleteAntileakageRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则应用的url
	Url *string `json:"url,omitempty"`

	// 类别(响应码:code,敏感信息:sensitive)
	Category *string `json:"category,omitempty"`

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

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

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

	// 规则描述
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteAntileakageRuleResponse Response Object

func (DeleteAntileakageRuleResponse) String

type DeleteAntitamperRuleRequest

type DeleteAntitamperRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 防篡改规则id,通过查询防篡改规则列表接口(ListAntitamperRule)获取
	RuleId string `json:"rule_id"`
}

DeleteAntitamperRuleRequest Request Object

func (DeleteAntitamperRuleRequest) String

type DeleteAntitamperRuleResponse

type DeleteAntitamperRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 防篡改的url
	Url *string `json:"url,omitempty"`

	// 创建规则的时间戳
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

DeleteAntitamperRuleResponse Response Object

func (DeleteAntitamperRuleResponse) String

type DeleteCcRuleRequest

type DeleteCcRuleRequest struct {

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

	// 策略id(策略id从查询防护策略列表接口获取)
	PolicyId string `json:"policy_id"`

	// ID of the cc rule. It can be obtained by calling the **ListCcRules** API.
	RuleId string `json:"rule_id"`
}

DeleteCcRuleRequest Request Object

func (DeleteCcRuleRequest) String

func (o DeleteCcRuleRequest) String() string

type DeleteCcRuleResponse

type DeleteCcRuleResponse struct {

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

	// Rule ID.
	Id *string `json:"id,omitempty"`

	// Policy ID.
	Policyid *string `json:"policyid,omitempty"`

	// 当mode值为0时,该参数有返回值。规则应用的URL链接,不包含域名。
	Url *string `json:"url,omitempty"`

	// 路径是否为前缀模式,当防护url以*结束,则为前缀模式。
	Prefix *bool `json:"prefix,omitempty"`

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

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

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

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

	// 限速模式:   - ip:IP限速,根据IP区分单个Web访问者。   - cookie:用户限速,根据Cookie键值区分单个Web访问者。   - header:用户限速,根据Header区分单个Web访问者。   - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。   - policy: 策略限速   - domain: 域名限速     - url: url限速
	TagType *DeleteCcRuleResponseTagType `json:"tag_type,omitempty"`

	// 用户标识,当限速模式为用户限速(cookie或header)时,需要传该参数。   - 选择cookie时,设置cookie字段名,即用户需要根据网站实际情况配置唯一可识别Web访问者的cookie中的某属性变量名。用户标识的cookie,不支持正则,必须完全匹配。例如:如果网站使用cookie中的某个字段name唯一标识用户,那么可以选取name字段来区分Web访问者。   - 选择header时,设置需要防护的自定义HTTP首部,即用户需要根据网站实际情况配置可识别Web访问者的HTTP首部。
	TagIndex *string `json:"tag_index,omitempty"`

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

	// 限制频率,单位为次,范围为1~2147483647
	LimitNum *int32 `json:"limit_num,omitempty"`

	// 限速周期,单位为秒,范围1~3600
	LimitPeriod *int32 `json:"limit_period,omitempty"`

	// 放行频率,单位为次,范围为0~2147483647。只有当防护动作类型为dynamic_block时,才需要传该参数。
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 阻断时间,单位为秒,范围为0~65535。当“防护动作”选择“阻断”时,可设置阻断后恢复正常访问页面的时间。
	LockTime *int32 `json:"lock_time,omitempty"`

	// 是否开启域名聚合统计。
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 是否开启全局计数。
	RegionAggregation *bool `json:"region_aggregation,omitempty"`

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

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Unaggregation *bool `json:"unaggregation,omitempty"`

	// 规则老化时间,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	AgingTime *int32 `json:"aging_time,omitempty"`

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer *int32 `json:"producer,omitempty"`

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

DeleteCcRuleResponse Response Object

func (DeleteCcRuleResponse) String

func (o DeleteCcRuleResponse) String() string

type DeleteCcRuleResponseTagType

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

func (DeleteCcRuleResponseTagType) MarshalJSON

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

func (*DeleteCcRuleResponseTagType) UnmarshalJSON

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

func (DeleteCcRuleResponseTagType) Value

type DeleteCertificateRequest

type DeleteCertificateRequest struct {

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

	// https证书id,您可以通过调用查询证书列表(ListCertificates)接口获取证书id
	CertificateId string `json:"certificate_id"`
}

DeleteCertificateRequest Request Object

func (DeleteCertificateRequest) String

func (o DeleteCertificateRequest) String() string

type DeleteCertificateResponse

type DeleteCertificateResponse struct {

	// 证书ID
	Id *string `json:"id,omitempty"`

	// 证书名
	Name *string `json:"name,omitempty"`

	// 证书文件,PEM编码
	Content *string `json:"content,omitempty"`

	// 证书私钥,PEM编码
	Key *string `json:"key,omitempty"`

	// 证书过期时间戳
	ExpireTime *int64 `json:"expire_time,omitempty"`

	// 证书过期状态,0-未过期,1-已过期,2-即将过期
	ExpStatus *int32 `json:"exp_status,omitempty"`

	// 证书上传时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 证书关联的域名信息
	BindHost       *[]BindHost `json:"bind_host,omitempty"`
	HttpStatusCode int         `json:"-"`
}

DeleteCertificateResponse Response Object

func (DeleteCertificateResponse) String

func (o DeleteCertificateResponse) String() string

type DeleteCloudWafPostPaidResourceRequest

type DeleteCloudWafPostPaidResourceRequest struct {

	// 区域id
	Region *string `json:"region,omitempty"`

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

DeleteCloudWafPostPaidResourceRequest Request Object

func (DeleteCloudWafPostPaidResourceRequest) String

type DeleteCloudWafPostPaidResourceResponse

type DeleteCloudWafPostPaidResourceResponse struct {

	// 云模式版本   - -2:已冻结   - -1:未订购   - 2:标准版   - 3:专业版   - 4:铂金版   - 7: 入门版   - 22:按需版本
	Type *int32 `json:"type,omitempty"`

	// 资源列表
	Resources *[]ResourceResponse `json:"resources,omitempty"`

	// 是否为新用户
	IsNewUser      *bool `json:"isNewUser,omitempty"`
	HttpStatusCode int   `json:"-"`
}

DeleteCloudWafPostPaidResourceResponse Response Object

func (DeleteCloudWafPostPaidResourceResponse) String

type DeleteCustomRuleRequest

type DeleteCustomRuleRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取
	RuleId string `json:"rule_id"`
}

DeleteCustomRuleRequest Request Object

func (DeleteCustomRuleRequest) String

func (o DeleteCustomRuleRequest) String() string

type DeleteCustomRuleResponse

type DeleteCustomRuleResponse struct {

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

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

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

	// 匹配条件列表,匹配条件必须同时满足。
	Conditions *[]CustomRuleConditions `json:"conditions,omitempty"`

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

	// 预留参数,可忽略。
	ActionMode *bool `json:"action_mode,omitempty"`

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

	// 创建精准防护规则的
	Timestamp *int64 `json:"timestamp,omitempty"`

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

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

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

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

DeleteCustomRuleResponse Response Object

func (DeleteCustomRuleResponse) String

func (o DeleteCustomRuleResponse) String() string

type DeleteGeoipRuleRequest

type DeleteGeoipRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 地理位置控制防护规则id,规则id从查询地理位置控制防护规则列表(ListGeoipRule)接口获取,响应体的id字段
	RuleId string `json:"rule_id"`
}

DeleteGeoipRuleRequest Request Object

func (DeleteGeoipRuleRequest) String

func (o DeleteGeoipRuleRequest) String() string

type DeleteGeoipRuleResponse

type DeleteGeoipRuleResponse struct {

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

	// 地理位置控制规则名称
	Name *string `json:"name,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 地理位置封禁区域: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古)
	Geoip *string `json:"geoip,omitempty"`

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

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

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

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

DeleteGeoipRuleResponse Response Object

func (DeleteGeoipRuleResponse) String

func (o DeleteGeoipRuleResponse) String() string

type DeleteHostRequest

type DeleteHostRequest struct {

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

	// 域名id,您可以通过调用查询云模式防护域名列表(ListHost)获取域名id
	InstanceId string `json:"instance_id"`
}

DeleteHostRequest Request Object

func (DeleteHostRequest) String

func (o DeleteHostRequest) String() string

type DeleteHostResponse

type DeleteHostResponse struct {

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

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

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

	// WAF部署模式,默认是1,目前仅支持反代模式
	Type *int32 `json:"type,omitempty"`

	// 防护域名是否使用代理    - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

	// 创建的云模式防护域名
	Hostname *string `json:"hostname,omitempty"`

	// cname后缀
	AccessCode *string `json:"access_code,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 创建防护域名的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 接入状态,0: 未接入,1:已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 是否使用独享ip   - true:使用独享ip   - false:不实用独享ip
	ExclusiveIp *bool `json:"exclusive_ip,omitempty"`

	// 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。
	PaidType *string `json:"paid_type,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag         *string `json:"web_tag,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteHostResponse Response Object

func (DeleteHostResponse) String

func (o DeleteHostResponse) String() string

type DeleteIgnoreRuleRequest

type DeleteIgnoreRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
	RuleId string `json:"rule_id"`
}

DeleteIgnoreRuleRequest Request Object

func (DeleteIgnoreRuleRequest) String

func (o DeleteIgnoreRuleRequest) String() string

type DeleteIgnoreRuleResponse

type DeleteIgnoreRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

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

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

	// 误报规则屏蔽路径,仅在mode为0的状态下有该字段
	Url *string `json:"url,omitempty"`

	// 需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔   - 当需要屏蔽某一条内置规则时,该参数值为该内置规则id,可以在Web应用防火墙控制台的防护策略->策略名称->Web基础防护的高级设置->防护规则中查询;也可以在防护事件的事件详情中查询内置规则id   - 当需要屏蔽web基础防护某一类规则时,该参数值为需要屏蔽的web基础防护某一类规则名。其中,xss:xxs攻击;webshell:网站木马;vuln:其他类型攻击;sqli:sql注入攻击;robot:恶意爬虫;rfi:远程文件包含;lfi:本地文件包含;cmdi:命令注入攻击   - 当需要屏蔽Web基础防护模块,该参数值为:all   - 当需要屏蔽规则为所有检测模块时,该参数值为:bypass
	Rule *string `json:"rule,omitempty"`

	// 版本号,0代表v1旧版本,1代表v2新版本;mode为0时,不存在conditions字段,存在url和url_logic字段;mode为1时,不存在url和url_logic字段,存在conditions字段
	Mode *int32 `json:"mode,omitempty"`

	// url匹配逻辑
	UrlLogic *string `json:"url_logic,omitempty"`

	// 条件
	Conditions *[]Condition `json:"conditions,omitempty"`

	// 高级配置项。**当前该参数类型错误,请用户忽略该参数**;正确类型可先参考更新接口,后续将改正。
	Advanced *[]Advanced `json:"advanced,omitempty"`

	// 防护域名或防护网站
	Domains        *[]string `json:"domains,omitempty"`
	HttpStatusCode int       `json:"-"`
}

DeleteIgnoreRuleResponse Response Object

func (DeleteIgnoreRuleResponse) String

func (o DeleteIgnoreRuleResponse) String() string

type DeleteInstanceRequest

type DeleteInstanceRequest struct {

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

	// 独享引擎ID(通过调用WAF的ListInstance接口获取所有独享引擎信息查询独享引擎ID)
	InstanceId string `json:"instance_id"`
}

DeleteInstanceRequest Request Object

func (DeleteInstanceRequest) String

func (o DeleteInstanceRequest) String() string

type DeleteInstanceResponse

type DeleteInstanceResponse struct {

	// 独享引擎实例ID
	Id *string `json:"id,omitempty"`

	// 独享引擎实例名称
	Instancename *string `json:"instancename,omitempty"`

	// 独享引擎实例Region ID
	Region *string `json:"region,omitempty"`

	// 可用区ID
	Zone *string `json:"zone,omitempty"`

	// CPU架构
	Arch *string `json:"arch,omitempty"`

	// ECS规格
	CpuFlavor *string `json:"cpu_flavor,omitempty"`

	// 独享引擎实例所在VPC ID
	VpcId *string `json:"vpc_id,omitempty"`

	// 独享引擎实例所在VPC的子网ID
	SubnetId *string `json:"subnet_id,omitempty"`

	// 独享引擎实例的业务面IP
	ServiceIp *string `json:"service_ip,omitempty"`

	// 独享引擎绑定的安全组
	SecurityGroupIds *[]string `json:"security_group_ids,omitempty"`

	// 独享引擎计费状态   - 0:正常计费   - 1:冻结,资源和数据会保留,但租户无法再正常使用云服务   - 2:终止,资源和数据将清除
	Status *int32 `json:"status,omitempty"`

	// 独享引擎运行状态   - 0:创建中   - 1:运行中   - 2:删除中   - 3:已删除   - 4:创建失败   - 5:已冻结   - 6:异常   - 7:更新中   - 8:更新失败
	RunStatus *int32 `json:"run_status,omitempty"`

	// 独享引擎接入状态(0:未接入,1:已接入)
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 独享引擎是否可升级(0:不可升级,1:可升级)
	Upgradable *int32 `json:"upgradable,omitempty"`

	// 云服务代码。 仅作为标记,用户可忽略。
	CloudServiceType *string `json:"cloudServiceType,omitempty"`

	// 云服务资源类型,仅作为标记,用户可忽略。
	ResourceType *string `json:"resourceType,omitempty"`

	// 云服务资源代码。仅作为标记,用户可忽略。
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	// 独享引擎ECS规格,如\"8vCPUs | 16GB\"
	Specification *string `json:"specification,omitempty"`

	// 独享引擎ECS ID
	ServerId *string `json:"serverId,omitempty"`

	// 引擎实例创建时间
	CreateTime     *int64 `json:"create_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

DeleteInstanceResponse Response Object

func (DeleteInstanceResponse) String

func (o DeleteInstanceResponse) String() string

type DeleteIpGroupRequest

type DeleteIpGroupRequest struct {

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

	// ip地址组id
	Id string `json:"id"`
}

DeleteIpGroupRequest Request Object

func (DeleteIpGroupRequest) String

func (o DeleteIpGroupRequest) String() string

type DeleteIpGroupResponse

type DeleteIpGroupResponse struct {

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

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

	// 地址组ip(以逗号分隔的ip或ip段)
	Ips *string `json:"ips,omitempty"`

	// 地址组长度
	Size *int32 `json:"size,omitempty"`

	// ip地址组绑定的规则列表
	Rules          *[]RuleInfo `json:"rules,omitempty"`
	HttpStatusCode int         `json:"-"`
}

DeleteIpGroupResponse Response Object

func (DeleteIpGroupResponse) String

func (o DeleteIpGroupResponse) String() string

type DeletePolicyRequest

type DeletePolicyRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`
}

DeletePolicyRequest Request Object

func (DeletePolicyRequest) String

func (o DeletePolicyRequest) String() string

type DeletePolicyResponse

type DeletePolicyResponse struct {

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

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

	// Web基础防护等级   - 1 : 宽松,防护粒度较粗,只拦截攻击特征比较明显的请求。当误报情况较多的场景下,建议选择“宽松”模式。   - 2:中等,默认为“中等”防护模式,满足大多数场景下的Web防护需求。   - 3:严格,防护粒度最精细,可以拦截具有复杂的绕过特征的攻击请求,例如jolokia网络攻击、探测CGI漏洞、探测 Druid SQL注入攻击
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式。   - false:短路检测,当用户的请求符合精准防护中的拦截条件时,便立刻终止检测,进行拦截   - true :全检测,请求符合精准防护中的拦截条件时,全检测不会立即拦截,会继续执行其他防护的检测,最后进行拦截。
	FullDetection *bool `json:"full_detection,omitempty"`

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

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

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

	// 智能访问控制防护项相关配置信息,目前该特性还处于公测阶段,只有部分局点支持该特性
	ModulexOptions map[string]interface{} `json:"modulex_options,omitempty"`

	// 与防护策略绑定的防护的域名id数组
	Hosts *[]string `json:"hosts,omitempty"`

	// 与防护策略绑定的防护的域名信息数组,相对于hosts字段,包含更详细的域名信息
	BindHost *[]BindHost `json:"bind_host,omitempty"`

	// 扩展字段,用于存放Web基础防护中一些开关配置等信息
	Extend map[string]string `json:"extend,omitempty"`

	// 创建防护策略的时间
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

DeletePolicyResponse Response Object

func (DeletePolicyResponse) String

func (o DeletePolicyResponse) String() string

type DeletePremiumHostRequest

type DeletePremiumHostRequest struct {

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

	// 独享模式域名ID
	HostId string `json:"host_id"`

	// 是否保留规则。false表示不保留该域名的防护策略;true表示保留该域名的防护策略。当要删除的防护域名的防护策略防护多个防护域名时,该参数不传。
	KeepPolicy *bool `json:"keepPolicy,omitempty"`
}

DeletePremiumHostRequest Request Object

func (DeletePremiumHostRequest) String

func (o DeletePremiumHostRequest) String() string

type DeletePremiumHostResponse

type DeletePremiumHostResponse struct {

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

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

	// 扩展字段,用于保存防护域名的一些配置信息。
	Extend map[string]string `json:"extend,omitempty"`

	// 华为云区域ID,控制台创建的域名会携带此参数,api调用创建的域名此参数为空,可以通过华为云上地区和终端节点文档查询区域ID对应的中文名称
	Region *string `json:"region,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

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

	// 防护域名初始绑定的防护策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id
	Policyid *string `json:"policyid,omitempty"`

	// 域名防护状态:  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	// 域名id,和id的值是一样的,属于冗余字段
	HostId         *string `json:"host_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeletePremiumHostResponse Response Object

func (DeletePremiumHostResponse) String

func (o DeletePremiumHostResponse) String() string

type DeletePrivacyRuleRequest

type DeletePrivacyRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 隐私屏蔽规则id,您可以通过调用查询隐私屏蔽规则列表(ListPrivacyRule)获取规则id
	RuleId string `json:"rule_id"`
}

DeletePrivacyRuleRequest Request Object

func (DeletePrivacyRuleRequest) String

func (o DeletePrivacyRuleRequest) String() string

type DeletePrivacyRuleResponse

type DeletePrivacyRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 创建规则的时间,格式为13位毫秒时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述,可选参数,设置该规则的备注信息。
	Description *string `json:"description,omitempty"`

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

	// 隐私屏蔽规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/_*,以\"*\"号结尾代表路径前缀
	Url *string `json:"url,omitempty"`

	// 屏蔽字段   - Params:请求参数   - Cookie:根据Cookie区分的Web访问者   - Header:自定义HTTP首部   - Form:表单参数
	Category *string `json:"category,omitempty"`

	// 屏蔽字段名
	Index          *string `json:"index,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeletePrivacyRuleResponse Response Object

func (DeletePrivacyRuleResponse) String

func (o DeletePrivacyRuleResponse) String() string

type DeletePunishmentRuleRequest

type DeletePunishmentRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 攻击惩罚规则id,通过查询攻击惩罚规则列表接口(ListPunishmentRules)获取
	RuleId string `json:"rule_id"`
}

DeletePunishmentRuleRequest Request Object

func (DeletePunishmentRuleRequest) String

type DeletePunishmentRuleResponse

type DeletePunishmentRuleResponse struct {

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

	// 所属策略id
	Policyid *string `json:"policyid,omitempty"`

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

	// 攻击惩罚类别
	Category *string `json:"category,omitempty"`

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

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

DeletePunishmentRuleResponse Response Object

func (DeletePunishmentRuleResponse) String

type DeleteValueListRequest

type DeleteValueListRequest struct {

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

	// 引用表id,通过查询引用表列表(ListValueList)接口获取
	Valuelistid string `json:"valuelistid"`
}

DeleteValueListRequest Request Object

func (DeleteValueListRequest) String

func (o DeleteValueListRequest) String() string

type DeleteValueListResponse

type DeleteValueListResponse struct {

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

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

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

	// 删除引用表的时间,时间为13位毫秒时间戳
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

DeleteValueListResponse Response Object

func (DeleteValueListResponse) String

func (o DeleteValueListResponse) String() string

type DeleteWhiteBlackIpRuleRequest

type DeleteWhiteBlackIpRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 黑白名单规则id,您可以通过调用查询黑白名单规则列表(ListWhiteblackipRule)获取黑白名单规则id
	RuleId string `json:"rule_id"`
}

DeleteWhiteBlackIpRuleRequest Request Object

func (DeleteWhiteBlackIpRuleRequest) String

type DeleteWhiteBlackIpRuleResponse

type DeleteWhiteBlackIpRuleResponse struct {

	// 黑白名单规则id
	Id *string `json:"id,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

	// 删除规则时间,13位毫秒时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

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

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

	// 黑白名单ip地址,标准的ip地址或地址段,例如:42.123.120.66或42.123.120.0/16
	Addr *string `json:"addr,omitempty"`

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

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

DeleteWhiteBlackIpRuleResponse Response Object

func (DeleteWhiteBlackIpRuleResponse) String

type DomainClassificationItem

type DomainClassificationItem struct {

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

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

func (DomainClassificationItem) String

func (o DomainClassificationItem) String() string

type DomainItem

type DomainItem struct {

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

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

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`
}

DomainItem 受攻击域名统计

func (DomainItem) String

func (o DomainItem) String() string

type ExpackProductInfo

type ExpackProductInfo struct {

	// 扩展包数量
	ResourceSize *int32 `json:"resource_size,omitempty"`
}

func (ExpackProductInfo) String

func (o ExpackProductInfo) String() string

type Flag

type Flag struct {

	// 是否开启pci_3ds合规认证   - true:开启   - false:不开启
	Pci3ds *FlagPci3ds `json:"pci_3ds,omitempty"`

	// 是否开启pci_dss合规认证   - true:开启   - false:不开启
	PciDss *FlagPciDss `json:"pci_dss,omitempty"`

	// old:代表域名使用的老的cname,new:代表域名使用新的cname
	Cname *FlagCname `json:"cname,omitempty"`

	// 域名是否开启ipv6   - true:支持   - false:不支持
	IsDualAz *FlagIsDualAz `json:"is_dual_az,omitempty"`

	// 域名是否开启ipv6   - true:支持   - false:不支持
	Ipv6 *FlagIpv6 `json:"ipv6,omitempty"`
}

Flag 特殊标识,用于前端使用

func (Flag) String

func (o Flag) String() string

type FlagCname

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

func (FlagCname) MarshalJSON

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

func (*FlagCname) UnmarshalJSON

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

func (FlagCname) Value

func (c FlagCname) Value() string

type FlagCnameEnum

type FlagCnameEnum struct {
	OLD FlagCname
	NEW FlagCname
}

func GetFlagCnameEnum

func GetFlagCnameEnum() FlagCnameEnum

type FlagIpv6

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

func (FlagIpv6) MarshalJSON

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

func (*FlagIpv6) UnmarshalJSON

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

func (FlagIpv6) Value

func (c FlagIpv6) Value() string

type FlagIpv6Enum

type FlagIpv6Enum struct {
	TRUE  FlagIpv6
	FALSE FlagIpv6
}

func GetFlagIpv6Enum

func GetFlagIpv6Enum() FlagIpv6Enum

type FlagIsDualAz

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

func (FlagIsDualAz) MarshalJSON

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

func (*FlagIsDualAz) UnmarshalJSON

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

func (FlagIsDualAz) Value

func (c FlagIsDualAz) Value() string

type FlagIsDualAzEnum

type FlagIsDualAzEnum struct {
	TRUE  FlagIsDualAz
	FALSE FlagIsDualAz
}

func GetFlagIsDualAzEnum

func GetFlagIsDualAzEnum() FlagIsDualAzEnum

type FlagPci3ds

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

func (FlagPci3ds) MarshalJSON

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

func (*FlagPci3ds) UnmarshalJSON

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

func (FlagPci3ds) Value

func (c FlagPci3ds) Value() string

type FlagPci3dsEnum

type FlagPci3dsEnum struct {
	TRUE  FlagPci3ds
	FALSE FlagPci3ds
}

func GetFlagPci3dsEnum

func GetFlagPci3dsEnum() FlagPci3dsEnum

type FlagPciDss

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

func (FlagPciDss) MarshalJSON

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

func (*FlagPciDss) UnmarshalJSON

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

func (FlagPciDss) Value

func (c FlagPciDss) Value() string

type FlagPciDssEnum

type FlagPciDssEnum struct {
	TRUE  FlagPciDss
	FALSE FlagPciDss
}

func GetFlagPciDssEnum

func GetFlagPciDssEnum() FlagPciDssEnum

type GeOIpItem

type GeOIpItem struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 地理位置控制规则名称
	Name *string `json:"name,omitempty"`

	// 地理位置封禁区域: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古)
	Geoip *string `json:"geoip,omitempty"`

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

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

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

GeOIpItem 地理位置控制规则

func (GeOIpItem) String

func (o GeOIpItem) String() string

type GeoClassificationItem

type GeoClassificationItem struct {

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

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

func (GeoClassificationItem) String

func (o GeoClassificationItem) String() string

type GeoItem

type GeoItem struct {

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

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

GeoItem 攻击来源区域统计

func (GeoItem) String

func (o GeoItem) String() string

type HostFlag

type HostFlag struct {

	// 是否开启pci_3ds合规认证,该参数需要与tls和cipher参数同时使用,且tls参数值需要设置为TLS v1.2,cipher参数值设置为cipher_2。注:pci_3ds合规认证开启后不支持关闭,在开启pci_3ds合规认证前,请先阅读帮助中心Web应用防火墙WAF文档中关于pci_3ds合规认证的说明   - true:开启   - false:不开启
	Pci3ds *HostFlagPci3ds `json:"pci_3ds,omitempty"`

	// 是否开启pci_dss合规认证,该参数需要与tls和cipher参数同时使用,且tls参数值需要设置为TLS v1.2,cipher参数值设置为cipher_2。注:在开启pci_dss合规认证前,请先阅读帮助中心Web应用防火墙WAF文档中关于pci_dss合规认证的说明   - true:开启   - false:不开启
	PciDss *HostFlagPciDss `json:"pci_dss,omitempty"`
}

func (HostFlag) String

func (o HostFlag) String() string

type HostFlagPci3ds

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

func (HostFlagPci3ds) MarshalJSON

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

func (*HostFlagPci3ds) UnmarshalJSON

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

func (HostFlagPci3ds) Value

func (c HostFlagPci3ds) Value() string

type HostFlagPci3dsEnum

type HostFlagPci3dsEnum struct {
	TRUE  HostFlagPci3ds
	FALSE HostFlagPci3ds
}

func GetHostFlagPci3dsEnum

func GetHostFlagPci3dsEnum() HostFlagPci3dsEnum

type HostFlagPciDss

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

func (HostFlagPciDss) MarshalJSON

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

func (*HostFlagPciDss) UnmarshalJSON

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

func (HostFlagPciDss) Value

func (c HostFlagPciDss) Value() string

type HostFlagPciDssEnum

type HostFlagPciDssEnum struct {
	TRUE  HostFlagPciDss
	FALSE HostFlagPciDss
}

func GetHostFlagPciDssEnum

func GetHostFlagPciDssEnum() HostFlagPciDssEnum

type IdHostnameEntry

type IdHostnameEntry struct {

	// 防护域名ID
	Id string `json:"id"`

	// 防护域名
	Hostname string `json:"hostname"`
}

IdHostnameEntry 独享引擎实例防护域名信息

func (IdHostnameEntry) String

func (o IdHostnameEntry) String() string

type IgnoreAdvanced

type IgnoreAdvanced struct {

	// 字段类型,支持的字段类型有:Params、Cookie、Header、Body、Multipart。   - 当选择“Params”、“Cookie”或者“Header”字段时,可以配置“全部”或根据需求配置子字段   - 当选择“Body”或“Multipart”字段时,可以配置“全部”
	Index *string `json:"index,omitempty"`

	// 指定字段类型的子字段,默认值为“全部”
	Contents *[]string `json:"contents,omitempty"`
}

IgnoreAdvanced 若想忽略来源于某攻击事件下指定字段的攻击,可在“高级设置”里选择指定字段进行配置,配置完成后,WAF将不再拦截指定字段的攻击事件。当时,当不检测模块为所有检测模块时,不支持配置该高级配置。

func (IgnoreAdvanced) String

func (o IgnoreAdvanced) String() string

type IgnoreRuleBody

type IgnoreRuleBody struct {

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

	// 该规则属于的防护策略的id
	Policyid *string `json:"policyid,omitempty"`

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

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

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

	// 误报规则屏蔽路径,仅在mode为0的状态下有该字段
	Url *string `json:"url,omitempty"`

	// 需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔   - 当需要屏蔽某一条内置规则时,该参数值为该内置规则id,可以在Web应用防火墙控制台的防护策略->策略名称->Web基础防护的高级设置->防护规则中查询;也可以在防护事件的事件详情中查询内置规则id   - 当需要屏蔽web基础防护某一类规则时,该参数值为需要屏蔽的web基础防护某一类规则名。其中,xss:xxs攻击;webshell:网站木马;vuln:其他类型攻击;sqli:sql注入攻击;robot:恶意爬虫;rfi:远程文件包含;lfi:本地文件包含;cmdi:命令注入攻击   - 当需要屏蔽Web基础防护模块,该参数值为:all   - 当需要屏蔽规则为所有检测模块时,该参数值为:bypass
	Rule *string `json:"rule,omitempty"`

	// 版本号,0代表v1旧版本,1代表v2新版本;mode为0时,不存在conditions字段,存在url和url_logic字段;mode为1时,不存在url和url_logic字段,存在conditions字段
	Mode *int32 `json:"mode,omitempty"`

	// 匹配逻辑支持(equal:等于,not_equal:不等于,contain:包含,not_contain:不包含,prefix:前缀为,not_prefix:前缀不为,suffix:后缀为,not_suffix:后缀不为,regular_match:正则匹配,regular_not_match:正则不匹配)
	UrlLogic *string `json:"url_logic,omitempty"`

	// 条件列表
	Conditions *[]Condition `json:"conditions,omitempty"`

	// 防护域名或防护网站
	Domain *[]string `json:"domain,omitempty"`

	// 高级配置项。**当前该参数类型错误,请用户忽略该参数**;正确类型可先参考更新接口,后续将改正。
	Advanced *[]Advanced `json:"advanced,omitempty"`
}

func (IgnoreRuleBody) String

func (o IgnoreRuleBody) String() string

type InstanceInfo

type InstanceInfo struct {

	// 引擎实例ID
	Id string `json:"id"`

	// 引擎实例名称
	Name string `json:"name"`
}

InstanceInfo 创建的引擎实例信息

func (InstanceInfo) String

func (o InstanceInfo) String() string

type IpClassificationItem

type IpClassificationItem struct {

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

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

func (IpClassificationItem) String

func (o IpClassificationItem) String() string

type IpGroup

type IpGroup struct {

	// Ip地址组id,在新增Ip地址组时系统自动生成的唯一标识
	Id *string `json:"id,omitempty"`

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

	// Ip地址组中包含Ip/Ip段的数量
	Size *int64 `json:"size,omitempty"`
}

func (IpGroup) String

func (o IpGroup) String() string

type IpGroupBody

type IpGroupBody struct {

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

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

	// 地址组ip(以逗号分隔的ip或ip段)
	Ips *string `json:"ips,omitempty"`

	// 地址组长度
	Size *int32 `json:"size,omitempty"`

	// ip地址组绑定的规则列表
	Rules *[]RuleInfo `json:"rules,omitempty"`

	ShareInfo *ShareInfo `json:"share_info,omitempty"`

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

IpGroupBody ip地址组明细

func (IpGroupBody) String

func (o IpGroupBody) String() string

type IpItem

type IpItem struct {

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

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

IpItem 攻击源Ip

func (IpItem) String

func (o IpItem) String() string

type IpsItem

type IpsItem struct {

	// waf回源Ip
	Ips *[]string `json:"ips,omitempty"`

	// 回源Ip更新时间
	UpdateTime *int64 `json:"update_time,omitempty"`
}

IpsItem 回源Ip信息

func (IpsItem) String

func (o IpsItem) String() string

type LeakageListInfo

type LeakageListInfo struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则应用的url
	Url *string `json:"url,omitempty"`

	// 类别(响应码:code,敏感信息:sensitive)
	Category *string `json:"category,omitempty"`

	// 规则内容
	Contents *[]string `json:"contents,omitempty"`

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

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

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

func (LeakageListInfo) String

func (o LeakageListInfo) String() string

type ListAnticrawlerRulesRequest

type ListAnticrawlerRulesRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 偏移量,表示查询该偏移量之后的记录。
	Offset int32 `json:"offset"`

	// 查询返回记录的数量限制。
	Limit int32 `json:"limit"`

	// JS脚本反爬虫规则防护模式   - anticrawler_except_url: 防护所有路径模式,在该模式下,查询的JS脚本反爬虫规则为排除的防护路径规则   - anticrawler_specific_url: 防护指定路径模式,在该模式下,查询的JS脚本反爬虫规则为指定要防护的路径规则
	Type *string `json:"type,omitempty"`
}

ListAnticrawlerRulesRequest Request Object

func (ListAnticrawlerRulesRequest) String

type ListAnticrawlerRulesResponse

type ListAnticrawlerRulesResponse struct {

	// 该策略下反爬虫规则数量
	Total *int32 `json:"total,omitempty"`

	// 反爬虫规则列表
	Items          *[]AnticrawlerRule `json:"items,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListAnticrawlerRulesResponse Response Object

func (ListAnticrawlerRulesResponse) String

type ListAntileakageRulesRequest

type ListAntileakageRulesRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防敏感信息泄露规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 偏移量,表示查询该偏移量之后的记录。
	Offset int32 `json:"offset"`

	// 查询返回记录的数量限制。
	Limit int32 `json:"limit"`
}

ListAntileakageRulesRequest Request Object

func (ListAntileakageRulesRequest) String

type ListAntileakageRulesResponse

type ListAntileakageRulesResponse struct {

	// 防泄漏规则数量
	Total *int32 `json:"total,omitempty"`

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

ListAntileakageRulesResponse Response Object

func (ListAntileakageRulesResponse) String

type ListAntitamperRuleRequest

type ListAntitamperRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ListAntitamperRuleRequest Request Object

func (ListAntitamperRuleRequest) String

func (o ListAntitamperRuleRequest) String() string

type ListAntitamperRuleResponse

type ListAntitamperRuleResponse struct {

	// 网页防篡改规则总条数
	Total *int32 `json:"total,omitempty"`

	// 网页防篡改规则数组
	Items          *[]AntiTamperRuleResponseBody `json:"items,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

ListAntitamperRuleResponse Response Object

func (ListAntitamperRuleResponse) String

type ListBandwidthTimelineRequest

type ListBandwidthTimelineRequest struct {

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

	// 查询的带宽统计数据的起始时间(13位毫秒时间戳),需要和to同时使用
	From int64 `json:"from"`

	// 查询的带宽统计数据的结束时间(13位毫秒时间戳),需要和from同时使用
	To int64 `json:"to"`

	// 域名id,用于查询指定的防护域名在from到to这段时间内的带宽数据。通过查询云模式防护域名列表(ListHost)获取域名id或者通过独享模式域名列表(ListPremiumHost)获取域名id
	Hosts *string `json:"hosts,omitempty"`

	// 引擎实例id,用于查询指定的独享引擎实例所防护的域名在from到to这段时间内的带宽数据。
	Instances *string `json:"instances,omitempty"`

	// 展示维度,按天展示时传\"DAY\";默认不传,按照分钟展示。
	GroupBy *string `json:"group_by,omitempty"`
}

ListBandwidthTimelineRequest Request Object

func (ListBandwidthTimelineRequest) String

type ListBandwidthTimelineResponse

type ListBandwidthTimelineResponse struct {

	// 带宽时间线统计数据,包括带宽(BANDWIDTH)、入带宽(IN_BANDWIDTH)以及出带宽(OUT_BANDWIDTH)统计数据。
	Body           *[]BandwidthStatisticsTimelineItem `json:"body,omitempty"`
	HttpStatusCode int                                `json:"-"`
}

ListBandwidthTimelineResponse Response Object

func (ListBandwidthTimelineResponse) String

type ListCcRulesRequest

type ListCcRulesRequest struct {

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

	// 策略id(策略id从查询防护策略列表接口获取)
	PolicyId string `json:"policy_id"`

	// 偏移量,表示查询该偏移量之后的记录。
	Offset int32 `json:"offset"`

	// 查询返回记录的数量限制。
	Limit int32 `json:"limit"`
}

ListCcRulesRequest Request Object

func (ListCcRulesRequest) String

func (o ListCcRulesRequest) String() string

type ListCcRulesResponse

type ListCcRulesResponse struct {

	// Number of rules in the policy
	Total *int32 `json:"total,omitempty"`

	// Array of Cc rules
	Items          *[]CcrulesListInfo `json:"items,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListCcRulesResponse Response Object

func (ListCcRulesResponse) String

func (o ListCcRulesResponse) String() string

type ListCertificatesRequest

type ListCertificatesRequest struct {

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

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
	Pagesize *int32 `json:"pagesize,omitempty"`

	// 证书名称
	Name *string `json:"name,omitempty"`

	// 是否获取证书关联的域名,默认为false   -true:获取已关联域名的证书   -false:获取未关联域名的证书
	Host *bool `json:"host,omitempty"`

	// 证书过期状态,0-未过期,1-已过期,2-即将过期(证书将在一个月内过期)
	ExpStatus *int32 `json:"exp_status,omitempty"`
}

ListCertificatesRequest Request Object

func (ListCertificatesRequest) String

func (o ListCertificatesRequest) String() string

type ListCertificatesResponse

type ListCertificatesResponse struct {

	// 证书列表
	Items *[]CertificateBody `json:"items,omitempty"`

	// 证书总数
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListCertificatesResponse Response Object

func (ListCertificatesResponse) String

func (o ListCertificatesResponse) String() string

type ListCompositeHostsRequest

type ListCompositeHostsRequest struct {

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

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。如果需要一次查全部域名,该参数值填-1。
	Pagesize *int32 `json:"pagesize,omitempty"`

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

	// 防护策略名称
	Policyname *string `json:"policyname,omitempty"`

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名所属WAF模式
	WafType *string `json:"waf_type,omitempty"`

	// 域名是否使用HTTPS
	IsHttps *bool `json:"is_https,omitempty"`
}

ListCompositeHostsRequest Request Object

func (ListCompositeHostsRequest) String

func (o ListCompositeHostsRequest) String() string

type ListCompositeHostsResponse

type ListCompositeHostsResponse struct {

	// 所有防护域名的数量
	Total *int32 `json:"total,omitempty"`

	// 云模式防护域名的数量
	CloudTotal *int32 `json:"cloud_total,omitempty"`

	// 独享模式防护域名的数量
	PremiumTotal *int32 `json:"premium_total,omitempty"`

	// 详细的防护域名信息
	Items          *[]CompositeHostResponse `json:"items,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

ListCompositeHostsResponse Response Object

func (ListCompositeHostsResponse) String

type ListCustomRulesRequest

type ListCustomRulesRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 偏移量,表示查询该偏移量之后的记录。
	Offset int32 `json:"offset"`

	// 查询返回记录的数量限制。
	Limit int32 `json:"limit"`
}

ListCustomRulesRequest Request Object

func (ListCustomRulesRequest) String

func (o ListCustomRulesRequest) String() string

type ListCustomRulesResponse

type ListCustomRulesResponse struct {

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

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

ListCustomRulesResponse Response Object

func (ListCustomRulesResponse) String

func (o ListCustomRulesResponse) String() string

type ListEventItems

type ListEventItems struct {

	// 事件id
	Id *string `json:"id,omitempty"`

	// 攻击发生时的时间戳(毫秒)
	Time *int64 `json:"time,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 源ip,Web访问者的IP地址(攻击者IP地址)
	Sip *string `json:"sip,omitempty"`

	// 域名
	Host *string `json:"host,omitempty"`

	// 攻击的url链接
	Url *string `json:"url,omitempty"`

	// 攻击类型:   - vuln:其它攻击类型   - sqli: sql注入攻击   - lfi: 本地文件包含  - cmdi:命令注入攻击   - xss:XSS攻击   - robot:恶意爬虫   - rfi:远程文件包含   - custom_custom:精准防护   - webshell:网站木马   - custom_whiteblackip:黑白名单拦截   - custom_geoip:地理访问控制拦截   - antitamper:防篡改   - anticrawler:反爬虫    - leakage:网站信息防泄漏   - illegal:非法请求
	Attack *string `json:"attack,omitempty"`

	// 命中的规则id
	Rule *string `json:"rule,omitempty"`

	// 命中的载荷
	Payload *string `json:"payload,omitempty"`

	// 命中的载荷位置
	PayloadLocation *string `json:"payload_location,omitempty"`

	// 防护动作
	Action *string `json:"action,omitempty"`

	// 请求方法和路径
	RequestLine *string `json:"request_line,omitempty"`

	// http请求header
	Headers *interface{} `json:"headers,omitempty"`

	// 请求cookie
	Cookie *string `json:"cookie,omitempty"`

	// 响应码状态
	Status *string `json:"status,omitempty"`

	// 处理时长
	ProcessTime *int32 `json:"process_time,omitempty"`

	// 地理位置
	Region *string `json:"region,omitempty"`

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

	// 响应时长
	ResponseTime *int64 `json:"response_time,omitempty"`

	// 响应体大小
	ResponseSize *int32 `json:"response_size,omitempty"`

	// 响应体
	ResponseBody *string `json:"response_body,omitempty"`

	// 请求体
	RequestBody *string `json:"request_body,omitempty"`
}

ListEventItems 攻击类型

func (ListEventItems) String

func (o ListEventItems) String() string

type ListEventRequest

type ListEventRequest struct {

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

	// 查询日志的时间范围(不能和from、to同时使用,同时使用以recent为准),且recent参数与from、to必须使用其中一个。当同时使用recent参数与from、to时,以recent参数为准
	Recent *ListEventRequestRecent `json:"recent,omitempty"`

	// 起始时间(13位时间戳),需要和to同时使用,不能和recent参数同时使用
	From *int64 `json:"from,omitempty"`

	// 结束时间(13位时间戳),需要和from同时使用,不能和recent参数同时使用
	To *int64 `json:"to,omitempty"`

	// 攻击类型:   - vuln:其它攻击类型   - sqli: sql注入攻击   - lfi: 本地文件包含  - cmdi:命令注入攻击   - xss:XSS攻击   - robot:恶意爬虫   - rfi:远程文件包含   - custom_custom:精准防护   - cc: cc攻击   - webshell:网站木马   - custom_whiteblackip:黑白名单拦截   - custom_geoip:地理访问控制拦截   - antitamper:防篡改   - anticrawler:反爬虫    - leakage:网站信息防泄漏   - illegal:非法请求
	Attacks *[]string `json:"attacks,omitempty"`

	// 域名id,从获取防护网站列表(ListHost)接口获取域名id
	Hosts *[]string `json:"hosts,omitempty"`

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ListEventRequest Request Object

func (ListEventRequest) String

func (o ListEventRequest) String() string

type ListEventRequestRecent

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

func (ListEventRequestRecent) MarshalJSON

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

func (*ListEventRequestRecent) UnmarshalJSON

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

func (ListEventRequestRecent) Value

func (c ListEventRequestRecent) Value() string

type ListEventRequestRecentEnum

type ListEventRequestRecentEnum struct {
	YESTERDAY ListEventRequestRecent
	TODAY     ListEventRequestRecent
	E_3DAYS   ListEventRequestRecent
	E_1WEEK   ListEventRequestRecent
	E_1MONTH  ListEventRequestRecent
}

func GetListEventRequestRecentEnum

func GetListEventRequestRecentEnum() ListEventRequestRecentEnum

type ListEventResponse

type ListEventResponse struct {

	// 攻击事件数量
	Total *int32 `json:"total,omitempty"`

	// 攻击事件详情
	Items          *[]ListEventItems `json:"items,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ListEventResponse Response Object

func (ListEventResponse) String

func (o ListEventResponse) String() string

type ListGeoipRuleRequest

type ListGeoipRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ListGeoipRuleRequest Request Object

func (ListGeoipRuleRequest) String

func (o ListGeoipRuleRequest) String() string

type ListGeoipRuleResponse

type ListGeoipRuleResponse struct {

	// 该策略下地理位置控制规则数量
	Total *int32 `json:"total,omitempty"`

	// 地理位置控制规则数组
	Items          *[]GeOIpItem `json:"items,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ListGeoipRuleResponse Response Object

func (ListGeoipRuleResponse) String

func (o ListGeoipRuleResponse) String() string

type ListHostRequest

type ListHostRequest struct {

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

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。如果需要一次查全部域名,该参数值填-1。
	Pagesize *int32 `json:"pagesize,omitempty"`

	// 要查询的防护域名,用于查询指定防护域名信息;可不传,查询用户云模式下所有防护域名
	Hostname *string `json:"hostname,omitempty"`

	// 防护策略名,用于查询指定防护策略下的域名,可不传
	Policyname *string `json:"policyname,omitempty"`
}

ListHostRequest Request Object

func (ListHostRequest) String

func (o ListHostRequest) String() string

type ListHostResponse

type ListHostResponse struct {

	// 云模式防护域名的数量
	Total *int32 `json:"total,omitempty"`

	// 详细的云模式防护域名列表信息
	Items          *[]CloudWafHostItem `json:"items,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

ListHostResponse Response Object

func (ListHostResponse) String

func (o ListHostResponse) String() string

type ListHostRouteRequest

type ListHostRouteRequest struct {

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

	// 域名id,您可以通过调用查询云模式防护域名列表(ListHost)获取域名id
	InstanceId string `json:"instance_id"`
}

ListHostRouteRequest Request Object

func (ListHostRouteRequest) String

func (o ListHostRouteRequest) String() string

type ListHostRouteResponse

type ListHostRouteResponse struct {

	// 路由线路数量
	Total *int32 `json:"total,omitempty"`

	// 单个路由线路详细信息
	Items          *[]RouteBody `json:"items,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ListHostRouteResponse Response Object

func (ListHostRouteResponse) String

func (o ListHostRouteResponse) String() string

type ListIgnoreRuleRequest

type ListIgnoreRuleRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的全局白名单规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ListIgnoreRuleRequest Request Object

func (ListIgnoreRuleRequest) String

func (o ListIgnoreRuleRequest) String() string

type ListIgnoreRuleResponse

type ListIgnoreRuleResponse struct {

	// 该策略下全局白名单规则数量
	Total *int32 `json:"total,omitempty"`

	// 全局白名单规则信息数组
	Items          *[]IgnoreRuleBody `json:"items,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ListIgnoreRuleResponse Response Object

func (ListIgnoreRuleResponse) String

func (o ListIgnoreRuleResponse) String() string

type ListInstance

type ListInstance struct {

	// 独享引擎实例ID
	Id *string `json:"id,omitempty"`

	// 独享引擎实例名称
	Instancename *string `json:"instancename,omitempty"`

	// 独享引擎实例Region ID
	Region *string `json:"region,omitempty"`

	// 可用区ID
	Zone *string `json:"zone,omitempty"`

	// CPU架构
	Arch *string `json:"arch,omitempty"`

	// ECS规格
	CpuFlavor *string `json:"cpu_flavor,omitempty"`

	// 独享引擎实例所在VPC ID
	VpcId *string `json:"vpc_id,omitempty"`

	// 独享引擎实例所在VPC的子网ID
	SubnetId *string `json:"subnet_id,omitempty"`

	// 独享引擎实例的业务面IP
	ServiceIp *string `json:"service_ip,omitempty"`

	// 独享引擎绑定的安全组
	SecurityGroupIds *[]string `json:"security_group_ids,omitempty"`

	// 独享引擎计费状态   - 0:正常计费   - 1:冻结,资源和数据会保留,但租户无法再正常使用云服务   - 2:终止,资源和数据将清除
	Status *int32 `json:"status,omitempty"`

	// 独享引擎运行状态   - 0:创建中   - 1:运行中   - 2:删除中   - 3:已删除   - 4:创建失败   - 5:已冻结   - 6:异常   - 7:更新中   - 8:更新失败
	RunStatus *int32 `json:"run_status,omitempty"`

	// 独享引擎接入状态(0:未接入,1:已接入)
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 独享引擎是否可升级(0:不可升级,1:可升级)
	Upgradable *int32 `json:"upgradable,omitempty"`

	// 云服务代码。 仅作为标记,用户可忽略。
	CloudServiceType *string `json:"cloudServiceType,omitempty"`

	// 云服务资源类型,仅作为标记,用户可忽略。
	ResourceType *string `json:"resourceType,omitempty"`

	// 云服务资源代码。仅作为标记,用户可忽略。
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	// 独享引擎ECS规格,如\"8vCPUs | 16GB\"
	Specification *string `json:"specification,omitempty"`

	// 独享引擎防护的域名
	Hosts *[]IdHostnameEntry `json:"hosts,omitempty"`

	// 独享引擎ECS ID
	ServerId *string `json:"serverId,omitempty"`

	// 引擎实例创建时间
	CreateTime *int64 `json:"create_time,omitempty"`

	// 独享引擎实例名称
	InstanceName *string `json:"instance_name,omitempty"`
}

ListInstance 独享引擎实例信息

func (ListInstance) String

func (o ListInstance) String() string

type ListInstanceRequest

type ListInstanceRequest struct {

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

	// 分页查询参数,第page页,默认值为1
	Page *int32 `json:"page,omitempty"`

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

	// 模糊查询,独享引擎名称
	Instancename *string `json:"instancename,omitempty"`
}

ListInstanceRequest Request Object

func (ListInstanceRequest) String

func (o ListInstanceRequest) String() string

type ListInstanceResponse

type ListInstanceResponse struct {

	// 独享引擎实例数量
	Total *int32 `json:"total,omitempty"`

	// 是否曾经购买过独享引擎
	Purchased *bool `json:"purchased,omitempty"`

	// 详细的独享引擎信息列表
	Items          *[]ListInstance `json:"items,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ListInstanceResponse Response Object

func (ListInstanceResponse) String

func (o ListInstanceResponse) String() string

type ListIpGroupRequest

type ListIpGroupRequest struct {

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

	// 页码,默认值为1
	Page *int32 `json:"page,omitempty"`

	// 每页的条数,单页条数限制100,默认值为10
	Pagesize *int32 `json:"pagesize,omitempty"`

	// ip地址组名称,支持模糊查询
	Name *string `json:"name,omitempty"`

	// ip地址或ip段,传入该参数将查询包含传入的ip地址或ip段的地址组
	Ip *string `json:"ip,omitempty"`
}

ListIpGroupRequest Request Object

func (ListIpGroupRequest) String

func (o ListIpGroupRequest) String() string

type ListIpGroupResponse

type ListIpGroupResponse struct {

	// 该用户当前企业项目下Ip地址组数量,只包含本地地址组
	Total *int32 `json:"total,omitempty"`

	// 地址组信息列表
	Items *[]IpGroupBody `json:"items,omitempty"`

	// 该用户总的Ip地址组数量,包含本地与共享地址组
	CloudTotal     *int32 `json:"cloudTotal,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListIpGroupResponse Response Object

func (ListIpGroupResponse) String

func (o ListIpGroupResponse) String() string

type ListNoticeConfigsRequest

type ListNoticeConfigsRequest struct {

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

ListNoticeConfigsRequest Request Object

func (ListNoticeConfigsRequest) String

func (o ListNoticeConfigsRequest) String() string

type ListNoticeConfigsResponse

type ListNoticeConfigsResponse struct {

	// 配置的告警通知总数量
	Total *int32 `json:"total,omitempty"`

	// 配置的告警通知
	Items          *[]AlertNoticeConfigResponse `json:"items,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

ListNoticeConfigsResponse Response Object

func (ListNoticeConfigsResponse) String

func (o ListNoticeConfigsResponse) String() string

type ListOverviewsClassificationRequest

type ListOverviewsClassificationRequest struct {

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

	// 起始时间(13位毫秒时间戳),需要和to同时使用
	From int64 `json:"from"`

	// 结束时间(13位毫秒时间戳),需要和from同时使用
	To int64 `json:"to"`

	// 要查询的前几的结果,最大值为10,默认值为5。
	Top *int32 `json:"top,omitempty"`

	// 域名id,通过查询云模式防护域名列表(ListHost)获取域名id或者通过独享模式域名列表(ListPremiumHost)获取域名id。默认不传,查询该项目下所有防护域名的top业务异常统计信息。
	Hosts *string `json:"hosts,omitempty"`

	// 要查询引擎实例id
	Instances *string `json:"instances,omitempty"`
}

ListOverviewsClassificationRequest Request Object

func (ListOverviewsClassificationRequest) String

type ListOverviewsClassificationResponse

type ListOverviewsClassificationResponse 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:"-"`
}

ListOverviewsClassificationResponse Response Object

func (ListOverviewsClassificationResponse) String

type ListPolicyRequest

type ListPolicyRequest struct {

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

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
	Pagesize *int32 `json:"pagesize,omitempty"`

	// 策略名称
	Name *string `json:"name,omitempty"`
}

ListPolicyRequest Request Object

func (ListPolicyRequest) String

func (o ListPolicyRequest) String() string

type ListPolicyResponse

type ListPolicyResponse struct {

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

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

ListPolicyResponse Response Object

func (ListPolicyResponse) String

func (o ListPolicyResponse) String() string

type ListPremiumHostRequest

type ListPremiumHostRequest struct {

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

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *string `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。如果需要一次查全部域名,该参数值填-1。
	Pagesize *string `json:"pagesize,omitempty"`

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

	// 策略名称
	Policyname *string `json:"policyname,omitempty"`

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`
}

ListPremiumHostRequest Request Object

func (ListPremiumHostRequest) String

func (o ListPremiumHostRequest) String() string

type ListPremiumHostResponse

type ListPremiumHostResponse struct {

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

	// 详细的防护域名信息数组
	Items          *[]SimplePremiumWafHost `json:"items,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

ListPremiumHostResponse Response Object

func (ListPremiumHostResponse) String

func (o ListPremiumHostResponse) String() string

type ListPrivacyRuleRequest

type ListPrivacyRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
	Pagesize *int32 `json:"pagesize,omitempty"`
}

ListPrivacyRuleRequest Request Object

func (ListPrivacyRuleRequest) String

func (o ListPrivacyRuleRequest) String() string

type ListPrivacyRuleResponse

type ListPrivacyRuleResponse struct {

	// 规则条数
	Total *int32 `json:"total,omitempty"`

	// 规则详情数组
	Items          *[]PrivacyResponseBody `json:"items,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ListPrivacyRuleResponse Response Object

func (ListPrivacyRuleResponse) String

func (o ListPrivacyRuleResponse) String() string

type ListPunishmentRulesRequest

type ListPunishmentRulesRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的攻击惩罚规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 偏移量,表示查询该偏移量之后的记录。
	Offset int32 `json:"offset"`

	// 查询返回记录的数量限制。
	Limit int32 `json:"limit"`
}

ListPunishmentRulesRequest Request Object

func (ListPunishmentRulesRequest) String

type ListPunishmentRulesResponse

type ListPunishmentRulesResponse struct {

	// 攻击惩罚规则数量
	Total *int32 `json:"total,omitempty"`

	// 攻击惩罚规则列表
	Items          *[]PunishmentInfo `json:"items,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ListPunishmentRulesResponse Response Object

func (ListPunishmentRulesResponse) String

type ListQpsTimelineRequest

type ListQpsTimelineRequest struct {

	// 通过企业项目管理服务的查询企业项目列表接口ListEnterpriseProject查询通过企业项目管理服务的查询企业项目列表接口ListEnterpriseProject查询企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 起始时间(13位毫秒时间戳),需要和to同时使用
	From int64 `json:"from"`

	// 结束时间(13位毫秒时间戳),需要和from同时使用
	To int64 `json:"to"`

	// 域名id,通过查询云模式防护域名列表(ListHost)获取域名id或者通过独享模式域名列表(ListPremiumHost)获取域名id
	Hosts *string `json:"hosts,omitempty"`

	// 要查询引擎实例id(仅独享或者ELB实例化模式涉及)
	Instances *string `json:"instances,omitempty"`

	// 展示维度,按天展示时传\"DAY\";默认不传,按照分钟展示
	GroupBy *string `json:"group_by,omitempty"`
}

ListQpsTimelineRequest Request Object

func (ListQpsTimelineRequest) String

func (o ListQpsTimelineRequest) String() string

type ListQpsTimelineResponse

type ListQpsTimelineResponse struct {

	// 安全总览的Qps时间线统计数据
	Body           *[]StatisticsTimelineItem `json:"body,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

ListQpsTimelineResponse Response Object

func (ListQpsTimelineResponse) String

func (o ListQpsTimelineResponse) String() string

type ListRequestTimelineRequest

type ListRequestTimelineRequest struct {

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

	// 起始时间(13位毫秒时间戳),需要和to同时使用
	From int64 `json:"from"`

	// 结束时间(13位毫秒时间戳),需要和from同时使用
	To int64 `json:"to"`

	// 域名id,通过查询云模式防护域名列表(ListHost)获取域名id或者通过独享模式域名列表(ListPremiumHost)获取域名id。默认不传,查询该项目下所有防护域名的top业务异常统计信息。
	Hosts *[]string `json:"hosts,omitempty"`

	// 要查询引擎实例id
	Instances *[]string `json:"instances,omitempty"`

	// 展示维度,按天展示时传\"DAY\";默认不传,按照分钟展示
	GroupBy *string `json:"group_by,omitempty"`
}

ListRequestTimelineRequest Request Object

func (ListRequestTimelineRequest) String

type ListRequestTimelineResponse

type ListRequestTimelineResponse struct {

	// 安全统计的请求时间线数据
	Body           *[]StatisticsTimelineItem `json:"body,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

ListRequestTimelineResponse Response Object

func (ListRequestTimelineResponse) String

type ListStatisticsRequest

type ListStatisticsRequest struct {

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

	// 起始时间(13位时间戳),需要和to同时使用
	From int64 `json:"from"`

	// 结束时间(13位时间戳),需要和from同时使用
	To int64 `json:"to"`

	// 域名id,通过查询云模式防护域名列表(ListHost)获取域名id或者通过独享模式域名列表(ListPremiumHost)获取域名id
	Hosts *string `json:"hosts,omitempty"`

	// 要查询引擎实例id
	Instances *string `json:"instances,omitempty"`
}

ListStatisticsRequest Request Object

func (ListStatisticsRequest) String

func (o ListStatisticsRequest) String() string

type ListStatisticsResponse

type ListStatisticsResponse struct {

	// 安全总览请求与攻击数据
	Body           *[]CountItem `json:"body,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ListStatisticsResponse Response Object

func (ListStatisticsResponse) String

func (o ListStatisticsResponse) String() string

type ListTopAbnormalRequest

type ListTopAbnormalRequest struct {

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

	// 起始时间(13位毫秒时间戳),需要和to同时使用
	From int64 `json:"from"`

	// 结束时间(13位毫秒时间戳),需要和from同时使用
	To int64 `json:"to"`

	// 要查询的前几的结果,默认值为5,最大值为10。
	Top *int32 `json:"top,omitempty"`

	// 要查询的异常状态码,目前支持查询的异常状态码包括404、500以及502。不传该参数默认查询404的状态码。
	Code *int32 `json:"code,omitempty"`

	// 域名id,通过查询云模式防护域名列表(ListHost)获取域名id或者通过独享模式域名列表(ListPremiumHost)获取域名id。默认不传,查询该项目下所有防护域名的top业务异常统计信息。
	Hosts *string `json:"hosts,omitempty"`

	// 要查询引擎实例id
	Instances *string `json:"instances,omitempty"`
}

ListTopAbnormalRequest Request Object

func (ListTopAbnormalRequest) String

func (o ListTopAbnormalRequest) String() string

type ListTopAbnormalResponse

type ListTopAbnormalResponse struct {

	// 异常请求数量
	Total *int32 `json:"total,omitempty"`

	// 异常请求信息数组
	Items          *[]UrlCountItem `json:"items,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ListTopAbnormalResponse Response Object

func (ListTopAbnormalResponse) String

func (o ListTopAbnormalResponse) String() string

type ListValueListRequest

type ListValueListRequest struct {

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
	Pagesize *int32 `json:"pagesize,omitempty"`

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

ListValueListRequest Request Object

func (ListValueListRequest) String

func (o ListValueListRequest) String() string

type ListValueListResponse

type ListValueListResponse struct {

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

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

ListValueListResponse Response Object

func (ListValueListResponse) String

func (o ListValueListResponse) String() string

type ListWhiteblackipRuleRequest

type ListWhiteblackipRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
	Page *int32 `json:"page,omitempty"`

	// 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
	Pagesize *int32 `json:"pagesize,omitempty"`

	// 黑白名单规则名称
	Name *string `json:"name,omitempty"`
}

ListWhiteblackipRuleRequest Request Object

func (ListWhiteblackipRuleRequest) String

type ListWhiteblackipRuleResponse

type ListWhiteblackipRuleResponse struct {

	// 黑白名单规则条数
	Total *int32 `json:"total,omitempty"`

	// 黑白名单规则列表信息
	Items          *[]WhiteBlackIpResponseBody `json:"items,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

ListWhiteblackipRuleResponse Response Object

func (ListWhiteblackipRuleResponse) String

type LtsIdInfo

type LtsIdInfo struct {

	// 日志组id
	LtsGroupId *string `json:"ltsGroupId,omitempty"`

	// 访问日志流id
	LtsAccessStreamID *string `json:"ltsAccessStreamID,omitempty"`

	// 攻击日志流id
	LtsAttackStreamID *string `json:"ltsAttackStreamID,omitempty"`
}

LtsIdInfo 日志组与日志流id信息,对应云日志服务(lts)创建的日志组和日志流id。

func (LtsIdInfo) String

func (o LtsIdInfo) String() string

type MigrateCompositeHostsRequest

type MigrateCompositeHostsRequest struct {

	// 当前企业项目ID
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 迁移的目标企业项目ID
	TargetEnterpriseProjectId string `json:"target_enterprise_project_id"`

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

MigrateCompositeHostsRequest Request Object

func (MigrateCompositeHostsRequest) String

type MigrateCompositeHostsRequestBody

type MigrateCompositeHostsRequestBody struct {

	// host_id列表
	HostIds []string `json:"host_ids"`

	// 策略ID(目标企业项目下的策略ID)
	PolicyId string `json:"policy_id"`

	// 证书ID(目标企业项目下的证书ID)
	CertificateId *string `json:"certificate_id,omitempty"`
}

MigrateCompositeHostsRequestBody 迁移域名请求体

func (MigrateCompositeHostsRequestBody) String

type MigrateCompositeHostsResponse

type MigrateCompositeHostsResponse struct {

	// host_id列表
	HostIds *[]string `json:"host_ids,omitempty"`

	// 策略ID(目标企业项目下的策略ID)
	PolicyId *string `json:"policy_id,omitempty"`

	// 证书ID(目标企业项目下的证书ID)
	CertificateId  *string `json:"certificate_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

MigrateCompositeHostsResponse Response Object

func (MigrateCompositeHostsResponse) String

type PolicyAction

type PolicyAction struct {

	// web基础防护动作(log为仅记录、block为拦截)
	Category *PolicyActionCategory `json:"category,omitempty"`
}

PolicyAction 防护动作

func (PolicyAction) String

func (o PolicyAction) String() string

type PolicyActionCategory

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

func (PolicyActionCategory) MarshalJSON

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

func (*PolicyActionCategory) UnmarshalJSON

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

func (PolicyActionCategory) Value

func (c PolicyActionCategory) Value() string

type PolicyActionCategoryEnum

type PolicyActionCategoryEnum struct {
	BLOCK PolicyActionCategory
	LOG   PolicyActionCategory
}

func GetPolicyActionCategoryEnum

func GetPolicyActionCategoryEnum() PolicyActionCategoryEnum

type PolicyOption

type PolicyOption struct {

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

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

	// 预留参数,改参数值一直为true,用户可忽略该参数值
	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"`

	// 黑白名单防护是否开启
	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"`

	// 网站反爬虫总开关是否开启
	BotEnable *bool `json:"bot_enable,omitempty"`

	// modulex智能cc防护是否开启,该特性是公测特性,在公测期间,只支持仅记录模式。
	ModulexEnabled *bool `json:"modulex_enabled,omitempty"`
}

PolicyOption 防护策略检测模块开关选项,如是否开启Web基础防护等

func (PolicyOption) String

func (o PolicyOption) String() string

type PolicyResponse

type PolicyResponse struct {

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

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

	// Web基础防护等级   - 1 : 宽松,防护粒度较粗,只拦截攻击特征比较明显的请求。当误报情况较多的场景下,建议选择“宽松”模式。   - 2:中等,默认为“中等”防护模式,满足大多数场景下的Web防护需求。   - 3:严格,防护粒度最精细,可以拦截具有复杂的绕过特征的攻击请求,例如jolokia网络攻击、探测CGI漏洞、探测 Druid SQL注入攻击
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式。   - false:短路检测,当用户的请求符合精准防护中的拦截条件时,便立刻终止检测,进行拦截   - true :全检测,请求符合精准防护中的拦截条件时,全检测不会立即拦截,会继续执行其他防护的检测,最后进行拦截。
	FullDetection *bool `json:"full_detection,omitempty"`

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

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

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

	// 智能访问控制防护项相关配置信息,目前该特性还处于公测阶段,只有部分局点支持该特性
	ModulexOptions map[string]interface{} `json:"modulex_options,omitempty"`

	// 与防护策略绑定的防护的域名id数组
	Hosts *[]string `json:"hosts,omitempty"`

	// 与防护策略绑定的防护的域名信息数组,相对于hosts字段,包含更详细的域名信息
	BindHost *[]BindHost `json:"bind_host,omitempty"`

	// 扩展字段,用于存放Web基础防护中一些开关配置等信息
	Extend map[string]string `json:"extend,omitempty"`

	// 创建防护策略的时间
	Timestamp *int64 `json:"timestamp,omitempty"`
}

PolicyResponse 防护策略详情

func (PolicyResponse) String

func (o PolicyResponse) String() string

type Premium

type Premium struct {

	// 是否开通独享模式
	Purchased *bool `json:"purchased,omitempty"`

	// 独享实例数量,包括elb
	Total *int32 `json:"total,omitempty"`

	// elb实例数量
	Elb *int32 `json:"elb,omitempty"`

	// 独享WAF实例数量
	Dedicated *int32 `json:"dedicated,omitempty"`
}

func (Premium) String

func (o Premium) String() string

type PremiumWafInstances

type PremiumWafInstances struct {

	// 引擎实例id
	Id *string `json:"id,omitempty"`

	// 引擎实例名
	Name *string `json:"name,omitempty"`

	// 引擎实例是否已接入,false:未接入;true:已接入
	Accessed *bool `json:"accessed,omitempty"`
}

PremiumWafInstances 租户引擎实例信息

func (PremiumWafInstances) String

func (o PremiumWafInstances) String() string

type PremiumWafServer

type PremiumWafServer struct {

	// 客户端请求访问防护域名源站服务器的协议
	FrontProtocol PremiumWafServerFrontProtocol `json:"front_protocol"`

	// WAF转发客户端请求到防护域名源站服务器的协议
	BackProtocol PremiumWafServerBackProtocol `json:"back_protocol"`

	// 源站权重,负载均衡算法将按该权重将请求分配给源站,默认值是1,云模式的冗余字段
	Weight *int32 `json:"weight,omitempty"`

	// 客户端访问的源站服务器的IP地址
	Address string `json:"address"`

	// WAF转发客户端请求到源站服务的业务端口
	Port int32 `json:"port"`

	// 源站地址为ipv4或ipv6
	Type PremiumWafServerType `json:"type"`

	// VPC id,通过以下步骤获取VPC id:   - 1.找到独享引擎所在的虚拟私有云名称,VPC\\子网这一列就是VPC的名称:登录WAF的控制台->单击系统管理->独享引擎->VPC\\子网   - 2.登录虚拟私有云 VPC控制台->虚拟私有云->单击虚拟私有云的名称->基本信息的ID
	VpcId string `json:"vpc_id"`
}

PremiumWafServer 防护域名的源站服务器配置信息

func (PremiumWafServer) String

func (o PremiumWafServer) String() string

type PremiumWafServerBackProtocol

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

func (PremiumWafServerBackProtocol) MarshalJSON

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

func (*PremiumWafServerBackProtocol) UnmarshalJSON

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

func (PremiumWafServerBackProtocol) Value

type PremiumWafServerBackProtocolEnum

type PremiumWafServerBackProtocolEnum struct {
	HTTP  PremiumWafServerBackProtocol
	HTTPS PremiumWafServerBackProtocol
}

func GetPremiumWafServerBackProtocolEnum

func GetPremiumWafServerBackProtocolEnum() PremiumWafServerBackProtocolEnum

type PremiumWafServerFrontProtocol

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

func (PremiumWafServerFrontProtocol) MarshalJSON

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

func (*PremiumWafServerFrontProtocol) UnmarshalJSON

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

func (PremiumWafServerFrontProtocol) Value

type PremiumWafServerFrontProtocolEnum

type PremiumWafServerFrontProtocolEnum struct {
	HTTP  PremiumWafServerFrontProtocol
	HTTPS PremiumWafServerFrontProtocol
}

func GetPremiumWafServerFrontProtocolEnum

func GetPremiumWafServerFrontProtocolEnum() PremiumWafServerFrontProtocolEnum

type PremiumWafServerType

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

func (PremiumWafServerType) MarshalJSON

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

func (*PremiumWafServerType) UnmarshalJSON

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

func (PremiumWafServerType) Value

func (c PremiumWafServerType) Value() string

type PremiumWafServerTypeEnum

type PremiumWafServerTypeEnum struct {
	IPV4 PremiumWafServerType
	IPV6 PremiumWafServerType
}

func GetPremiumWafServerTypeEnum

func GetPremiumWafServerTypeEnum() PremiumWafServerTypeEnum

type PrivacyResponseBody

type PrivacyResponseBody struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 创建规则的时间,格式为13位毫秒时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

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

	// 隐私屏蔽规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/_*,以\"*\"号结尾代表路径前缀
	Url *string `json:"url,omitempty"`

	// 屏蔽字段   - Params:请求参数   - Cookie:根据Cookie区分的Web访问者   - Header:自定义HTTP首部   - Form:表单参数
	Category *PrivacyResponseBodyCategory `json:"category,omitempty"`

	// 屏蔽字段名,根据“屏蔽字段”设置字段名,被屏蔽的字段将不会出现在日志中。
	Index *string `json:"index,omitempty"`

	// 规则描述,可选参数,设置该规则的备注信息。
	Description *string `json:"description,omitempty"`
}

PrivacyResponseBody 隐私屏蔽响应体

func (PrivacyResponseBody) String

func (o PrivacyResponseBody) String() string

type PrivacyResponseBodyCategory

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

func (PrivacyResponseBodyCategory) MarshalJSON

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

func (*PrivacyResponseBodyCategory) UnmarshalJSON

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

func (PrivacyResponseBodyCategory) Value

type PunishmentInfo

type PunishmentInfo struct {

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

	// 所属策略id
	Policyid *string `json:"policyid,omitempty"`

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

	// 攻击惩罚类别
	Category *string `json:"category,omitempty"`

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

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

func (PunishmentInfo) String

func (o PunishmentInfo) String() string

type RenameInstanceRequest

type RenameInstanceRequest struct {

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

	// 独享引擎ID(通过调用WAF的ListInstance接口获取所有独享引擎信息查询独享引擎ID)
	InstanceId string `json:"instance_id"`

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

RenameInstanceRequest Request Object

func (RenameInstanceRequest) String

func (o RenameInstanceRequest) String() string

type RenameInstanceRequestBody

type RenameInstanceRequestBody struct {

	// 独享引擎新名称
	Instancename string `json:"instancename"`
}

RenameInstanceRequestBody 独享引擎改名请求数据

func (RenameInstanceRequestBody) String

func (o RenameInstanceRequestBody) String() string

type RenameInstanceResponse

type RenameInstanceResponse struct {

	// 独享引擎实例ID
	Id *string `json:"id,omitempty"`

	// 独享引擎实例名称
	Instancename *string `json:"instancename,omitempty"`

	// 独享引擎实例Region ID
	Region *string `json:"region,omitempty"`

	// 可用区ID
	Zone *string `json:"zone,omitempty"`

	// CPU架构
	Arch *string `json:"arch,omitempty"`

	// ECS规格
	CpuFlavor *string `json:"cpu_flavor,omitempty"`

	// 独享引擎实例所在VPC ID
	VpcId *string `json:"vpc_id,omitempty"`

	// 独享引擎实例所在VPC的子网ID
	SubnetId *string `json:"subnet_id,omitempty"`

	// 独享引擎实例的业务面IP
	ServiceIp *string `json:"service_ip,omitempty"`

	// 独享引擎绑定的安全组
	SecurityGroupIds *[]string `json:"security_group_ids,omitempty"`

	// 独享引擎计费状态   - 0:正常计费   - 1:冻结,资源和数据会保留,但租户无法再正常使用云服务   - 2:终止,资源和数据将清除
	Status *int32 `json:"status,omitempty"`

	// 独享引擎运行状态   - 0:创建中   - 1:运行中   - 2:删除中   - 3:已删除   - 4:创建失败   - 5:已冻结   - 6:异常   - 7:更新中   - 8:更新失败
	RunStatus *int32 `json:"run_status,omitempty"`

	// 独享引擎接入状态(0:未接入,1:已接入)
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 独享引擎是否可升级(0:不可升级,1:可升级)
	Upgradable *int32 `json:"upgradable,omitempty"`

	// 云服务代码。 仅作为标记,用户可忽略。
	CloudServiceType *string `json:"cloudServiceType,omitempty"`

	// 云服务资源类型,仅作为标记,用户可忽略。
	ResourceType *string `json:"resourceType,omitempty"`

	// 云服务资源代码。仅作为标记,用户可忽略。
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	// 独享引擎ECS规格,如\"8vCPUs | 16GB\"
	Specification *string `json:"specification,omitempty"`

	// 独享引擎ECS ID
	ServerId *string `json:"serverId,omitempty"`

	// 引擎实例创建时间
	CreateTime     *int64 `json:"create_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

RenameInstanceResponse Response Object

func (RenameInstanceResponse) String

func (o RenameInstanceResponse) String() string

type ResourceResponse

type ResourceResponse struct {

	// 资源id
	ResourceId *string `json:"resourceId,omitempty"`

	// 云服务产品对应的云服务类型
	CloudServiceType *string `json:"cloudServiceType,omitempty"`

	// 云服务产品的资源类型   - hws.resource.type.waf.payperuserequest : Web应用防火墙按需请求   - hws.resource.type.waf.payperusedomain:Web应用防火墙按需域名   - hws.resource.type.waf.payperuserule: Web应用防火墙按需规则
	ResourceType *string `json:"resourceType,omitempty"`

	// 云服务产品的资源规格
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	// 资源状态   - 0:解冻/正常   - 1:冻结   - 2:删除
	Status *int32 `json:"status,omitempty"`

	// 资源到期时间
	ExpireTime *string `json:"expireTime,omitempty"`

	// 资源数量
	ResourceSize *int32 `json:"resourceSize,omitempty"`
}

ResourceResponse 资源信息

func (ResourceResponse) String

func (o ResourceResponse) String() string

type RouteBody

type RouteBody struct {

	// WAF集群的cname后缀
	Cname *string `json:"cname,omitempty"`

	// WAF集群名称
	Name *string `json:"name,omitempty"`

	// 防护域名源站服务器信息列表
	Servers *[]RouteServerBody `json:"servers,omitempty"`
}

RouteBody 单个路由线路详细信息

func (RouteBody) String

func (o RouteBody) String() string

type RouteServerBody

type RouteServerBody struct {

	// WAF转发客户端请求到防护域名源站服务器的协议
	BackProtocol *RouteServerBodyBackProtocol `json:"back_protocol,omitempty"`

	// 客户端访问的源站服务器的IP地址
	Address *string `json:"address,omitempty"`

	// WAF转发客户端请求到源站服务的业务端口
	Port *int32 `json:"port,omitempty"`
}

RouteServerBody 防护域名源站服务器信息

func (RouteServerBody) String

func (o RouteServerBody) String() string

type RouteServerBodyBackProtocol

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

func (RouteServerBodyBackProtocol) MarshalJSON

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

func (*RouteServerBodyBackProtocol) UnmarshalJSON

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

func (RouteServerBodyBackProtocol) Value

type RouteServerBodyBackProtocolEnum

type RouteServerBodyBackProtocolEnum struct {
	HTTP  RouteServerBodyBackProtocol
	HTTPS RouteServerBodyBackProtocol
}

func GetRouteServerBodyBackProtocolEnum

func GetRouteServerBodyBackProtocolEnum() RouteServerBodyBackProtocolEnum

type RuleInfo

type RuleInfo 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"`
}

RuleInfo 使用该Ip地址相关的规则信息

func (RuleInfo) String

func (o RuleInfo) String() string

type ShareInfo

type ShareInfo struct {

	// 共享用户数
	ShareCount *int32 `json:"share_count,omitempty"`

	// 接受用户数
	AcceptCount *int32 `json:"accept_count,omitempty"`

	// 处理状态
	ProcessStatus *int32 `json:"process_status,omitempty"`
}

ShareInfo 共享信息

func (ShareInfo) String

func (o ShareInfo) String() string

type ShowAnticrawlerRuleRequest

type ShowAnticrawlerRuleRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

ShowAnticrawlerRuleRequest Request Object

func (ShowAnticrawlerRuleRequest) String

type ShowAnticrawlerRuleResponse

type ShowAnticrawlerRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 匹配条件列表
	Conditions *[]AnticrawlerCondition `json:"conditions,omitempty"`

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

	// JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
	Type *string `json:"type,omitempty"`

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

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

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

ShowAnticrawlerRuleResponse Response Object

func (ShowAnticrawlerRuleResponse) String

type ShowAntileakageRuleRequest

type ShowAntileakageRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取
	RuleId string `json:"rule_id"`
}

ShowAntileakageRuleRequest Request Object

func (ShowAntileakageRuleRequest) String

type ShowAntileakageRuleResponse

type ShowAntileakageRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则应用的url
	Url *string `json:"url,omitempty"`

	// 类别(响应码:code,敏感信息:sensitive)
	Category *string `json:"category,omitempty"`

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

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

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

	// 规则描述
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowAntileakageRuleResponse Response Object

func (ShowAntileakageRuleResponse) String

type ShowAntitamperRuleRequest

type ShowAntitamperRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 防篡改规则id,通过查询防篡改规则列表接口(ListAntitamperRule)获取
	RuleId string `json:"rule_id"`
}

ShowAntitamperRuleRequest Request Object

func (ShowAntitamperRuleRequest) String

func (o ShowAntitamperRuleRequest) String() string

type ShowAntitamperRuleResponse

type ShowAntitamperRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 防篡改的域名
	Hostname *string `json:"hostname,omitempty"`

	// 防篡改的url,
	Url *string `json:"url,omitempty"`

	// 创建规则的时间戳
	Description *string `json:"description,omitempty"`

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

	// 创建规则的时间,格式为13位毫秒时间戳
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowAntitamperRuleResponse Response Object

func (ShowAntitamperRuleResponse) String

type ShowCcRuleRequest

type ShowCcRuleRequest struct {

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

	// 策略id(策略id从查询防护策略列表接口获取)
	PolicyId string `json:"policy_id"`

	// ID of the cc rule. It can be obtained by calling the **ListCcRules** API.
	RuleId string `json:"rule_id"`
}

ShowCcRuleRequest Request Object

func (ShowCcRuleRequest) String

func (o ShowCcRuleRequest) String() string

type ShowCcRuleResponse

type ShowCcRuleResponse struct {

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

	// Rule ID.
	Id *string `json:"id,omitempty"`

	// Policy ID.
	Policyid *string `json:"policyid,omitempty"`

	// 当mode值为0时,该参数有返回值。规则应用的URL链接,不包含域名。
	Url *string `json:"url,omitempty"`

	// 路径是否为前缀模式,当防护url以*结束,则为前缀模式。
	Prefix *bool `json:"prefix,omitempty"`

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

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

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

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

	// 限速模式:   - ip:IP限速,根据IP区分单个Web访问者。   - cookie:用户限速,根据Cookie键值区分单个Web访问者。   - header:用户限速,根据Header区分单个Web访问者。   - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。   - policy: 策略限速   - domain: 域名限速     - url: url限速
	TagType *ShowCcRuleResponseTagType `json:"tag_type,omitempty"`

	// 用户标识,当限速模式为用户限速(cookie或header)时,需要传该参数。   - 选择cookie时,设置cookie字段名,即用户需要根据网站实际情况配置唯一可识别Web访问者的cookie中的某属性变量名。用户标识的cookie,不支持正则,必须完全匹配。例如:如果网站使用cookie中的某个字段name唯一标识用户,那么可以选取name字段来区分Web访问者。   - 选择header时,设置需要防护的自定义HTTP首部,即用户需要根据网站实际情况配置可识别Web访问者的HTTP首部。
	TagIndex *string `json:"tag_index,omitempty"`

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

	// 限制频率,单位为次,范围为1~2147483647
	LimitNum *int32 `json:"limit_num,omitempty"`

	// 限速周期,单位为秒,范围1~3600
	LimitPeriod *int32 `json:"limit_period,omitempty"`

	// 放行频率,单位为次,范围为0~2147483647。只有当防护动作类型为dynamic_block时,才需要传该参数。
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 阻断时间,单位为秒,范围为0~65535。当“防护动作”选择“阻断”时,可设置阻断后恢复正常访问页面的时间。
	LockTime *int32 `json:"lock_time,omitempty"`

	// 是否开启域名聚合统计。
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 是否开启全局计数。
	RegionAggregation *bool `json:"region_aggregation,omitempty"`

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

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Unaggregation *bool `json:"unaggregation,omitempty"`

	// 规则老化时间,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	AgingTime *int32 `json:"aging_time,omitempty"`

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer *int32 `json:"producer,omitempty"`

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

ShowCcRuleResponse Response Object

func (ShowCcRuleResponse) String

func (o ShowCcRuleResponse) String() string

type ShowCcRuleResponseTagType

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

func (ShowCcRuleResponseTagType) MarshalJSON

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

func (*ShowCcRuleResponseTagType) UnmarshalJSON

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

func (ShowCcRuleResponseTagType) Value

type ShowCertificateRequest

type ShowCertificateRequest struct {

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

	// https证书id,您可以通过调用查询证书列表(ListCertificates)接口获取证书id
	CertificateId string `json:"certificate_id"`
}

ShowCertificateRequest Request Object

func (ShowCertificateRequest) String

func (o ShowCertificateRequest) String() string

type ShowCertificateResponse

type ShowCertificateResponse struct {

	// 证书ID
	Id *string `json:"id,omitempty"`

	// 证书名
	Name *string `json:"name,omitempty"`

	// 证书文件,PEM编码
	Content *string `json:"content,omitempty"`

	// 证书私钥,PEM编码
	Key *string `json:"key,omitempty"`

	// 证书过期时间戳
	ExpireTime *int64 `json:"expire_time,omitempty"`

	// 证书过期状态,0-未过期,1-已过期,2-即将过期
	ExpStatus *int32 `json:"exp_status,omitempty"`

	// 证书上传时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 证书关联的域名信息
	BindHost       *[]BindHost `json:"bind_host,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ShowCertificateResponse Response Object

func (ShowCertificateResponse) String

func (o ShowCertificateResponse) String() string

type ShowCompositeHostRequest

type ShowCompositeHostRequest struct {

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

	// 域名id,通过查询云模式防护域名列表(ListHost)获取域名id或者通过独享模式域名列表(ListPremiumHost)获取域名id
	HostId string `json:"host_id"`
}

ShowCompositeHostRequest Request Object

func (ShowCompositeHostRequest) String

func (o ShowCompositeHostRequest) String() string

type ShowCompositeHostResponse

type ShowCompositeHostResponse struct {

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

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

	// 创建的云模式防护域名
	Hostname *string `json:"hostname,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// cname前缀
	AccessCode *string `json:"access_code,omitempty"`

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 创建防护域名的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。
	PaidType *string `json:"paid_type,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

	// 域名所属WAF模式,cloud为云模式,premium为独享模式
	WafType *string `json:"waf_type,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	// 接入进度,仅用于新版console(前端)使用
	AccessProgress *[]AccessProgress `json:"access_progress,omitempty"`

	// 租户引擎实例信息列表
	PremiumWafInstances *[]PremiumWafInstances `json:"premium_waf_instances,omitempty"`

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

	// 是否使用独享ip   - true:使用独享ip   - false:不实用独享ip
	ExclusiveIp *bool `json:"exclusive_ip,omitempty"`

	// 华为云区域ID,控制台创建的域名会携带此参数,api调用创建的域名此参数为空,可以通过华为云上地区和终端节点文档查询区域ID对应的中文名称
	Region         *string `json:"region,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowCompositeHostResponse Response Object

func (ShowCompositeHostResponse) String

func (o ShowCompositeHostResponse) String() string

type ShowConsoleConfigRequest

type ShowConsoleConfigRequest struct {
}

ShowConsoleConfigRequest Request Object

func (ShowConsoleConfigRequest) String

func (o ShowConsoleConfigRequest) String() string

type ShowConsoleConfigResponse

type ShowConsoleConfigResponse struct {

	// 是否支持EPS,false:不支持;true:支持
	Eps *bool `json:"eps,omitempty"`

	// 是否支持的TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,false:不支持;true:支持
	Tls *bool `json:"tls,omitempty"`

	// 是否支持IPV6,false:不支持;true:支持
	Ipv6 *bool `json:"ipv6,omitempty"`

	// 是否支持告警,false:不支持;true:支持
	Alert *bool `json:"alert,omitempty"`

	// 是否支持精准防护,false:不支持;true:支持
	Custom *bool `json:"custom,omitempty"`

	// 是否支持ELB模式,false:不支持;true:支持
	ElbMode *bool `json:"elb_mode,omitempty"`

	// 是否支持LTS全量日志,false:不支持;true:支持
	EventLts *bool `json:"event_lts,omitempty"`

	// 是否支持多DNS解析,false:不支持;true:支持
	MultiDns *bool `json:"multi_dns,omitempty"`

	// 是否支持搜索IP,false:不支持;true:支持
	SearchIp *bool `json:"search_ip,omitempty"`

	// 是否支持CC增强,false:不支持;true:支持
	CcEnhance *bool `json:"cc_enhance,omitempty"`

	// 是否支持cname切换,false:不支持;true:支持
	CnameSwitch *bool `json:"cname_switch,omitempty"`

	// 是否支持自定义拦截页面,false:不支持,true:支持
	CustomBlock *bool `json:"custom_block,omitempty"`

	// 是否支持误报屏蔽,false:不支持;true:支持
	AdvancedIgnore *bool `json:"advanced_ignore,omitempty"`

	// 是否支持js反爬虫,false:不支持;true:支持
	JsCrawlerEnable *bool `json:"js_crawler_enable,omitempty"`

	// 是否支持web基础防护深度检测,false:不支持;true:支持
	DeepDecodeEnable *bool `json:"deep_decode_enable,omitempty"`

	// 是否支持安全总览带宽统计,false:不支持;true:支持
	OverviewBandwidth *bool `json:"overview_bandwidth,omitempty"`

	// 是否支持使用旧cname解析,false:不支持;true:支持
	ProxyUseOldcname *bool `json:"proxy_use_oldcname,omitempty"`

	// 是否支持检查所有的header,false:不支持;true:支持
	CheckAllHeadersEnable *bool `json:"check_all_headers_enable,omitempty"`

	// 是否支持地理位置访问控制,false:不支持;true:支持
	GeoipEnable *bool `json:"geoip_enable,omitempty"`

	// 是否支持域名访问负载均衡配置,false:不支持;true:支持
	LoadBalanceEnable *bool `json:"load_balance_enable,omitempty"`

	// 是否支持ipv6防护,false:不支持;true:支持
	Ipv6ProtectionEnable *bool `json:"ipv6_protection_enable,omitempty"`

	// 是否支持策略共享,false:不支持;true:支持
	PolicySharingEnable *bool `json:"policy_sharing_enable,omitempty"`

	// 是否支持ip地址组,false:不支持;true:支持
	IpGroup *bool `json:"ip_group,omitempty"`

	// 是否支持网站反爬虫,false:不支持;true:支持
	RobotActionEnable *bool `json:"robot_action_enable,omitempty"`

	// 是否支持http2,false:不支持;true:支持
	Http2Enable *bool `json:"http2_enable,omitempty"`

	// 是否支持超时配置,false:不支持;true:支持
	TimeoutConfigEnable *bool `json:"timeout_config_enable,omitempty"`
	HttpStatusCode      int   `json:"-"`
}

ShowConsoleConfigResponse Response Object

func (ShowConsoleConfigResponse) String

func (o ShowConsoleConfigResponse) String() string

type ShowCustomRuleRequest

type ShowCustomRuleRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取
	RuleId string `json:"rule_id"`
}

ShowCustomRuleRequest Request Object

func (ShowCustomRuleRequest) String

func (o ShowCustomRuleRequest) String() string

type ShowCustomRuleResponse

type ShowCustomRuleResponse struct {

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

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

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

	// 匹配条件列表,匹配条件必须同时满足。
	Conditions *[]CustomRuleConditions `json:"conditions,omitempty"`

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

	// 预留参数,可忽略。
	ActionMode *bool `json:"action_mode,omitempty"`

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

	// 创建精准防护规则的
	Timestamp *int64 `json:"timestamp,omitempty"`

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

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

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

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowCustomRuleResponse Response Object

func (ShowCustomRuleResponse) String

func (o ShowCustomRuleResponse) String() string

type ShowEventItems

type ShowEventItems struct {

	// 攻击发生时的时间戳(毫秒)
	Time *int64 `json:"time,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 源ip,Web访问者的IP地址(攻击者IP地址)
	Sip *string `json:"sip,omitempty"`

	// 域名
	Host *string `json:"host,omitempty"`

	// 攻击的url链接
	Url *string `json:"url,omitempty"`

	// 攻击类型
	Attack *string `json:"attack,omitempty"`

	// 命中的规则id
	Rule *string `json:"rule,omitempty"`

	// 防护动作
	Action *string `json:"action,omitempty"`

	// 攻击请求的cookie
	Cookie *string `json:"cookie,omitempty"`

	// 攻击请求的headers
	Headers *interface{} `json:"headers,omitempty"`

	// 被攻击的域名id
	HostId *string `json:"host_id,omitempty"`

	// 防护事件id
	Id *string `json:"id,omitempty"`

	// 恶意负载
	Payload *string `json:"payload,omitempty"`

	// 恶意负载位置
	PayloadLocation *string `json:"payload_location,omitempty"`

	// 源ip地理位置
	Region *string `json:"region,omitempty"`

	// 处理时长
	ProcessTime *int32 `json:"process_time,omitempty"`

	// 攻击请求的请求行
	RequestLine *string `json:"request_line,omitempty"`

	// 返回大小(字节)
	ResponseSize *int32 `json:"response_size,omitempty"`

	// 响应时间(毫秒)
	ResponseTime *int64 `json:"response_time,omitempty"`

	// 响应码
	Status *string `json:"status,omitempty"`

	// 请求体
	RequestBody *string `json:"request_body,omitempty"`
}

ShowEventItems 攻击类型

func (ShowEventItems) String

func (o ShowEventItems) String() string

type ShowEventRequest

type ShowEventRequest struct {

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

	// 防护事件id,通过调用查询攻击事件列表(ListEvent)接口获取防护事件id
	Eventid string `json:"eventid"`
}

ShowEventRequest Request Object

func (ShowEventRequest) String

func (o ShowEventRequest) String() string

type ShowEventResponse

type ShowEventResponse struct {

	// 攻击事件数量
	Total *int32 `json:"total,omitempty"`

	// 攻击事件详情
	Items          *[]ShowEventItems `json:"items,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ShowEventResponse Response Object

func (ShowEventResponse) String

func (o ShowEventResponse) String() string

type ShowGeoipRuleRequest

type ShowGeoipRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 地理位置控制防护规则id,规则id从查询地理位置控制防护规则列表(ListGeoipRule)接口获取,响应体的id字段
	RuleId string `json:"rule_id"`
}

ShowGeoipRuleRequest Request Object

func (ShowGeoipRuleRequest) String

func (o ShowGeoipRuleRequest) String() string

type ShowGeoipRuleResponse

type ShowGeoipRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 地理位置封禁区域: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古)
	Geoip *string `json:"geoip,omitempty"`

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

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

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

ShowGeoipRuleResponse Response Object

func (ShowGeoipRuleResponse) String

func (o ShowGeoipRuleResponse) String() string

type ShowHostRequest

type ShowHostRequest struct {

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

	// 域名id,您可以通过调用查询云模式防护域名列表(ListHost)获取域名id
	InstanceId string `json:"instance_id"`
}

ShowHostRequest Request Object

func (ShowHostRequest) String

func (o ShowHostRequest) String() string

type ShowHostResponse

type ShowHostResponse struct {

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

	// 创建的云模式防护域名
	Hostname *string `json:"hostname,omitempty"`

	// 防护域名的防护策略id
	Policyid *string `json:"policyid,omitempty"`

	// 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID
	Domainid *string `json:"domainid,omitempty"`

	// 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
	Projectid *string `json:"projectid,omitempty"`

	// 企业项目ID,对应华为云控制台用户名->企业->项目管理->点击项目名称->ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 后端包含的协议类型:HTTPS、HTTP、HTTP&HTTPS
	Protocol *string `json:"protocol,omitempty"`

	// 防护域名的源站服务器配置信息
	Server *[]CloudWafServer `json:"server,omitempty"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// cname前缀
	AccessCode *string `json:"access_code,omitempty"`

	// 预留参数,用于后期设计冻结域名,解锁域名功能,目前暂不支持
	Locked *int32 `json:"locked,omitempty"`

	// 创建防护域名的时间戳(毫秒)
	Timestamp *int64 `json:"timestamp,omitempty"`

	// https证书id
	Certificateid *string `json:"certificateid,omitempty"`

	// 证书名称
	Certificatename *string `json:"certificatename,omitempty"`

	// 配置的最低TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,对于低于最低TLS版本的请求,将无法正常访问网站
	Tls *ShowHostResponseTls `json:"tls,omitempty"`

	// 加密套件(cipher_1,cipher_2,cipher_3,cipher_4,cipher_default):  - cipher_1: 加密算法为ECDHE-ECDSA-AES256-GCM-SHA384:HIGH:!MEDIUM:!LOW:!aNULL:!eNULL:!DES:!MD5:!PSK:!RC4:!kRSA:!SRP:!3DES:!DSS:!EXP:!CAMELLIA:@STRENGTH   - cipher_2:加密算法为EECDH+AESGCM:EDH+AESGCM   - cipher_3:加密算法为ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH   - cipher_4:加密算法为ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!EDH   - cipher_default: 加密算法为ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM
	Cipher *ShowHostResponseCipher `json:"cipher,omitempty"`

	BlockPage *BlockPage `json:"block_page,omitempty"`

	// 扩展字段,用于存放Web基础防护中一些开关配置等信息
	Extend map[string]string `json:"extend,omitempty"`

	TrafficMark *TrafficMark `json:"traffic_mark,omitempty"`

	CircuitBreaker *CircuitBreaker `json:"circuit_breaker,omitempty"`

	// LB负载均衡,仅专业版(原企业版)和铂金版(原旗舰版)支持配置负载均衡算法   - 源IP Hash:将某个IP的请求定向到同一个服务器   - 加权轮询:所有请求将按权重轮流分配给源站服务器   - Session Hash:将某个Session标识的请求定向到同一个源站服务器,请确保在域名添加完毕后配置攻击惩罚的流量标识,否则Session Hash配置不生效
	LbAlgorithm *ShowHostResponseLbAlgorithm `json:"lb_algorithm,omitempty"`

	TimeoutConfig *TimeoutConfig `json:"timeout_config,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

	// 网站备注
	Description *string `json:"description,omitempty"`

	// 是否支持http2   - true:表示支持http2   - false:表示不支持http2
	Http2Enable *bool `json:"http2_enable,omitempty"`

	// 是否使用独享ip   - true:使用独享ip   - false:不实用独享ip
	ExclusiveIp *bool `json:"exclusive_ip,omitempty"`

	// 接入进度,仅用于新版console(前端)使用
	AccessProgress *[]AccessProgress `json:"access_progress,omitempty"`

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`
	HttpStatusCode   int               `json:"-"`
}

ShowHostResponse Response Object

func (ShowHostResponse) String

func (o ShowHostResponse) String() string

type ShowHostResponseCipher

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

func (ShowHostResponseCipher) MarshalJSON

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

func (*ShowHostResponseCipher) UnmarshalJSON

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

func (ShowHostResponseCipher) Value

func (c ShowHostResponseCipher) Value() string

type ShowHostResponseCipherEnum

type ShowHostResponseCipherEnum struct {
	CIPHER_1       ShowHostResponseCipher
	CIPHER_2       ShowHostResponseCipher
	CIPHER_3       ShowHostResponseCipher
	CIPHER_4       ShowHostResponseCipher
	CIPHER_DEFAULT ShowHostResponseCipher
}

func GetShowHostResponseCipherEnum

func GetShowHostResponseCipherEnum() ShowHostResponseCipherEnum

type ShowHostResponseLbAlgorithm

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

func (ShowHostResponseLbAlgorithm) MarshalJSON

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

func (*ShowHostResponseLbAlgorithm) UnmarshalJSON

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

func (ShowHostResponseLbAlgorithm) Value

type ShowHostResponseLbAlgorithmEnum

type ShowHostResponseLbAlgorithmEnum struct {
	IP_HASH      ShowHostResponseLbAlgorithm
	ROUND_ROBIN  ShowHostResponseLbAlgorithm
	SESSION_HASH ShowHostResponseLbAlgorithm
}

func GetShowHostResponseLbAlgorithmEnum

func GetShowHostResponseLbAlgorithmEnum() ShowHostResponseLbAlgorithmEnum

type ShowHostResponseTls

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

func (ShowHostResponseTls) MarshalJSON

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

func (*ShowHostResponseTls) UnmarshalJSON

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

func (ShowHostResponseTls) Value

func (c ShowHostResponseTls) Value() string

type ShowHostResponseTlsEnum

type ShowHostResponseTlsEnum struct {
	TLS_V1_0 ShowHostResponseTls
	TLS_V1_1 ShowHostResponseTls
	TLS_V1_2 ShowHostResponseTls
}

func GetShowHostResponseTlsEnum

func GetShowHostResponseTlsEnum() ShowHostResponseTlsEnum

type ShowIgnoreRuleRequest

type ShowIgnoreRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
	RuleId string `json:"rule_id"`
}

ShowIgnoreRuleRequest Request Object

func (ShowIgnoreRuleRequest) String

func (o ShowIgnoreRuleRequest) String() string

type ShowIgnoreRuleResponse

type ShowIgnoreRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

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

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

	// 误报规则屏蔽路径,仅在mode为0的状态下有该字段
	Url *string `json:"url,omitempty"`

	// 需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔   - 当需要屏蔽某一条内置规则时,该参数值为该内置规则id,可以在Web应用防火墙控制台的防护策略->策略名称->Web基础防护的高级设置->防护规则中查询;也可以在防护事件的事件详情中查询内置规则id   - 当需要屏蔽web基础防护某一类规则时,该参数值为需要屏蔽的web基础防护某一类规则名。其中,xss:xxs攻击;webshell:网站木马;vuln:其他类型攻击;sqli:sql注入攻击;robot:恶意爬虫;rfi:远程文件包含;lfi:本地文件包含;cmdi:命令注入攻击   - 当需要屏蔽Web基础防护模块,该参数值为:all   - 当需要屏蔽规则为所有检测模块时,该参数值为:bypass
	Rule *string `json:"rule,omitempty"`

	// 版本号,0代表v1旧版本,1代表v2新版本;mode为0时,不存在conditions字段,存在url和url_logic字段;mode为1时,不存在url和url_logic字段,存在conditions字段
	Mode *int32 `json:"mode,omitempty"`

	// url匹配逻辑
	UrlLogic *string `json:"url_logic,omitempty"`

	// 条件
	Conditions *[]Condition `json:"conditions,omitempty"`

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

	// 防护域名或防护网站
	Domain         *[]string `json:"domain,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ShowIgnoreRuleResponse Response Object

func (ShowIgnoreRuleResponse) String

func (o ShowIgnoreRuleResponse) String() string

type ShowInstanceRequest

type ShowInstanceRequest struct {

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

	// 独享引擎ID(通过调用WAF的ListInstance接口获取所有独享引擎信息查询独享引擎ID)
	InstanceId string `json:"instance_id"`
}

ShowInstanceRequest Request Object

func (ShowInstanceRequest) String

func (o ShowInstanceRequest) String() string

type ShowInstanceResponse

type ShowInstanceResponse struct {

	// 独享引擎实例ID
	Id *string `json:"id,omitempty"`

	// 独享引擎实例名称
	Instancename *string `json:"instancename,omitempty"`

	// 独享引擎实例Region ID
	Region *string `json:"region,omitempty"`

	// 可用区ID
	Zone *string `json:"zone,omitempty"`

	// CPU架构
	Arch *string `json:"arch,omitempty"`

	// ECS规格
	CpuFlavor *string `json:"cpu_flavor,omitempty"`

	// 独享引擎实例所在VPC ID
	VpcId *string `json:"vpc_id,omitempty"`

	// 独享引擎实例所在VPC的子网ID
	SubnetId *string `json:"subnet_id,omitempty"`

	// 独享引擎实例的业务面IP
	ServiceIp *string `json:"service_ip,omitempty"`

	// 独享引擎绑定的安全组
	SecurityGroupIds *[]string `json:"security_group_ids,omitempty"`

	// 独享引擎计费状态   - 0:正常计费   - 1:冻结,资源和数据会保留,但租户无法再正常使用云服务   - 2:终止,资源和数据将清除
	Status *int32 `json:"status,omitempty"`

	// 独享引擎运行状态   - 0:创建中   - 1:运行中   - 2:删除中   - 3:已删除   - 4:创建失败   - 5:已冻结   - 6:异常   - 7:更新中   - 8:更新失败
	RunStatus *int32 `json:"run_status,omitempty"`

	// 独享引擎接入状态(0:未接入,1:已接入)
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 独享引擎是否可升级(0:不可升级,1:可升级)
	Upgradable *int32 `json:"upgradable,omitempty"`

	// 云服务代码。 仅作为标记,用户可忽略。
	CloudServiceType *string `json:"cloudServiceType,omitempty"`

	// 云服务资源类型,仅作为标记,用户可忽略。
	ResourceType *string `json:"resourceType,omitempty"`

	// 云服务资源代码。仅作为标记,用户可忽略。
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	// 独享引擎ECS规格,如\"8vCPUs | 16GB\"
	Specification *string `json:"specification,omitempty"`

	// 独享引擎ECS ID
	ServerId *string `json:"serverId,omitempty"`

	// 引擎实例创建时间
	CreateTime     *int64 `json:"create_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowInstanceResponse Response Object

func (ShowInstanceResponse) String

func (o ShowInstanceResponse) String() string

type ShowIpGroupRequest

type ShowIpGroupRequest struct {

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

	// ip地址组id
	Id string `json:"id"`
}

ShowIpGroupRequest Request Object

func (ShowIpGroupRequest) String

func (o ShowIpGroupRequest) String() string

type ShowIpGroupResponse

type ShowIpGroupResponse struct {

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

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

	// 地址组ip(以逗号分隔的ip或ip段)
	Ips *string `json:"ips,omitempty"`

	// 地址组长度
	Size *int32 `json:"size,omitempty"`

	// ip地址组绑定的规则列表
	Rules *[]RuleInfo `json:"rules,omitempty"`

	ShareInfo *ShareInfo `json:"share_info,omitempty"`

	// 地址组描述
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowIpGroupResponse Response Object

func (ShowIpGroupResponse) String

func (o ShowIpGroupResponse) String() string

type ShowLtsInfoConfigRequest

type ShowLtsInfoConfigRequest struct {

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

ShowLtsInfoConfigRequest Request Object

func (ShowLtsInfoConfigRequest) String

func (o ShowLtsInfoConfigRequest) String() string

type ShowLtsInfoConfigResponse

type ShowLtsInfoConfigResponse struct {

	// lts配置信息id,每个企业项目对应唯一id
	Id *string `json:"id,omitempty"`

	// 是否开启全量日志   - false: 不开启   - true: 开启
	Enabled *bool `json:"enabled,omitempty"`

	LtsIdInfo *LtsIdInfo `json:"ltsIdInfo,omitempty"`

	// 该参数废弃,请忽略
	Enabale        *bool `json:"enabale,omitempty"`
	HttpStatusCode int   `json:"-"`
}

ShowLtsInfoConfigResponse Response Object

func (ShowLtsInfoConfigResponse) String

func (o ShowLtsInfoConfigResponse) String() string

type ShowPolicyRequest

type ShowPolicyRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`
}

ShowPolicyRequest Request Object

func (ShowPolicyRequest) String

func (o ShowPolicyRequest) String() string

type ShowPolicyResponse

type ShowPolicyResponse struct {

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

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

	// Web基础防护等级   - 1 : 宽松,防护粒度较粗,只拦截攻击特征比较明显的请求。当误报情况较多的场景下,建议选择“宽松”模式。   - 2:中等,默认为“中等”防护模式,满足大多数场景下的Web防护需求。   - 3:严格,防护粒度最精细,可以拦截具有复杂的绕过特征的攻击请求,例如jolokia网络攻击、探测CGI漏洞、探测 Druid SQL注入攻击
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式。   - false:短路检测,当用户的请求符合精准防护中的拦截条件时,便立刻终止检测,进行拦截   - true :全检测,请求符合精准防护中的拦截条件时,全检测不会立即拦截,会继续执行其他防护的检测,最后进行拦截。
	FullDetection *bool `json:"full_detection,omitempty"`

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

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

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

	// 智能访问控制防护项相关配置信息,目前该特性还处于公测阶段,只有部分局点支持该特性
	ModulexOptions map[string]interface{} `json:"modulex_options,omitempty"`

	// 与防护策略绑定的防护的域名id数组
	Hosts *[]string `json:"hosts,omitempty"`

	// 与防护策略绑定的防护的域名信息数组,相对于hosts字段,包含更详细的域名信息
	BindHost *[]BindHost `json:"bind_host,omitempty"`

	// 扩展字段,用于存放Web基础防护中一些开关配置等信息
	Extend map[string]string `json:"extend,omitempty"`

	// 创建防护策略的时间
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowPolicyResponse Response Object

func (ShowPolicyResponse) String

func (o ShowPolicyResponse) String() string

type ShowPremiumHostRequest

type ShowPremiumHostRequest struct {

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

	// 独享模式域名ID
	HostId string `json:"host_id"`
}

ShowPremiumHostRequest Request Object

func (ShowPremiumHostRequest) String

func (o ShowPremiumHostRequest) String() string

type ShowPremiumHostResponse

type ShowPremiumHostResponse struct {

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

	// 创建的独享模式防护域名
	Hostname *string `json:"hostname,omitempty"`

	// 对外协议,客户端(例如浏览器)请求访问网站的协议类型
	Protocol *string `json:"protocol,omitempty"`

	// 防护域名的源站服务器配置信息
	Server *[]PremiumWafServer `json:"server,omitempty"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 预留参数,用于后期设计冻结域名,解锁域名功能,目前暂不支持
	Locked *int32 `json:"locked,omitempty"`

	// 创建防护域名的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 配置的最低TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,对外协议为https时才有tls参数
	Tls *ShowPremiumHostResponseTls `json:"tls,omitempty"`

	// 对外协议为https时才有cipher参数,加密套件(cipher_1,cipher_2,cipher_3,cipher_4,cipher_default):  - cipher_1: 加密算法为ECDHE-ECDSA-AES256-GCM-SHA384:HIGH:!MEDIUM:!LOW:!aNULL:!eNULL:!DES:!MD5:!PSK:!RC4:!kRSA:!SRP:!3DES:!DSS:!EXP:!CAMELLIA:@STRENGTH   - cipher_2:加密算法为EECDH+AESGCM:EDH+AESGCM   - cipher_3:加密算法为ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH   - cipher_4:加密算法为ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!EDH   - cipher_default: 加密算法为ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM
	Cipher *ShowPremiumHostResponseCipher `json:"cipher,omitempty"`

	// 扩展字段,用于保存防护域名的一些配置信息。
	Extend map[string]string `json:"extend,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

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

	// 防护域名初始绑定的策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id
	Policyid *string `json:"policyid,omitempty"`

	// 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID
	Domainid *string `json:"domainid,omitempty"`

	// 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
	Projectid *string `json:"projectid,omitempty"`

	// 企业项目ID,对应华为云控制台用户名->企业->项目管理->点击项目名称->ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// https证书id
	Certificateid *string `json:"certificateid,omitempty"`

	// 证书名称
	Certificatename *string `json:"certificatename,omitempty"`

	// 域名防护状态:  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	BlockPage *BlockPage `json:"block_page,omitempty"`

	TrafficMark *TrafficMark `json:"traffic_mark,omitempty"`

	TimeoutConfig *TimeoutConfig `json:"timeout_config,omitempty"`

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`

	// 接入进度,仅用于新版console(前端)使用
	AccessProgress *[]AccessProgress `json:"access_progress,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ShowPremiumHostResponse Response Object

func (ShowPremiumHostResponse) String

func (o ShowPremiumHostResponse) String() string

type ShowPremiumHostResponseCipher

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

func (ShowPremiumHostResponseCipher) MarshalJSON

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

func (*ShowPremiumHostResponseCipher) UnmarshalJSON

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

func (ShowPremiumHostResponseCipher) Value

type ShowPremiumHostResponseTls

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

func (ShowPremiumHostResponseTls) MarshalJSON

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

func (*ShowPremiumHostResponseTls) UnmarshalJSON

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

func (ShowPremiumHostResponseTls) Value

type ShowPremiumHostResponseTlsEnum

type ShowPremiumHostResponseTlsEnum struct {
	TLS_V1_0 ShowPremiumHostResponseTls
	TLS_V1_1 ShowPremiumHostResponseTls
	TLS_V1_2 ShowPremiumHostResponseTls
}

func GetShowPremiumHostResponseTlsEnum

func GetShowPremiumHostResponseTlsEnum() ShowPremiumHostResponseTlsEnum

type ShowPrivacyRuleRequest

type ShowPrivacyRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 隐私屏蔽规则id,您可以通过调用查询隐私屏蔽规则列表(ListPrivacyRule)获取规则id
	RuleId string `json:"rule_id"`
}

ShowPrivacyRuleRequest Request Object

func (ShowPrivacyRuleRequest) String

func (o ShowPrivacyRuleRequest) String() string

type ShowPrivacyRuleResponse

type ShowPrivacyRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 创建规则的时间,格式为13位毫秒时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 规则描述,可选参数,设置该规则的备注信息。
	Description *string `json:"description,omitempty"`

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

	// 隐私屏蔽规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/_*,以\"*\"号结尾代表路径前缀
	Url *string `json:"url,omitempty"`

	// 屏蔽字段   - Params:请求参数   - Cookie:根据Cookie区分的Web访问者   - Header:自定义HTTP首部   - Form:表单参数
	Category *string `json:"category,omitempty"`

	// 屏蔽字段名
	Index          *string `json:"index,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowPrivacyRuleResponse Response Object

func (ShowPrivacyRuleResponse) String

func (o ShowPrivacyRuleResponse) String() string

type ShowPunishmentRuleRequest

type ShowPunishmentRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 攻击惩罚规则id,通过查询攻击惩罚规则列表接口(ListPunishmentRules)获取
	RuleId string `json:"rule_id"`
}

ShowPunishmentRuleRequest Request Object

func (ShowPunishmentRuleRequest) String

func (o ShowPunishmentRuleRequest) String() string

type ShowPunishmentRuleResponse

type ShowPunishmentRuleResponse struct {

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

	// 所属策略id
	Policyid *string `json:"policyid,omitempty"`

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

	// 攻击惩罚类别
	Category *string `json:"category,omitempty"`

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

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

ShowPunishmentRuleResponse Response Object

func (ShowPunishmentRuleResponse) String

type ShowSourceIpRequest

type ShowSourceIpRequest struct {
}

ShowSourceIpRequest Request Object

func (ShowSourceIpRequest) String

func (o ShowSourceIpRequest) String() string

type ShowSourceIpResponse

type ShowSourceIpResponse struct {

	// 源站信息列表
	SourceIp *[]IpsItem `json:"source_ip,omitempty"`

	// 回源Ip最后更新时间
	LastModify     *int64 `json:"last_modify,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowSourceIpResponse Response Object

func (ShowSourceIpResponse) String

func (o ShowSourceIpResponse) String() string

type ShowSubscriptionInfoRequest

type ShowSubscriptionInfoRequest struct {
}

ShowSubscriptionInfoRequest Request Object

func (ShowSubscriptionInfoRequest) String

type ShowSubscriptionInfoResponse

type ShowSubscriptionInfoResponse struct {

	// 云模式版本   - -2:已冻结   - -1:未订购   - 2:标准版   - 3:专业版   - 4:铂金版   - 7:入门版   - 22:按需版本
	Type *int32 `json:"type,omitempty"`

	// 资源列表
	Resources *[]ResourceResponse `json:"resources,omitempty"`

	// 是否为新用户
	IsNewUser *bool `json:"isNewUser,omitempty"`

	Premium        *Premium `json:"premium,omitempty"`
	HttpStatusCode int      `json:"-"`
}

ShowSubscriptionInfoResponse Response Object

func (ShowSubscriptionInfoResponse) String

type ShowValueListRequest

type ShowValueListRequest struct {

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

	// 引用表id,通过查询引用表列表(ListValueList)接口获取
	Valuelistid string `json:"valuelistid"`
}

ShowValueListRequest Request Object

func (ShowValueListRequest) String

func (o ShowValueListRequest) String() string

type ShowValueListResponse

type ShowValueListResponse struct {

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

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

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

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

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

	// 引用表来源:  - 1:表示来源于用户手动创建  - 2:表示来源于智能访问控制自动创建
	Producer *int32 `json:"producer,omitempty"`

	// 创建规则的时间,格式为13位毫秒时间戳
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowValueListResponse Response Object

func (ShowValueListResponse) String

func (o ShowValueListResponse) String() string

type ShowWhiteBlackIpRuleRequest

type ShowWhiteBlackIpRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 黑白名单规则id,您可以通过调用查询黑白名单规则列表(ListWhiteblackipRule)获取黑白名单规则id
	RuleId string `json:"rule_id"`
}

ShowWhiteBlackIpRuleRequest Request Object

func (ShowWhiteBlackIpRuleRequest) String

type ShowWhiteBlackIpRuleResponse

type ShowWhiteBlackIpRuleResponse struct {

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

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 黑白名单ip地址,需要输入标准的ip地址或地址段,例如:42.123.120.66或42.123.120.0/16
	Addr *string `json:"addr,omitempty"`

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

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

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

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

	// 创建规则的时间戳,13位毫秒时间戳
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowWhiteBlackIpRuleResponse Response Object

func (ShowWhiteBlackIpRuleResponse) String

type SimplePremiumWafHost

type SimplePremiumWafHost struct {

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

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

	// 扩展字段,用于保存防护域名的一些配置信息。
	Extend map[string]string `json:"extend,omitempty"`

	// 华为云区域ID,控制台创建的域名会携带此参数,api调用创建的域名此参数为空,可以通过华为云上地区和终端节点文档查询区域ID对应的中文名称
	Region *string `json:"region,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

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

	// 防护域名初始绑定的防护策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id
	Policyid *string `json:"policyid,omitempty"`

	// 域名防护状态:  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	// 域名id,和id的值是一样的,属于冗余字段
	Hostid *string `json:"hostid,omitempty"`
}

SimplePremiumWafHost 独享模式域名信息列表

func (SimplePremiumWafHost) String

func (o SimplePremiumWafHost) String() string

type StatisticsTimelineItem

type StatisticsTimelineItem struct {

	// 键值,包括请求总量(ACCESS)、Bot攻击防护(CRAWLER)、攻击总量(ATTACK)、Web基础防护(WEB_ATTACK)、精准防护(PRECISE)、CC攻击防护(CC)
	Key *string `json:"key,omitempty"`

	// 对应键值的时间线统计数据
	Timeline *[]TimeLineItem `json:"timeline,omitempty"`
}

StatisticsTimelineItem 不同键值对应的时间线

func (StatisticsTimelineItem) String

func (o StatisticsTimelineItem) String() string

type TimeLineItem

type TimeLineItem struct {

	// 时间点
	Time *int64 `json:"time,omitempty"`

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

func (TimeLineItem) String

func (o TimeLineItem) String() string

type TimeoutConfig

type TimeoutConfig struct {

	// WAF连接源站超时配置
	ConnectTimeout *int32 `json:"connect_timeout,omitempty"`

	// WAF发送请求到源站超时配置
	SendTimeout *int32 `json:"send_timeout,omitempty"`

	// WAF接收源站响应超时配置
	ReadTimeout *int32 `json:"read_timeout,omitempty"`
}

TimeoutConfig 超时配置,开启后不支持关闭

func (TimeoutConfig) String

func (o TimeoutConfig) String() string

type TrafficMark

type TrafficMark struct {

	// IP标记,客户端最原始的IP地址的HTTP请求头字段。
	Sip *[]string `json:"sip,omitempty"`

	// Session标记,用于Cookie恶意请求的攻击惩罚功能。在选择Cookie拦截的攻击惩罚功能前,必须配置该标识
	Cookie *string `json:"cookie,omitempty"`

	// User标记,用于Params恶意请求的攻击惩罚功能。在选择Params拦截的攻击惩罚功能前,必须配置该标识。
	Params *string `json:"params,omitempty"`
}

TrafficMark 流量标识(用于攻击惩罚),WAF根据这些配置判断如何在Header中识别客户端IP(代理模式)、如何在Cookie中识别Session、如何在参数中识别User。

func (TrafficMark) String

func (o TrafficMark) String() string

type UpdateAlertNoticeConfigRequest

type UpdateAlertNoticeConfigRequest struct {

	// zh-cn/en-us
	XLanguage string `json:"X-Language"`

	// 告警通知id
	AlertId string `json:"alert_id"`

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

UpdateAlertNoticeConfigRequest Request Object

func (UpdateAlertNoticeConfigRequest) String

type UpdateAlertNoticeConfigRequestBody

type UpdateAlertNoticeConfigRequestBody struct {

	// 告警通知名称
	Name string `json:"name"`

	// 是否开启   - false: 不开启   - true: 开启
	Enabled *bool `json:"enabled,omitempty"`

	// 主题URN,通过消息通知服务获取
	TopicUrn string `json:"topic_urn"`

	// 时间间隔,单位为分钟。当通知类型为防护事件时,该参数表示在改时间间隔内,攻击次数等于或者大于设定阈值时,将发送告警通知,支持的值:5、15、30、60、120、360、720、1440;当通知类型为证书到期时,该参数表示每隔多长时间发送一次告警通知,支持的值为1440、10080(单位为分钟)。
	Sendfreq *int32 `json:"sendfreq,omitempty"`

	// 语言   - zh-cn:中文   - en-us
	Locale *string `json:"locale,omitempty"`

	// 当通知类型为防护事件时,需要填写该参数。在该时间间隔内,当攻击次数大于或等于您设置的阈值时才会发送告警通知
	Times *int32 `json:"times,omitempty"`

	// 事件类型
	Threat *[]string `json:"threat,omitempty"`

	// 通知类型    - threat_alert_notice: 防护事件    - cert_alert_notice: 证书到期
	NoticeClass string `json:"notice_class"`

	// 提前通知天数,通知类型为证书到期通知需要填写该参数
	NearlyExpiredTime *string `json:"nearly_expired_time,omitempty"`

	// 是否是所有企业项目
	IsAllEnterpriseProject *bool `json:"is_all_enterprise_project,omitempty"`
}

UpdateAlertNoticeConfigRequestBody 更新告警通知请求信息

func (UpdateAlertNoticeConfigRequestBody) String

type UpdateAlertNoticeConfigResponse

type UpdateAlertNoticeConfigResponse struct {

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

	// 告警通知名称
	Name *string `json:"name,omitempty"`

	// 是否开启   - false: 不开启   - true: 开启
	Enabled *bool `json:"enabled,omitempty"`

	// 主题
	TopicUrn *string `json:"topic_urn,omitempty"`

	// 时间间隔,单位为分钟。当通知类型为防护事件时,该参数表示在改时间间隔内,攻击次数等于或者大于设定阈值时,将发送告警通知,支持的值:5、15、30、60、120、360、720、1440;当通知类型为证书到期时,该参数表示每隔多长时间发送一次告警通知,支持的值为1440、10080(单位为分钟)。
	Sendfreq *int32 `json:"sendfreq,omitempty"`

	// 语言
	Locale *string `json:"locale,omitempty"`

	// 当通知类型为防护事件时,需要填写该参数。在该时间间隔内,当攻击次数大于或等于您设置的阈值时才会发送告警通知
	Times *int32 `json:"times,omitempty"`

	// 事件类型
	Threat *[]string `json:"threat,omitempty"`

	// 预留参数,可忽略
	PreferHtml *bool `json:"prefer_html,omitempty"`

	// 通知类型
	NoticeClass *string `json:"notice_class,omitempty"`

	// 提前通知天数
	NearlyExpiredTime *string `json:"nearly_expired_time,omitempty"`

	// 是否是所有企业项目
	IsAllEnterpriseProject *bool `json:"is_all_enterprise_project,omitempty"`

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

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

UpdateAlertNoticeConfigResponse Response Object

func (UpdateAlertNoticeConfigResponse) String

type UpdateAntiTamperRuleRefreshRequest

type UpdateAntiTamperRuleRefreshRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 防篡改规则id,通过查询防篡改规则列表接口(ListAntitamperRule)获取
	RuleId string `json:"rule_id"`
}

UpdateAntiTamperRuleRefreshRequest Request Object

func (UpdateAntiTamperRuleRefreshRequest) String

type UpdateAntiTamperRuleRefreshResponse

type UpdateAntiTamperRuleRefreshResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 防篡改的域名
	Hostname *string `json:"hostname,omitempty"`

	// 防篡改的url
	Url *string `json:"url,omitempty"`

	// 创建规则的时间戳
	Description *string `json:"description,omitempty"`

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

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

UpdateAntiTamperRuleRefreshResponse Response Object

func (UpdateAntiTamperRuleRefreshResponse) String

type UpdateAnticrawlerRuleRequest

type UpdateAnticrawlerRuleRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

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

UpdateAnticrawlerRuleRequest Request Object

func (UpdateAnticrawlerRuleRequest) String

type UpdateAnticrawlerRuleRequestBody

type UpdateAnticrawlerRuleRequestBody struct {

	// 匹配条件列表
	Conditions []AnticrawlerCondition `json:"conditions"`

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

	// JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
	Type string `json:"type"`

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

func (UpdateAnticrawlerRuleRequestBody) String

type UpdateAnticrawlerRuleResponse

type UpdateAnticrawlerRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 匹配条件列表
	Conditions *[]AnticrawlerCondition `json:"conditions,omitempty"`

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

	// JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
	Type *string `json:"type,omitempty"`

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

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

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

UpdateAnticrawlerRuleResponse Response Object

func (UpdateAnticrawlerRuleResponse) String

type UpdateAnticrawlerRuleTypeRequest

type UpdateAnticrawlerRuleTypeRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

UpdateAnticrawlerRuleTypeRequest Request Object

func (UpdateAnticrawlerRuleTypeRequest) String

type UpdateAnticrawlerRuleTypeRequestbody

type UpdateAnticrawlerRuleTypeRequestbody struct {

	// JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
	AnticrawlerType string `json:"anticrawler_type"`
}

func (UpdateAnticrawlerRuleTypeRequestbody) String

type UpdateAnticrawlerRuleTypeResponse

type UpdateAnticrawlerRuleTypeResponse struct {

	// JS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
	AnticrawlerType *string `json:"anticrawler_type,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

UpdateAnticrawlerRuleTypeResponse Response Object

func (UpdateAnticrawlerRuleTypeResponse) String

type UpdateAntileakageRuleRequest

type UpdateAntileakageRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取
	RuleId string `json:"rule_id"`

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

UpdateAntileakageRuleRequest Request Object

func (UpdateAntileakageRuleRequest) String

type UpdateAntileakageRuleRequestBody

type UpdateAntileakageRuleRequestBody struct {

	// 规则应用的url
	Url string `json:"url"`

	// 类别(响应码:code,敏感信息:sensitive)
	Category UpdateAntileakageRuleRequestBodyCategory `json:"category"`

	// 内容(http状态码:400 、401、402 、 403 、404 、 405 、500 、501 、502 、503、 504 、507;手机:phone、身份证号:id_card、邮箱:email)
	Contents []string `json:"contents"`

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

func (UpdateAntileakageRuleRequestBody) String

type UpdateAntileakageRuleRequestBodyCategory

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

func (UpdateAntileakageRuleRequestBodyCategory) MarshalJSON

func (*UpdateAntileakageRuleRequestBodyCategory) UnmarshalJSON

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

func (UpdateAntileakageRuleRequestBodyCategory) Value

type UpdateAntileakageRuleRequestBodyCategoryEnum

type UpdateAntileakageRuleRequestBodyCategoryEnum struct {
	CODE      UpdateAntileakageRuleRequestBodyCategory
	SENSITIVE UpdateAntileakageRuleRequestBodyCategory
}

func GetUpdateAntileakageRuleRequestBodyCategoryEnum

func GetUpdateAntileakageRuleRequestBodyCategoryEnum() UpdateAntileakageRuleRequestBodyCategoryEnum

type UpdateAntileakageRuleResponse

type UpdateAntileakageRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则应用的url
	Url *string `json:"url,omitempty"`

	// 类别(响应码:code,敏感信息:sensitive)
	Category *string `json:"category,omitempty"`

	// 规则内容
	Contents *[]string `json:"contents,omitempty"`

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

	// 规则描述
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateAntileakageRuleResponse Response Object

func (UpdateAntileakageRuleResponse) String

type UpdateCcRuleRequest

type UpdateCcRuleRequest struct {

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

	// 策略id(策略id从查询防护策略列表接口获取)
	PolicyId string `json:"policy_id"`

	// ID of the cc rule. It can be obtained by calling the **ListCcRules** API.
	RuleId string `json:"rule_id"`

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

UpdateCcRuleRequest Request Object

func (UpdateCcRuleRequest) String

func (o UpdateCcRuleRequest) String() string

type UpdateCcRuleRequestBody

type UpdateCcRuleRequestBody struct {

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

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

	// 需要防护的域名路径,当cc防护规则为标准模式(mode参数值为0)时,该参数必填。
	Url *string `json:"url,omitempty"`

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

	Action *CreateCcRuleRequestBodyAction `json:"action"`

	// 限速模式:   - ip:IP限速,根据IP区分单个Web访问者。   - cookie:用户限速,根据Cookie键值区分单个Web访问者。   - header:用户限速,根据Header区分单个Web访问者。   - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。   - policy: 策略限速   - domain: 域名限速     - url: url限速
	TagType UpdateCcRuleRequestBodyTagType `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 *CcrulesListInfoTagCondition `json:"tag_condition,omitempty"`

	// 限制频率,单位为次,范围为1~2147483647
	LimitNum int32 `json:"limit_num"`

	// 限速周期,单位为秒,范围1~3600
	LimitPeriod int32 `json:"limit_period"`

	// 放行频率,单位为次,范围为0~2147483647。只有当防护动作类型为dynamic_block时,才需要传该参数。
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 阻断时间,单位为秒,范围为0~65535。当“防护动作”选择“阻断”时,可设置阻断后恢复正常访问页面的时间。
	LockTime *int32 `json:"lock_time,omitempty"`

	// 是否开启域名聚合统计。
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 是否开启全局计数。
	RegionAggregation *bool `json:"region_aggregation,omitempty"`

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

func (UpdateCcRuleRequestBody) String

func (o UpdateCcRuleRequestBody) String() string

type UpdateCcRuleRequestBodyTagType

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

func (UpdateCcRuleRequestBodyTagType) MarshalJSON

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

func (*UpdateCcRuleRequestBodyTagType) UnmarshalJSON

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

func (UpdateCcRuleRequestBodyTagType) Value

type UpdateCcRuleResponse

type UpdateCcRuleResponse struct {

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

	// Rule ID.
	Id *string `json:"id,omitempty"`

	// Policy ID.
	Policyid *string `json:"policyid,omitempty"`

	// 当mode值为0时,该参数有返回值。规则应用的URL链接,不包含域名。
	Url *string `json:"url,omitempty"`

	// 路径是否为前缀模式,当防护url以*结束,则为前缀模式。
	Prefix *bool `json:"prefix,omitempty"`

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

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

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

	// 限速模式:   - ip:IP限速,根据IP区分单个Web访问者。   - cookie:用户限速,根据Cookie键值区分单个Web访问者。   - header:用户限速,根据Header区分单个Web访问者。   - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。   - policy: 策略限速   - domain: 域名限速     - url: url限速
	TagType *UpdateCcRuleResponseTagType `json:"tag_type,omitempty"`

	// 用户标识,当限速模式为用户限速(cookie或header)时,需要传该参数。   - 选择cookie时,设置cookie字段名,即用户需要根据网站实际情况配置唯一可识别Web访问者的cookie中的某属性变量名。用户标识的cookie,不支持正则,必须完全匹配。例如:如果网站使用cookie中的某个字段name唯一标识用户,那么可以选取name字段来区分Web访问者。   - 选择header时,设置需要防护的自定义HTTP首部,即用户需要根据网站实际情况配置可识别Web访问者的HTTP首部。
	TagIndex *string `json:"tag_index,omitempty"`

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

	// 限制频率,单位为次,范围为1~2147483647
	LimitNum *int32 `json:"limit_num,omitempty"`

	// 限速周期,单位为秒,范围1~3600
	LimitPeriod *int32 `json:"limit_period,omitempty"`

	// 放行频率,单位为次,范围为0~2147483647。只有当防护动作类型为dynamic_block时,才需要传该参数。
	UnlockNum *int32 `json:"unlock_num,omitempty"`

	// 阻断时间,单位为秒,范围为0~65535。当“防护动作”选择“阻断”时,可设置阻断后恢复正常访问页面的时间。
	LockTime *int32 `json:"lock_time,omitempty"`

	// 是否开启域名聚合统计。
	DomainAggregation *bool `json:"domain_aggregation,omitempty"`

	// 是否开启全局计数。
	RegionAggregation *bool `json:"region_aggregation,omitempty"`

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

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Unaggregation *bool `json:"unaggregation,omitempty"`

	// 规则老化时间,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	AgingTime *int32 `json:"aging_time,omitempty"`

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateCcRuleResponse Response Object

func (UpdateCcRuleResponse) String

func (o UpdateCcRuleResponse) String() string

type UpdateCcRuleResponseTagType

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

func (UpdateCcRuleResponseTagType) MarshalJSON

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

func (*UpdateCcRuleResponseTagType) UnmarshalJSON

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

func (UpdateCcRuleResponseTagType) Value

type UpdateCertificateRequest

type UpdateCertificateRequest struct {

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

	// https证书id,您可以通过调用查询证书列表(ListCertificates)接口获取证书id
	CertificateId string `json:"certificate_id"`

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

UpdateCertificateRequest Request Object

func (UpdateCertificateRequest) String

func (o UpdateCertificateRequest) String() string

type UpdateCertificateRequestBody

type UpdateCertificateRequestBody struct {

	// 证书名称,证书名称只能由数字、字母、中划线、下划线和英文句点组成,长度不能超过64位字符
	Name string `json:"name"`

	// 证书文件,仅支持PEM格式的证书和私钥文件,且文件中的换行符应以\\n替换
	Content *string `json:"content,omitempty"`

	// 证书私钥,仅支持PEM格式的证书和私钥文件,且文件中的换行符应以\\n替换
	Key *string `json:"key,omitempty"`
}

func (UpdateCertificateRequestBody) String

type UpdateCertificateResponse

type UpdateCertificateResponse struct {

	// 证书ID
	Id *string `json:"id,omitempty"`

	// 证书名
	Name *string `json:"name,omitempty"`

	// 证书过期时间戳
	ExpireTime *int64 `json:"expire_time,omitempty"`

	// 时间戳
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateCertificateResponse Response Object

func (UpdateCertificateResponse) String

func (o UpdateCertificateResponse) String() string

type UpdateCustomRuleRequest

type UpdateCustomRuleRequest struct {

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

	// 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取
	RuleId string `json:"rule_id"`

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

UpdateCustomRuleRequest Request Object

func (UpdateCustomRuleRequest) String

func (o UpdateCustomRuleRequest) String() string

type UpdateCustomRuleRequestBody

type UpdateCustomRuleRequestBody struct {

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

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

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

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

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

	// 匹配条件列表
	Conditions []CustomConditions `json:"conditions"`

	Action *CustomAction `json:"action"`

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

func (UpdateCustomRuleRequestBody) String

type UpdateCustomRuleResponse

type UpdateCustomRuleResponse struct {

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

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

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

	// 匹配条件列表,匹配条件必须同时满足。
	Conditions *[]CustomRuleConditions `json:"conditions,omitempty"`

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

	// 预留参数,可忽略。
	ActionMode *bool `json:"action_mode,omitempty"`

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

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

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

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

	// 规则创建对象,该参数为预留参数,用于后续功能扩展,当前请用户忽略该参数
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateCustomRuleResponse Response Object

func (UpdateCustomRuleResponse) String

func (o UpdateCustomRuleResponse) String() string

type UpdateGeoipRuleRequest

type UpdateGeoipRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id,响应体的id字段
	PolicyId string `json:"policy_id"`

	// 地理位置控制规则id,规则id从查询地理位置规则列表(ListGeoipRule)接口获取,响应体的id字段
	RuleId string `json:"rule_id"`

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

UpdateGeoipRuleRequest Request Object

func (UpdateGeoipRuleRequest) String

func (o UpdateGeoipRuleRequest) String() string

type UpdateGeoipRuleRequestBody

type UpdateGeoipRuleRequestBody struct {

	// 地理位置控制规则名称
	Name *string `json:"name,omitempty"`

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

	// 地理位置封禁区域,选择区域对应的字母代号: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古)
	Geoip string `json:"geoip"`

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

UpdateGeoipRuleRequestBody 地理位置封禁请求体

func (UpdateGeoipRuleRequestBody) String

type UpdateGeoipRuleResponse

type UpdateGeoipRuleResponse struct {

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

	// 地理位置控制规则名称
	Name *string `json:"name,omitempty"`

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 地理位置封禁区域: (CN: 中国,CA: 加拿大,US: 美国,AU: 澳大利亚,IN: 印度,JP: 日本,UK: 英国,FR: 法国,DE: 德国,BR: 巴西,Ukraine: 乌克兰,North Korea: 朝鲜,The Republic of Korea: 韩国,Iran: 伊朗,Cuba: 古巴,Sultan: 苏丹,Syria: 叙利亚,Pakistan: 巴基斯坦,Palestine: 巴勒斯坦,Israel: 以色列,Iraq: 伊拉克,Afghanistan: 阿富汗,Libya: 利比亚,Turkey: 土耳其,Thailand: 泰国,Singapore: 新加坡,South Africa: 南非,Mexico: 墨西哥,Peru: 秘鲁,Indonesia: 印度尼西亚,GD: 广东,FJ: 福建,JL: 吉林,LN: 辽宁,TW: 台湾,GZ: 贵州,AH: 安徽,HL: 黑龙江,HA: 河南,SC: 四川,HE: 河北,YN: 云南,HB: 湖北,HI: 海南,QH: 青海,HN: 湖南,JX: 江西,SX: 山西,SN: 陕西,ZJ: 浙江,GS: 甘肃,JS: 江苏,SD: 山东,BJ: 北京,SH: 上海,TJ: 天津,CQ: 重庆,MO: 澳门,HK: 香港,NX: 宁夏,GX: 广西,XJ: 新疆,XZ: 西藏,NM: 内蒙古)
	Geoip *string `json:"geoip,omitempty"`

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

UpdateGeoipRuleResponse Response Object

func (UpdateGeoipRuleResponse) String

func (o UpdateGeoipRuleResponse) String() string

type UpdateHostProtectStatusRequest

type UpdateHostProtectStatusRequest struct {

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

	// 域名id,您可以通过调用查询云模式防护域名列表(ListHost)获取域名id
	InstanceId string `json:"instance_id"`

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

UpdateHostProtectStatusRequest Request Object

func (UpdateHostProtectStatusRequest) String

type UpdateHostProtectStatusRequestBody

type UpdateHostProtectStatusRequestBody struct {

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus int32 `json:"protect_status"`
}

UpdateHostProtectStatusRequestBody 修改域名防护状态请求体

func (UpdateHostProtectStatusRequestBody) String

type UpdateHostProtectStatusResponse

type UpdateHostProtectStatusResponse struct {

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus  *int32 `json:"protect_status,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateHostProtectStatusResponse Response Object

func (UpdateHostProtectStatusResponse) String

type UpdateHostRequest

type UpdateHostRequest struct {

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

	// 域名id,您可以通过调用查询云模式防护域名列表(ListHost)获取域名id
	InstanceId string `json:"instance_id"`

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

UpdateHostRequest Request Object

func (UpdateHostRequest) String

func (o UpdateHostRequest) String() string

type UpdateHostRequestBody

type UpdateHostRequestBody struct {

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 证书id,通过查询证书列表接口(ListCertificates)接口获取证书id   - 对外协议为HTTP时不需要填写   - 对外协议HTTPS时为必填参数
	Certificateid *string `json:"certificateid,omitempty"`

	// 证书名   - 对外协议为HTTP时不需要填写   - 对外协议HTTPS时为必填参数
	Certificatename *string `json:"certificatename,omitempty"`

	// 防护域名的源站服务器配置信息
	Server *[]CloudWafServer `json:"server,omitempty"`

	// 配置的最低TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,对于低于最低TLS版本的请求,将无法正常访问网站
	Tls *UpdateHostRequestBodyTls `json:"tls,omitempty"`

	// 加密套件(cipher_1,cipher_2,cipher_3,cipher_4,cipher_default):  - cipher_1: 加密算法为ECDHE-ECDSA-AES256-GCM-SHA384:HIGH:!MEDIUM:!LOW:!aNULL:!eNULL:!DES:!MD5:!PSK:!RC4:!kRSA:!SRP:!3DES:!DSS:!EXP:!CAMELLIA:@STRENGTH   - cipher_2:加密算法为EECDH+AESGCM:EDH+AESGCM   - cipher_3:加密算法为ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH   - cipher_4:加密算法为ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!EDH   - cipher_default: 加密算法为ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM
	Cipher *UpdateHostRequestBodyCipher `json:"cipher,omitempty"`

	// 是否支持http2   - true:表示支持http2   - false:表示不支持http2
	Http2Enable *bool `json:"http2_enable,omitempty"`

	// 是否开启IPv6防护,仅专业版(原企业版)和铂金版(原旗舰版)支持IPv6防护。   - true:开启IPv6防护   - false:关闭IPV6防护
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	// 是否使用独享ip   - true:使用独享ip   - false:不实用独享ip
	ExclusiveIp *bool `json:"exclusive_ip,omitempty"`

	// 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。
	PaidType *string `json:"paid_type,omitempty"`

	BlockPage *BlockPage `json:"block_page,omitempty"`

	TrafficMark *TrafficMark `json:"traffic_mark,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

	// 扩展字段,用于保存防护域名的一些配置信息。
	Extend map[string]string `json:"extend,omitempty"`

	CircuitBreaker *CircuitBreaker `json:"circuit_breaker,omitempty"`

	TimeoutConfig *TimeoutConfig `json:"timeout_config,omitempty"`

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`
}

UpdateHostRequestBody 修改云模式域名的请求体

func (UpdateHostRequestBody) String

func (o UpdateHostRequestBody) String() string

type UpdateHostRequestBodyCipher

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

func (UpdateHostRequestBodyCipher) MarshalJSON

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

func (*UpdateHostRequestBodyCipher) UnmarshalJSON

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

func (UpdateHostRequestBodyCipher) Value

type UpdateHostRequestBodyCipherEnum

type UpdateHostRequestBodyCipherEnum struct {
	CIPHER_1       UpdateHostRequestBodyCipher
	CIPHER_2       UpdateHostRequestBodyCipher
	CIPHER_3       UpdateHostRequestBodyCipher
	CIPHER_4       UpdateHostRequestBodyCipher
	CIPHER_DEFAULT UpdateHostRequestBodyCipher
}

func GetUpdateHostRequestBodyCipherEnum

func GetUpdateHostRequestBodyCipherEnum() UpdateHostRequestBodyCipherEnum

type UpdateHostRequestBodyTls

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

func (UpdateHostRequestBodyTls) MarshalJSON

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

func (*UpdateHostRequestBodyTls) UnmarshalJSON

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

func (UpdateHostRequestBodyTls) Value

func (c UpdateHostRequestBodyTls) Value() string

type UpdateHostRequestBodyTlsEnum

type UpdateHostRequestBodyTlsEnum struct {
	TLS_V1_0 UpdateHostRequestBodyTls
	TLS_V1_1 UpdateHostRequestBodyTls
	TLS_V1_2 UpdateHostRequestBodyTls
}

func GetUpdateHostRequestBodyTlsEnum

func GetUpdateHostRequestBodyTlsEnum() UpdateHostRequestBodyTlsEnum

type UpdateHostResponse

type UpdateHostResponse struct {

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

	// 创建的云模式防护域名
	Hostname *string `json:"hostname,omitempty"`

	// 防护域名的防护策略id
	Policyid *string `json:"policyid,omitempty"`

	// 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID
	Domainid *string `json:"domainid,omitempty"`

	// 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
	Projectid *string `json:"projectid,omitempty"`

	// 企业项目ID,对应华为云控制台用户名->企业->项目管理->点击项目名称->ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 后端包含的协议类型:HTTPS、HTTP、HTTP&HTTPS
	Protocol *string `json:"protocol,omitempty"`

	// 防护域名的源站服务器配置信息
	Server *[]CloudWafServer `json:"server,omitempty"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 域名防护状态:  - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// cname前缀
	AccessCode *string `json:"access_code,omitempty"`

	// 预留参数,用于后期设计冻结域名,解锁域名功能,目前暂不支持
	Locked *int32 `json:"locked,omitempty"`

	// 创建防护域名的时间戳(毫秒)
	Timestamp *int64 `json:"timestamp,omitempty"`

	// https证书id
	Certificateid *string `json:"certificateid,omitempty"`

	// 证书名称
	Certificatename *string `json:"certificatename,omitempty"`

	// 配置的最低TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,对于低于最低TLS版本的请求,将无法正常访问网站
	Tls *UpdateHostResponseTls `json:"tls,omitempty"`

	// 加密套件(cipher_1,cipher_2,cipher_3,cipher_4,cipher_default):  - cipher_1: 加密算法为ECDHE-ECDSA-AES256-GCM-SHA384:HIGH:!MEDIUM:!LOW:!aNULL:!eNULL:!DES:!MD5:!PSK:!RC4:!kRSA:!SRP:!3DES:!DSS:!EXP:!CAMELLIA:@STRENGTH   - cipher_2:加密算法为EECDH+AESGCM:EDH+AESGCM   - cipher_3:加密算法为ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH   - cipher_4:加密算法为ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!EDH   - cipher_default: 加密算法为ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM
	Cipher *UpdateHostResponseCipher `json:"cipher,omitempty"`

	BlockPage *BlockPage `json:"block_page,omitempty"`

	// 扩展字段,用于保存防护域名的一些配置信息。
	Extend map[string]string `json:"extend,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	TrafficMark *TrafficMark `json:"traffic_mark,omitempty"`

	CircuitBreaker *CircuitBreaker `json:"circuit_breaker,omitempty"`

	// LB负载均衡,仅专业版(原企业版)和铂金版(原旗舰版)支持配置负载均衡算法   - 源IP Hash:将某个IP的请求定向到同一个服务器   - 加权轮询:所有请求将按权重轮流分配给源站服务器   - Session Hash:将某个Session标识的请求定向到同一个源站服务器,请确保在域名添加完毕后配置攻击惩罚的流量标识,否则Session Hash配置不生效
	LbAlgorithm *UpdateHostResponseLbAlgorithm `json:"lb_algorithm,omitempty"`

	TimeoutConfig *TimeoutConfig `json:"timeout_config,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

	// 网站备注
	Description *string `json:"description,omitempty"`

	// 是否支持http2   - true:表示支持http2   - false:表示不支持http2
	Http2Enable *bool `json:"http2_enable,omitempty"`

	// 是否使用独享ip   - true:使用独享ip   - false:不实用独享ip
	ExclusiveIp *bool `json:"exclusive_ip,omitempty"`

	// 接入进度,仅用于新版console(前端)使用
	AccessProgress *[]AccessProgress `json:"access_progress,omitempty"`

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`
	HttpStatusCode   int               `json:"-"`
}

UpdateHostResponse Response Object

func (UpdateHostResponse) String

func (o UpdateHostResponse) String() string

type UpdateHostResponseCipher

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

func (UpdateHostResponseCipher) MarshalJSON

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

func (*UpdateHostResponseCipher) UnmarshalJSON

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

func (UpdateHostResponseCipher) Value

func (c UpdateHostResponseCipher) Value() string

type UpdateHostResponseCipherEnum

type UpdateHostResponseCipherEnum struct {
	CIPHER_1       UpdateHostResponseCipher
	CIPHER_2       UpdateHostResponseCipher
	CIPHER_3       UpdateHostResponseCipher
	CIPHER_4       UpdateHostResponseCipher
	CIPHER_DEFAULT UpdateHostResponseCipher
}

func GetUpdateHostResponseCipherEnum

func GetUpdateHostResponseCipherEnum() UpdateHostResponseCipherEnum

type UpdateHostResponseLbAlgorithm

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

func (UpdateHostResponseLbAlgorithm) MarshalJSON

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

func (*UpdateHostResponseLbAlgorithm) UnmarshalJSON

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

func (UpdateHostResponseLbAlgorithm) Value

type UpdateHostResponseLbAlgorithmEnum

type UpdateHostResponseLbAlgorithmEnum struct {
	IP_HASH      UpdateHostResponseLbAlgorithm
	ROUND_ROBIN  UpdateHostResponseLbAlgorithm
	SESSION_HASH UpdateHostResponseLbAlgorithm
}

func GetUpdateHostResponseLbAlgorithmEnum

func GetUpdateHostResponseLbAlgorithmEnum() UpdateHostResponseLbAlgorithmEnum

type UpdateHostResponseTls

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

func (UpdateHostResponseTls) MarshalJSON

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

func (*UpdateHostResponseTls) UnmarshalJSON

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

func (UpdateHostResponseTls) Value

func (c UpdateHostResponseTls) Value() string

type UpdateHostResponseTlsEnum

type UpdateHostResponseTlsEnum struct {
	TLS_V1_0 UpdateHostResponseTls
	TLS_V1_1 UpdateHostResponseTls
	TLS_V1_2 UpdateHostResponseTls
}

func GetUpdateHostResponseTlsEnum

func GetUpdateHostResponseTlsEnum() UpdateHostResponseTlsEnum

type UpdateIgnoreRuleRequest

type UpdateIgnoreRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
	RuleId string `json:"rule_id"`

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

UpdateIgnoreRuleRequest Request Object

func (UpdateIgnoreRuleRequest) String

func (o UpdateIgnoreRuleRequest) String() string

type UpdateIgnoreRuleRequestBody

type UpdateIgnoreRuleRequestBody struct {

	// 防护域名或防护网站,数组长度为0时,代表规则对全部域名或防护网站生效
	Domain []string `json:"domain"`

	// 条件列表
	Conditions []CreateCondition `json:"conditions"`

	// 固定值为1,代表v2版本误报屏蔽规则,v1版本仅用于兼容旧版本,不支持创建
	Mode int32 `json:"mode"`

	// 需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔   - 当需要屏蔽某一条内置规则时,该参数值为该内置规则id,可以在Web应用防火墙控制台的防护策略->策略名称->Web基础防护的高级设置->防护规则中查询;也可以在防护事件的事件详情中查询内置规则id   - 当需要屏蔽web基础防护某一类规则时,该参数值为需要屏蔽的web基础防护某一类规则名。其中,xss:xxs攻击;webshell:网站木马;vuln:其他类型攻击;sqli:sql注入攻击;robot:恶意爬虫;rfi:远程文件包含;lfi:本地文件包含;cmdi:命令注入攻击   - 当需要屏蔽Web基础防护模块,该参数值为:all   - 当需要屏蔽规则为所有检测模块时,该参数值为:bypass
	Rule string `json:"rule"`

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

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

UpdateIgnoreRuleRequestBody 更新误报屏蔽规则请求体

func (UpdateIgnoreRuleRequestBody) String

type UpdateIgnoreRuleResponse

type UpdateIgnoreRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

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

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

	// 误报规则屏蔽路径,仅在mode为0的状态下有该字段
	Url *string `json:"url,omitempty"`

	// 需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔   - 当需要屏蔽某一条内置规则时,该参数值为该内置规则id,可以在Web应用防火墙控制台的防护策略->策略名称->Web基础防护的高级设置->防护规则中查询;也可以在防护事件的事件详情中查询内置规则id   - 当需要屏蔽web基础防护某一类规则时,该参数值为需要屏蔽的web基础防护某一类规则名。其中,xss:xxs攻击;webshell:网站木马;vuln:其他类型攻击;sqli:sql注入攻击;robot:恶意爬虫;rfi:远程文件包含;lfi:本地文件包含;cmdi:命令注入攻击   - 当需要屏蔽Web基础防护模块,该参数值为:all   - 当需要屏蔽规则为所有检测模块时,该参数值为:bypass
	Rule *string `json:"rule,omitempty"`

	// 版本号,0代表v1旧版本,1代表v2新版本;mode为0时,不存在conditions字段,存在url和url_logic字段;mode为1时,不存在url和url_logic字段,存在conditions字段
	Mode *int32 `json:"mode,omitempty"`

	// url匹配逻辑
	UrlLogic *string `json:"url_logic,omitempty"`

	// 条件
	Conditions *[]Condition `json:"conditions,omitempty"`

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

	// 防护域名或防护网站
	Domain         *[]string `json:"domain,omitempty"`
	HttpStatusCode int       `json:"-"`
}

UpdateIgnoreRuleResponse Response Object

func (UpdateIgnoreRuleResponse) String

func (o UpdateIgnoreRuleResponse) String() string

type UpdateIpGroupRequest

type UpdateIpGroupRequest struct {

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

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

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

UpdateIpGroupRequest Request Object

func (UpdateIpGroupRequest) String

func (o UpdateIpGroupRequest) String() string

type UpdateIpGroupRequestBody

type UpdateIpGroupRequestBody struct {

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

	// 以逗号分隔的ip或ip段
	Ips string `json:"ips"`

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

UpdateIpGroupRequestBody 地址组名称

func (UpdateIpGroupRequestBody) String

func (o UpdateIpGroupRequestBody) String() string

type UpdateIpGroupResponse

type UpdateIpGroupResponse struct {

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

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

	// 地址组ip(以逗号分隔的ip或ip段)
	Ips *string `json:"ips,omitempty"`

	// 地址组长度
	Size *int32 `json:"size,omitempty"`

	// ip地址组绑定的规则列表
	Rules *[]RuleInfo `json:"rules,omitempty"`

	// 地址组描述
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateIpGroupResponse Response Object

func (UpdateIpGroupResponse) String

func (o UpdateIpGroupResponse) String() string

type UpdateLtsInfoConfigRequest

type UpdateLtsInfoConfigRequest struct {

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

	// lts配置信息id,通过ShowLtsInfoConfig获取
	LtsconfigId string `json:"ltsconfig_id"`

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

UpdateLtsInfoConfigRequest Request Object

func (UpdateLtsInfoConfigRequest) String

type UpdateLtsInfoConfigRequestBody

type UpdateLtsInfoConfigRequestBody struct {

	// 是否开启全量日志   - false: 不开启   - true: 开启
	Enabled *bool `json:"enabled,omitempty"`

	LtsIdInfo *LtsIdInfo `json:"ltsIdInfo,omitempty"`

	// 该参数废弃,请忽略
	Enabale *bool `json:"enabale,omitempty"`
}

func (UpdateLtsInfoConfigRequestBody) String

type UpdateLtsInfoConfigResponse

type UpdateLtsInfoConfigResponse struct {

	// lts配置信息id
	Id *string `json:"id,omitempty"`

	// 是否开启全量日志   - false: 不开启   - true: 开启
	Enabled *bool `json:"enabled,omitempty"`

	LtsIdInfo *LtsIdInfo `json:"ltsIdInfo,omitempty"`

	// 该参数废弃,请忽略
	Enabale        *bool `json:"enabale,omitempty"`
	HttpStatusCode int   `json:"-"`
}

UpdateLtsInfoConfigResponse Response Object

func (UpdateLtsInfoConfigResponse) String

type UpdatePolicyProtectHostRequest

type UpdatePolicyProtectHostRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 域名id,您可以通过调用查询云模式防护域名列表(ListHost)获取域名id
	Hosts string `json:"hosts"`
}

UpdatePolicyProtectHostRequest Request Object

func (UpdatePolicyProtectHostRequest) String

type UpdatePolicyProtectHostResponse

type UpdatePolicyProtectHostResponse struct {

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

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

	// Web基础防护等级   - 1 : 宽松,防护粒度较粗,只拦截攻击特征比较明显的请求。当误报情况较多的场景下,建议选择“宽松”模式。   - 2:中等,默认为“中等”防护模式,满足大多数场景下的Web防护需求。   - 3:严格,防护粒度最精细,可以拦截具有复杂的绕过特征的攻击请求,例如jolokia网络攻击、探测CGI漏洞、探测 Druid SQL注入攻击
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式。   - false:短路检测,当用户的请求符合精准防护中的拦截条件时,便立刻终止检测,进行拦截   - true :全检测,请求符合精准防护中的拦截条件时,全检测不会立即拦截,会继续执行其他防护的检测,最后进行拦截。
	FullDetection *bool `json:"full_detection,omitempty"`

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

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

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

	// 智能访问控制防护项相关配置信息,目前该特性还处于公测阶段,只有部分局点支持该特性
	ModulexOptions map[string]interface{} `json:"modulex_options,omitempty"`

	// 与防护策略绑定的防护的域名id数组
	Hosts *[]string `json:"hosts,omitempty"`

	// 与防护策略绑定的防护的域名信息数组,相对于hosts字段,包含更详细的域名信息
	BindHost *[]BindHost `json:"bind_host,omitempty"`

	// 扩展字段,用于存放Web基础防护中一些开关配置等信息
	Extend map[string]string `json:"extend,omitempty"`

	// 创建防护策略的时间
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdatePolicyProtectHostResponse Response Object

func (UpdatePolicyProtectHostResponse) String

type UpdatePolicyRequest

type UpdatePolicyRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

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

UpdatePolicyRequest Request Object

func (UpdatePolicyRequest) String

func (o UpdatePolicyRequest) String() string

type UpdatePolicyRequestBody

type UpdatePolicyRequestBody struct {

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

	// Web基础防护等级   - 1 : 宽松,防护粒度较粗,只拦截攻击特征比较明显的请求。当误报情况较多的场景下,建议选择“宽松”模式。   - 2:中等,默认为“中等”防护模式,满足大多数场景下的Web防护需求。   - 3:严格,防护粒度最精细,可以拦截具有复杂的绕过特征的攻击请求,例如jolokia网络攻击、探测CGI漏洞、探测 Druid SQL注入攻击
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式。   - false:短路检测,当用户的请求符合精准防护中的拦截条件时,便立刻终止检测,进行拦截   - true :全检测,请求符合精准防护中的拦截条件时,全检测不会立即拦截,会继续执行其他防护的检测,最后进行拦截。
	FullDetection *bool `json:"full_detection,omitempty"`

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

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

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

	// 智能访问控制防护项相关配置信息,目前该特性还处于公测阶段,只有部分局点支持该特性
	ModulexOptions map[string]interface{} `json:"modulex_options,omitempty"`

	// 与防护策略绑定的防护的域名id数组
	Hosts *[]string `json:"hosts,omitempty"`

	// 与防护策略绑定的防护的域名信息数组,相对于hosts字段,包含更详细的域名信息
	BindHost *[]BindHost `json:"bind_host,omitempty"`

	// 扩展字段,用于存放Web基础防护中一些开关配置等信息
	Extend map[string]string `json:"extend,omitempty"`
}

func (UpdatePolicyRequestBody) String

func (o UpdatePolicyRequestBody) String() string

type UpdatePolicyResponse

type UpdatePolicyResponse struct {

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

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

	// Web基础防护等级   - 1 : 宽松,防护粒度较粗,只拦截攻击特征比较明显的请求。当误报情况较多的场景下,建议选择“宽松”模式。   - 2:中等,默认为“中等”防护模式,满足大多数场景下的Web防护需求。   - 3:严格,防护粒度最精细,可以拦截具有复杂的绕过特征的攻击请求,例如jolokia网络攻击、探测CGI漏洞、探测 Druid SQL注入攻击
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式。   - false:短路检测,当用户的请求符合精准防护中的拦截条件时,便立刻终止检测,进行拦截   - true :全检测,请求符合精准防护中的拦截条件时,全检测不会立即拦截,会继续执行其他防护的检测,最后进行拦截。
	FullDetection *bool `json:"full_detection,omitempty"`

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

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

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

	// 智能访问控制防护项相关配置信息,目前该特性还处于公测阶段,只有部分局点支持该特性
	ModulexOptions map[string]interface{} `json:"modulex_options,omitempty"`

	// 与防护策略绑定的防护的域名id数组
	Hosts *[]string `json:"hosts,omitempty"`

	// 与防护策略绑定的防护的域名信息数组,相对于hosts字段,包含更详细的域名信息
	BindHost *[]BindHost `json:"bind_host,omitempty"`

	// 扩展字段,用于存放Web基础防护中一些开关配置等信息
	Extend map[string]string `json:"extend,omitempty"`

	// 创建防护策略的时间
	Timestamp      *int64 `json:"timestamp,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdatePolicyResponse Response Object

func (UpdatePolicyResponse) String

func (o UpdatePolicyResponse) String() string

type UpdatePolicyRuleStatusRequest

type UpdatePolicyRuleStatusRequest struct {

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

	// 策略id(策略id从查询防护策略列表接口获取)
	PolicyId string `json:"policy_id"`

	// 策略类型
	Ruletype UpdatePolicyRuleStatusRequestRuletype `json:"ruletype"`

	// 规则id,根据不同的规则类型(ruletype)调用规则列表接口获取规则id,例如黑白名单(whiteblackip)规则id,您可以通过调用查询黑白名单规则列表(ListWhiteblackipRule)获取规则id
	RuleId string `json:"rule_id"`

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

UpdatePolicyRuleStatusRequest Request Object

func (UpdatePolicyRuleStatusRequest) String

type UpdatePolicyRuleStatusRequestBody

type UpdatePolicyRuleStatusRequestBody struct {

	// 状态(开启:1,关闭:0)
	Status *int32 `json:"status,omitempty"`
}

func (UpdatePolicyRuleStatusRequestBody) String

type UpdatePolicyRuleStatusRequestRuletype

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

func (UpdatePolicyRuleStatusRequestRuletype) MarshalJSON

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

func (*UpdatePolicyRuleStatusRequestRuletype) UnmarshalJSON

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

func (UpdatePolicyRuleStatusRequestRuletype) Value

type UpdatePolicyRuleStatusResponse

type UpdatePolicyRuleStatusResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

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

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

	// 状态(开启:1,关闭:0)
	Status         *int32 `json:"status,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdatePolicyRuleStatusResponse Response Object

func (UpdatePolicyRuleStatusResponse) String

type UpdatePremiumHostProtectStatusRequest

type UpdatePremiumHostProtectStatusRequest struct {

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

	// 独享模式域名ID
	HostId string `json:"host_id"`

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

UpdatePremiumHostProtectStatusRequest Request Object

func (UpdatePremiumHostProtectStatusRequest) String

type UpdatePremiumHostProtectStatusRequestBody

type UpdatePremiumHostProtectStatusRequestBody struct {

	// 域名防护状态:  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus int32 `json:"protect_status"`
}

UpdatePremiumHostProtectStatusRequestBody 防护状态

func (UpdatePremiumHostProtectStatusRequestBody) String

type UpdatePremiumHostProtectStatusResponse

type UpdatePremiumHostProtectStatusResponse struct {

	// 域名防护状态:  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus  *int32 `json:"protect_status,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdatePremiumHostProtectStatusResponse Response Object

func (UpdatePremiumHostProtectStatusResponse) String

type UpdatePremiumHostRequest

type UpdatePremiumHostRequest struct {

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

	// 独享模式域名ID
	HostId string `json:"host_id"`

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

UpdatePremiumHostRequest Request Object

func (UpdatePremiumHostRequest) String

func (o UpdatePremiumHostRequest) String() string

type UpdatePremiumHostRequestBody

type UpdatePremiumHostRequestBody struct {

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 证书id,通过查询证书列表接口(ListCertificates)接口获取证书id   - 对外协议为HTTP时不需要填写   - 对外协议HTTPS时为必填参数
	Certificateid *string `json:"certificateid,omitempty"`

	// 证书名   - 对外协议为HTTP时不需要填写   - 对外协议HTTPS时为必填参数
	Certificatename *string `json:"certificatename,omitempty"`

	// 配置的最低TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,对于低于最低TLS版本的请求,将无法正常访问网站
	Tls *UpdatePremiumHostRequestBodyTls `json:"tls,omitempty"`

	// 加密套件(cipher_1,cipher_2,cipher_3,cipher_4,cipher_default):  - cipher_1: 加密算法为ECDHE-ECDSA-AES256-GCM-SHA384:HIGH:!MEDIUM:!LOW:!aNULL:!eNULL:!DES:!MD5:!PSK:!RC4:!kRSA:!SRP:!3DES:!DSS:!EXP:!CAMELLIA:@STRENGTH   - cipher_2:加密算法为EECDH+AESGCM:EDH+AESGCM   - cipher_3:加密算法为ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH   - cipher_4:加密算法为ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!EDH   - cipher_default: 加密算法为ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM
	Cipher *UpdatePremiumHostRequestBodyCipher `json:"cipher,omitempty"`

	// 独享模式特殊域名模式(仅特殊模式需要,如elb)
	Mode *string `json:"mode,omitempty"`

	// 预留参数,用于后期设计冻结域名,解锁域名功能,目前暂不支持
	Locked *int32 `json:"locked,omitempty"`

	// 域名防护状态:  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 时间戳
	Timestamp *int32 `json:"timestamp,omitempty"`

	// 特殊模式域名所属独享引擎组(仅特殊模式需要,如elb)
	PoolIds *[]string `json:"pool_ids,omitempty"`

	BlockPage *BlockPage `json:"block_page,omitempty"`

	TrafficMark *TrafficMark `json:"traffic_mark,omitempty"`

	CircuitBreaker *CircuitBreaker `json:"circuit_breaker,omitempty"`

	TimeoutConfig *TimeoutConfig `json:"timeout_config,omitempty"`

	Flag *HostFlag `json:"flag,omitempty"`

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`
}

UpdatePremiumHostRequestBody 修改独享模式域名的请求

func (UpdatePremiumHostRequestBody) String

type UpdatePremiumHostRequestBodyCipher

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

func (UpdatePremiumHostRequestBodyCipher) MarshalJSON

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

func (*UpdatePremiumHostRequestBodyCipher) UnmarshalJSON

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

func (UpdatePremiumHostRequestBodyCipher) Value

type UpdatePremiumHostRequestBodyTls

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

func (UpdatePremiumHostRequestBodyTls) MarshalJSON

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

func (*UpdatePremiumHostRequestBodyTls) UnmarshalJSON

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

func (UpdatePremiumHostRequestBodyTls) Value

type UpdatePremiumHostRequestBodyTlsEnum

type UpdatePremiumHostRequestBodyTlsEnum struct {
	TLS_V1_0 UpdatePremiumHostRequestBodyTls
	TLS_V1_1 UpdatePremiumHostRequestBodyTls
	TLS_V1_2 UpdatePremiumHostRequestBodyTls
}

func GetUpdatePremiumHostRequestBodyTlsEnum

func GetUpdatePremiumHostRequestBodyTlsEnum() UpdatePremiumHostRequestBodyTlsEnum

type UpdatePremiumHostResponse

type UpdatePremiumHostResponse struct {

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

	// 创建的独享模式防护域名
	Hostname *string `json:"hostname,omitempty"`

	// 对外协议,客户端(例如浏览器)请求访问网站的协议类型
	Protocol *string `json:"protocol,omitempty"`

	// 防护域名的源站服务器配置信息
	Server *[]PremiumWafServer `json:"server,omitempty"`

	// 防护域名是否使用代理   - false:不使用代理   - true:使用代理
	Proxy *bool `json:"proxy,omitempty"`

	// 预留参数,用于后期设计冻结域名,解锁域名功能,目前暂不支持
	Locked *int32 `json:"locked,omitempty"`

	// 创建防护域名的时间
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 配置的最低TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,对于低于最低TLS版本的请求,将无法正常访问网站
	Tls *UpdatePremiumHostResponseTls `json:"tls,omitempty"`

	// 加密套件(cipher_1,cipher_2,cipher_3,cipher_4,cipher_default):  - cipher_1: 加密算法为ECDHE-ECDSA-AES256-GCM-SHA384:HIGH:!MEDIUM:!LOW:!aNULL:!eNULL:!DES:!MD5:!PSK:!RC4:!kRSA:!SRP:!3DES:!DSS:!EXP:!CAMELLIA:@STRENGTH   - cipher_2:加密算法为EECDH+AESGCM:EDH+AESGCM   - cipher_3:加密算法为ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH   - cipher_4:加密算法为ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!EDH   - cipher_default: 加密算法为ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!AESGCM
	Cipher *UpdatePremiumHostResponseCipher `json:"cipher,omitempty"`

	// 扩展字段,用于保存防护域名的一些配置信息。
	Extend map[string]string `json:"extend,omitempty"`

	Flag *Flag `json:"flag,omitempty"`

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

	// 防护域名初始绑定的策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id
	Policyid *string `json:"policyid,omitempty"`

	// 帐号ID,对应华为云控制台用户名->我的凭证->帐号ID
	Domainid *string `json:"domainid,omitempty"`

	// 项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
	Projectid *string `json:"projectid,omitempty"`

	// 企业项目ID,对应华为云控制台用户名->企业->项目管理->点击项目名称->ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// https证书id
	Certificateid *string `json:"certificateid,omitempty"`

	// 证书名称
	Certificatename *string `json:"certificatename,omitempty"`

	// 域名防护状态:  - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测  - 1:开启防护,WAF根据您配置的策略进行攻击检测
	ProtectStatus *int32 `json:"protect_status,omitempty"`

	// 域名接入状态,0表示未接入,1表示已接入
	AccessStatus *int32 `json:"access_status,omitempty"`

	// 网站名称,对应WAF控制台域名详情中的网站名称
	WebTag *string `json:"web_tag,omitempty"`

	// LB负载均衡,默认轮询,不支持修改
	LbAlgorithm *string `json:"lb_algorithm,omitempty"`

	BlockPage *BlockPage `json:"block_page,omitempty"`

	TrafficMark *TrafficMark `json:"traffic_mark,omitempty"`

	TimeoutConfig *TimeoutConfig `json:"timeout_config,omitempty"`

	// 字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:   - $time_local   - $request_id   - $connection_requests   - $tenant_id   - $project_id   - $remote_addr   - $remote_port   - $scheme   - $request_method   - $http_host   -$origin_uri   - $request_length   - $ssl_server_name   - $ssl_protocol   - $ssl_curves   - $ssl_session_reused
	ForwardHeaderMap map[string]string `json:"forward_header_map,omitempty"`

	// 接入进度,仅用于新版console(前端)使用
	AccessProgress *[]AccessProgress `json:"access_progress,omitempty"`
	HttpStatusCode int               `json:"-"`
}

UpdatePremiumHostResponse Response Object

func (UpdatePremiumHostResponse) String

func (o UpdatePremiumHostResponse) String() string

type UpdatePremiumHostResponseCipher

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

func (UpdatePremiumHostResponseCipher) MarshalJSON

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

func (*UpdatePremiumHostResponseCipher) UnmarshalJSON

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

func (UpdatePremiumHostResponseCipher) Value

type UpdatePremiumHostResponseTls

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

func (UpdatePremiumHostResponseTls) MarshalJSON

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

func (*UpdatePremiumHostResponseTls) UnmarshalJSON

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

func (UpdatePremiumHostResponseTls) Value

type UpdatePremiumHostResponseTlsEnum

type UpdatePremiumHostResponseTlsEnum struct {
	TLS_V1_0 UpdatePremiumHostResponseTls
	TLS_V1_1 UpdatePremiumHostResponseTls
	TLS_V1_2 UpdatePremiumHostResponseTls
}

func GetUpdatePremiumHostResponseTlsEnum

func GetUpdatePremiumHostResponseTlsEnum() UpdatePremiumHostResponseTlsEnum

type UpdatePrivacyRuleRequest

type UpdatePrivacyRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 隐私屏蔽规则id,您可以通过调用查询隐私屏蔽规则列表(ListPrivacyRule)获取规则id
	RuleId string `json:"rule_id"`

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

UpdatePrivacyRuleRequest Request Object

func (UpdatePrivacyRuleRequest) String

func (o UpdatePrivacyRuleRequest) String() string

type UpdatePrivacyRuleRequestBody

type UpdatePrivacyRuleRequestBody struct {

	// 隐私屏蔽规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/_*,以\"*\"(星号)结尾代表路径前缀
	Url string `json:"url"`

	// 屏蔽字段   - Params:请求参数   - Cookie:根据Cookie区分的Web访问者   - Header:自定义HTTP首部   - Form:表单参数
	Category UpdatePrivacyRuleRequestBodyCategory `json:"category"`

	// 屏蔽字段名,根据“屏蔽字段”设置字段名,被屏蔽的字段将不会出现在日志中。屏蔽字段名长度不能超过2048字节,且只能由数字、字母、下划线和中划线组成
	Index string `json:"index"`

	// 规则描述,可选参数,设置该规则的备注信息。
	Description *string `json:"description,omitempty"`
}

func (UpdatePrivacyRuleRequestBody) String

type UpdatePrivacyRuleRequestBodyCategory

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

func (UpdatePrivacyRuleRequestBodyCategory) MarshalJSON

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

func (*UpdatePrivacyRuleRequestBodyCategory) UnmarshalJSON

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

func (UpdatePrivacyRuleRequestBodyCategory) Value

type UpdatePrivacyRuleResponse

type UpdatePrivacyRuleResponse struct {

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 创建规则的时间,格式为13位毫秒时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

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

	// 隐私屏蔽规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/_*,以\"*\"号结尾代表路径前缀
	Url *string `json:"url,omitempty"`

	// 屏蔽字段   - Params:请求参数   - Cookie:根据Cookie区分的Web访问者   - Header:自定义HTTP首部   - Form:表单参数
	Category *UpdatePrivacyRuleResponseCategory `json:"category,omitempty"`

	// 屏蔽字段名,根据“屏蔽字段”设置字段名,被屏蔽的字段将不会出现在日志中。
	Index *string `json:"index,omitempty"`

	// 规则描述,可选参数,设置该规则的备注信息。
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdatePrivacyRuleResponse Response Object

func (UpdatePrivacyRuleResponse) String

func (o UpdatePrivacyRuleResponse) String() string

type UpdatePrivacyRuleResponseCategory

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

func (UpdatePrivacyRuleResponseCategory) MarshalJSON

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

func (*UpdatePrivacyRuleResponseCategory) UnmarshalJSON

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

func (UpdatePrivacyRuleResponseCategory) Value

type UpdatePunishmentRuleRequest

type UpdatePunishmentRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 攻击惩罚规则id,通过查询攻击惩罚规则列表接口(ListPunishmentRules)获取
	RuleId string `json:"rule_id"`

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

UpdatePunishmentRuleRequest Request Object

func (UpdatePunishmentRuleRequest) String

type UpdatePunishmentRuleRequestBody

type UpdatePunishmentRuleRequestBody struct {

	// 攻击惩罚类别
	Category UpdatePunishmentRuleRequestBodyCategory `json:"category"`

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

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

func (UpdatePunishmentRuleRequestBody) String

type UpdatePunishmentRuleRequestBodyCategory

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

func (UpdatePunishmentRuleRequestBodyCategory) MarshalJSON

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

func (*UpdatePunishmentRuleRequestBodyCategory) UnmarshalJSON

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

func (UpdatePunishmentRuleRequestBodyCategory) Value

type UpdatePunishmentRuleResponse

type UpdatePunishmentRuleResponse struct {

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

	// 所属策略id
	Policyid *string `json:"policyid,omitempty"`

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

	// 攻击惩罚类别
	Category *string `json:"category,omitempty"`

	// 规则描述
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdatePunishmentRuleResponse Response Object

func (UpdatePunishmentRuleResponse) String

type UpdateValueListRequest

type UpdateValueListRequest struct {

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

	// 引用表id,通过查询引用表列表(ListValueList)接口获取
	Valuelistid string `json:"valuelistid"`

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

UpdateValueListRequest Request Object

func (UpdateValueListRequest) String

func (o UpdateValueListRequest) String() string

type UpdateValueListRequestBody

type UpdateValueListRequestBody struct {

	// 引用表名称,2-32位字符串组成
	Name string `json:"name"`

	// 引用表类型,参见枚举列表
	Type UpdateValueListRequestBodyType `json:"type"`

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

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

UpdateValueListRequestBody 创建或更新引用表

func (UpdateValueListRequestBody) String

type UpdateValueListRequestBodyType

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

func (UpdateValueListRequestBodyType) MarshalJSON

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

func (*UpdateValueListRequestBodyType) UnmarshalJSON

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

func (UpdateValueListRequestBodyType) Value

type UpdateValueListResponse

type UpdateValueListResponse struct {

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

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

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

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

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

	// 引用表来源:  - 1:表示来源于用户手动创建  - 2:表示来源于智能访问控制自动创建
	Producer       *int32 `json:"producer,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateValueListResponse Response Object

func (UpdateValueListResponse) String

func (o UpdateValueListResponse) String() string

type UpdateWhiteBlackIpRuleRequestBody

type UpdateWhiteBlackIpRuleRequestBody struct {

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

	// 黑白名单ip地址,需要输入标准的ip地址或地址段,例如:42.123.120.66或42.123.120.0/16
	Addr *string `json:"addr,omitempty"`

	// 黑白名单规则描述
	Description *string `json:"description,omitempty"`

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

	// 创建的Ip地址组id,该参数与addr参数使用一个即可;Ip地址组可在控制台中对象管理->地址组管理中添加。
	IpGroupId *string `json:"ip_group_id,omitempty"`
}

UpdateWhiteBlackIpRuleRequestBody 更新黑白名单规则请求体,其中请求体中必须包含name、white以及addr或者ip_group_id中一个

func (UpdateWhiteBlackIpRuleRequestBody) String

type UpdateWhiteblackipRuleRequest

type UpdateWhiteblackipRuleRequest struct {

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

	// 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
	PolicyId string `json:"policy_id"`

	// 黑白名单规则id,您可以调用查询黑白名单规则列表(ListWhiteblackipRule)获取黑白名单规则id
	RuleId string `json:"rule_id"`

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

UpdateWhiteblackipRuleRequest Request Object

func (UpdateWhiteblackipRuleRequest) String

type UpdateWhiteblackipRuleResponse

type UpdateWhiteblackipRuleResponse struct {

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

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 黑白名单Ip/IP段
	Addr *string `json:"addr,omitempty"`

	// 黑白名单规则描述
	Description *string `json:"description,omitempty"`

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

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

UpdateWhiteblackipRuleResponse Response Object

func (UpdateWhiteblackipRuleResponse) String

type UrlClassificationItem

type UrlClassificationItem struct {

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

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

func (UrlClassificationItem) String

func (o UrlClassificationItem) String() string

type UrlCountItem

type UrlCountItem struct {

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

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

	// 防护域名
	Host *string `json:"host,omitempty"`
}

func (UrlCountItem) String

func (o UrlCountItem) String() string

type UrlItem

type UrlItem struct {

	// url路径
	Key *string `json:"key,omitempty"`

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

	// 域名
	Host *string `json:"host,omitempty"`
}

UrlItem 受攻击URL统计

func (UrlItem) String

func (o UrlItem) String() string

type ValueListResponseBody

type ValueListResponseBody struct {

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

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

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

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

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

	// 引用表来源,1代表用户创建,其它值代表modulleX自动生成
	Producer *int32 `json:"producer,omitempty"`

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

ValueListResponseBody 单个引用表信息

func (ValueListResponseBody) String

func (o ValueListResponseBody) String() string

type ValueListResponseBodyType

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

func (ValueListResponseBodyType) MarshalJSON

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

func (*ValueListResponseBodyType) UnmarshalJSON

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

func (ValueListResponseBodyType) Value

type WafProductInfo

type WafProductInfo struct {

	// waf规格   - detection: 入门   -  professional:标准   - enterprise:专业   - ultimate:铂金版
	ResourceSpecCode *string `json:"resource_spec_code,omitempty"`

	// 订购周期类型 month: 月;year: 年
	PeriodType *string `json:"period_type,omitempty"`

	// 订购周期数
	PeriodNum *int32 `json:"period_num,omitempty"`
}

func (WafProductInfo) String

func (o WafProductInfo) String() string

type WhiteBlackIpResponseBody

type WhiteBlackIpResponseBody struct {

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

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

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 创建规则的时间戳(毫秒)
	Timestamp *int64 `json:"timestamp,omitempty"`

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

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

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

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

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

func (WhiteBlackIpResponseBody) String

func (o WhiteBlackIpResponseBody) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL