Documentation
¶
Index ¶
- type AlarmConfig
- type AlarmConfigSpec
- type AttackTypeCount
- type BwRepeatMsg
- type CCAttackLogDetail
- type CCDefaultThresholds
- type CCProtectionConfig
- type CCProtectionConfigSpec
- type CCProtectionDefaultConfig
- type CCProtectionRule
- type CCProtectionRuleSpec
- type CCSpec
- type CcIpLimitSpec
- type CertInfo
- type CertInfoDescribeSpec
- type CertInfoModifySpec
- type Certificate
- type CertificateSpec
- type Country
- type CreateInstanceSpec
- type DDosAttackLog
- type EPBSpec
- type ForwardProtectionRule
- type ForwardProtectionRuleSpec
- type ForwardRule
- type ForwardRuleSpec
- type GeoBlack
- type Instance
- type InstanceIdName
- type IpBwListSpec
- type ModifyInstanceEPBSpec
- type OriginAddrItem
- type PriceSpec
- type ProtectionOutline
- type ProtectionStatistics
- type RenameInstanceSpec
- type Status
- type VpcIpResource
- type WebRule
- type WebRuleProtocol
- type WebRuleSpec
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 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 int64 `json:"id"`
/* CC 防护规则对应的网站规则 ID (Optional) */
WebRuleId int64 `json:"webRuleId"`
/* CC 防护规则对应的实例 ID (Optional) */
InstanceId int64 `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"`
/* 阻断持续时间, 单位为分钟, 取值范围[1, 1440] (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"`
/* 阻断持续时间, 单位为分钟, 取值范围[1, 1440] */
BlockTime int64 `json:"blockTime"`
}
type CCSpec ¶
type CCSpec struct {
/* cc防护模式:0正常 1宽松 2紧急 3自定义 (Optional) */
CcProtectMode *int `json:"ccProtectMode"`
/* cc阈值大小 (Optional) */
CcThreshold *int64 `json:"ccThreshold"`
/* ccProtectMode为自定义模式时,指定每个Host的防护阈值 (Optional) */
HostQps *int64 `json:"hostQps"`
/* ccProtectMode为自定义模式时,指定每个Host+URI的防护阈值 (Optional) */
HostUrlQps *int64 `json:"hostUrlQps"`
/* ccProtectMode为自定义模式时,指定每个源IP对Host的防护阈值 (Optional) */
IpHostQps *int64 `json:"ipHostQps"`
/* ccProtectMode为自定义模式时,指定每个源IP对Host+URI的防护阈值 (Optional) */
IpHostUrlQps *int64 `json:"ipHostUrlQps"`
}
type CcIpLimitSpec ¶ added in v1.0.3
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 *int64 `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 int64 `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 CreateInstanceSpec ¶ added in v1.6.0
type CreateInstanceSpec struct {
/* 实例 Id, 升级时必传 (Optional) */
Id *int64 `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
*/
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.0.3
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 int64 `json:"instanceId"`
/* 高防实例名称 (Optional) */
Name string `json:"name"`
}
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 []GeoBlack `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 拦截地域编码列表, 可设置编码列表由 describeGeoAreas 接口查询可得 (Optional) */
GeoBlackList []string `json:"geoBlackList"`
}
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 */
Protocol string `json:"protocol"`
/* 端口号, 取值范围[1, 65535] */
Port int `json:"port"`
/* 转发规则
- wrr 带权重的轮询
- wlc 加权最小连接
- 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 Instance ¶
type Instance struct {
/* 实例 Id (Optional) */
Id int64 `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"`
/* 非网站类规则数 (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紧急、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 ModifyInstanceEPBSpec ¶ added in v1.6.0
type ModifyInstanceEPBSpec struct {
/* 弹性带宽: 单位 Gbps */
Ep int `json:"ep"`
}
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 int64 `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 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"`
/* (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 int64 `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"`
/* webSocketStatus, 0: 关闭, 1: 开启 (Optional) */
WebSocketStatus int `json:"webSocketStatus"`
}
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 *int64 `json:"certId"`
}
Source Files
¶
- AlarmConfig.go
- AlarmConfigSpec.go
- AttackTypeCount.go
- BwRepeatMsg.go
- CCAttackLogDetail.go
- CCDefaultThresholds.go
- CCProtectionConfig.go
- CCProtectionConfigSpec.go
- CCProtectionDefaultConfig.go
- CCProtectionRule.go
- CCProtectionRuleSpec.go
- CCSpec.go
- CcIpLimitSpec.go
- CertInfo.go
- CertInfoDescribeSpec.go
- CertInfoModifySpec.go
- Certificate.go
- CertificateSpec.go
- Country.go
- CreateInstanceSpec.go
- DDosAttackLog.go
- EPBSpec.go
- ForwardProtectionRule.go
- ForwardProtectionRuleSpec.go
- ForwardRule.go
- ForwardRuleSpec.go
- GeoBlack.go
- Instance.go
- InstanceIdName.go
- IpBwListSpec.go
- ModifyInstanceEPBSpec.go
- OriginAddrItem.go
- PriceSpec.go
- ProtectionOutline.go
- ProtectionStatistics.go
- RenameInstanceSpec.go
- Status.go
- VpcIpResource.go
- WebRule.go
- WebRuleProtocol.go
- WebRuleSpec.go
Click to show internal directories.
Click to hide internal directories.