Documentation ¶
Index ¶
- type AlarmConfig
- type AlarmConfigSpec
- type AttackTypeCount
- type BwRepeatMsg
- type CCAttackLog
- type CCAttackLogDetail
- type CCDefaultThresholds
- type CCProtectionConfig
- type CCProtectionConfigSpec
- type CCProtectionDefaultConfig
- type CCProtectionRule
- type CCProtectionRuleSpec
- type CertInfo
- type CertInfoDescribeSpec
- type CertInfoModifySpec
- type Certificate
- type CertificateSpec
- type Country
- type CpsIpResource
- type CreateInstanceSpec
- type DDoSAttackLog
- type EPBSpec
- type ForwardBlackListRule
- type ForwardProtectionRule
- type ForwardProtectionRuleSpec
- type ForwardRule
- type ForwardRuleSpec
- type ForwardWhiteListRule
- type Geo
- type Instance
- type InstanceIdName
- type IpBwListSpec
- type IpSet
- type IpSetSpec
- type ModifyBlackListRuleOfForwardRuleSpec
- type ModifyInstanceEPBSpec
- type ModifyWhiteListRuleOfForwardRuleSpec
- type OriginAddrItem
- type PriceSpec
- type ProtectionOutline
- type ProtectionStatistics
- type RenameInstanceSpec
- type Status
- type VpcIpResource
- type WebBlackListRule
- type WebBlackListRuleSpec
- type WebRule
- type WebRuleProtocol
- type WebRuleSpec
- type WebWhiteListRule
- type WebWhiteListRuleSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmConfig ¶ added in v1.6.0
type AlarmConfig struct { /* 黑洞告警邮件开关 0 关闭 1 开启 (Optional) */ BlackHoleAlarmEmailStatus int `json:"blackHoleAlarmEmailStatus"` /* 黑洞告警短信开关 0 关闭 1 开启 (Optional) */ BlackHoleAlarmSmsStatus int `json:"blackHoleAlarmSmsStatus"` /* 黑洞告警总开关 0 关闭 1 开启 (Optional) */ BlackHoleAlarmStatus int `json:"blackHoleAlarmStatus"` /* DDos 攻击告警邮件开关 0 关闭 1 开启 (Optional) */ DdosAlarmEmailStatus int `json:"ddosAlarmEmailStatus"` /* DDos 攻击告警短信开关 0 关闭 1 开启 (Optional) */ DdosAlarmSmsStatus int `json:"ddosAlarmSmsStatus"` /* DDos 告警总开关 0 关闭 1 开启 (Optional) */ DdosAlarmStatus int `json:"ddosAlarmStatus"` /* 错误码告警总开关 (Optional) */ ErrorCodeAlarmStatus int `json:"errorCodeAlarmStatus"` /* 错误码告警域名列表 (Optional) */ ErrorCodeDomain []string `json:"errorCodeDomain"` }
type AlarmConfigSpec ¶ added in v1.6.0
type AlarmConfigSpec struct { /* 黑洞告警邮件开关 0 关闭 1 开启 (Optional) */ BlackHoleAlarmEmailStatus *int `json:"blackHoleAlarmEmailStatus"` /* 黑洞告警短信开关 0 关闭 1 开启 (Optional) */ BlackHoleAlarmSmsStatus *int `json:"blackHoleAlarmSmsStatus"` /* 黑洞告警总开关 0 关闭 1 开启 (Optional) */ BlackHoleAlarmStatus *int `json:"blackHoleAlarmStatus"` /* DDos 攻击告警邮件开关 0 关闭 1 开启 (Optional) */ DdosAlarmEmailStatus *int `json:"ddosAlarmEmailStatus"` /* DDos 攻击告警短信开关 0 关闭 1 开启 (Optional) */ DdosAlarmSmsStatus *int `json:"ddosAlarmSmsStatus"` /* DDos 告警总开关 0 关闭 1 开启 (Optional) */ DdosAlarmStatus *int `json:"ddosAlarmStatus"` /* 错误码告警总开关 (Optional) */ ErrorCodeAlarmStatus *int `json:"errorCodeAlarmStatus"` /* 错误码告警域名列表 (Optional) */ ErrorCodeDomain []string `json:"errorCodeDomain"` }
type AttackTypeCount ¶ added in v1.6.0
type BwRepeatMsg ¶ added in v1.6.0
type CCAttackLog ¶ added in v1.10.0
type CCAttackLog struct { /* CC 攻击记录Id (Optional) */ AttackId string `json:"attackId"` /* 攻击流量大小 (Optional) */ AttackTraffic float64 `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 string `json:"instanceId"` /* 高防实例名称 (Optional) */ Name string `json:"name"` }
type CCAttackLogDetail ¶ added in v1.0.3
type CCDefaultThresholds ¶ added in v1.6.0
type CCDefaultThresholds struct { /* 每个 Host 的防护阈值 (Optional) */ HostQps int `json:"hostQps"` /* 每个 Host + URL 的防护阈值 (Optional) */ HostUrlQps int `json:"hostUrlQps"` /* 每个源 IP 对 Host 的防护阈值 (Optional) */ IpHostQps int `json:"ipHostQps"` /* 每个源 IP 对 Host + URI 的防护阈值 (Optional) */ IpHostUrlQps int `json:"ipHostUrlQps"` }
type CCProtectionConfig ¶ added in v1.6.0
type CCProtectionConfig struct { /* 网站规则的 CC 防护状态, 0: 关闭, 1: 开启 (Optional) */ Enable int `json:"enable"` /* 观察者模式, 0: 关闭, 1: 开启 (Optional) */ ObserverMode int `json:"observerMode"` /* 防护等级, 0: 正常, 1: 宽松, 2: 紧急, 3: 自定义 (Optional) */ Level int `json:"level"` /* HTTP 请求数阈值 (Optional) */ CcThreshold int64 `json:"ccThreshold"` /* Host 的防护阈值 (Optional) */ HostQps int64 `json:"hostQps"` /* Host + Url 的防护阈值 (Optional) */ HostUrlQps int64 `json:"hostUrlQps"` /* 每个源 IP 对 Host 的防护阈值 (Optional) */ IpHostQps int64 `json:"ipHostQps"` /* 每个源 IP 对 Host + Url 的防护阈值 (Optional) */ IpHostUrlQps int64 `json:"ipHostUrlQps"` /* 开启的 cc 防护规则数量 (Optional) */ CcProtectionRuleEnableCount int64 `json:"ccProtectionRuleEnableCount"` }
type CCProtectionConfigSpec ¶ added in v1.6.0
type CCProtectionConfigSpec struct { /* 防护等级, 0: 正常, 1: 宽松, 2: 紧急, 3: 自定义 */ Level int `json:"level"` /* HTTP 请求数阈值, 防护等级为自定义时必传 (Optional) */ CcThreshold *int64 `json:"ccThreshold"` /* Host 的防护阈值, 防护等级为自定义时必传 (Optional) */ HostQps *int64 `json:"hostQps"` /* Host + Url 的防护阈值, 防护等级为自定义时必传 (Optional) */ HostUrlQps *int64 `json:"hostUrlQps"` /* 每个源 IP 对 Host 的防护阈值, 防护等级为自定义时必传 (Optional) */ IpHostQps *int64 `json:"ipHostQps"` /* 每个源 IP 对 Host + Url 的防护阈值, 防护等级为自定义时必传 (Optional) */ IpHostUrlQps *int64 `json:"ipHostUrlQps"` }
type CCProtectionDefaultConfig ¶ added in v1.6.0
type CCProtectionDefaultConfig struct { /* HTTP 请求数阈值 (Optional) */ CcThreshold int64 `json:"ccThreshold"` /* Host 的防护阈值 (Optional) */ HostQps int64 `json:"hostQps"` /* Host + Url 的防护阈值 (Optional) */ HostUrlQps int64 `json:"hostUrlQps"` /* 每个源 IP 对 Host 的防护阈值 (Optional) */ IpHostQps int64 `json:"ipHostQps"` /* 每个源 IP 对 Host + Url 的防护阈值 (Optional) */ IpHostUrlQps int64 `json:"ipHostUrlQps"` }
type CCProtectionRule ¶ added in v1.6.0
type CCProtectionRule struct { /* CC 防护规则 ID (Optional) */ Id string `json:"id"` /* CC 防护规则对应的网站规则 ID (Optional) */ WebRuleId string `json:"webRuleId"` /* CC 防护规则对应的实例 ID (Optional) */ InstanceId string `json:"instanceId"` /* CC 防护规则名称, 30 字符以内 (Optional) */ Name string `json:"name"` /* CC 防护规则状态: 0: 关闭, 1: 开启 (Optional) */ Enable int `json:"enable"` /* uri, 以 / 开头, 200 字符以内 (Optional) */ Uri string `json:"uri"` /* 匹配 uri 类型, 0: 精确匹配, 1: 前缀匹配 (Optional) */ MatchType int `json:"matchType"` /* 检测周期, 单位为秒, 取值范围[5, 10800] (Optional) */ DetectPeriod int64 `json:"detectPeriod"` /* ip 访问次数, 取值范围[2, 2000] (Optional) */ SingleIpLimit int64 `json:"singleIpLimit"` /* 阻断类型, 1: 封禁, 2: 人机交互 (Optional) */ BlockType int `json:"blockType"` /* 阻断持续时间, 单位为秒, 取值范围[10, 86400] (Optional) */ BlockTime int64 `json:"blockTime"` }
type CCProtectionRuleSpec ¶ added in v1.6.0
type CCProtectionRuleSpec struct { /* CC 防护规则名称, 不允许为空, 长度不超过 32 个字符, 支持中文, 大小写字母, 数字及字符'-'、'/'、'.'、'_' */ Name string `json:"name"` /* uri, 不允许为空, 以 / 开头, 长度不超过 2048 个字符 */ Uri string `json:"uri"` /* 匹配 uri 类型, 0: 精确匹配, 1: 前缀匹配 */ MatchType int `json:"matchType"` /* 检测周期, 单位为秒, 取值范围[5, 10800] */ DetectPeriod int64 `json:"detectPeriod"` /* ip 访问次数, 取值范围[2, 2000] */ SingleIpLimit int64 `json:"singleIpLimit"` /* 阻断类型, 1: 封禁, 2: 人机交互 */ BlockType int `json:"blockType"` /* 阻断持续时间, 单位为秒, 取值范围[10, 86400] */ BlockTime int64 `json:"blockTime"` }
type CertInfo ¶ added in v1.6.0
type CertInfo struct { /* 通用名称 (Optional) */ Domain string `json:"domain"` /* 证书生效时间 (Optional) */ From string `json:"from"` /* 证书到期时间 (Optional) */ To string `json:"to"` /* 证书组织 (Optional) */ User string `json:"user"` /* 加密算法 (Optional) */ SigAlgName string `json:"sigAlgName"` /* 颁发者 (Optional) */ Issuer string `json:"issuer"` }
type CertInfoDescribeSpec ¶ added in v1.6.0
type CertInfoModifySpec ¶ added in v1.6.0
type CertInfoModifySpec struct { /* 证书 Id - 如果传 certId, 请确认已经上传了相应的证书 - certId 缺省时网站规则将使用 httpsCertContent, httpsRsaKey 对应的证书 (Optional) */ CertId *string `json:"certId"` /* 证书内容 (Optional) */ HttpsCertContent *string `json:"httpsCertContent"` /* 私钥 (Optional) */ HttpsRsaKey *string `json:"httpsRsaKey"` }
type Certificate ¶ added in v1.6.0
type Certificate struct { /* 证书 Id (Optional) */ Id string `json:"id"` /* 证书名称 (Optional) */ Name string `json:"name"` /* 证书 (Optional) */ Content string `json:"content"` /* 秘钥 (Optional) */ RsaKey string `json:"rsaKey"` /* 绑定域名 (Optional) */ Domain string `json:"domain"` /* 证书生效时间 (Optional) */ From string `json:"from"` /* 证书到期时间 (Optional) */ To string `json:"to"` /* 加密算法 (Optional) */ SigAlgName string `json:"sigAlgName"` /* 颁发者 (Optional) */ Issuer string `json:"issuer"` /* 颁发给 (Optional) */ Organization string `json:"organization"` /* 上传时间 (Optional) */ UploadTime string `json:"uploadTime"` /* 已关联域名 (Optional) */ AssociatedDomains []string `json:"associatedDomains"` /* 推荐域名 (Optional) */ SanDomains []string `json:"sanDomains"` }
type CertificateSpec ¶ added in v1.6.0
type CpsIpResource ¶ added in v1.10.0
type CpsIpResource struct { /* 云物理服务器公网 IP 地址 (Optional) */ Ip string `json:"ip"` /* 公网 IP 类型或绑定资源类型: 0: 未知类型 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知) 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源) 11: 弹性公网 IP, 绑定了云主机 12: 弹性公网 IP, 绑定了负载均衡 13: 弹性公网 IP, 绑定了原生容器实例 14: 弹性公网 IP, 绑定了原生容器 Pod 2: 云物理服务器公网 IP (Optional) */ ResourceType int `json:"resourceType"` }
type CreateInstanceSpec ¶ added in v1.6.0
type CreateInstanceSpec struct { /* 实例 Id, 升级时必传 (Optional) */ Id *string `json:"id"` /* 实例名称, 新购时必传 (Optional) */ Name *string `json:"name"` /* 购买类型:1新购 3升级 */ BuyType int `json:"buyType"` /* 链路类型, 1: 电信, 2: 电信、联通, 3: 电信、联通和移动 */ Carrier int `json:"carrier"` /* 可防护 ip 类型, 目前仅电信线路支持 IPV6 线路: - 0: IPV4, - 1: IPV4/IPV6 (Optional) */ IpType *int `json:"ipType"` /* 保底带宽:单位Gbps */ Bp int `json:"bp"` /* 弹性带宽:单位Gbps */ Ep int `json:"ep"` /* 业务带宽:单位Mbps */ Bw int `json:"bw"` /* 购买防护包时长, 新购高防实例时必传 - timeUnit 为 3 时, 可取值 1-9 - timeUnit 为 4 时, 可取值 1-3 (Optional) */ TimeSpan *int64 `json:"timeSpan"` /* 购买时长类型, 新购高防实例时必传 - 3: 月 - 4: 年 (Optional) */ TimeUnit *int `json:"timeUnit"` /* 支付成功后跳转的页面,控制台交互模式传该字段 (Optional) */ ReturnUrl *string `json:"returnUrl"` }
type DDoSAttackLog ¶ added in v1.10.0
type DDoSAttackLog struct { /* 攻击流量大小 (Optional) */ AttackTraffic float64 `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 string `json:"instanceId"` /* 高防实例名称 (Optional) */ Name string `json:"name"` }
type ForwardBlackListRule ¶ added in v1.10.0
type ForwardProtectionRule ¶ added in v1.6.0
type ForwardProtectionRule struct { /* 虚假源与空连接, 0: 关闭, 1: 开启 (Optional) */ SpoofIpEnable int `json:"spoofIpEnable"` /* 源新建连接限速, 0: 关闭, 1: 开启 (Optional) */ SrcNewConnLimitEnable int `json:"srcNewConnLimitEnable"` /* 源新建连接速率 (Optional) */ SrcNewConnLimitValue int64 `json:"srcNewConnLimitValue"` /* 源并发连接限速, 0: 关闭, 1: 开启 (Optional) */ SrcConcurrentConnLimitEnable int `json:"srcConcurrentConnLimitEnable"` /* 源并发连接速率 (Optional) */ SrcConcurrentConnLimitValue int64 `json:"srcConcurrentConnLimitValue"` /* 目的新建连接限速, 0: 关闭, 1: 开启 (Optional) */ DstNewConnLimitEnable int `json:"dstNewConnLimitEnable"` /* 目的新建连接速率 (Optional) */ DstNewConnLimitValue int64 `json:"dstNewConnLimitValue"` /* 目的并发连接限速, 0: 关闭, 1: 开启 (Optional) */ DstConcurrentConnLimitEnable int `json:"dstConcurrentConnLimitEnable"` /* 目的并发连接速率 (Optional) */ DstConcurrentConnLimitValue int64 `json:"dstConcurrentConnLimitValue"` /* 报文最小长度 (Optional) */ DatagramRangeMin int64 `json:"datagramRangeMin"` /* 报文最大长度 (Optional) */ DatagramRangeMax int64 `json:"datagramRangeMax"` /* geo 拦截地域列表 (Optional) */ GeoBlackList []Geo `json:"geoBlackList"` }
type ForwardProtectionRuleSpec ¶ added in v1.6.0
type ForwardProtectionRuleSpec struct { /* 虚假源与空连接, 0: 关闭, 1: 开启 */ SpoofIpEnable int `json:"spoofIpEnable"` /* 源新建连接限速, 0: 关闭, 1: 开启 */ SrcNewConnLimitEnable int `json:"srcNewConnLimitEnable"` /* 源新建连接速率 */ SrcNewConnLimitValue int64 `json:"srcNewConnLimitValue"` /* 源并发连接限速, 0: 关闭, 1: 开启 */ SrcConcurrentConnLimitEnable int `json:"srcConcurrentConnLimitEnable"` /* 源并发连接速率 */ SrcConcurrentConnLimitValue int64 `json:"srcConcurrentConnLimitValue"` /* 目的新建连接, 0: 关闭, 1: 开启 */ DstNewConnLimitEnable int `json:"dstNewConnLimitEnable"` /* 目的新建连接速率 */ DstNewConnLimitValue int64 `json:"dstNewConnLimitValue"` /* 目的并发连接, 0: 关闭, 1: 开启 */ DstConcurrentConnLimitEnable int `json:"dstConcurrentConnLimitEnable"` /* 目的并发连接速率 */ DstConcurrentConnLimitValue int64 `json:"dstConcurrentConnLimitValue"` /* 报文最小长度, 取值范围[0, datagramRangeMax) */ DatagramRangeMin int64 `json:"datagramRangeMin"` /* 报文最大长度, 取值范围(datagramRangeMin, 1518] */ DatagramRangeMax int64 `json:"datagramRangeMax"` /* geo 拦截地域编码列表. 查询 <a href="http://docs.jdcloud.com/anti-ddos-pro/api/describegeoareas">describeGeoAreas</a> 接口获取可设置的地域编码列表 (Optional) */ GeoBlackList []string `json:"geoBlackList"` }
type ForwardRule ¶
type ForwardRule struct { /* 规则id (Optional) */ Id string `json:"id"` /* 实例id (Optional) */ InstanceId string `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 带权重的轮询 - 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 */ Protocol string `json:"protocol"` /* 端口号, 取值范围[1, 65535] */ Port int `json:"port"` /* 转发规则 - wrr 带权重的轮询 - rr 不带权重的轮询 - sh 源地址hash */ Algorithm string `json:"algorithm"` /* 回源类型: A 或者 CNAME */ OriginType string `json:"originType"` /* (Optional) */ OriginAddr []OriginAddrItem `json:"originAddr"` /* 备用的回源地址列表, 可以配置为一个域名或者多个 ip 地址 (Optional) */ OnlineAddr []string `json:"onlineAddr"` /* 回源域名 (Optional) */ OriginDomain *string `json:"originDomain"` /* 回源端口号, 取值范围[1, 65535] */ OriginPort int `json:"originPort"` }
type ForwardWhiteListRule ¶ added in v1.10.0
type Instance ¶
type Instance struct { /* 实例 ID (Optional) */ Id string `json:"id"` /* 实例名称 (Optional) */ Name string `json:"name"` /* 链路类型, 1: 电信, 2: 电信、联通, 3: 电信、联通和移动 (Optional) */ Carrier int `json:"carrier"` /* 可防护 IP 类型, 目前仅电信线路支持 IPV6 线路: - 0: IPV4, - 1: IPV4/IPV6 (Optional) */ IpType int `json:"ipType"` /* 触发弹性带宽的次数 (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"` /* CC 防护峰值, 单位: QPS (Optional) */ CcPeakQPS int `json:"ccPeakQPS"` /* 非网站类规则数 (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 string `json:"createTime"` /* 实例的过期时间 (Optional) */ ExpireTime string `json:"expireTime"` /* 资源 ID, 升级和续费时使用 (Optional) */ ResourceId string `json:"resourceId"` /* CC 防护观察者模式. - 0: 关闭 - 1: 开启 (Optional) */ CcObserveMode int `json:"ccObserveMode"` /* 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"` /* 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 InstanceIdName ¶ added in v1.6.0
type IpBwListSpec ¶ added in v1.6.0
type ModifyBlackListRuleOfForwardRuleSpec ¶ added in v1.10.0
type ModifyBlackListRuleOfForwardRuleSpec struct { /* 待引用的 IP 黑白名单 Id */ IpSetId string `json:"ipSetId"` }
type ModifyInstanceEPBSpec ¶ added in v1.6.0
type ModifyInstanceEPBSpec struct { /* 弹性带宽: 单位 Gbps */ Ep int `json:"ep"` }
type ModifyWhiteListRuleOfForwardRuleSpec ¶ added in v1.10.0
type ModifyWhiteListRuleOfForwardRuleSpec struct { /* 待引用的 IP 黑白名单 Id */ IpSetId string `json:"ipSetId"` }
type OriginAddrItem ¶ added in v1.0.3
type PriceSpec ¶ added in v1.6.0
type PriceSpec struct { /* 操作类型 1: 新购高防实例, 3: 升级高防实例 */ BuyType int `json:"buyType"` /* 计费类型 1: 按配置 2: 按用量 3: 包年包月 */ BillingType int `json:"billingType"` /* 链路类型, 1: 电信, 2: 电信、联通, 3: 电信、联通和移动 */ Carrier int `json:"carrier"` /* 业务带宽: 100, 150, 200, 250, ..., 2000, 单位: M */ Bw int `json:"bw"` /* 保底带宽: 0, 10, 20, 30, 40, 50, 60, 80, 100, 单位: Gbps */ Bp int `json:"bp"` /* 弹性带宽: 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 120, 150, 200, 单位: Gbps */ Ep int `json:"ep"` /* 实例 Id, 升级高防实例查询价格时必传 (Optional) */ Id string `json:"id"` /* 购买防护包时长, 新购高防实例时必传 - timeUnit 为 3 时, 可取值 1-9 - timeUnit 为 4 时, 可取值 1-3 (Optional) */ TimeSpan int `json:"timeSpan"` /* 购买时长类型, 新购高防实例时必传 - 3: 月 - 4: 年 (Optional) */ TimeUnit int `json:"timeUnit"` }
type ProtectionOutline ¶ added in v1.6.0
type ProtectionOutline struct { /* 实例数量 (Optional) */ InstancesCount int `json:"instancesCount"` /* 已防护实例数量 (Optional) */ ProtectedCount int `json:"protectedCount"` /* 已防护天数 (Optional) */ ProtectedDay int `json:"protectedDay"` /* 7 日攻击次数 (Optional) */ WeekAttackCount int `json:"weekAttackCount"` /* 7 日攻击流量峰值 (Optional) */ WeekAttackPeak float64 `json:"weekAttackPeak"` /* 7 日攻击流量单位 (Optional) */ WeekAttackUnit string `json:"weekAttackUnit"` /* 30 日攻击次数 (Optional) */ MonthAttackCount int `json:"monthAttackCount"` /* 30 日攻击流量峰值 (Optional) */ MonthAttackPeak float64 `json:"monthAttackPeak"` /* 30 日攻击流量单位 (Optional) */ MonthAttackUnit string `json:"monthAttackUnit"` }
type ProtectionStatistics ¶ added in v1.6.0
type RenameInstanceSpec ¶ added in v1.6.0
type RenameInstanceSpec struct { /* 实例名称 */ Name string `json:"name"` }
type VpcIpResource ¶ added in v1.6.0
type VpcIpResource struct { /* 云内 IP 地址 (Optional) */ Ip string `json:"ip"` /* 是否绑定 (Optional) */ Binded bool `json:"binded"` /* 公网 IP 类型或绑定资源类型: 0: 未知类型 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知) 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源) 11: 弹性公网 IP, 绑定了云主机 12: 弹性公网 IP, 绑定了负载均衡 13: 弹性公网 IP, 绑定了原生容器实例 14: 弹性公网 IP, 绑定了原生容器 Pod 2: 云物理服务器公网 IP (Optional) */ ResourceType int `json:"resourceType"` }
type WebBlackListRule ¶ added in v1.10.0
type WebBlackListRule struct { /* 黑名单规则 Id (Optional) */ Id string `json:"id"` /* 黑名单规则名称 (Optional) */ Name string `json:"name"` /* 匹配模式:<br>- 0: uri<br>- 1: ip<br>- 2: cookie<br>- 3: geo<br>- 4: header (Optional) */ Mode int `json:"mode"` /* 匹配 key. - mode 为 cookie 时, 为 cookie 的 name - mode 为 header 时, 为 header 的 key (Optional) */ Key string `json:"key"` /* 匹配 value. - mode 为 uri 时, 为要匹配的 uri - mode 为 ip 时, 为引用的 ip 黑白名单 Id - mode 为 cookie 时, 为 cookie 的 value - mode 为 header 时, 为 header 的 value (Optional) */ Value string `json:"value"` /* 匹配规则. mode 为 uri, cookie 和 header 时必传. 包含以下匹配规则 - 0: 完全匹配 - 1: 前缀匹配 - 2: 包含 - 3: 正则匹配 - 4: 后缀匹配 (Optional) */ Pattern int `json:"pattern"` /* 命中后处理动作. - 0: 放行 - 1: CC 防护 (Optional) */ Action int `json:"action"` /* 命中后处理值, action 为 2 时 actionValue 为跳转路径 (Optional) */ ActionValue string `json:"actionValue"` /* 规则状态. - 0: 关闭 - 1: 开启 (Optional) */ Status int `json:"status"` /* geo 黑名单地域列表, mode 不为 geo 或未设置时此字段为空 (Optional) */ GeoList []Geo `json:"geoList"` }
type WebBlackListRuleSpec ¶ added in v1.10.0
type WebBlackListRuleSpec struct { /* 黑名单规则名称 */ Name string `json:"name"` /* 模式:<br>- 0: uri<br>- 1: ip<br>- 2: cookie<br>- 3: geo<br>- 4: header */ Mode int `json:"mode"` /* 匹配 key. mode 为 cookie 和 header 时必传. - mode 为 cookie 时, 传 cookie 的 name - mode 为 header 时, 传 header 的 key (Optional) */ Key *string `json:"key"` /* 匹配 value. - mode 为 uri 时, 传要匹配的 uri - mode 为 ip 时, 传引用的 ip 黑白名单 Id - mode 为 cookie 时, 传 cookie 的 value - mode 为 geo 时, 传 geo 区域编码以 ',' 分隔的字符串. 查询 <a href="http://docs.jdcloud.com/anti-ddos-pro/api/describegeoareas">describeGeoAreas</a> 接口获取可设置的地域编码列表 - mode 为 header 时, 传 header 的 value */ Value string `json:"value"` /* 匹配规则. mode 为 uri, cookie 和 header 时必传. 支持以下匹配规则 - 0: 完全匹配 - 1: 前缀匹配 - 2: 包含 - 3: 正则匹配 - 4: 后缀匹配 (Optional) */ Pattern *int `json:"pattern"` /* 命中后处理动作 - 0: 阻断 - 1: 跳转 - 2: 验证码 */ Action int `json:"action"` /* 命中后处理值, action 为 1 时传跳转路径 (Optional) */ ActionValue *string `json:"actionValue"` /* 规则状态. - 0: 关闭 - 1: 开启 */ Status int `json:"status"` }
type WebRule ¶
type WebRule struct { /* 规则 Id (Optional) */ Id string `json:"id"` /* 实例 Id (Optional) */ InstanceId string `json:"instanceId"` /* 子域名 (Optional) */ Domain string `json:"domain"` /* 规则的 CNAME (Optional) */ Cname string `json:"cname"` /* CNAME 解析状态, 0: 解析异常, 1: 解析正常 (Optional) */ CnameStatus int `json:"cnameStatus"` /* (Optional) */ Protocol WebRuleProtocol `json:"protocol"` /* 是否为自定义端口号, 0: 为默认, 1: 为自定义 (Optional) */ CustomPortStatus int `json:"customPortStatus"` /* HTTP 协议的端口号, 如 80,81 (Optional) */ Port []int `json:"port"` /* HTTPS 协议的端口号, 如 443,8443 (Optional) */ HttpsPort []int `json:"httpsPort"` /* 是否开启 http 回源, 0: 为不开启, 1: 为开启, 当勾选 HTTPS 时可以配置该属性 (Optional) */ HttpOrigin int `json:"httpOrigin"` /* 0: 防御状态, 1: 回源状态 (Optional) */ Status int `json:"status"` /* 回源类型: A 或者 CNAME (Optional) */ OriginType string `json:"originType"` /* (Optional) */ OriginAddr []OriginAddrItem `json:"originAddr"` /* 回源域名, originType 为 CNAME 时返回该字段 (Optional) */ OriginDomain string `json:"originDomain"` /* (Optional) */ OnlineAddr []string `json:"onlineAddr"` /* 证书状态, 0: 异常, 1: 正常, 2: 证书未上传 (Optional) */ HttpCertStatus int `json:"httpCertStatus"` /* 证书 Id (Optional) */ CertId string `json:"certId"` /* 证书名称 (Optional) */ CertName string `json:"certName"` /* 证书内容 (Optional) */ HttpsCertContent string `json:"httpsCertContent"` /* 证书私钥 (Optional) */ HttpsRsaKey string `json:"httpsRsaKey"` /* 是否开启https强制跳转, 当 protocol 为 HTTP_HTTPS 时可以配置该属性 - 0 不强跳 - 1 开启强跳 (Optional) */ ForceJump int `json:"forceJump"` /* 转发规则, wrr: 带权重的轮询, rr: 不带权重的轮询 (Optional) */ Algorithm string `json:"algorithm"` /* CC 状态, 0: CC 关闭, 1: CC 开启 (Optional) */ CcStatus int `json:"ccStatus"` /* webSocket 状态, 0: 关闭, 1: 开启 (Optional) */ WebSocketStatus int `json:"webSocketStatus"` /* 黑名单状态, 0: 关闭, 1: 开启 (Optional) */ BlackListEnable int `json:"blackListEnable"` /* 白名单状态, 0: 关闭, 1: 开启 (Optional) */ WhiteListEnable int `json:"whiteListEnable"` }
type WebRuleProtocol ¶ added in v1.6.0
type WebRuleSpec ¶
type WebRuleSpec struct { /* 子域名 */ Domain string `json:"domain"` /* 协议: http, https 至少一个为 true */ Protocol *WebRuleProtocol `json:"protocol"` /* HTTP协议的端口号, 如80, 81; 如果 protocol.http 为 true, 至少配置一个端口, 最多添加 5 个 (Optional) */ Port []int `json:"port"` /* HTTPS协议的端口号,如443, 8443; 如果 protocol.https 为 true, 至少配置一个端口, 最多添加 5 个 (Optional) */ HttpsPort []int `json:"httpsPort"` /* 回源类型:A或者CNAME */ OriginType string `json:"originType"` /* originType 为 A 时,需要设置该字段 (Optional) */ OriginAddr []OriginAddrItem `json:"originAddr"` /* 备用的回源地址列表,可以配置为一个域名或者多个 ip 地址 (Optional) */ OnlineAddr []string `json:"onlineAddr"` /* 回源域名,originType为CNAME时需要指定该字段 (Optional) */ OriginDomain *string `json:"originDomain"` /* 转发规则:wrr->带权重的轮询,rr->不带权重的轮询 */ Algorithm string `json:"algorithm"` /* 是否开启 https 强制跳转,当 protocol 为 HTTP_HTTPS 时可以配置该属性 - 0 不开启强制跳转 - 1 开启强制跳转 (Optional) */ ForceJump *int `json:"forceJump"` /* 是否为自定义端口号,0为默认 1为自定义 (Optional) */ CustomPortStatus *int `json:"customPortStatus"` /* 是否开启http回源, 当勾选HTTPS时可以配置该属性 - 0 不开启 - 1 开启 (Optional) */ HttpOrigin *int `json:"httpOrigin"` /* 是否开启 WebSocket, 0 为不开启, 1 为开启 */ WebSocketStatus int `json:"webSocketStatus"` /* 证书内容 (Optional) */ HttpsCertContent *string `json:"httpsCertContent"` /* 证书私钥 (Optional) */ HttpsRsaKey *string `json:"httpsRsaKey"` /* 证书 Id - 如果传 certId, 请确认已经上传了相应的证书 - certId 缺省时网站规则将使用 httpsCertContent, httpsRsaKey 对应的证书 (Optional) */ CertId *string `json:"certId"` }
type WebWhiteListRule ¶ added in v1.10.0
type WebWhiteListRule struct { /* 白名单规则 Id (Optional) */ Id string `json:"id"` /* 白名单规则名称 (Optional) */ Name string `json:"name"` /* 匹配模式:<br>- 0: uri<br>- 1: ip<br>- 2: cookie<br>- 3: geo<br>- 4: header (Optional) */ Mode int `json:"mode"` /* 匹配 key. - mode 为 cookie 时, 为 cookie 的 name - mode 为 header 时, 为 header 的 key (Optional) */ Key string `json:"key"` /* 匹配 value. - mode 为 uri 时, 为要匹配的 uri - mode 为 ip 时, 为引用的 ip 黑白名单 Id - mode 为 cookie 时, 为 cookie 的 value - mode 为 header 时, 为 header 的 value (Optional) */ Value string `json:"value"` /* 匹配规则. mode 为 uri, cookie 和 header 时必传. 包含以下匹配规则 - 0: 完全匹配 - 1: 前缀匹配 - 2: 包含 - 3: 正则匹配 - 4: 后缀匹配 (Optional) */ Pattern int `json:"pattern"` /* 命中后处理动作. - 0: 放行 - 1: CC 防护 (Optional) */ Action int `json:"action"` /* 规则状态. - 0: 关闭 - 1: 开启 (Optional) */ Status int `json:"status"` /* geo 白名单地域列表 (Optional) */ GeoList []Geo `json:"geoList"` }
type WebWhiteListRuleSpec ¶ added in v1.10.0
type WebWhiteListRuleSpec struct { /* 白名单规则名称 */ Name string `json:"name"` /* 模式:<br>- 0: uri<br>- 1: ip<br>- 2: cookie<br>- 3: geo<br>- 4: header */ Mode int `json:"mode"` /* 匹配 key. mode 为 cookie 和 header 时必传. - mode 为 cookie 时, 传 cookie 的 name - mode 为 header 时, 传 header 的 key (Optional) */ Key *string `json:"key"` /* 匹配 value. - mode 为 uri 时, 传要匹配的 uri - mode 为 ip 时, 传引用的 ip 黑白名单 Id - mode 为 cookie 时, 传 cookie 的 value - mode 为 geo 时, 传 geo 区域编码以 ',' 分隔的字符串. 查询 <a href="http://docs.jdcloud.com/anti-ddos-pro/api/describegeoareas">describeGeoAreas</a> 接口获取可设置的地域编码列表 - mode 为 header 时, 传 header 的 value */ Value string `json:"value"` /* 匹配规则. mode 为 uri, cookie 和 header 时必传. 支持以下匹配规则 - 0: 完全匹配 - 1: 前缀匹配 - 2: 包含 - 3: 正则匹配 - 4: 后缀匹配 (Optional) */ Pattern *int `json:"pattern"` /* 命中后处理动作. - 0: 放行 - 1: CC 防护 */ Action int `json:"action"` /* 规则状态. - 0: 关闭 - 1: 开启 */ Status int `json:"status"` }
Source Files ¶
- AlarmConfig.go
- AlarmConfigSpec.go
- AttackTypeCount.go
- BwRepeatMsg.go
- CCAttackLog.go
- CCAttackLogDetail.go
- CCDefaultThresholds.go
- CCProtectionConfig.go
- CCProtectionConfigSpec.go
- CCProtectionDefaultConfig.go
- CCProtectionRule.go
- CCProtectionRuleSpec.go
- CertInfo.go
- CertInfoDescribeSpec.go
- CertInfoModifySpec.go
- Certificate.go
- CertificateSpec.go
- Country.go
- CpsIpResource.go
- CreateInstanceSpec.go
- DDoSAttackLog.go
- EPBSpec.go
- ForwardBlackListRule.go
- ForwardProtectionRule.go
- ForwardProtectionRuleSpec.go
- ForwardRule.go
- ForwardRuleSpec.go
- ForwardWhiteListRule.go
- Geo.go
- Instance.go
- InstanceIdName.go
- IpBwListSpec.go
- IpSet.go
- IpSetSpec.go
- ModifyBlackListRuleOfForwardRuleSpec.go
- ModifyInstanceEPBSpec.go
- ModifyWhiteListRuleOfForwardRuleSpec.go
- OriginAddrItem.go
- PriceSpec.go
- ProtectionOutline.go
- ProtectionStatistics.go
- RenameInstanceSpec.go
- Status.go
- VpcIpResource.go
- WebBlackListRule.go
- WebBlackListRuleSpec.go
- WebRule.go
- WebRuleProtocol.go
- WebRuleSpec.go
- WebWhiteListRule.go
- WebWhiteListRuleSpec.go
Click to show internal directories.
Click to hide internal directories.