Documentation ¶
Index ¶
- type ActionInfo
- type Backend
- type BlackWhiteListRule
- type BwListIps
- type CertInfo
- type Condition
- type CreateAadDomainRequestBody
- type CreateDomainRequest
- type CreateDomainResponse
- type Curve
- type DeleteDomainRequest
- type DeleteDomainResponse
- type DeleteDomainV2RequestBody
- type DetailInfo
- type EmptyJsonResponse
- type FlowBps
- type FlowPps
- type FrequencyControlRule
- type InstanceDomainItem
- type Ips
- type ListConnectionNumberData
- type ListConnectionNumberDataList
- type ListDDoSAttackEventRequest
- type ListDDoSAttackEventRequestBody
- type ListDDoSAttackEventResponse
- type ListDDoSConnectionNumberRequest
- type ListDDoSConnectionNumberResponse
- type ListDDoSEventData
- type ListDDoSFlowRequest
- type ListDDoSFlowResponse
- type ListFrequencyControlRuleRequest
- type ListFrequencyControlRuleResponse
- type ListInstanceDomainsRequest
- type ListInstanceDomainsResponse
- type ListWafAttackEventRequest
- type ListWafAttackEventResponse
- type ListWafAttackEventlist
- type ListWafBandwidthRequest
- type ListWafBandwidthResponse
- type ListWafCustomRuleRequest
- type ListWafCustomRuleResponse
- type ListWafGeoIpRuleRequest
- type ListWafGeoIpRuleResponse
- type ListWafQpsRequest
- type ListWafQpsResponse
- type ListWafWhiteIpRuleRequest
- type ListWafWhiteIpRuleResponse
- type ListWhiteBlackIpRuleRequest
- type ListWhiteBlackIpRuleResponse
- type PageRespInfo
- type Point
- type ShowDomainCertificateRequest
- type ShowDomainCertificateResponse
- type ShowFlowBlockRequest
- type ShowFlowBlockResponse
- type ShowWafPolicyRequest
- type ShowWafPolicyResponse
- type ShowWafQpsRequest
- type ShowWafQpsResponse
- type TagCondition
- type UpgradeInstanceData
- type UpgradeInstanceSpecRequest
- type UpgradeInstanceSpecResponse
- type UpgradeInstanceSpecV2RequestBody
- type WafCustomCondition
- type WafCustomRule
- type WafCustomRuleAction
- type WafGeoIpRule
- type WafPolicyOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionInfo ¶
type ActionInfo struct { // 动作类型:block:阻断,captcha:人机验证;log: 仅记录;dynamic_block:动态阻断 Category *string `json:"category,omitempty"` Detail *DetailInfo `json:"detail,omitempty"` }
func (ActionInfo) String ¶
func (o ActionInfo) String() string
type Backend ¶
type Backend struct { // 当前后端协议 Protocol *string `json:"protocol,omitempty"` // 当前后端端口 Port *int32 `json:"port,omitempty"` // 当前后端 Host 值 Host *string `json:"host,omitempty"` }
Backend backend
type BlackWhiteListRule ¶
type BlackWhiteListRule struct { // id Id *string `json:"id,omitempty"` // 0-黑名单,1-白名单 Type *int32 `json:"type,omitempty"` // ip Ip *string `json:"ip,omitempty"` // 域名id DomainId *string `json:"domain_id,omitempty"` }
func (BlackWhiteListRule) String ¶
func (o BlackWhiteListRule) String() string
type BwListIps ¶
type CertInfo ¶
type Condition ¶
type Condition struct { // 字段类型 url:路径 ip:IPv4 ipv6:IPv6 params:Params cookie:Cookie header:Header response_code:Response Code Category *string `json:"category,omitempty"` // 条件列表逻辑匹配内容。 当匹配逻辑为exist或not_exist时,contents必须为空,其他情况下contents必填且长度不超过2048 当category为response_code时,contents状态码为200~599,正则为 ^(?:[2-5]\\d{2})$ 当匹配逻辑包含\"len\"时,contents必须为0~65535的整数;当匹配逻辑包含\"num\"时,contents必须为0~512的整数 Contents *[]string `json:"contents,omitempty"` // 子字段 当字段类型为ip或ipv6时,index必填且必须为:client-ip:客户端IP、x-forwarded-for:X-Forwarded-For、TCP连接IP: $remote_addr 当字段类型(category)选择“params”、“cookie”、“header”时,请根据实际需求配置子字段且该参数必填。 当匹配逻辑为num_greater、num_less、num_equal、num_not_equal时,子字段必须为空 当子字段不为空时,最大长度不超过2048 Index *string `json:"index,omitempty"` // 条件列表匹配逻辑。 如果字段类型category是url,匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal或者len_not_equal 如果字段类型category是ip、ipv6或response_code,匹配逻辑可以为: equal、not_equal 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 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"` }
Condition cc规则防护规则限速条件
type CreateAadDomainRequestBody ¶
type CreateAadDomainRequestBody struct { // 域名 DomainName string `json:"domain_name"` // 企业项目id,与接入的高防实例所属企业项目保持一致。可在华为云EPS服务中查看企业项目id,default企业项目id为\"0\"。 EnterpriseProjectId string `json:"enterprise_project_id"` // 高防实例ip列表。多个高防实例ip必须属于同一企业项目。 Ips []string `json:"ips"` // 源站类型。 0 - 源站IP, 1 - 源站域名。 RealServerType int32 `json:"real_server_type"` // HTTP端口,与port_https不能同时为空。DDoS高防支持的HTTP端口可在控制台查看。 PortHttp []int32 `json:"port_http"` // HTTPS端口,与port_http不能同时为空。DDoS高防支持的HTTPS端口可在控制台查看。 PortHttps *[]int32 `json:"port_https,omitempty"` // 源站(源站ip/源站域名) RealServer string `json:"real_server"` // 防护区域,0-大陆,1-海外 OverseasType string `json:"overseas_type"` // 证书名称(必须是已经存在的证书) CertName *string `json:"cert_name,omitempty"` // 开启0,关闭1 WafSwitch *string `json:"waf_switch,omitempty"` }
func (CreateAadDomainRequestBody) String ¶
func (o CreateAadDomainRequestBody) String() string
type CreateDomainRequest ¶
type CreateDomainRequest struct {
Body *CreateAadDomainRequestBody `json:"body,omitempty"`
}
CreateDomainRequest Request Object
func (CreateDomainRequest) String ¶
func (o CreateDomainRequest) String() string
type CreateDomainResponse ¶
type CreateDomainResponse struct { // 高防提供的CNAME地址 Cname *string `json:"cname,omitempty"` // 域名id DomainId *string `json:"domain_id,omitempty"` HttpStatusCode int `json:"-"` }
CreateDomainResponse Response Object
func (CreateDomainResponse) String ¶
func (o CreateDomainResponse) String() string
type Curve ¶
type DeleteDomainRequest ¶
type DeleteDomainRequest struct {
Body *DeleteDomainV2RequestBody `json:"body,omitempty"`
}
DeleteDomainRequest Request Object
func (DeleteDomainRequest) String ¶
func (o DeleteDomainRequest) String() string
type DeleteDomainResponse ¶
type DeleteDomainResponse struct { Body *interface{} `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
DeleteDomainResponse Response Object
func (DeleteDomainResponse) String ¶
func (o DeleteDomainResponse) String() string
type DeleteDomainV2RequestBody ¶
type DeleteDomainV2RequestBody struct { // 域名id列表 DomainId []string `json:"domain_id"` }
func (DeleteDomainV2RequestBody) String ¶
func (o DeleteDomainV2RequestBody) String() string
type DetailInfo ¶
type DetailInfo struct {
Response *PageRespInfo `json:"response,omitempty"`
}
func (DetailInfo) String ¶
func (o DetailInfo) String() string
type EmptyJsonResponse ¶
type EmptyJsonResponse struct { }
func (EmptyJsonResponse) String ¶
func (o EmptyJsonResponse) String() string
type FlowBps ¶
type FlowPps ¶
type FrequencyControlRule ¶
type FrequencyControlRule struct { // id Id *string `json:"id,omitempty"` // 判断是否是智能cc生成的规则 Producer *int32 `json:"producer,omitempty"` // 规则名称 Name *string `json:"name,omitempty"` // 规则应用的url Url *string `json:"url,omitempty"` // 限速频率,单位为次,范围为1~2147483647 LimitNum *string `json:"limit_num,omitempty"` // 限速周期,单位为秒,范围1~3600 LimitPeriod *string `json:"limit_period,omitempty"` // 阻断时间,单位为秒,范围为0~65535 LockTime *string `json:"lock_time,omitempty"` // 限速模式:ip、cookie、header、other、policy、domain、url。 源限速:ip:IP限速,根据IP区分单个Web访问者。cookie:用户限速,根据Cookie键值区分单个Web访问者。header:用户限速,根据Header区分单个Web访问者。other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。-目的限速:policy: 策略限速、domain: 域名限速、url: url限速 TagType *string `json:"tag_type,omitempty"` // 用户标识,当限速模式为用户限速(cookie或header)时 TagIndex *string `json:"tag_index,omitempty"` TagCondition *TagCondition `json:"tag_condition,omitempty"` Action *ActionInfo `json:"action,omitempty"` // cc规则防护模式,0:标准(老版本),只支持对域名的防护路径做限制。1:高级(新版本),支持对路径、IP、Cookie、Header、Params字段做限制。修改CC规则时必须传mode Mode *string `json:"mode,omitempty"` // cc规则防护规则限速条件 Conditions *[]Condition `json:"conditions,omitempty"` // 放行频率,单位为次,范围为0~2147483647 UnlockNum *int32 `json:"unlock_num,omitempty"` // 域名聚合统计 DomainAggregation *bool `json:"domain_aggregation,omitempty"` // 全局计数 RegionAggregation *bool `json:"region_aggregation,omitempty"` // 锁定验证时间 CaptchaLockTime *int32 `json:"captcha_lock_time,omitempty"` // 是否灰度生效 GrayscaleTime *bool `json:"grayscale_time,omitempty"` }
func (FrequencyControlRule) String ¶
func (o FrequencyControlRule) String() string
type InstanceDomainItem ¶
type InstanceDomainItem struct { // 域名ID DomainId *string `json:"domain_id,omitempty"` // 域名 DomainName *string `json:"domain_name,omitempty"` // 域名cname Cname *string `json:"cname,omitempty"` // 域名状态 NORMAL = '0', FREEZE = '1' DomainStatus *string `json:"domain_status,omitempty"` // cc防护状态 CcStatus *int32 `json:"cc_status,omitempty"` // 证书状态:1---已上传 2---未上传 HttpsCertStatus *int32 `json:"https_cert_status,omitempty"` // 证书名称 CertName *string `json:"cert_name,omitempty"` // 域名协议 ProtocolType *[]string `json:"protocol_type,omitempty"` // 源站类型 RealServerType *int32 `json:"real_server_type,omitempty"` // 源站 RealServers *string `json:"real_servers,omitempty"` // waf防护状态 WafStatus *int32 `json:"waf_status,omitempty"` }
func (InstanceDomainItem) String ¶
func (o InstanceDomainItem) String() string
type Ips ¶
type Ips struct { // ip id IpId *string `json:"ip_id,omitempty"` // ip Ip *string `json:"ip,omitempty"` // 线路 Isp *string `json:"isp,omitempty"` // 数据中心 DataCenter *string `json:"data_center,omitempty"` // 海外区域封禁状态 0-关闭 1-开启 ForeignSwitchStatus *int32 `json:"foreign_switch_status,omitempty"` // UDP协议禁用 0-关闭 1-开启 UdpSwitchStatus *int32 `json:"udp_switch_status,omitempty"` }
type ListConnectionNumberData ¶
type ListConnectionNumberData struct { // 连接数名称 Name *string `json:"name,omitempty"` // items List *[]ListConnectionNumberDataList `json:"list,omitempty"` }
func (ListConnectionNumberData) String ¶
func (o ListConnectionNumberData) String() string
type ListConnectionNumberDataList ¶
type ListConnectionNumberDataList struct { // 时间戳毫秒值 Time *int32 `json:"time,omitempty"` // 连接数 Value *int32 `json:"value,omitempty"` }
func (ListConnectionNumberDataList) String ¶
func (o ListConnectionNumberDataList) String() string
type ListDDoSAttackEventRequest ¶
type ListDDoSAttackEventRequest struct { // 实例id InstanceId string `json:"instance_id"` Body *ListDDoSAttackEventRequestBody `json:"body,omitempty"` }
ListDDoSAttackEventRequest Request Object
func (ListDDoSAttackEventRequest) String ¶
func (o ListDDoSAttackEventRequest) String() string
type ListDDoSAttackEventRequestBody ¶
type ListDDoSAttackEventRequestBody struct { // 开始时间(毫秒时间戳) StartTime string `json:"start_time"` // 结束时间(毫秒时间戳) EndTime string `json:"end_time"` // 偏移量 Offset int32 `json:"offset"` // 限制条数,范围1-100 Limit int32 `json:"limit"` // 高防ip Ip string `json:"ip"` // 攻击流量最小值 AttackFlowLow *string `json:"attack_flow_low,omitempty"` // 攻击流量最大值 AttackFlowUp *string `json:"attack_flow_up,omitempty"` // 攻击状态:attack-攻击; normal-结束攻击 AttackStatus *string `json:"attack_status,omitempty"` }
func (ListDDoSAttackEventRequestBody) String ¶
func (o ListDDoSAttackEventRequestBody) String() string
type ListDDoSAttackEventResponse ¶
type ListDDoSAttackEventResponse struct { // total Total *int32 `json:"total,omitempty"` // data Data *[]ListDDoSEventData `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ListDDoSAttackEventResponse Response Object
func (ListDDoSAttackEventResponse) String ¶
func (o ListDDoSAttackEventResponse) String() string
type ListDDoSConnectionNumberRequest ¶
type ListDDoSConnectionNumberRequest struct { // 开始时间(毫秒时间戳) StartTime string `json:"start_time"` // 结束时间(毫秒时间戳) EndTime string `json:"end_time"` // 实例id InstanceId string `json:"instance_id"` // 高防ip Ip string `json:"ip"` }
ListDDoSConnectionNumberRequest Request Object
func (ListDDoSConnectionNumberRequest) String ¶
func (o ListDDoSConnectionNumberRequest) String() string
type ListDDoSConnectionNumberResponse ¶
type ListDDoSConnectionNumberResponse struct { // items Data *[]ListConnectionNumberData `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
ListDDoSConnectionNumberResponse Response Object
func (ListDDoSConnectionNumberResponse) String ¶
func (o ListDDoSConnectionNumberResponse) String() string
type ListDDoSEventData ¶
type ListDDoSEventData struct { // 防护IP ZoneIp *string `json:"zone_ip,omitempty"` // 开始时间(毫秒时间戳) StartTime *string `json:"start_time,omitempty"` // 结束时间(毫秒时间戳) EndTime *string `json:"end_time,omitempty"` // 攻击流量峰值,单位“kbps” MaxDropKbps *string `json:"max_drop_kbps,omitempty"` // 攻击报文数峰值,单位“pps” MaxDropPps *string `json:"max_drop_pps,omitempty"` // 入流量峰值,单位“kbps” MaxInKbps *string `json:"max_in_kbps,omitempty"` // 入报文数峰值,单位“pps” MaxInPps *string `json:"max_in_pps,omitempty"` // 攻击类型 AttackTypes *string `json:"attack_types,omitempty"` // 攻击源IP AttackIps *string `json:"attack_ips,omitempty"` // 攻击IP描述 AttackIpsDesc *string `json:"attack_ips_desc,omitempty"` // 攻击状态 AttackStatus *string `json:"attack_status,omitempty"` }
func (ListDDoSEventData) String ¶
func (o ListDDoSEventData) String() string
type ListDDoSFlowRequest ¶
type ListDDoSFlowRequest struct { // 实例ID InstanceId string `json:"instance_id"` // 高防IP Ip string `json:"ip"` // 请求类型 pps、bps Type string `json:"type"` // 开始时间(毫秒时间戳) StartTime string `json:"start_time"` // 结束时间(毫秒时间戳) EndTime string `json:"end_time"` }
ListDDoSFlowRequest Request Object
func (ListDDoSFlowRequest) String ¶
func (o ListDDoSFlowRequest) String() string
type ListDDoSFlowResponse ¶
type ListDDoSFlowResponse struct { // 当请求type=bps时必返回 FlowBps *[]FlowBps `json:"flow_bps,omitempty"` // 当请求type=pps时必返回 FlowPps *[]FlowPps `json:"flow_pps,omitempty"` HttpStatusCode int `json:"-"` }
ListDDoSFlowResponse Response Object
func (ListDDoSFlowResponse) String ¶
func (o ListDDoSFlowResponse) String() string
type ListFrequencyControlRuleRequest ¶
type ListFrequencyControlRuleRequest struct { // 域名 DomainName string `json:"domain_name"` }
ListFrequencyControlRuleRequest Request Object
func (ListFrequencyControlRuleRequest) String ¶
func (o ListFrequencyControlRuleRequest) String() string
type ListFrequencyControlRuleResponse ¶
type ListFrequencyControlRuleResponse struct { // total Total *int32 `json:"total,omitempty"` // items Items *[]FrequencyControlRule `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
ListFrequencyControlRuleResponse Response Object
func (ListFrequencyControlRuleResponse) String ¶
func (o ListFrequencyControlRuleResponse) String() string
type ListInstanceDomainsRequest ¶
type ListInstanceDomainsRequest struct { // 实例id InstanceId string `json:"instance_id"` }
ListInstanceDomainsRequest Request Object
func (ListInstanceDomainsRequest) String ¶
func (o ListInstanceDomainsRequest) String() string
type ListInstanceDomainsResponse ¶
type ListInstanceDomainsResponse struct { // 实例id InstanceId *string `json:"instance_id,omitempty"` // 实例名称 InstanceName *string `json:"instance_name,omitempty"` // 域名信息 Domains *[]InstanceDomainItem `json:"domains,omitempty"` HttpStatusCode int `json:"-"` }
ListInstanceDomainsResponse Response Object
func (ListInstanceDomainsResponse) String ¶
func (o ListInstanceDomainsResponse) String() string
type ListWafAttackEventRequest ¶
type ListWafAttackEventRequest struct { // 不传时代表全部域名 Domains *string `json:"domains,omitempty"` // 开始时间(毫秒时间戳) StartTime *string `json:"start_time,omitempty"` // 结束时间(毫秒时间戳) EndTime *string `json:"end_time,omitempty"` // 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 Recent *string `json:"recent,omitempty"` // 实例类型,0-大陆,1-海外 OverseasType *int32 `json:"overseas_type,omitempty"` // 攻击源IP Sip *string `json:"sip,omitempty"` // limit Limit *int32 `json:"limit,omitempty"` // offset Offset *int32 `json:"offset,omitempty"` }
ListWafAttackEventRequest Request Object
func (ListWafAttackEventRequest) String ¶
func (o ListWafAttackEventRequest) String() string
type ListWafAttackEventResponse ¶
type ListWafAttackEventResponse struct { // total Total *int32 `json:"total,omitempty"` // list List *[]ListWafAttackEventlist `json:"list,omitempty"` HttpStatusCode int `json:"-"` }
ListWafAttackEventResponse Response Object
func (ListWafAttackEventResponse) String ¶
func (o ListWafAttackEventResponse) String() string
type ListWafAttackEventlist ¶
type ListWafAttackEventlist struct { // id Id *string `json:"id,omitempty"` // 攻击目标域名 Domain *string `json:"domain,omitempty"` // 攻击时间 Time *int32 `json:"time,omitempty"` // 攻击源IP Sip *string `json:"sip,omitempty"` // 防御动作 Action *string `json:"action,omitempty"` // 攻击url Url *string `json:"url,omitempty"` // 攻击类型 Type *string `json:"type,omitempty"` Backend *Backend `json:"backend,omitempty"` }
func (ListWafAttackEventlist) String ¶
func (o ListWafAttackEventlist) String() string
type ListWafBandwidthRequest ¶
type ListWafBandwidthRequest struct { // 不传时代表全部域名 Domains *string `json:"domains,omitempty"` // 平均值 mean、峰值 peak ValueType string `json:"value_type"` // 开始时间(毫秒时间戳) StartTime *string `json:"start_time,omitempty"` // 结束时间(毫秒时间戳) EndTime *string `json:"end_time,omitempty"` // 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 Recent *string `json:"recent,omitempty"` // 实例类型,0-大陆,1-海外 OverseasType *int32 `json:"overseas_type,omitempty"` }
ListWafBandwidthRequest Request Object
func (ListWafBandwidthRequest) String ¶
func (o ListWafBandwidthRequest) String() string
type ListWafBandwidthResponse ¶
type ListWafBandwidthResponse struct { // 曲线 Curve *[]Curve `json:"curve,omitempty"` HttpStatusCode int `json:"-"` }
ListWafBandwidthResponse Response Object
func (ListWafBandwidthResponse) String ¶
func (o ListWafBandwidthResponse) String() string
type ListWafCustomRuleRequest ¶
type ListWafCustomRuleRequest struct { // 域名 DomainName string `json:"domain_name"` // 防护区域,0-大陆,1-海外 OverseasType int32 `json:"overseas_type"` }
ListWafCustomRuleRequest Request Object
func (ListWafCustomRuleRequest) String ¶
func (o ListWafCustomRuleRequest) String() string
type ListWafCustomRuleResponse ¶
type ListWafCustomRuleResponse struct { // total Total *int32 `json:"total,omitempty"` // items Items *[]WafCustomRule `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
ListWafCustomRuleResponse Response Object
func (ListWafCustomRuleResponse) String ¶
func (o ListWafCustomRuleResponse) String() string
type ListWafGeoIpRuleRequest ¶
type ListWafGeoIpRuleRequest struct { // 域名 DomainName string `json:"domain_name"` // 防护区域,0-大陆,1-海外 OverseasType int32 `json:"overseas_type"` }
ListWafGeoIpRuleRequest Request Object
func (ListWafGeoIpRuleRequest) String ¶
func (o ListWafGeoIpRuleRequest) String() string
type ListWafGeoIpRuleResponse ¶
type ListWafGeoIpRuleResponse struct { // total Total *int32 `json:"total,omitempty"` // items Items *[]WafGeoIpRule `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
ListWafGeoIpRuleResponse Response Object
func (ListWafGeoIpRuleResponse) String ¶
func (o ListWafGeoIpRuleResponse) String() string
type ListWafQpsRequest ¶
type ListWafQpsRequest struct { // 不传时代表全部域名 Domains *string `json:"domains,omitempty"` // 用于 QPS、带宽: 平均值 mean、峰值 peak;用于 响应状态码: 源站返回值 source 、高防返回值 proxy ValueType string `json:"value_type"` // 开始时间(毫秒时间戳) StartTime *string `json:"start_time,omitempty"` // 结束时间(毫秒时间戳) EndTime *string `json:"end_time,omitempty"` // 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 Recent *string `json:"recent,omitempty"` // 实例类型,0-大陆,1-海外 OverseasType *int32 `json:"overseas_type,omitempty"` }
ListWafQpsRequest Request Object
func (ListWafQpsRequest) String ¶
func (o ListWafQpsRequest) String() string
type ListWafQpsResponse ¶
type ListWafQpsResponse struct { // curve Curve *[]Point `json:"curve,omitempty"` HttpStatusCode int `json:"-"` }
ListWafQpsResponse Response Object
func (ListWafQpsResponse) String ¶
func (o ListWafQpsResponse) String() string
type ListWafWhiteIpRuleRequest ¶
type ListWafWhiteIpRuleRequest struct { // 域名 DomainName string `json:"domain_name"` // 防护区域,0-大陆,1-海外 OverseasType int32 `json:"overseas_type"` }
ListWafWhiteIpRuleRequest Request Object
func (ListWafWhiteIpRuleRequest) String ¶
func (o ListWafWhiteIpRuleRequest) String() string
type ListWafWhiteIpRuleResponse ¶
type ListWafWhiteIpRuleResponse struct { // total Total *int32 `json:"total,omitempty"` // black Black *[]BlackWhiteListRule `json:"black,omitempty"` // white White *[]BlackWhiteListRule `json:"white,omitempty"` HttpStatusCode int `json:"-"` }
ListWafWhiteIpRuleResponse Response Object
func (ListWafWhiteIpRuleResponse) String ¶
func (o ListWafWhiteIpRuleResponse) String() string
type ListWhiteBlackIpRuleRequest ¶
type ListWhiteBlackIpRuleRequest struct { // white-白名单,black-黑名单 Type string `json:"type"` // instanceId InstanceId string `json:"instance_id"` }
ListWhiteBlackIpRuleRequest Request Object
func (ListWhiteBlackIpRuleRequest) String ¶
func (o ListWhiteBlackIpRuleRequest) String() string
type ListWhiteBlackIpRuleResponse ¶
type ListWhiteBlackIpRuleResponse struct { // total Total *int32 `json:"total,omitempty"` // 名单列表 Ips *[]BwListIps `json:"ips,omitempty"` HttpStatusCode int `json:"-"` }
ListWhiteBlackIpRuleResponse Response Object
func (ListWhiteBlackIpRuleResponse) String ¶
func (o ListWhiteBlackIpRuleResponse) String() string
type PageRespInfo ¶
type PageRespInfo struct { // 页面类型 ContentType *string `json:"content_type,omitempty"` // 页面内容 Content *string `json:"content,omitempty"` }
func (PageRespInfo) String ¶
func (o PageRespInfo) String() string
type Point ¶
type Point struct { // 时间戳 Time *int32 `json:"time,omitempty"` // 请求总量 Total *int32 `json:"total,omitempty"` // 攻击总量 Attack *int32 `json:"attack,omitempty"` // web基础防护 Basic *int32 `json:"basic,omitempty"` // 频率控制 Cc *int32 `json:"cc,omitempty"` // 精准防护 CustomCustom *int32 `json:"custom_custom,omitempty"` }
type ShowDomainCertificateRequest ¶
type ShowDomainCertificateRequest struct { // 域名id DomainId string `json:"domain_id"` }
ShowDomainCertificateRequest Request Object
func (ShowDomainCertificateRequest) String ¶
func (o ShowDomainCertificateRequest) String() string
type ShowDomainCertificateResponse ¶
type ShowDomainCertificateResponse struct { // 域名id DomainId *string `json:"domain_id,omitempty"` // 域名 DomainName *string `json:"domain_name,omitempty"` CertInfo *CertInfo `json:"cert_info,omitempty"` HttpStatusCode int `json:"-"` }
ShowDomainCertificateResponse Response Object
func (ShowDomainCertificateResponse) String ¶
func (o ShowDomainCertificateResponse) String() string
type ShowFlowBlockRequest ¶
type ShowFlowBlockRequest struct { // instanceId InstanceId string `json:"instance_id"` }
ShowFlowBlockRequest Request Object
func (ShowFlowBlockRequest) String ¶
func (o ShowFlowBlockRequest) String() string
type ShowFlowBlockResponse ¶
type ShowFlowBlockResponse struct { // total Total *int32 `json:"total,omitempty"` // ips Ips *[]Ips `json:"ips,omitempty"` HttpStatusCode int `json:"-"` }
ShowFlowBlockResponse Response Object
func (ShowFlowBlockResponse) String ¶
func (o ShowFlowBlockResponse) String() string
type ShowWafPolicyRequest ¶
type ShowWafPolicyRequest struct { // 域名 DomainName string `json:"domain_name"` // 防护区域,0-大陆,1-海外 OverseasType int32 `json:"overseas_type"` }
ShowWafPolicyRequest Request Object
func (ShowWafPolicyRequest) String ¶
func (o ShowWafPolicyRequest) String() string
type ShowWafPolicyResponse ¶
type ShowWafPolicyResponse struct { // 域名(包含端口) DomainName *string `json:"domain_name,omitempty"` // 0-中国大陆,1-中国大陆外 OverseasType *int32 `json:"overseas_type,omitempty"` Options *WafPolicyOptions `json:"options,omitempty"` // 智能CC防护等级:[0-宽松,1- 正常, 2- 严格] Level *int32 `json:"level,omitempty"` // 智能CC模式:0-预警,1-防护 Mode *int32 `json:"mode,omitempty"` HttpStatusCode int `json:"-"` }
ShowWafPolicyResponse Response Object
func (ShowWafPolicyResponse) String ¶
func (o ShowWafPolicyResponse) String() string
type ShowWafQpsRequest ¶
type ShowWafQpsRequest struct { // 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空 Recent *string `json:"recent,omitempty"` // 查询域名 Domains *string `json:"domains,omitempty"` // 开始时间(毫秒时间戳) StartTime *string `json:"start_time,omitempty"` // 结束时间(毫秒时间戳) EndTime *string `json:"end_time,omitempty"` // 防护区域,0-大陆,1-海外 OverseasType *int32 `json:"overseas_type,omitempty"` }
ShowWafQpsRequest Request Object
func (ShowWafQpsRequest) String ¶
func (o ShowWafQpsRequest) String() string
type ShowWafQpsResponse ¶
type ShowWafQpsResponse struct { // qps Qps *int32 `json:"qps,omitempty"` HttpStatusCode int `json:"-"` }
ShowWafQpsResponse Response Object
func (ShowWafQpsResponse) String ¶
func (o ShowWafQpsResponse) String() string
type TagCondition ¶
type TagCondition struct { // 防护动作 Category *string `json:"category,omitempty"` // 字段内容 Contents *[]string `json:"contents,omitempty"` }
func (TagCondition) String ¶
func (o TagCondition) String() string
type UpgradeInstanceData ¶
type UpgradeInstanceData struct { // 保底带宽(G) BasicBandwidth *string `json:"basic_bandwidth,omitempty"` // 弹性带宽(G) ElasticBandwidth *string `json:"elastic_bandwidth,omitempty"` // 业务带宽 ServiceBandwidth *int32 `json:"service_bandwidth,omitempty"` // 端口数 PortNum *int32 `json:"port_num,omitempty"` // 域名数 BindDomainNum *int32 `json:"bind_domain_num,omitempty"` // 弹性业务带宽,0-关闭,3-月95 ElasticServiceBandwidthType *int32 `json:"elastic_service_bandwidth_type,omitempty"` // 弹性业务带宽增加值 ElasticServiceBandwidth *int32 `json:"elastic_service_bandwidth,omitempty"` }
func (UpgradeInstanceData) String ¶
func (o UpgradeInstanceData) String() string
type UpgradeInstanceSpecRequest ¶
type UpgradeInstanceSpecRequest struct {
Body *UpgradeInstanceSpecV2RequestBody `json:"body,omitempty"`
}
UpgradeInstanceSpecRequest Request Object
func (UpgradeInstanceSpecRequest) String ¶
func (o UpgradeInstanceSpecRequest) String() string
type UpgradeInstanceSpecResponse ¶
type UpgradeInstanceSpecResponse struct { // 订单id OrderId *string `json:"order_id,omitempty"` HttpStatusCode int `json:"-"` }
UpgradeInstanceSpecResponse Response Object
func (UpgradeInstanceSpecResponse) String ¶
func (o UpgradeInstanceSpecResponse) String() string
type UpgradeInstanceSpecV2RequestBody ¶
type UpgradeInstanceSpecV2RequestBody struct { // 实例id InstanceId string `json:"instance_id"` UpgradeData *UpgradeInstanceData `json:"upgrade_data"` }
func (UpgradeInstanceSpecV2RequestBody) String ¶
func (o UpgradeInstanceSpecV2RequestBody) String() string
type WafCustomCondition ¶
type WafCustomCondition struct { // 字段类型 枚举值: url:路径 ip:IPv4 user-agent: User Agent method: Method referer: Referer params:Params cookie:Cookie header:Header request_line: Request Line request: Request Category string `json:"category"` // 子字段 - 当字段类型为url,user-agent、refer、request_line、method、request时,不需要传index参数 - 当字段类型为ip或ipv6时,index必填且必须为以下值: client-ip:客户端IP x-forwarded-for:X-Forwarded-For TCP连接IP: $remote_addr - 当字段类型(category)选择“params”、“cookie”、“header”时,请根据实际需求配置子字段且该参数必填。 - 当匹配逻辑为num_greater、num_less、num_equal、num_not_equal时,子字段必须为空 - 当子字段不为空时,最大长度不超过2048 Index *string `json:"index,omitempty"` // 条件列表匹配逻辑。 如果字段类型category是url、user-agent或者referer, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 len_greater、 len_less、len_equal或者len_not_equal 如果字段类型category是ip、ipv6或method,匹配逻辑可以为: equal、not_equal 如果字段类型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、 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"` // 条件列表逻辑匹配内容。 - 当匹配逻辑为exist或not_exist时,contents必须为空,其他情况下contents必填且长度不超过2048 - 当匹配逻辑包含\"len\"时,contents必须为0~65535的整数;当匹配逻辑包含\"num\"时,contents必须为0~512的整数 - 当category为method时, contents必须是1-64位大写字母 Contents []string `json:"contents"` }
WafCustomCondition cc规则防护规则限速条件
func (WafCustomCondition) String ¶
func (o WafCustomCondition) String() string
type WafCustomRule ¶
type WafCustomRule struct { // id Id *string `json:"id,omitempty"` // name Name *string `json:"name,omitempty"` // 精准防护规则生效时间。true-自定义生效时间,false-立即生效 Time bool `json:"time"` // 精准防护规则生效的起始时间戳(秒) Start *int64 `json:"start,omitempty"` // 精准防护规则生效的终止时间戳(秒) Terminal *int64 `json:"terminal,omitempty"` // 执行该规则的优先级,值越小,优先级越高。取值范围:0到1000。 Priority int32 `json:"priority"` // condition Conditions *[]WafCustomCondition `json:"conditions,omitempty"` Action *WafCustomRuleAction `json:"action,omitempty"` // 域名 DomainName *string `json:"domain_name,omitempty"` // 防护区域,0-大陆,1-海外 OverseasType *int32 `json:"overseas_type,omitempty"` }
func (WafCustomRule) String ¶
func (o WafCustomRule) String() string
type WafCustomRuleAction ¶
type WafCustomRuleAction struct { // 防护动作。 “block”:拦截。 “pass”:放行。 “log”:仅记录 Category *string `json:"category,omitempty"` }
func (WafCustomRuleAction) String ¶
func (o WafCustomRuleAction) String() string
type WafGeoIpRule ¶
type WafGeoIpRule struct { // 地理位置 Geoip *string `json:"geoip,omitempty"` // id Id *string `json:"id,omitempty"` // 规则名称 Name *string `json:"name,omitempty"` // 防护区域,0-大陆,1-海外 OverseasType *int32 `json:"overseas_type,omitempty"` // 添加时间 Timestamp *int32 `json:"timestamp,omitempty"` // 防护动作 0-阻断,1-放行,2-仅记录 White *int32 `json:"white,omitempty"` }
func (WafGeoIpRule) String ¶
func (o WafGeoIpRule) String() string
type WafPolicyOptions ¶
type WafPolicyOptions struct { // 是否开启CC(频率控制) Cc *bool `json:"cc,omitempty"` // 是否开启精准访问防护 Custom *bool `json:"custom,omitempty"` // 是否开启区域封禁防护 Geoip *bool `json:"geoip,omitempty"` // 是否开启黑白名单防护 Whiteblackip *bool `json:"whiteblackip,omitempty"` // 是否开启智能CC防护 ModulexEnabled *bool `json:"modulex_enabled,omitempty"` }
func (WafPolicyOptions) String ¶
func (o WafPolicyOptions) String() string
Source Files ¶
- model_action_info.go
- model_backend.go
- model_black_white_list_rule.go
- model_bw_list_ips.go
- model_cert_info.go
- model_condition.go
- model_create_aad_domain_request_body.go
- model_create_domain_request.go
- model_create_domain_response.go
- model_curve.go
- model_delete_domain_request.go
- model_delete_domain_response.go
- model_delete_domain_v2_request_body.go
- model_detail_info.go
- model_empty_json_response.go
- model_flow_bps.go
- model_flow_pps.go
- model_frequency_control_rule.go
- model_instance_domain_item.go
- model_ips.go
- model_list_connection_number_data.go
- model_list_connection_number_data_list.go
- model_list_d_do_s_attack_event_request.go
- model_list_d_do_s_attack_event_request_body.go
- model_list_d_do_s_attack_event_response.go
- model_list_d_do_s_connection_number_request.go
- model_list_d_do_s_connection_number_response.go
- model_list_d_do_s_event_data.go
- model_list_d_do_s_flow_request.go
- model_list_d_do_s_flow_response.go
- model_list_frequency_control_rule_request.go
- model_list_frequency_control_rule_response.go
- model_list_instance_domains_request.go
- model_list_instance_domains_response.go
- model_list_waf_attack_event_request.go
- model_list_waf_attack_event_response.go
- model_list_waf_attack_eventlist.go
- model_list_waf_bandwidth_request.go
- model_list_waf_bandwidth_response.go
- model_list_waf_custom_rule_request.go
- model_list_waf_custom_rule_response.go
- model_list_waf_geo_ip_rule_request.go
- model_list_waf_geo_ip_rule_response.go
- model_list_waf_qps_request.go
- model_list_waf_qps_response.go
- model_list_waf_white_ip_rule_request.go
- model_list_waf_white_ip_rule_response.go
- model_list_white_black_ip_rule_request.go
- model_list_white_black_ip_rule_response.go
- model_page_resp_info.go
- model_point.go
- model_show_domain_certificate_request.go
- model_show_domain_certificate_response.go
- model_show_flow_block_request.go
- model_show_flow_block_response.go
- model_show_waf_policy_request.go
- model_show_waf_policy_response.go
- model_show_waf_qps_request.go
- model_show_waf_qps_response.go
- model_tag_condition.go
- model_upgrade_instance_data.go
- model_upgrade_instance_spec_request.go
- model_upgrade_instance_spec_response.go
- model_upgrade_instance_spec_v2_request_body.go
- model_waf_custom_condition.go
- model_waf_custom_rule.go
- model_waf_custom_rule_action.go
- model_waf_geo_ip_rule.go
- model_waf_policy_options.go