Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCAttackLogDetail ¶ added in v1.0.3
type CCSpec ¶
type CCSpec struct { /* cc防护模式:0正常 1宽松 2紧急 3自定义 (Optional) */ CcProtectMode *int `json:"ccProtectMode"` /* cc阈值大小 (Optional) */ CcThreshold *int `json:"ccThreshold"` /* ccProtectMode为自定义模式时,指定每个Host的防护阈值 (Optional) */ HostQps *int `json:"hostQps"` /* ccProtectMode为自定义模式时,指定每个Host+URI的防护阈值 (Optional) */ HostUrlQps *int `json:"hostUrlQps"` /* ccProtectMode为自定义模式时,指定每个源IP对Host的防护阈值 (Optional) */ IpHostQps *int `json:"ipHostQps"` /* ccProtectMode为自定义模式时,指定每个源IP对Host+URI的防护阈值 (Optional) */ IpHostUrlQps *int `json:"ipHostUrlQps"` }
type CcIpLimitSpec ¶ added in v1.0.3
type DDosAttackLog ¶ added in v1.0.3
type DDosAttackLog struct { /* 攻击流量大小 (Optional) */ AttackTraffic int `json:"attackTraffic"` /* 是否触发黑洞,0否 1是 (Optional) */ BlackHole int `json:"blackHole"` /* 攻击开始时间 (Optional) */ StartTime string `json:"startTime"` /* 攻击结束时间 (Optional) */ EndTime string `json:"endTime"` /* 流量单位,bps、Kbps、Mbps、Gbps (Optional) */ Unit string `json:"unit"` /* 高防实例id (Optional) */ InstanceId int64 `json:"instanceId"` /* 高防实例名称 (Optional) */ Name string `json:"name"` }
type ForwardRule ¶
type ForwardRule struct { /* 规则id (Optional) */ Id int64 `json:"id"` /* 实例id (Optional) */ InstanceId int64 `json:"instanceId"` /* TCP或UDP (Optional) */ Protocol string `json:"protocol"` /* 规则的cname (Optional) */ Cname string `json:"cname"` /* 回源类型:ip或者domain (Optional) */ OriginType string `json:"originType"` /* 端口号 (Optional) */ Port int `json:"port"` /* 转发规则:wrr->带权重的轮询,wlc->加权最小连接,rr->不带权重的轮询,sh->源地址hash (Optional) */ Algorithm string `json:"algorithm"` /* (Optional) */ OriginAddr []OriginAddrItem `json:"originAddr"` /* (Optional) */ OnlineAddr []string `json:"onlineAddr"` /* 回源域名 (Optional) */ OriginDomain string `json:"originDomain"` /* 回源端口号 (Optional) */ OriginPort int `json:"originPort"` /* 0防御状态,1回源状态 (Optional) */ Status int `json:"status"` }
type ForwardRuleSpec ¶
type ForwardRuleSpec struct { /* 协议:TCP或者UDP (Optional) */ Protocol *string `json:"protocol"` /* 端口号 (Optional) */ Port *int `json:"port"` /* 转发规则:wrr->带权重的轮询,wlc->加权最小连接,rr->不带权重的轮询,sh->源地址hash (Optional) */ Algorithm *string `json:"algorithm"` /* 回源类型,ip或者domain (Optional) */ OriginType *string `json:"originType"` /* (Optional) */ OriginAddr []OriginAddrItem `json:"originAddr"` /* (Optional) */ OnlineAddr []string `json:"onlineAddr"` /* 回源域名 (Optional) */ OriginDomain *string `json:"originDomain"` /* 回源端口号 (Optional) */ OriginPort *int `json:"originPort"` }
type Instance ¶
type Instance struct { /* 实例id (Optional) */ InstanceId int64 `json:"instanceId"` /* 实例名称 (Optional) */ Name string `json:"name"` /* 线路,UNICOM、TELECOM (Optional) */ Carrier string `json:"carrier"` /* 触发弹性带宽的次数 (Optional) */ ElasticTriggerCount int `json:"elasticTriggerCount"` /* 超峰次数 (Optional) */ AbovePeakCount int `json:"abovePeakCount"` /* 保底带宽 (Optional) */ InBitslimit int `json:"inBitslimit"` /* 弹性带宽 (Optional) */ ResilientBitslimit int `json:"resilientBitslimit"` /* 业务带宽大小 (Optional) */ BusinessBitslimit int `json:"businessBitslimit"` /* cc阈值大小 (Optional) */ CcThreshold int `json:"ccThreshold"` /* 非网站类规则数 (Optional) */ RuleCount int `json:"ruleCount"` /* 网站类规则数 (Optional) */ WebRuleCount int `json:"webRuleCount"` /* PAID|ARREARS|EXPIRED (Optional) */ ChargeStatus string `json:"chargeStatus"` /* SAFE|CLEANING|BLOCKING (Optional) */ SecurityStatus string `json:"securityStatus"` /* 实例的创建的时间 (Optional) */ CreateTime int64 `json:"createTime"` /* 实例的过期时间 (Optional) */ ExpireTime int64 `json:"expireTime"` /* 资源id,升级和续费时使用 (Optional) */ ResourceId string `json:"resourceId"` /* cc防护模式,0正常、1紧急、2宽松、3自定义 (Optional) */ CcProtectMode int `json:"ccProtectMode"` /* cc开关状态,0关闭,1开启 (Optional) */ CcProtectStatus int `json:"ccProtectStatus"` /* cc防护模式为自定义时的限速大小 (Optional) */ CcSpeedLimit int `json:"ccSpeedLimit"` /* cc防护模式为自定义时的限速周期 (Optional) */ CcSpeedPeriod int `json:"ccSpeedPeriod"` /* ip黑名单列表 (Optional) */ IpBlackList []string `json:"ipBlackList"` /* ip黑名单状态,0关闭,1开启 (Optional) */ IpBlackStatus int `json:"ipBlackStatus"` /* ip白名单列表 (Optional) */ IpWhiteList []string `json:"ipWhiteList"` /* ip白名单状态,0关闭,1开启 (Optional) */ IpWhiteStatus int `json:"ipWhiteStatus"` /* 用户pin (Optional) */ Pin string `json:"pin"` /* url白名单列表 (Optional) */ UrlWhitelist []string `json:"urlWhitelist"` /* url白名单状态,0关闭,1开启 (Optional) */ UrlWhitelistStatus int `json:"urlWhitelistStatus"` /* ccProtectMode为自定义模式时,每个Host的防护阈值 (Optional) */ HostQps int `json:"hostQps"` /* ccProtectMode为自定义模式时,每个Host+URI的防护阈值 (Optional) */ HostUrlQps int `json:"hostUrlQps"` /* ccProtectMode为自定义模式时,每个源IP对Host的防护阈值 (Optional) */ IpHostQps int `json:"ipHostQps"` /* ccProtectMode为自定义模式时,每个源IP对Host+URI的防护阈值 (Optional) */ IpHostUrlQps int `json:"ipHostUrlQps"` }
type InstanceSpec ¶
type InstanceSpec struct { /* 实例名称 (Optional) */ Name *string `json:"name"` /* 购买类型:1新购 3升级 (Optional) */ BuyType *int `json:"buyType"` /* 购买时长单位:3月 4年 (Optional) */ TimeUnit *int `json:"timeUnit"` /* 购买时长跨度 (Optional) */ TimeSpan *int `json:"timeSpan"` /* 线路:TELECOM为电信线路,UNICOM为联通线路,CMCC为移动线路 (Optional) */ Carrier *string `json:"carrier"` /* 保底带宽:单位Gbps (Optional) */ Bp *int `json:"bp"` /* 弹性带宽:单位Gbps (Optional) */ Ep *int `json:"ep"` /* 业务带宽:单位Mbps (Optional) */ Bw *int `json:"bw"` /* 支付成功后跳转的页面,控制台交互模式传该字段 (Optional) */ ReturnUrl *string `json:"returnUrl"` }
type OriginAddrItem ¶ added in v1.0.3
type WebRule ¶
type WebRule struct { /* 规则id (Optional) */ Id int64 `json:"id"` /* 实例id (Optional) */ InstanceId int64 `json:"instanceId"` /* 子域名 (Optional) */ Domain string `json:"domain"` /* 规则的cname (Optional) */ Cname string `json:"cname"` /* 协议:HTTP、HTTPS、HTTP_HTTPS (Optional) */ Protocol string `json:"protocol"` /* HTTP协议的端口号,如80,81,多个端口号使用逗号分隔 (Optional) */ Port string `json:"port"` /* HTTPS协议的端口号,如443,8443,多个端口号使用逗号分隔 (Optional) */ HttpsPort string `json:"httpsPort"` /* 回源类型:A或者CNAME (Optional) */ OriginType string `json:"originType"` /* (Optional) */ OriginAddr []OriginAddrItem `json:"originAddr"` /* (Optional) */ OnlineAddr []string `json:"onlineAddr"` /* 回源域名,originType为CNAME时返回该字段 (Optional) */ OriginDomain string `json:"originDomain"` /* 证书内容 (Optional) */ HttpsCertContent string `json:"httpsCertContent"` /* 证书私钥 (Optional) */ HttpsRsaKey string `json:"httpsRsaKey"` /* 证书状态:0异常,1正常 (Optional) */ HttpCertStatus int `json:"httpCertStatus"` /* 0防御状态,1回源状态 (Optional) */ Status int `json:"status"` /* 0 CC关闭 1 CC开启 (Optional) */ CcStatus int `json:"ccStatus"` /* 转发规则:wrr->带权重的轮询,rr->不带权重的轮询 (Optional) */ Algorithm string `json:"algorithm"` /* 是否开启https强制跳转,当protocol为HTTP_HTTPS时可以配置该属性 0为不强跳 1为开启强跳 (Optional) */ ForceJump int `json:"forceJump"` /* 是否为自定义端口号,0为默认 1为自定义 (Optional) */ CustomPortStatus int `json:"customPortStatus"` /* 是否开启http回源,0为不开启 1为开启,当勾选HTTPS时可以配置该属性 (Optional) */ HttpOrigin int `json:"httpOrigin"` }
type WebRuleSpec ¶
type WebRuleSpec struct { /* 子域名 (Optional) */ Domain *string `json:"domain"` /* 协议:HTTP、HTTPS、HTTP_HTTPS (Optional) */ Protocol *string `json:"protocol"` /* HTTP协议的端口号,如80,81,多个端口号使用逗号分隔 (Optional) */ Port *string `json:"port"` /* HTTPS协议的端口号,如443,8443,多个端口号使用逗号分隔 (Optional) */ HttpsPort *string `json:"httpsPort"` /* 回源类型:A或者CNAME (Optional) */ OriginType *string `json:"originType"` /* (Optional) */ OriginAddr []OriginAddrItem `json:"originAddr"` /* (Optional) */ OnlineAddr []string `json:"onlineAddr"` /* 回源域名,originType为CNAME时需要指定该字段 (Optional) */ OriginDomain *string `json:"originDomain"` /* 证书内容 (Optional) */ HttpsCertContent *string `json:"httpsCertContent"` /* 证书私钥 (Optional) */ HttpsRsaKey *string `json:"httpsRsaKey"` /* 转发规则:wrr->带权重的轮询,rr->不带权重的轮询 (Optional) */ Algorithm *string `json:"algorithm"` /* 是否开启https强制跳转,当protocol为HTTP_HTTPS时可以配置该属性 0为不强跳 1为开启强跳 (Optional) */ ForceJump *int `json:"forceJump"` /* 是否为自定义端口号,0为默认 1为自定义 (Optional) */ CustomPortStatus *int `json:"customPortStatus"` /* 是否开启http回源,0为不开启 1为开启,当勾选HTTPS时可以配置该属性 (Optional) */ HttpOrigin *int `json:"httpOrigin"` }
Click to show internal directories.
Click to hide internal directories.