models

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 0 Imported by: 11 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acl added in v1.56.0

type Acl struct {

	/* 访问控制规则 Id (Optional) */
	Id string `json:"id"`

	/* 规则优先级 (Optional) */
	Priority int `json:"priority"`

	/* 源IP类型: 0: IP, 1: IP地址库 (Optional) */
	SipType int `json:"sipType"`

	/* 源IP, sipType 为 0 时有效, 否则为空 (Optional) */
	Sip string `json:"sip"`

	/* IP地址库 Id, sipType 为 1 时有效, 否则为空。<br>'-1' IP高防回源地址<br>'-2' Web应用防火墙回源地址 (Optional) */
	SipIpSetId string `json:"sipIpSetId"`

	/* IP地址库名称 (Optional) */
	SipIpSetName string `json:"sipIpSetName"`

	/* 目的IP类型: 0: IP, 1: IP地址库 (Optional) */
	DipType int `json:"dipType"`

	/* 目的IP, dipType 为 0 时有效, 否则为空 (Optional) */
	Dip string `json:"dip"`

	/* IP地址库 Id, dipType 为 1 时有效, 否则为空。<br>'-1' IP高防回源地址<br>'-2' Web应用防火墙回源地址 (Optional) */
	DipIpSetId string `json:"dipIpSetId"`

	/* IP地址库名称 (Optional) */
	DipIpSetName string `json:"dipIpSetName"`

	/* 协议类型: 支持 All Traffic, TCP, UDP, ICMP (Optional) */
	Protocol string `json:"protocol"`

	/* 端口类型: 0: IP, 1: 端口库 (Optional) */
	PortType int `json:"portType"`

	/* 端口或端口范围, portType 为 0 时有效,否则为空 (Optional) */
	Port string `json:"port"`

	/* 端口库Id, portType 为 1 时有效,否则为空 (Optional) */
	PortSetId string `json:"portSetId"`

	/* 端口库名称 (Optional) */
	PortSetName string `json:"portSetName"`

	/* 动作: 0: 放行, 1: 阻断 (Optional) */
	Action int `json:"action"`

	/* 规则状态: 0: 关闭, 1: 打开 (Optional) */
	Enable int `json:"enable"`

	/* 备注 (Optional) */
	Remark string `json:"remark"`
}

type AttackLog

type AttackLog struct {

	/* 公网 IP (Optional) */
	Ip string `json:"ip"`

	/* 公网 IP 类型或绑定资源类型.
	<br>- 0: 未知类型
	<br>- 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知)
	<br>- 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源)
	<br>- 11: 云主机
	<br>- 12: 负载均衡
	<br>- 13: 原生容器实例
	<br>- 14: 原生容器 Pod
	<br>- 2: 云物理服务器
	<br>- 3: Web应用防火墙 IP
	<br>- 4: 托管区公网 IP
	 (Optional) */
	ResourceType int `json:"resourceType"`

	/* 攻击记录 Id (Optional) */
	AttackLogId string `json:"attackLogId"`

	/* 攻击开始时间 (Optional) */
	StartTime string `json:"startTime"`

	/* 攻击结束时间 (Optional) */
	EndTime string `json:"endTime"`

	/* 触发原因. <br>- 0: 未知<br>- 1: 四层<br>- 2: 七层<br>- 3: 四层和七层 (Optional) */
	Cause int `json:"cause"`

	/* 状态, 0: 清洗完成, 1: 清洗中, 2: 黑洞中 (Optional) */
	Status int `json:"status"`

	/* 是否黑洞 (Optional) */
	BlackHole bool `json:"blackHole"`

	/* 攻击流量峰值 (Optional) */
	Peak float64 `json:"peak"`

	/* 攻击流量峰值单位 (Optional) */
	Unit string `json:"unit"`

	/* 攻击类型 (Optional) */
	AttackType []string `json:"attackType"`
}

type AttackTypeCount

type AttackTypeCount struct {

	/* 攻击类型 (Optional) */
	Type string `json:"type"`

	/* 攻击次数 (Optional) */
	Count int `json:"count"`
}

type AutoRenewalSpec added in v1.56.0

type AutoRenewalSpec struct {

	/* 是否开通自动续费, true: 开通自动续费, false: 不开通自动续费  */
	AutoRenewalEnable bool `json:"autoRenewalEnable"`

	/* 购买防护包时长, 开通自动续费时必传. <br>- timeUnit 为 3 时, 可取值 1-9<br>- timeUnit 为 4 时, 可取值 1-3 (Optional) */
	TimeSpan *int `json:"timeSpan"`

	/* 自动续费时长类型, 开通自动续费时必传. <br>- 3: 月<br>- 4: 年 (Optional) */
	TimeUnit *int `json:"timeUnit"`
}

type Country

type Country struct {

	/* 国家或地区名称 (Optional) */
	Label string `json:"label"`

	/* 国家或地区编码 (Optional) */
	Value string `json:"value"`

	/*  (Optional) */
	Children []Country `json:"children"`
}

type CreateAclSpec added in v1.56.0

type CreateAclSpec struct {

	/* 规则优先级  */
	Priority int `json:"priority"`

	/* 源IP类型: 0: IP, 1: IP地址库  */
	SipType int `json:"sipType"`

	/* 源IP, sipType 为 0 时有效, 否则为空 (Optional) */
	Sip *string `json:"sip"`

	/* IP地址库 Id, sipType 为 1 时必传, 可以使用自定义地址库或以下地址库。<br>'-1' IP高防回源地址<br>'-2' Web应用防火墙回源地址 (Optional) */
	SipIpSetId *string `json:"sipIpSetId"`

	/* 目的IP类型: 0: IP, 1: IP地址库  */
	DipType int `json:"dipType"`

	/* 目的IP, dipType 为 0 时有效, 否则为空 (Optional) */
	Dip *string `json:"dip"`

	/* IP地址库 Id, dipType 为 1 时必传, 可以使用自定义地址库或以下地址库。<br>'-1' IP高防回源地址<br>'-2' Web应用防火墙回源地址 (Optional) */
	DipIpSetId *string `json:"dipIpSetId"`

	/* 协议类型: 支持 All Traffic, TCP, UDP, ICMP  */
	Protocol string `json:"protocol"`

	/* 端口类型: 0: 端口或端口范围, 1: 端口库 (Optional) */
	PortType *int `json:"portType"`

	/* 端口或端口范围, portType 为 0 时有效,否则为空 (Optional) */
	Port *string `json:"port"`

	/* 端口库Id, portType 为 1 时必传 (Optional) */
	PortSetId *string `json:"portSetId"`

	/* 动作: 0: 放行, 1: 阻断. 阻断动作对ICMP协议所有端口生效, 所以动作为阻断, 且协议类型为 ICMP 时, 阻断动作端口类型, 端口或端口范围, 端口Id三个字段无效, 可不传  */
	Action int `json:"action"`

	/* 备注  */
	Remark string `json:"remark"`
}

type CreateInstanceSpec

type CreateInstanceSpec struct {

	/* 防护包实例名称, 新购防护包时必传. 长度限制为 1-80 个字符, 只允许包含中文, 字母, 数字, -, ., /, _  */
	Name string `json:"name"`

	/* 可防护 IP 数量, 1, 5, 10, 50, 100, 1000(不限)  */
	IpNum int `json:"ipNum"`

	/* 保底带宽: 10, 20, 30, 50, 单位: Gbps  */
	BpGbps int `json:"bpGbps"`

	/* 弹性带宽: 0, 10, 20, 单位: Gbps  */
	EpGbps int `json:"epGbps"`

	/* 购买防护包时长, 新购防护包时必传. <br>- timeUnit 为 3 时, 可取值 1-9<br>- timeUnit 为 4 时, 可取值 1-3  */
	TimeSpan int `json:"timeSpan"`

	/* 购买时长类型, 新购防护包时必传. <br>- 3: 月<br>- 4: 年  */
	TimeUnit int `json:"timeUnit"`
}

type ExtraOperationSpec

type ExtraOperationSpec struct {

	/* 操作类型. - 1: 购买成功后自动导入 ip, 需要传 ip  */
	OperationType int `json:"operationType"`

	/* 支持弹性公网 IP, 云物理机公网 IP, Web应用防护墙IP, 托管区IP (Optional) */
	Ip *string `json:"ip"`
}

type GeoBlack

type GeoBlack struct {

	/* geo 拦截地域 (Optional) */
	Label string `json:"label"`

	/* geo 拦截地域编码 (Optional) */
	Value string `json:"value"`
}

type Instance

type Instance struct {

	/* 防护包实例 Id (Optional) */
	Id string `json:"id"`

	/* 防护包实例名称 (Optional) */
	Name string `json:"name"`

	/* 防护包实例地域 (Optional) */
	Region string `json:"region"`

	/* 套餐类型. <br>- 1: 独享 IP<br>- 2: 共享 IP (Optional) */
	Type int `json:"type"`

	/* 可防护 IP 个数 (Optional) */
	IpCount int `json:"ipCount"`

	/* 可添加的访问控制规则数量 (Optional) */
	AclLimit int `json:"aclLimit"`

	/* 保底带宽, 单位 Gbps (Optional) */
	BasicBandwidth int `json:"basicBandwidth"`

	/* 弹性带宽, 单位 Gbps (Optional) */
	ElasticBandwidth int `json:"elasticBandwidth"`

	/* 实例过期时间 (Optional) */
	ExpireTime string `json:"expireTime"`

	/* 实例创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 防护对象 (Optional) */
	ProtectedObjects []ProtectedObject `json:"protectedObjects"`

	/* 是否为试用防护包 (Optional) */
	OnTrial bool `json:"onTrial"`

	/* 资源 Id (Optional) */
	ResourceId string `json:"resourceId"`

	/* Tag信息 (Optional) */
	Tags []Tag `json:"tags"`
}

type InstanceBillingId added in v1.56.0

type InstanceBillingId struct {

	/* 防护包实例 Id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 在计费侧对应的包年包月类型的资源Id (Optional) */
	BillingIdBP string `json:"billingIdBP"`

	/* 在计费侧对应的按用量后付费类型的资源Id (Optional) */
	BillingIdEP string `json:"billingIdEP"`
}

type InstanceName added in v1.56.0

type InstanceName struct {

	/* 防护包实例 Id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 防护包实例名称 (Optional) */
	Name string `json:"name"`
}

type InstanceTagEnable added in v1.56.0

type InstanceTagEnable struct {

	/* 防护包实例 Id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 是否可以打标签 (Optional) */
	TagEnable bool `json:"tagEnable"`
}

type InternalOperationRecord added in v1.56.0

type InternalOperationRecord struct {

	/* 用户pin (Optional) */
	Pin string `json:"pin"`

	/* 防护包名称 (Optional) */
	Name string `json:"name"`

	/* 操作类型.<br>- 1: 套餐变更<br>- 2: 防护规则变更<br>- 3: 防护对象变更<br>- 4: IP 地址变更<br>- 5: 防护包名称变更<br>- 6: 防护包过期<br>- 7: 防护包有效性<br>- 8: 删除防护包<br>- 9: IP地址库变更<br>- 10: 端口库变更<br>- 11: 访问控制规则变更 (Optional) */
	Action int `json:"action"`

	/* 操作类型.<br>- 1: 用户操作<br>- 2: 后台操作 (Optional) */
	OpType int `json:"opType"`

	/* 操作详情 (Optional) */
	Info string `json:"info"`

	/* 操作人 (Optional) */
	Operator string `json:"operator"`

	/* 操作时间 (Optional) */
	Time string `json:"time"`
}

type IpResource

type IpResource struct {

	/* 公网 IP 所在区域 (Optional) */
	Region string `json:"region"`

	/* 公网 IP 类型或绑定资源类型.
	<br>- 0: 未知类型
	<br>- 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知)
	<br>- 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源)
	<br>- 11: 云主机
	<br>- 12: 负载均衡
	<br>- 13: 原生容器实例
	<br>- 14: 原生容器 Pod
	<br>- 2: 云物理服务器公网 IP
	<br>- 3: Web应用防火墙 IP
	<br>- 4: 托管区公网 IP
	 (Optional) */
	ResourceType int `json:"resourceType"`

	/* 公网 IP 地址 (Optional) */
	Ip string `json:"ip"`

	/* 带宽上限, 单位 Mbps (Optional) */
	Bandwidth int `json:"bandwidth"`

	/* 请求流量清洗触发值, 单位 bps/s (Optional) */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 报文请求清洗触发值, 单位 pps/s (Optional) */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`

	/* 黑洞阈值 (Optional) */
	BalckHoleThreshold int64 `json:"balckHoleThreshold"`

	/* 绑定防护包 ID, 为空字符时表示未绑定防护包 (Optional) */
	InstanceId string `json:"instanceId"`

	/* 绑定防护包名称, 为空字符串时表示未绑定防护包 (Optional) */
	InstanceName string `json:"instanceName"`

	/* 安全状态. <br>- 0: 安全 <br>- 1: 清洗 <br>- 2: 黑洞 (Optional) */
	SafeStatus int `json:"safeStatus"`
}

type IpResourceFlow

type IpResourceFlow struct {

	/* 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ (Optional) */
	Time []string `json:"time"`

	/* 防护后流量 (Optional) */
	PostProtect []float64 `json:"postProtect"`

	/* 防护前流量 (Optional) */
	PreProtect []float64 `json:"preProtect"`

	/* 流量单位 (Optional) */
	Unit string `json:"unit"`
}

type IpResourceInfo

type IpResourceInfo struct {

	/* 公网 IP 地址 (Optional) */
	Ip string `json:"ip"`

	/* 安全状态. <br>- 0: 安全 <br>- 1: 清洗 <br>- 2: 黑洞 (Optional) */
	SafeStatus int `json:"safeStatus"`

	/* 地域 (Optional) */
	Region string `json:"region"`

	/* 黑洞阈值, 单位 bps (Optional) */
	BlackHoleThreshold int64 `json:"blackHoleThreshold"`

	/* 触发清洗的流量速率, 单位 bps (Optional) */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 触发清洗的包速率, 单位 pps (Optional) */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`
}

type IpSet added in v1.56.0

type IpSet struct {

	/* IP 库 Id (Optional) */
	Id string `json:"id"`

	/* IP 库的名称 (Optional) */
	Name string `json:"name"`

	/* IP 或 IP 段的数组 (Optional) */
	Ip []string `json:"ip"`

	/* 备注 (Optional) */
	Remark string `json:"remark"`
}

type IpSetSpec added in v1.56.0

type IpSetSpec struct {

	/* IP 黑白名单名称  */
	Name string `json:"name"`

	/* IP 或 IP 段的数组  */
	Ip []string `json:"ip"`

	/* 备注  */
	Remark string `json:"remark"`
}

type ModifyAclPrioritySpec added in v1.56.0

type ModifyAclPrioritySpec struct {

	/* 规则优先级  */
	Priority int `json:"priority"`
}

type ModifyAclSpec added in v1.56.0

type ModifyAclSpec struct {

	/* 源IP类型: 0: IP, 1: IP地址库  */
	SipType int `json:"sipType"`

	/* 源IP, sipType 为 0 时有效, 否则为空 (Optional) */
	Sip *string `json:"sip"`

	/* IP地址库 Id, sipType 为 1 时必传, 可以使用自定义地址库或以下地址库。<br>'-1' IP高防回源地址<br>'-2' Web应用防火墙回源地址 (Optional) */
	SipIpSetId *string `json:"sipIpSetId"`

	/* 目的IP类型: 0: IP, 1: IP地址库  */
	DipType int `json:"dipType"`

	/* 目的IP, dipType 为 0 时有效, 否则为空 (Optional) */
	Dip *string `json:"dip"`

	/* IP地址库 Id, dipType 为 1 时必传, 可以使用自定义地址库或以下地址库。<br>'-1' IP高防回源地址<br>'-2' Web应用防火墙回源地址 (Optional) */
	DipIpSetId *string `json:"dipIpSetId"`

	/* 协议类型: 支持 All Traffic, TCP, UDP, ICMP  */
	Protocol string `json:"protocol"`

	/* 端口类型: 0: 端口或端口范围, 1: 端口库 (Optional) */
	PortType *int `json:"portType"`

	/* 端口或端口范围, portType 为 0 时有效,否则为空 (Optional) */
	Port *string `json:"port"`

	/* 端口库Id, portType 为 1 时必传 (Optional) */
	PortSetId *string `json:"portSetId"`

	/* 动作: 0: 放行, 1: 阻断. 阻断动作对ICMP协议所有端口生效, 所以动作为阻断, 且协议类型为 ICMP 时, 阻断动作端口类型, 端口或端口范围, 端口Id三个字段无效, 可不传  */
	Action int `json:"action"`

	/* 备注  */
	Remark string `json:"remark"`
}

type ModifyInstanceNameSpec

type ModifyInstanceNameSpec struct {

	/* 新的实例名称, 长度限制为 1-80 个字符, 只允许包含中文, 字母, 数字, -, ., /, _  */
	Name string `json:"name"`
}

type ModifyInstanceSpec

type ModifyInstanceSpec struct {

	/* 可防护 IP 数量, 1, 5, 10, 50, 100, 1000(不限), 可升级, 不可降级  */
	IpNum int `json:"ipNum"`

	/* 保底带宽: 10, 20, 30, 50, 单位: Gbps, 可升级, 不可降级  */
	BpGbps int `json:"bpGbps"`

	/* 弹性带宽: 0, 10, 20, 单位: Gbps, 可升级, 可降级  */
	EpGbps int `json:"epGbps"`
}

type OperationRecord

type OperationRecord struct {

	/* 操作时间 (Optional) */
	Time string `json:"time"`

	/* 防护包名称 (Optional) */
	Name string `json:"name"`

	/* 操作类型.<br>- 1: 套餐变更<br>- 2: 防护规则变更<br>- 3: 防护对象变更<br>- 4: IP 地址变更<br>- 5: 防护包名称变更<br>- 6: IP地址库变更<br>- 7: 端口库变更<br>- 8: 访问控制规则变更 (Optional) */
	Action int `json:"action"`

	/* 操作详情 (Optional) */
	Info string `json:"info"`

	/* 操作人 (Optional) */
	Operator string `json:"operator"`
}

type OrderSpec

type OrderSpec struct {

	/* 操作类型.<br>- 1: 新购防护包<br>- 3: 升级防护包  */
	BuyType int `json:"buyType"`

	/* 防护包实例 Id, 升级防护包实例时必传 (Optional) */
	Id string `json:"id"`

	/* 防护包实例名称, 新购防护包时必传. 长度限制为 1-80 个字符, 只允许包含中文, 字母, 数字, -, ., /, _ (Optional) */
	Name string `json:"name"`

	/* 套餐类型.<br>- 1: 独享 IP<br>- 2: 共享 IP  */
	PkgType int `json:"pkgType"`

	/* 可防护 IP 数量, 5, 10, 50, 100 1000(不限)  */
	IpNum int `json:"ipNum"`

	/* 保底带宽: 10, 20, 30, 50, 单位: Gbps  */
	BpGbps int `json:"bpGbps"`

	/* 弹性带宽: 0, 10, 20, 单位: Gbps  */
	EpGbps int `json:"epGbps"`

	/* 购买防护包时长, 新购防护包时必传. <br>- timeUnit 为 3 时, 可取值 1-9<br>- timeUnit 为 4 时, 可取值 1-3 (Optional) */
	TimeSpan int `json:"timeSpan"`

	/* 购买时长类型, 新购防护包时必传. <br>- 3: 月<br>- 4: 年 (Optional) */
	TimeUnit int `json:"timeUnit"`

	/* 回调 url  */
	ReturnUrl string `json:"returnUrl"`
}

type PortSet added in v1.56.0

type PortSet struct {

	/* 端口库 Id (Optional) */
	Id string `json:"id"`

	/* 端口库名称 (Optional) */
	Name string `json:"name"`

	/* 端口或端口范围的数组 (Optional) */
	Port []string `json:"port"`

	/* 备注 (Optional) */
	Remark string `json:"remark"`
}

type PortSetSpec added in v1.56.0

type PortSetSpec struct {

	/* 端口库名称  */
	Name string `json:"name"`

	/* 端口或端口范围的数组  */
	Port []string `json:"port"`

	/* 备注  */
	Remark string `json:"remark"`
}

type PriceSpec

type PriceSpec struct {

	/* 操作类型 1: 新购防护包, 3: 升级防护包  */
	BuyType int `json:"buyType"`

	/* 防护包实例 Id, 升级防护包查询价格时必传 (Optional) */
	Id int64 `json:"id"`

	/* 计费类型 1: 按配置 2: 按用量 3: 包年包月  */
	BillingType int `json:"billingType"`

	/* 套餐类型, 1: 独享 IP, 2: 共享 IP  */
	PkgType int `json:"pkgType"`

	/* 可防护 IP 数量, 5, 10, 50, 100, 1000(不限)  */
	IpNum int `json:"ipNum"`

	/* 保底带宽: 0, 10, 20, 30, 50, 单位: Gbps  */
	Bp int `json:"bp"`

	/* 弹性带宽: 0, 10, 20, 单位: Gbps  */
	Ep int `json:"ep"`

	/* 购买防护包时长, 新购防护包时必传
	- timeUnit 为 3 时, 可取值 1-9
	- timeUnit 为 4 时, 可取值 1-3
	 (Optional) */
	TimeSpan int `json:"timeSpan"`

	/* 购买时长类型, 新购防护包时必传
	- 3: 月
	- 4: 年 (Optional) */
	TimeUnit int `json:"timeUnit"`
}

type ProtectedIp

type ProtectedIp struct {

	/* 被防护 IP (Optional) */
	Ip string `json:"ip"`

	/* 安全状态. <br>- 0: 安全<br>- 1: 清洗<br>- 2: 黑洞 (Optional) */
	SafeStatus int `json:"safeStatus"`

	/* 公网 IP 类型或绑定资源类型.
	<br>- 0: 未知类型
	<br>- 1: 弹性公网 IP(IP 为弹性公网 IP, 绑定资源类型未知)
	<br>- 10: 弹性公网 IP(IP 为弹性公网 IP, 但未绑定资源)
	<br>- 11: 云主机
	<br>- 12: 负载均衡
	<br>- 13: 原生容器实例
	<br>- 14: 原生容器 Pod
	<br>- 2: 云物理服务器公网 IP
	<br>- 3: Web应用防火墙 IP
	<br>- 4: 托管区公网 IP
	 (Optional) */
	ResourceType int `json:"resourceType"`

	/* 防护规则类型. <br>- 0: 默认(防护包的防护规则)<br>- 1: IP 自定义规则 (Optional) */
	ProtectionRuleType int `json:"protectionRuleType"`
}

type ProtectedIpSpec

type ProtectedIpSpec struct {

	/* 被防护 IP 列表  */
	Ip []string `json:"ip"`
}

type ProtectedObject

type ProtectedObject struct {

	/* 防护对象类型: eip: 弹性公网 IP, cps: 云物理服务器公网 IP, waf: Web应用防护墙 IP, ccs: 托管区公网 IP (Optional) */
	Type string `json:"type"`

	/* 已防护 IP 个数 (Optional) */
	Count int `json:"count"`

	/* 防护 IP 列表 (Optional) */
	IpList []ProtectedIp `json:"ipList"`
}

type ProtectedObjectsSpec

type ProtectedObjectsSpec struct {

	/* 是否防护弹性公网 IP  */
	Eip bool `json:"eip"`

	/* 是否防护云物理服务器公网 IP  */
	Cps bool `json:"cps"`

	/* 是否防护托管区公网 IP  */
	Ccs bool `json:"ccs"`
}

type ProtectionOutline

type ProtectionOutline struct {

	/* 已防护天数 (Optional) */
	ProtectedDay int64 `json:"protectedDay"`

	/* 已防护 IP 数量 (Optional) */
	ProtectedIpCount int64 `json:"protectedIpCount"`

	/* 7 日攻击次数 (Optional) */
	WeekAttackCount int64 `json:"weekAttackCount"`

	/* 7 日攻击流量峰值 (Optional) */
	WeekAttackPeak float64 `json:"weekAttackPeak"`

	/* 7 日攻击流量单位 (Optional) */
	WeekAttackUnit string `json:"weekAttackUnit"`

	/* 30 日攻击次数 (Optional) */
	MonthAttackCount int64 `json:"monthAttackCount"`

	/* 30 日攻击流量峰值 (Optional) */
	MonthAttackPeak float64 `json:"monthAttackPeak"`

	/* 30 日攻击流量单位 (Optional) */
	MonthAttackUnit string `json:"monthAttackUnit"`

	/* 当前攻击数量 (Optional) */
	CurrentAttackCount int64 `json:"currentAttackCount"`
}

type ProtectionRule

type ProtectionRule struct {

	/* 防护规则类型. <br>- 0: 默认防护包规则<br>- 1: IP 自定义规则 (Optional) */
	Type int `json:"type"`

	/* 清洗触发值 bps (Optional) */
	CleanThresholdBps int64 `json:"cleanThresholdBps"`

	/* 清洗触发值 pps (Optional) */
	CleanThresholdPps int64 `json:"cleanThresholdPps"`

	/* 虚假源开启 (Optional) */
	SpoofIpEnable int `json:"spoofIpEnable"`

	/* 源新建连接限速开启 (Optional) */
	SrcNewConnLimitEnable int `json:"srcNewConnLimitEnable"`

	/* 源新建连接速率 (Optional) */
	SrcNewConnLimitValue int64 `json:"srcNewConnLimitValue"`

	/* 目的新建连接开启 (Optional) */
	DstNewConnLimitEnable int `json:"dstNewConnLimitEnable"`

	/* 目的新建连接速率 (Optional) */
	DstNewConnLimitValue int64 `json:"dstNewConnLimitValue"`

	/* 报文最小长度 (Optional) */
	DatagramRangeMin int64 `json:"datagramRangeMin"`

	/* 报文最大长度 (Optional) */
	DatagramRangeMax int64 `json:"datagramRangeMax"`

	/* geo 拦截地域列表 (Optional) */
	GeoBlackList []GeoBlack `json:"geoBlackList"`

	/* IP 黑名单列表 (Optional) */
	IpBlackList []string `json:"ipBlackList"`

	/* IP 白名单列表 (Optional) */
	IpWhiteList []string `json:"ipWhiteList"`
}

type ProtectionRuleSpec

type ProtectionRuleSpec struct {

	/* 被防护 IP, 缺省时修改防护包实例防护规则 (Optional) */
	Ip *string `json:"ip"`

	/* 防护规则类型, 修改 ip 防护规则时必传, 0: 设置 ip 使用防护包规则, 1: 设置 IP 使用自定义规则 (Optional) */
	Type *int `json:"type"`

	/* 清洗触发值 bps, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	CleanThresholdBps *int64 `json:"cleanThresholdBps"`

	/* 清洗触发值 pps, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	CleanThresholdPps *int64 `json:"cleanThresholdPps"`

	/* 虚假源, 0: 关闭, 1: 开启, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	SpoofIpEnable *int `json:"spoofIpEnable"`

	/* 源新建连接限速, 0: 关闭, 1: 开启, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	SrcNewConnLimitEnable *int `json:"srcNewConnLimitEnable"`

	/* 源新建连接速率, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	SrcNewConnLimitValue *int64 `json:"srcNewConnLimitValue"`

	/* 目的新建连接, 0: 关闭, 1: 开启, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	DstNewConnLimitEnable *int `json:"dstNewConnLimitEnable"`

	/* 目的新建连接速率, 修改实例防护规则或自定义 IP 防护规则时必传 (Optional) */
	DstNewConnLimitValue *int64 `json:"dstNewConnLimitValue"`

	/* 报文最小长度, 取值范围 [1, datagramRangeMax) (Optional) */
	DatagramRangeMin *int64 `json:"datagramRangeMin"`

	/* 报文最大长度, 取值范围 (datagramRangeMin, 1518] (Optional) */
	DatagramRangeMax *int64 `json:"datagramRangeMax"`

	/* geo 拦截地域编码列表. 查询 <a href='http://docs.jdcloud.com/anti-ddos-protection-package/api/describegeoareas'>describeGeoAreas</a> 接口获取可设置的地域编码列表 (Optional) */
	GeoBlackList []string `json:"geoBlackList"`

	/* IP 黑名单列表 (Optional) */
	IpBlackList []string `json:"ipBlackList"`

	/* IP 白名单列表 (Optional) */
	IpWhiteList []string `json:"ipWhiteList"`
}

type Tag added in v1.56.0

type Tag struct {

	/* Tag键  */
	Key string `json:"key"`

	/* Tag值  */
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL