ulb

package
v0.22.17 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Overview

Package ulb include resources of ucloud ulb product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLogConfigSet added in v0.22.11

type AccessLogConfigSet struct {

	// (应用型专用)是否开启访问日志记录功能
	Enabled bool

	// (应用型专用)用于存储访问日志的bucket
	US3BucketName string

	// (应用型专用)上传访问日志到bucket所需的token
	US3TokenId string
}

AccessLogConfigSet - (应用型专用)访问日志相关配置

type AddTargetsParamTargets added in v0.22.6

type AddTargetsParamTargets struct {

	// 服务节点是否启用。默认值true
	Enabled *bool `required:"false"`

	// 服务节点是否为备节点。默认值false
	IsBackup *bool `required:"false"`

	// 服务节点的端口。限定取值:[1-65535],默认值80
	Port *int `required:"false"`

	// 服务节点的IP。在IP类型时,必传
	ResourceIP *string `required:"false"`

	// 服务节点的资源ID。在非IP类型时,必传
	ResourceId *string `required:"false"`

	// 服务节点的类型。限定枚举值:"UHost" / "UNI"/"UPM"/"IP",默认值:"UHost";非IP类型,如果该资源有多个IP,将只能添加主IP;非IP类型,展示时,会显示相关资源信息,IP类型只展示IP信息。在相关资源被删除时,非IP类型会把相关资源从lb中剔除,IP类型不保证这个逻辑
	ResourceType *string `required:"false"`

	// 服务节点的子网资源ID。在IP类型时,必传
	SubnetId *string `required:"false"`

	// 服务节点的VPC资源ID。在IP类型时,必传
	VPCId *string `required:"false"`

	// 服务节点的权重。限定取值:[1-100],默认值1;仅在加权轮询算法时有效
	Weight *int `required:"false"`
}

AddTargetsParamTargets is request schema for complex param

type AddTargetsRequest added in v0.22.6

type AddTargetsRequest struct {
	request.CommonBase

	// 监听器的ID
	ListenerId *string `required:"true"`

	// 负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	//
	Targets []AddTargetsParamTargets `required:"false"`
}

AddTargetsRequest is request schema for AddTargets action

type AddTargetsResponse added in v0.22.6

type AddTargetsResponse struct {
	response.CommonBase

	// 服务节点信息
	Targets []TargetSet
}

AddTargetsResponse is response schema for AddTargets action

type AllocateBackendBatchRequest

type AllocateBackendBatchRequest struct {
	request.CommonBase

	//
	ApiVersion *int `required:"false"`

	//
	Backends []string `required:"true"`

	//
	ULBId *string `required:"true"`

	//
	VServerId *string `required:"true"`
}

AllocateBackendBatchRequest is request schema for AllocateBackendBatch action

type AllocateBackendBatchResponse

type AllocateBackendBatchResponse struct {
	response.CommonBase

	//
	BackendSet []BackendSet
}

AllocateBackendBatchResponse is response schema for AllocateBackendBatch action

type AllocateBackendRequest

type AllocateBackendRequest struct {
	request.CommonBase

	// 后端实例状态开关,枚举值: 1:启用; 0:禁用 默认为启用
	Enabled *int `required:"false"`

	// rs是否为backup,默认为00:普通rs1:backup的rs
	IsBackup *int `required:"false"`

	// 所添加的后端资源服务端口,取值范围[1-65535],默认80
	Port *int `required:"false"`

	// 所添加的后端服务器的资源实例IP,当ResourceType 为 UHybrid 或 IP时有效,且必填;与ResourceId二选一必填
	ResourceIP *string `required:"false"`

	// 所添加的后端资源的资源ID;与ResourceIP二选一必填
	ResourceId *string `required:"false"`

	// 所添加的后端资源的类型,枚举值:UHost -> 云主机;UNI -> 虚拟网卡;UPM -> 物理云主机;UHybrid->混合云主机;CUBE->Cube, IP->IP类型;默认值为UHost。报文转发模式不支持UHybrid、CUBE、IP
	ResourceType *string `required:"true"`

	// 所添加的后端服务器所在的子网,当ResourceType 为 UHybrid 或 IP 时有效,且必填
	SubnetId *string `required:"false"`

	// 传统型负载均衡实例的ID
	ULBId *string `required:"true"`

	// 所添加的后端服务器所在的vpc,当ResourceType 为 UHybrid 或 IP 时有效,且必填
	VPCId *string `required:"false"`

	// VServer实例的ID
	VServerId *string `required:"true"`

	// 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1
	Weight *int `required:"false"`
}

AllocateBackendRequest is request schema for AllocateBackend action

type AllocateBackendResponse

type AllocateBackendResponse struct {
	response.CommonBase

	// 所添加的后端资源在CLB中的对象ID,(为CLB系统中使用,与资源自身ID无关),可用于 UpdateBackendAttribute/UpdateBackendAttributeBatch/ReleaseBackend
	BackendId string
}

AllocateBackendResponse is response schema for AllocateBackend action

type BackendMsg added in v0.22.7

type BackendMsg struct {

	// rs的资源ID
	BackendId string

	// 修改rs返回的消息
	SubMessage string

	// 修改rs的返回值
	SubRetCode int
}

BackendMsg - ulb修rs状态时返回的信息

type BackendSet

type BackendSet struct {

	//
	BackendId string

	//
	ResourceId string
}

BackendSet -

type BindSSLRequest added in v0.6.10

type BindSSLRequest struct {
	request.CommonBase

	// SSL证书的Id
	SSLId *string `required:"true"`

	// 所绑定CLB实例ID
	ULBId *string `required:"true"`

	// 所绑定VServer实例ID
	VServerId *string `required:"true"`
}

BindSSLRequest is request schema for BindSSL action

type BindSSLResponse added in v0.6.10

type BindSSLResponse struct {
	response.CommonBase
}

BindSSLResponse is response schema for BindSSL action

type BindSecurityPolicy added in v0.21.39

type BindSecurityPolicy struct {

	// 加密套件
	SSLCiphers []string

	// 安全策略组ID
	SecurityPolicyId string

	// 安全策略组名称
	SecurityPolicyName string

	// 安全策略类型 0:预定义 1:自定义
	SecurityPolicyType int

	// TLS最低版本
	TLSVersion string
}

BindSecurityPolicy - VServer绑定的安全策略组信息

type BindVServerInfo added in v0.21.39

type BindVServerInfo struct {

	// VServer端口
	Port int

	// ULB的ID
	ULBId string

	// 绑定的VServerId
	VServerId string

	// 绑定的VServer名称
	VServerName string
}

BindVServerInfo - 绑定安全策略的VServer信息

type Certificate added in v0.22.11

type Certificate struct {

	// 是否为默认证书
	IsDefault bool

	// 证书ID
	SSLId string
}

Certificate - (应用型专用)服务器证书信息

type CreateListenerParamHealthCheckConfig added in v0.22.6

type CreateListenerParamHealthCheckConfig struct {

	// (应用型专用)HTTP检查域名
	Domain *string `required:"false"`

	// 是否开启健康检查功能。暂时不支持关闭。默认值为:true
	Enabled *bool `required:"false"`

	// (应用型专用)HTTP检查路径
	Path *string `required:"false"`

	// 健康检查方式。应用型限定取值:“Port”/"HTTP",默认值:“Port”
	Type *string `required:"false"`
}

CreateListenerParamHealthCheckConfig is request schema for complex param

type CreateListenerParamStickinessConfig added in v0.22.6

type CreateListenerParamStickinessConfig struct {

	// (应用型专用)自定义Cookie。当StickinessType取值"UserDefined"时有效;限定字符长度:[0-255]
	CookieName *string `required:"false"`

	// 是否开启会话保持功能。应用型负载均衡实例基于Cookie实现;默认值为:false
	Enabled *bool `required:"false"`

	// (应用型专用)Cookie处理方式。限定枚举值:"ServerInsert" / "UserDefined";默认值为:“ServerInsert”
	Type *string `required:"false"`
}

CreateListenerParamStickinessConfig is request schema for complex param

type CreateListenerRequest added in v0.22.6

type CreateListenerRequest struct {
	request.CommonBase

	// (应用型专用)服务器默认证书ID。仅HTTPS监听支持,且必填;暂时只支持最大长度为1
	Certificates []string `required:"false"`

	// (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩。默认值为:false
	CompressionEnabled *bool `required:"false"`

	// (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启;默认值为:false
	HTTP2Enabled *bool `required:"false"`

	//
	HealthCheckConfig *CreateListenerParamHealthCheckConfig `required:"false"`

	// 连接空闲超时时间。单位:秒。应用型限定取值:[1-86400];默认值60
	IdleTimeout *int `required:"false"`

	// 监听器的监听端口。应用型限定取值:[1-65535],默认值80
	ListenerPort *int `required:"false"`

	// 监听协议。应用型限定取值:“HTTP”/"HTTPS",默认值“HTTP”
	ListenerProtocol *string `required:"false"`

	// 负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	// 监听器的名称。限定字符长度:[1-255];限定特殊字符,仅支持:“-”,“_”,“.”;默认值:listener
	Name *string `required:"false"`

	// (应用型专用)是否开启HTTP重定向到HTTPS。仅HTTP监听支持开启;默认值为:false
	RedirectEnabled *bool `required:"false"`

	// (应用型专用)重定向端口。限定取值:[1-65535],默认值443
	RedirectPort *int `required:"false"`

	// 监听器的备注信息。限定字符长度:[0-255]
	Remark *string `required:"false"`

	// 负载均衡算法。应用型限定取值:"Roundrobin"/"Source"/"WeightRoundrobin"/" Leastconn"/"Backup",默认值"Roundrobin"
	Scheduler *string `required:"false"`

	// (应用型专用)安全策略组ID。仅HTTPS监听支持绑定;默认值“Default”,表示绑定原生策略
	SecurityPolicyId *string `required:"false"`

	//
	StickinessConfig *CreateListenerParamStickinessConfig `required:"false"`
}

CreateListenerRequest is request schema for CreateListener action

type CreateListenerResponse added in v0.22.6

type CreateListenerResponse struct {
	response.CommonBase

	// 监听器的ID
	ListenerId string
}

CreateListenerResponse is response schema for CreateListener action

type CreateLoadBalancerRequest added in v0.22.6

type CreateLoadBalancerRequest struct {
	request.CommonBase

	// 付费模式。限定枚举值:"Year" / "Month"/"Day"/"Dynamic",默认值为:“Month”
	ChargeType *string `required:"false"`

	// 代金券code
	CouponId *string `required:"false"`

	// 负载均衡实例的IP协议。限定枚举值:"IPv4" / "IPv6"/"DualStack",默认值为:“IPv4”
	IPVersion *string `required:"false"`

	// 负载均衡实例的名称。默认值:lb;特殊字符仅支持:“-”,“_”,“.”;限定字符长度:[1-255]
	Name *string `required:"false"`

	// 购买的时长, 默认: 1; 0-> 购买至月末(0只在月付费有效,其余付费模式传0,实际收费按一个周期计费)
	Quantity *int `required:"false"`

	// 负载均衡实例的备注信息。限定字符长度:[0-255]
	Remark *string `required:"false"`

	// 负载均衡实例所属的子网资源ID。负载均衡实例的内网VIP和SNAT场景的源IP限定在该子网内;指定子网不影响添加后端服务节点时的范围,依旧是整个VPC下支持的资源
	SubnetId *string `required:"true"`

	// 负载均衡实例所属的业务组ID。默认值为“Default”; 传空则为Default业务组
	Tag *string `required:"false"`

	// 负载均衡实例的类型。限定枚举值:"Application" / "Network",默认值:"Application"
	Type *string `required:"false"`

	// 负载均衡实例所属的VPC资源ID
	VPCId *string `required:"true"`
}

CreateLoadBalancerRequest is request schema for CreateLoadBalancer action

type CreateLoadBalancerResponse added in v0.22.6

type CreateLoadBalancerResponse struct {
	response.CommonBase

	// 负载均衡实例的ID
	LoadBalancerId string
}

CreateLoadBalancerResponse is response schema for CreateLoadBalancer action

type CreatePolicyGroupRequest added in v0.14.3

type CreatePolicyGroupRequest struct {
	request.CommonBase

	// 内容转发策略组名称,默认为空
	GroupName *string `required:"false"`
}

CreatePolicyGroupRequest is request schema for CreatePolicyGroup action

type CreatePolicyGroupResponse added in v0.14.3

type CreatePolicyGroupResponse struct {
	response.CommonBase

	// 内容转发策略组的Id
	GroupId string
}

CreatePolicyGroupResponse is response schema for CreatePolicyGroup action

type CreatePolicyRequest

type CreatePolicyRequest struct {
	request.CommonBase

	// 内容转发策略应用的传统型负载均衡后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId
	BackendId []string `required:"true"`

	// 内容转发规则中域名的匹配方式,默认与原本一致。枚举值:Regular,正则;Wildcard,泛域名
	DomainMatchMode *string `required:"false"`

	// 内容转发匹配字段
	Match *string `required:"true"`

	// 策略优先级,1-9999;只针对路径规则生效
	PolicyPriority *int `required:"false"`

	// 内容转发匹配字段的类型
	Type *string `required:"false"`

	// 需要添加内容转发策略的传统型负载均衡实例ID
	ULBId *string `required:"true"`

	// 需要添加内容转发策略的传统型负载均衡VServer实例ID
	VServerId *string `required:"true"`
}

CreatePolicyRequest is request schema for CreatePolicy action

type CreatePolicyResponse

type CreatePolicyResponse struct {
	response.CommonBase

	// 内容转发策略ID
	PolicyId string
}

CreatePolicyResponse is response schema for CreatePolicy action

type CreateRuleParamRuleActions added in v0.22.11

type CreateRuleParamRuleActions struct {

	//
	ForwardConfig *CreateRuleParamRuleActionsForwardConfig `required:"false"`

	// 动作类型。限定枚举值:"Forward";RuleActions暂支持长度为1
	Type *string `required:"true"`
}

CreateRuleParamRuleActions is request schema for complex param

type CreateRuleParamRuleActionsForwardConfig added in v0.22.11

type CreateRuleParamRuleActionsForwardConfig struct {

	//
	Targets []CreateRuleParamRuleActionsForwardConfigTargets `required:"false"`
}

CreateRuleParamRuleActionsForwardConfig is request schema for complex param

type CreateRuleParamRuleActionsForwardConfigTargets added in v0.22.11

type CreateRuleParamRuleActionsForwardConfigTargets struct {

	// 转发的后端服务节点的标识ID。限定在监听器的服务节点池里;数组长度可以是0;转发服务节点配置的数组长度不为0时,Id必填
	Id *string `required:"false"`

	// 转发的后端服务节点的权重。仅监听器负载均衡算法是加权轮询是有效
	Weight *int `required:"false"`
}

CreateRuleParamRuleActionsForwardConfigTargets is request schema for complex param

type CreateRuleParamRuleConditions added in v0.22.11

type CreateRuleParamRuleConditions struct {

	//
	HostConfig *CreateRuleParamRuleConditionsHostConfig `required:"false"`

	//
	PathConfig *CreateRuleParamRuleConditionsPathConfig `required:"false"`

	// 匹配条件类型。限定枚举值:"Host"/"Path"
	Type *string `required:"true"`
}

CreateRuleParamRuleConditions is request schema for complex param

type CreateRuleParamRuleConditionsHostConfig added in v0.22.11

type CreateRuleParamRuleConditionsHostConfig struct {

	// 匹配方式。限定枚举值:"Regular"/"Wildcard",默认值:"Regular"
	MatchMode *string `required:"false"`

	// 取值。暂时只支持数组长度为1;取值需符合相关匹配方式的条件;域名匹配时必填
	Values []string `required:"false"`
}

CreateRuleParamRuleConditionsHostConfig is request schema for complex param

type CreateRuleParamRuleConditionsPathConfig added in v0.22.11

type CreateRuleParamRuleConditionsPathConfig struct {

	// 取值。暂时只支持数组长度为1;取值需符合相关条件;路径匹配时必填
	Values []string `required:"false"`
}

CreateRuleParamRuleConditionsPathConfig is request schema for complex param

type CreateRuleRequest added in v0.22.11

type CreateRuleRequest struct {
	request.CommonBase

	// 监听器的ID
	ListenerId *string `required:"true"`

	// 负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	// 当转发的服务节点为空时,规则是否忽略。默认值true
	Pass *bool `required:"false"`

	//
	RuleActions []CreateRuleParamRuleActions `required:"false"`

	//
	RuleConditions []CreateRuleParamRuleConditions `required:"false"`
}

CreateRuleRequest is request schema for CreateRule action

type CreateRuleResponse added in v0.22.11

type CreateRuleResponse struct {
	response.CommonBase

	// 转发规则的ID
	RuleId string
}

CreateRuleResponse is response schema for CreateRule action

type CreateSSLRequest added in v0.6.10

type CreateSSLRequest struct {
	request.CommonBase

	// CA证书
	CaCert *string `required:"false"`

	// 加密证书的私钥
	PrivateKey *string `required:"false"`

	// SSL证书的完整内容,包括用户证书、加密证书的私钥、CA证书
	SSLContent *string `required:"false"`

	// SSL证书的名字,默认值不为空
	SSLName *string `required:"true"`

	// 所添加的SSL证书类型,目前只支持Pem格式
	SSLType *string `required:"false"`

	// USSL证书的ID
	USSLId *string `required:"false"`

	// 用户的证书
	UserCert *string `required:"false"`
}

CreateSSLRequest is request schema for CreateSSL action

type CreateSSLResponse added in v0.6.10

type CreateSSLResponse struct {
	response.CommonBase

	// SSL证书的Id
	SSLId string
}

CreateSSLResponse is response schema for CreateSSL action

type CreateSecurityPolicyRequest added in v0.21.39

type CreateSecurityPolicyRequest struct {
	request.CommonBase

	// 加密套件
	SSLCiphers []string `required:"true"`

	// 安全策略名称
	SecurityPolicyName *string `required:"true"`

	// TLS版本
	TLSVersion *string `required:"true"`
}

CreateSecurityPolicyRequest is request schema for CreateSecurityPolicy action

type CreateSecurityPolicyResponse added in v0.21.39

type CreateSecurityPolicyResponse struct {
	response.CommonBase

	// 安全策略ID
	SecurityPolicyId string
}

CreateSecurityPolicyResponse is response schema for CreateSecurityPolicy action

type CreateULBRequest

type CreateULBRequest struct {
	request.CommonBase

	// CLB 所属的业务组ID,如果不传则使用默认的业务组
	BusinessId *string `required:"false"`

	// 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费
	ChargeType *string `required:"false"`

	// 防火墙ID,如果不传,则默认不绑定防火墙
	FirewallId *string `required:"false"`

	// 创建的CLB是否为内网模式
	InnerMode *string `required:"false"`

	// CLB 监听器类型,外网CLB默认RequestProxy,内网ULB默认PacketsTransmit。枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发。
	ListenType *string `required:"false"`

	// 创建的CLB是否为外网模式,默认即为外网模式
	OuterMode *string `required:"false"`

	// 【该字段已废弃,请谨慎使用】
	PrivateIp *string `required:"false" deprecated:"true"`

	// 备注
	Remark *string `required:"false"`

	// CLB 所属的子网ID,如果不传则随机选择一个。
	SubnetId *string `required:"false"`

	// 业务组
	Tag *string `required:"false"`

	// 负载均衡的名字,默认值为“ULB”
	ULBName *string `required:"false"`

	// CLB所在的VPC的ID。 如果不传则使用默认的VPC,若不传且无默认VPC则接口报错
	VPCId *string `required:"false"`
}

CreateULBRequest is request schema for CreateULB action

type CreateULBResponse

type CreateULBResponse struct {
	response.CommonBase

	// IPv6地址Id
	IPv6AddressId string

	// 传统型负载均衡实例的Id
	ULBId string
}

CreateULBResponse is response schema for CreateULB action

type CreateVServerRequest

type CreateVServerRequest struct {
	request.CommonBase

	// ListenType为RequestProxy时表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;ListenType为PacketsTransmit时表示连接保持的时间,单位:秒,取值范围:[60,900],0 表示禁用连接保持
	ClientTimeout *int `required:"false"`

	// 根据MonitorType确认; 当MonitorType为Path时,此字段有意义,代表HTTP检查域名
	Domain *string `required:"false"`

	// 0:关闭 1:开启,用于数据压缩功能
	EnableCompression *int `required:"false"`

	// 0:关闭 1:开启,用于开启http2功能;默认值为0
	EnableHTTP2 *int `required:"false"`

	// 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能
	ForwardPort *int `required:"false"`

	// VServer后端端口,取值范围[1-65535];默认值为80
	FrontendPort *int `required:"false"`

	// 监听器类型,枚举值,RequestProxy ,请求代理;PacketsTransmit ,报文转发。默认为RequestProxy
	ListenType *string `required:"false"`

	// VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> 最小连接数;Backup ->主备模式。ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin,Backup在请求代理和报文转发中使用。默认为:"Roundrobin"
	Method *string `required:"false"`

	// 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测;Customize -> UDP检查请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path;报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize,默认值为Ping
	MonitorType *string `required:"false"`

	// 根据MonitorType确认; 当MonitorType为Path时,此字段有意义,代表HTTP检查路径
	Path *string `required:"false"`

	// 根据PersistenceType确认; None和ServerInsert: 此字段无意义; UserDefined:此字段传入自定义会话保持String
	PersistenceInfo *string `required:"false"`

	// VServer会话保持方式,默认关闭会话保持。枚举值:None -> 关闭;ServerInsert -> 自动生成KEY;UserDefined -> 用户自定义KEY。
	PersistenceType *string `required:"false"`

	// VServer实例的协议,请求代理模式下有 HTTP、HTTPS、TCP,报文转发下有 TCP,UDP。默认为“HTTP"
	Protocol *string `required:"false"`

	// 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文
	RequestMsg *string `required:"false"`

	// 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文
	ResponseMsg *string `required:"false"`

	// 安全策略组ID,默认值'Default'
	SecurityPolicyId *string `required:"false"`

	// 传统型负载均衡实例ID
	ULBId *string `required:"true"`

	// VServer实例名称,默认为"VServer"
	VServerName *string `required:"false"`
}

CreateVServerRequest is request schema for CreateVServer action

type CreateVServerResponse

type CreateVServerResponse struct {
	response.CommonBase

	// VServer实例的Id
	VServerId string
}

CreateVServerResponse is response schema for CreateVServer action

type DeleteListenerRequest added in v0.22.6

type DeleteListenerRequest struct {
	request.CommonBase

	// 应用型负载均衡监听器的ID
	ListenerId *string `required:"true"`

	// 应用型负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	// 是否关闭相关监听器的重定向功能。默认为false,即有其他监听器重定向到本监听器,则删除失败。为true时,会先关闭相关监听器的重定向功能,再删除本监听器。默认值为:false
	RelatedRedirectDisabled *bool `required:"true"`
}

DeleteListenerRequest is request schema for DeleteListener action

type DeleteListenerResponse added in v0.22.6

type DeleteListenerResponse struct {
	response.CommonBase
}

DeleteListenerResponse is response schema for DeleteListener action

type DeleteLoadBalancerRequest added in v0.22.6

type DeleteLoadBalancerRequest struct {
	request.CommonBase

	// 应用型负载均衡实例的ID
	LoadBalancerId *string `required:"true"`
}

DeleteLoadBalancerRequest is request schema for DeleteLoadBalancer action

type DeleteLoadBalancerResponse added in v0.22.6

type DeleteLoadBalancerResponse struct {
	response.CommonBase
}

DeleteLoadBalancerResponse is response schema for DeleteLoadBalancer action

type DeletePolicyGroupRequest added in v0.14.3

type DeletePolicyGroupRequest struct {
	request.CommonBase

	// 内容转发策略组ID
	GroupId *string `required:"true"`
}

DeletePolicyGroupRequest is request schema for DeletePolicyGroup action

type DeletePolicyGroupResponse added in v0.14.3

type DeletePolicyGroupResponse struct {
	response.CommonBase
}

DeletePolicyGroupResponse is response schema for DeletePolicyGroup action

type DeletePolicyRequest

type DeletePolicyRequest struct {
	request.CommonBase

	// 【该字段已废弃,请谨慎使用】
	GroupId *string `required:"false" deprecated:"true"`

	// CLB的内容转发策略ID
	PolicyId *string `required:"true"`

	// CLB的VServer 资源ID
	VServerId *string `required:"false"`
}

DeletePolicyRequest is request schema for DeletePolicy action

type DeletePolicyResponse

type DeletePolicyResponse struct {
	response.CommonBase
}

DeletePolicyResponse is response schema for DeletePolicy action

type DeleteRuleRequest added in v0.22.6

type DeleteRuleRequest struct {
	request.CommonBase

	// 应用型负载均衡监听器的ID
	ListenerId *string `required:"true"`

	// 应用型负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	// 应用型负载均衡的转发规则的ID
	RuleId *string `required:"true"`
}

DeleteRuleRequest is request schema for DeleteRule action

type DeleteRuleResponse added in v0.22.6

type DeleteRuleResponse struct {
	response.CommonBase
}

DeleteRuleResponse is response schema for DeleteRule action

type DeleteSSLRequest added in v0.6.10

type DeleteSSLRequest struct {
	request.CommonBase

	// SSL证书的ID
	SSLId *string `required:"true"`
}

DeleteSSLRequest is request schema for DeleteSSL action

type DeleteSSLResponse added in v0.6.10

type DeleteSSLResponse struct {
	response.CommonBase
}

DeleteSSLResponse is response schema for DeleteSSL action

type DeleteSecurityPolicyRequest added in v0.21.39

type DeleteSecurityPolicyRequest struct {
	request.CommonBase

	// 安全策略ID
	SecurityPolicyId *string `required:"true"`
}

DeleteSecurityPolicyRequest is request schema for DeleteSecurityPolicy action

type DeleteSecurityPolicyResponse added in v0.21.39

type DeleteSecurityPolicyResponse struct {
	response.CommonBase
}

DeleteSecurityPolicyResponse is response schema for DeleteSecurityPolicy action

type DeleteULBRequest

type DeleteULBRequest struct {
	request.CommonBase

	// 删除clb时是否释放绑定的EIP,false标识只解绑EIP,true表示会释放绑定的EIP,默认是false。Anycast IP 此参数无效
	ReleaseEip *bool `required:"false"`

	// 传统型负载均衡实例的ID
	ULBId *string `required:"true"`
}

DeleteULBRequest is request schema for DeleteULB action

type DeleteULBResponse

type DeleteULBResponse struct {
	response.CommonBase
}

DeleteULBResponse is response schema for DeleteULB action

type DeleteVServerRequest

type DeleteVServerRequest struct {
	request.CommonBase

	// 传统型负载均衡实例的ID
	ULBId *string `required:"true"`

	// CLB下的VServer实例的ID
	VServerId *string `required:"true"`
}

DeleteVServerRequest is request schema for DeleteVServer action

type DeleteVServerResponse

type DeleteVServerResponse struct {
	response.CommonBase
}

DeleteVServerResponse is response schema for DeleteVServer action

type DescribeListenersRequest added in v0.22.11

type DescribeListenersRequest struct {
	request.CommonBase

	// 数据分页值,默认为100
	Limit *int `required:"false"`

	// 应用型负载均衡监听器的ID。若指定ListenerId,则忽略LoadBalancerId。ListenId和LoadBalancerId必选其一
	ListenerId *string `required:"false"`

	// 应用型负载均衡实例的ID。未指定ListenId,则描述指定的LoadBalancerId下的所有监听器。
	LoadBalancerId *string `required:"false"`

	// 数据偏移量,默认为0
	Offset *int `required:"false"`
}

DescribeListenersRequest is request schema for DescribeListeners action

type DescribeListenersResponse added in v0.22.11

type DescribeListenersResponse struct {
	response.CommonBase

	// 负载均衡监听器信息
	Listeners []Listener

	// 满足条件的负载均衡监听器总数
	TotalCount int
}

DescribeListenersResponse is response schema for DescribeListeners action

type DescribeLoadBalancersRequest added in v0.22.11

type DescribeLoadBalancersRequest struct {
	request.CommonBase

	// 数据分页值,默认为100
	Limit *string `required:"false"`

	// 负载均衡实例的ID。必须是同一类型的实例,若指定了实例ID,将忽略除Type外的其他过滤条件
	LoadBalancerIds []string `required:"false"`

	// 数据偏移量,默认为0
	Offset *string `required:"false"`

	// 是否获取监听器和后端服务节点的详细信息。默认值:false
	ShowDetail *bool `required:"false"`

	// 限定所在的子网
	SubnetId *string `required:"false"`

	// 负载均衡实例的类型。限定枚举值:"Application" / "Network",默认值:"Application"
	Type *string `required:"false"`

	// 限定所在的VPC
	VPCId *string `required:"false"`
}

DescribeLoadBalancersRequest is request schema for DescribeLoadBalancers action

type DescribeLoadBalancersResponse added in v0.22.11

type DescribeLoadBalancersResponse struct {
	response.CommonBase

	// 负载均衡实例信息
	LoadBalancers []LoadBalancer

	// 满足条件的负载均衡实例总数
	TotalCount int
}

DescribeLoadBalancersResponse is response schema for DescribeLoadBalancers action

type DescribePolicyGroupRequest added in v0.14.3

type DescribePolicyGroupRequest struct {
	request.CommonBase

	// 内容转发策略组ID
	GroupId *string `required:"false"`

	// 数据分页值,默认为20
	Limit *int `required:"false"`

	// 数据偏移量,默认值为0
	Offset *int `required:"false"`
}

DescribePolicyGroupRequest is request schema for DescribePolicyGroup action

type DescribePolicyGroupResponse added in v0.14.3

type DescribePolicyGroupResponse struct {
	response.CommonBase

	// 内容转发策略组列表,具体结构见 UlbPolicyGroupSet
	DataSet []UlbPolicyGroupSet
}

DescribePolicyGroupResponse is response schema for DescribePolicyGroup action

type DescribeRulesRequest added in v0.22.11

type DescribeRulesRequest struct {
	request.CommonBase

	// 监听器的ID
	ListenerId *string `required:"true"`

	// 应用型负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	// 应用型负载均衡转发规则的ID。指定RuleId,则只描述该规则
	RuleId *string `required:"false"`
}

DescribeRulesRequest is request schema for DescribeRules action

type DescribeRulesResponse added in v0.22.11

type DescribeRulesResponse struct {
	response.CommonBase

	// 转发规则信息
	Rules []Rule
}

DescribeRulesResponse is response schema for DescribeRules action

type DescribeSSLRequest added in v0.6.10

type DescribeSSLRequest struct {
	request.CommonBase

	// 数据分页值,默认为20
	Limit *int `required:"false"`

	// 数据偏移量,默认值为0
	Offset *int `required:"false"`

	// SSL证书的Id
	SSLId *string `required:"false"`
}

DescribeSSLRequest is request schema for DescribeSSL action

type DescribeSSLResponse added in v0.6.10

type DescribeSSLResponse struct {
	response.CommonBase

	// SSL证书详细信息,具体结构见 ULBSSLSet
	DataSet []ULBSSLSet

	// 满足条件的SSL证书总数
	TotalCount int
}

DescribeSSLResponse is response schema for DescribeSSL action

type DescribeSSLV2Request added in v0.22.7

type DescribeSSLV2Request struct {
	request.CommonBase

	// 数据分页值,默认为20
	Limit *int `required:"false"`

	// 数据偏移量,默认值为0
	Offset *int `required:"false"`

	// SSL证书的Id
	SSLId *string `required:"false"`
}

DescribeSSLV2Request is request schema for DescribeSSLV2 action

type DescribeSSLV2Response added in v0.22.7

type DescribeSSLV2Response struct {
	response.CommonBase

	// SSL证书详细信息,具体结构见SSLInfo
	DataSet []SSLInfo

	// 满足条件的SSL证书总数
	TotalCount int
}

DescribeSSLV2Response is response schema for DescribeSSLV2 action

type DescribeSecurityPoliciesRequest added in v0.21.39

type DescribeSecurityPoliciesRequest struct {
	request.CommonBase

	// 数据分页值
	Limit *int `required:"false"`

	// 数据偏移量
	Offset *int `required:"false"`

	// 安全策略ID
	SecurityPolicyId *string `required:"false"`
}

DescribeSecurityPoliciesRequest is request schema for DescribeSecurityPolicies action

type DescribeSecurityPoliciesResponse added in v0.21.39

type DescribeSecurityPoliciesResponse struct {
	response.CommonBase

	// 安全策略列表,每项参数详见SecurityPolicy
	DataSet []SecurityPolicy

	// 满足条件的安全策略总数
	TotalCount int
}

DescribeSecurityPoliciesResponse is response schema for DescribeSecurityPolicies action

type DescribeSecurityPoliciesV2Request added in v0.22.7

type DescribeSecurityPoliciesV2Request struct {
	request.CommonBase

	// 数据分页值
	Limit *int `required:"false"`

	// 数据偏移量
	Offset *int `required:"false"`

	// 安全策略ID
	SecurityPolicyId *string `required:"false"`
}

DescribeSecurityPoliciesV2Request is request schema for DescribeSecurityPoliciesV2 action

type DescribeSecurityPoliciesV2Response added in v0.22.7

type DescribeSecurityPoliciesV2Response struct {
	response.CommonBase

	// 安全策略列表,每项参数详见SecurityPolicyInfo
	DataSet []SecurityPolicyInfo

	// 满足条件的安全策略总数
	TotalCount int
}

DescribeSecurityPoliciesV2Response is response schema for DescribeSecurityPoliciesV2 action

type DescribeSupportCiphersRequest added in v0.21.39

type DescribeSupportCiphersRequest struct {
	request.CommonBase
}

DescribeSupportCiphersRequest is request schema for DescribeSupportCiphers action

type DescribeSupportCiphersResponse added in v0.21.39

type DescribeSupportCiphersResponse struct {
	response.CommonBase

	// 返回支持的TLS最低版本和加密套件,每项参数详见 TLSAndCiphers
	DataSet []TLSAndCiphers
}

DescribeSupportCiphersResponse is response schema for DescribeSupportCiphers action

type DescribeULBRequest

type DescribeULBRequest struct {
	request.CommonBase

	// CLB所属的业务组ID
	BusinessId *string `required:"false"`

	// 数据分页值,默认为20
	Limit *int `required:"false"`

	// 数据偏移量,默认为0
	Offset *int `required:"false"`

	// CLB所属的子网ID
	SubnetId *string `required:"false"`

	// 传统型负载均衡实例的Id。 若指定则返回指定的传统型负载均衡实例的信息; 若不指定则返回当前数据中心中所有的传统型负载均衡实例的信息
	ULBId *string `required:"false"`

	// CLB所属的VPC
	VPCId *string `required:"false"`
}

DescribeULBRequest is request schema for DescribeULB action

type DescribeULBResponse

type DescribeULBResponse struct {
	response.CommonBase

	// CLB列表,每项参数详见 ULBSet
	DataSet []ULBSet

	// 满足条件的CLB总数
	TotalCount int
}

DescribeULBResponse is response schema for DescribeULB action

type DescribeULBSimpleRequest added in v0.17.2

type DescribeULBSimpleRequest struct {
	request.CommonBase

	// CLB所属的业务组ID
	BusinessId *string `required:"false"`

	// 数据分页值,默认为10000
	Limit *int `required:"false"`

	// 数据偏移量,默认为0
	Offset *int `required:"false"`

	// CLB所属的子网ID
	SubnetId *string `required:"false"`

	// 传统型负载均衡实例的Id。 若指定则返回指定的传统型负载均衡实例的信息; 若不指定则返回当前数据中心中所有的传统型负载均衡实例的信息
	ULBId *string `required:"false"`

	// CLB所属的VPC
	VPCId *string `required:"false"`
}

DescribeULBSimpleRequest is request schema for DescribeULBSimple action

type DescribeULBSimpleResponse added in v0.17.2

type DescribeULBSimpleResponse struct {
	response.CommonBase

	// CLB列表,每项参数详见 ULBSimpleSet
	DataSet []ULBSimpleSet

	// 满足条件的CLB总数
	TotalCount int
}

DescribeULBSimpleResponse is response schema for DescribeULBSimple action

type DescribeVServerRequest

type DescribeVServerRequest struct {
	request.CommonBase

	// 数据分页值
	Limit *int `required:"false"`

	// 数据偏移量
	Offset *int `required:"false"`

	// 传统型负载均衡实例的Id
	ULBId *string `required:"false"`

	// CLB下的VServer实例的Id;若指定则返回指定的VServer实例的信息; 若不指定则返回当前传统型负载均衡实例下所有VServer的信息
	VServerId *string `required:"false"`
}

DescribeVServerRequest is request schema for DescribeVServer action

type DescribeVServerResponse

type DescribeVServerResponse struct {
	response.CommonBase

	// VServer列表,每项参数详见 ULBVServerSet
	DataSet []ULBVServerSet

	// 满足条件的VServer总数
	TotalCount int
}

DescribeVServerResponse is response schema for DescribeVServer action

type FirewallSet added in v0.17.0

type FirewallSet struct {

	// 防火墙ID
	FirewallId string

	// 防火墙名称
	FirewallName string
}

FirewallSet - ulb防火墙信息

type ForwardConfigSet added in v0.22.11

type ForwardConfigSet struct {

	// 转发的后端服务节点。限定在监听器的服务节点池里;数组长度可以为0。具体结构详见 ForwardTargetSet
	Targets []ForwardTargetSet
}

ForwardConfigSet - 转发服务节点相关配置

type ForwardTargetSet added in v0.22.11

type ForwardTargetSet struct {

	// 服务节点的标识ID
	Id string

	// 权重。仅监听器负载均衡算法是加权轮询是有效;取值范围[1-100],默认值为1
	Weight int
}

ForwardTargetSet - 转发的后端服务节点

type HealthCheckConfigSet added in v0.22.11

type HealthCheckConfigSet struct {

	// (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名
	Domain string

	// 是否开启健康检查功能。暂时不支持关闭。 默认值为:true
	Enabled bool

	// (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径
	Path string

	// 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port
	Type string
}

HealthCheckConfigSet - 健康检查相关配置

type HostConfigSet added in v0.22.11

type HostConfigSet struct {

	// 匹配方式。限定枚举值:Regular-正则,Wildcard-泛域名; 默认值:Regular
	MatchMode string

	// 取值。暂时只支持数组长度为1; 取值需符合相关匹配方式的条件
	Values []string
}

HostConfigSet - 域名相关配置

type IPInfo added in v0.22.11

type IPInfo struct {

	// 网络模式。 限定枚举值:Internet -> 互联网,Intranet -> 内联网
	AddressType string

	// 带宽值。单位M
	Bandwidth int

	// 带宽类型。限定枚举值:1 -> 共享带宽,0 -> 普通带宽类型
	BandwidthType int

	// IP地址
	IP string

	// IP协议版本
	IPVersion string

	// 唯一标识ID
	Id string

	// 外网IP的运营商信息。枚举值为:Telecom -> 电信,Unicom -> 联通,International -> 国际IP,Bgp -> BGP,Duplet -> 双线(电信+联通双线路),BGPPro -> 精品BGP,China-mobile -> 中国移动,Anycast -> AnycastEIP
	OperatorName string
}

IPInfo - 绑定的IP信息

type Listener added in v0.22.11

type Listener struct {

	// (应用型专用)服务器默认证书ID。仅HTTPS监听支持。具体接口详见 Certificate
	Certificates []Certificate

	// (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩
	CompressionEnabled bool

	// (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启
	HTTP2Enabled bool

	// 健康检查相关配置。具体结构详见 HealthCheckConfigSet
	HealthCheckConfig HealthCheckConfigSet

	// 连接空闲超时时间。单位:秒
	IdleTimeout int

	// 监听器的ID
	ListenerId string

	// 监听器的监听端口
	ListenerPort int

	// 监听协议。应用型限定取值: HTTP、HTTPS
	ListenerProtocol string

	// 监听器的名称
	Name string

	// (应用型专用)是否开启HTTP重定向到HTTPS。仅HTTP监听支持开启
	RedirectEnabled bool

	// (应用型专用)重定向端口
	RedirectPort int

	// 监听器的备注信息
	Remark string

	// (应用型专用)转发规则信息
	Rules []Rule

	// 负载均衡算法。应用型限定取值:Roundrobin -> 轮询;Source -> 源地址; WeightRoundrobin -> 加权轮询; Leastconn -> 最小连接数;Backup ->主备模式
	Scheduler string

	// (应用型专用)安全策略组ID。仅HTTPS监听支持绑定;Default -> 原生策略
	SecurityPolicyId string

	// listener健康状态。限定枚举值:Healthy -> 健康,Unhealthy -> 不健康,PartialHealth -> 部分健康,None -> 无节点状态
	State string

	// 会话保持相关配置。具体结构详见 StickinessConfigSet
	StickinessConfig StickinessConfigSet

	// 添加的服务节点信息。具体结构详见 Target
	Targets []Target
}

Listener - 负载均衡监听器信息

type LoadBalancer added in v0.22.11

type LoadBalancer struct {

	// (应用型专用)访问日志相关配置
	AccessLogConfig AccessLogConfigSet

	// 是否开启自动续费
	AutoRenewEnabled bool

	// 付费模式
	ChargeType string

	// 负载均衡实例创建时间。格式为Unix Timestamp
	CreateTime int

	// 防火墙信息
	Firewall FirewallSet

	// 绑定的IP信息。具体结构详见 IPInfo
	IPInfos []IPInfo

	// 负载均衡实例支持的IP协议版本
	IPVersion string

	// 监听器信息。当ShowDetail为false时,为空
	Listeners []Listener

	// 负载均衡实例的ID
	LoadBalancerId string

	// 负载均衡实例的名称
	Name string

	// 有效期(计费)。格式为Unix Timestamp
	PurchaseValue int

	// 负载均衡实例的备注信息
	Remark string

	// 应用型实例的代理IP或网络型FULLNAT模式下snat所用的IP
	SnatIPs []string

	// lb状态:Normal-正常;Arrears-欠费停服
	Status string

	// 负载均衡实例所属的子网资源ID。负载均衡实例的内网VIP和SNAT场景的源IP限定在该子网内;指定子网不影响添加后端服务节点时的范围,依旧是整个VPC下支持的资源
	SubnetId string

	// 负载均衡实例所属的业务组ID
	Tag string

	// 负载均衡实例的类型。限定枚举值:Application -> 应用型,Network -> 网络型
	Type string

	// 负载均衡实例所属的VPC资源ID
	VPCId string
}

LoadBalancer - 负载均衡实例信息

type LoggerSet added in v0.17.0

type LoggerSet struct {

	// ulb日志上传的bucket
	BucketName string

	// 上传到bucket使用的token的tokenid
	TokenID string

	// bucket的token名称
	TokenName string
}

LoggerSet - ulb日志信息

type PathConfigSet added in v0.22.11

type PathConfigSet struct {

	// 取值。暂时只支持数组长度为1; 取值需符合相关匹配方式的条件
	Values []string
}

PathConfigSet - 路径相关配置

type PolicyBackendSet

type PolicyBackendSet struct {

	// 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关
	BackendId string

	// 后端资源的对象ID
	ObjectId string

	// 所添加的后端资源服务端口
	Port int

	// 后端资源的内网IP
	PrivateIP string

	// 后端资源的实例名称
	ResourceName string

	// 所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器;UHybrid->混合云主机;CUBE->Cube;UNI -> 虚拟网卡
	ResourceType string

	// 如果资源绑定了弹性网卡,则展示弹性网卡的资源ID
	SubResourceId string

	// 如果资源绑定了弹性网卡,则展示弹性网卡的资源名称
	SubResourceName string

	// "UNI"或者为空
	SubResourceType string
}

PolicyBackendSet - 内容转发下rs详细信息

type ReleaseBackendRequest

type ReleaseBackendRequest struct {
	request.CommonBase

	// 后端资源实例的ID(CLB后端ID,非资源自身ID)
	BackendId *string `required:"true"`

	// 传统型负载均衡实例的ID
	ULBId *string `required:"true"`
}

ReleaseBackendRequest is request schema for ReleaseBackend action

type ReleaseBackendResponse

type ReleaseBackendResponse struct {
	response.CommonBase
}

ReleaseBackendResponse is response schema for ReleaseBackend action

type RemoveTargetsRequest added in v0.22.6

type RemoveTargetsRequest struct {
	request.CommonBase

	// 服务节点的标识ID。不超过20个;
	Ids []string `required:"true"`

	// 监听器的ID
	ListenerId *string `required:"true"`

	// 负载均衡实例的ID
	LoadBalancerId *string `required:"true"`
}

RemoveTargetsRequest is request schema for RemoveTargets action

type RemoveTargetsResponse added in v0.22.6

type RemoveTargetsResponse struct {
	response.CommonBase
}

RemoveTargetsResponse is response schema for RemoveTargets action

type Rule added in v0.22.11

type Rule struct {

	// 是否为默认转发规则
	IsDefault bool

	// 当转发的服务节点为空时,规则是否忽略
	Pass bool

	// 转发动作。具体规则详见RuleAction
	RuleActions []RuleAction

	// 转发规则匹配条件。具体结构详见 RuleCondition
	RuleConditions []RuleCondition

	// 转发规则的ID
	RuleId string
}

Rule - (应用型专用)转发规则信息

type RuleAction added in v0.22.11

type RuleAction struct {

	// 转发服务节点相关配置。 具体结构详见 ForwardConfigSet
	ForwardConfig ForwardConfigSet

	// 动作类型。限定枚举值:Forward
	Type string
}

RuleAction - 转发动作

type RuleCondition added in v0.22.11

type RuleCondition struct {

	// 域名相关配置。Type为Host时必填。具体结构详见 HostConfigSet
	HostConfig HostConfigSet

	// 路径相关配置。Type为Path时必填。具体结构详见 PathConfigSet
	PathConfig PathConfigSet

	// 匹配条件类型。限定枚举值:Host,Path
	Type string
}

RuleCondition - 转发规则匹配条件

type SSLBindedTargetSet added in v0.6.11

type SSLBindedTargetSet struct {

	// VServer 所属的ULB实例的资源ID
	ULBId string

	// ULB实例的名称
	ULBName string

	// SSL证书绑定到的VServer的资源ID
	VServerId string

	// 对应的VServer的名字
	VServerName string
}

SSLBindedTargetSet - DescribeSSL

type SSLInfo added in v0.22.7

type SSLInfo struct {

	// SSL证书的创建时间
	CreateTime int

	// USSL证书平台的域名,只有当SSLSource为1时才出现
	Domains string

	// SSL证书的HASH值
	HashValue string

	// 证书过期时间,只有当SSLSource为1时才出现
	NotAfter int

	// 证书颁发时间,只有当SSLSource为1时才出现
	NotBefore int

	// SSL绑定ULB和ALB的关系
	Relations []SSLRelation

	// SSL证书的内容
	SSLContent string

	// SSL证书的Id
	SSLId string

	// SSL证书的名字
	SSLName string

	// SSL证书来源,SSL证书来源,0代表证书来自于ULB平台,1代表证书来自于USSL平台
	SSLSource int

	// SSL证书类型,暂时只有 Pem 一种类型
	SSLType string

	// USSL证书平台的编号,只有当SSLSource为1时才出现
	USSLId string
}

SSLInfo - SSL返回信息

type SSLRelation added in v0.22.7

type SSLRelation struct {

	// 是否为监听器默认SSL证书
	IsDefault bool

	// 监听器的ID
	ListenerId string

	// 监听器的名称
	ListenerName string

	// 负载均衡实例的ID
	LoadBalancerId string

	// 负载均衡实例的名称
	LoadBalancerName string
}

SSLRelation - SSL证书绑定到的对象

type SecurityPolicy added in v0.21.39

type SecurityPolicy struct {

	// 加密套件
	SSLCiphers []string

	// 安全策略ID
	SecurityPolicyId string

	// 安全策略名称
	SecurityPolicyName string

	// 安全策略类型 0:预定义 1:自定义
	SecurityPolicyType int

	// TLS最低版本
	TLSVersion string

	// 关联的监听
	VServerSet []BindVServerInfo
}

SecurityPolicy - 安全策略组

type SecurityPolicyInfo added in v0.22.7

type SecurityPolicyInfo struct {

	// 关联的监听
	Relations []SecurityPolicyRelation

	// 加密套件
	SSLCiphers []string

	// 安全策略ID
	SecurityPolicyId string

	// 安全策略名称
	SecurityPolicyName string

	// 安全策略类型 0:预定义 1:自定义
	SecurityPolicyType int

	// TLS最低版本
	TLSVersion string
}

SecurityPolicyInfo - 安全策略信息

type SecurityPolicyRelation added in v0.22.7

type SecurityPolicyRelation struct {

	// 监听器的ID
	ListenerId string

	// 监听器的名称
	ListenerName string

	// 监听端口
	ListenerPort int

	// 负载均衡实例的ID
	LoadBalancerId string
}

SecurityPolicyRelation - 关联的监听

type StickinessConfigSet added in v0.22.11

type StickinessConfigSet struct {

	// (应用型专用)自定义Cookie。当StickinessType取值"UserDefined"时有效
	CookieName string

	// 是否开启会话保持功能。应用型负载均衡实例基于Cookie实现
	Enabled bool

	// (应用型专用)Cookie处理方式。限定枚举值: ServerInsert -> 自动生成KEY;UserDefined -> 用户自定义KEY
	Type string
}

StickinessConfigSet - 会话保持相关配置

type TLSAndCiphers added in v0.21.39

type TLSAndCiphers struct {

	// 加密套件
	SSLCiphers []string

	// TLS最低版本
	TLSVersion string
}

TLSAndCiphers -

type Target added in v0.22.11

type Target struct {

	// 服务节点是否启用
	Enabled bool

	// 服务节点的标识ID。为ALB/NLB中使用,与资源自身ID无关,可用于UpdateTargetsAttribute/RemoveTargets
	Id string

	// 服务节点是否为备节点
	IsBackup bool

	// 服务节点的端口
	Port int

	// 服务节点的IP
	ResourceIP string

	// 服务节点的资源ID
	ResourceId string

	// 服务节点的资源名称
	ResourceName string

	// 服务节点的类型。限定枚举值:UHost -> 云主机,UNI -> 虚拟网卡,UPM -> 物理云主机,IP ->  IP类型; 默认值:"UHost"; 非IP类型,如果该资源有多个IP,将只能添加主IP; 非IP类型,展示时,会显示相关资源信息,IP类型只展示IP信息。 在相关资源被删除时,非IP类型会把相关资源从lb中剔除,IP类型不保证这个逻辑
	ResourceType string

	// 服务节点的健康检查状态。限定枚举值:Healthy -> 健康,Unhealthy -> 不健康
	State string

	// 服务节点的子网资源ID
	SubnetId string

	// 服务节点的VPC资源ID
	VPCId string

	// 服务节点的权重。仅在加权轮询算法时有效
	Weight int
}

Target - 服务节点信息

type TargetSet added in v0.22.6

type TargetSet struct {

	// 服务节点是否启用。 默认值:true
	Enabled bool

	// 服务节点的标识ID。
	Id string

	// 服务节点是否为备节点。 默认值:false
	IsBackup bool

	// 服务节点的端口。限定取值:[1-65535]; 默认值:80
	Port int

	// 服务节点的IP。在IP类型时,必传
	ResourceIP string

	// 服务节点的资源ID。在非IP类型时,必传
	ResourceId string

	// 服务节点的类型。限定枚举值:UHost -> 云主机,UNI -> 虚拟网卡,UPM -> 物理云主机,IP ->  IP类型; 默认值:"UHost"; 非IP类型,如果该资源有多个IP,将只能添加主IP; 非IP类型,展示时,会显示相关资源信息,IP类型只展示IP信息。 在相关资源被删除时,非IP类型会把相关资源从lb中剔除,IP类型不保证这个逻辑
	ResourceType string

	// 服务节点的健康检查状态。限定枚举值:Healthy -> 健康,Unhealthy -> 不健康
	State string

	// 服务节点的子网资源ID。在IP类型时,必传
	SubnetId string

	// 服务节点的VPC资源ID。在IP类型时,必传
	VPCId string

	// 服务节点的权重。限定取值:[1-100]; 仅在加权轮询算法时有效; 默认值:1
	Weight int
}

TargetSet - 服务节点信息

type ULBBackendSet

type ULBBackendSet struct {

	// 后端资源实例的Id
	BackendId string

	// 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用
	Enabled int

	// 是否为backup,只有当vserver的Backup属性为1时才会有此字段,说明:0:主rs1:备rs
	IsBackup int

	// 后端提供服务的端口
	Port int

	// 后端提供服务的内网IP
	PrivateIP string

	// 资源实例的资源Id
	ResourceId string

	// 资源实例的资源名称
	ResourceName string

	// 资源实例的类型
	ResourceType string

	// 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常
	Status int

	// 资源绑定的虚拟网卡实例的资源Id
	SubResourceId string

	// 资源绑定的虚拟网卡实例的资源名称
	SubResourceName string

	// 资源绑定的虚拟网卡实例的类型
	SubResourceType string

	// 后端提供服务的资源所在的子网的ID
	SubnetId string

	// 后端服务器所在的VPC
	VPCId string

	// 后端RS权重(在加权轮询算法下有效)
	Weight int
}

ULBBackendSet - DescribeULB

type ULBClient

type ULBClient struct {
	*ucloud.Client
}

ULBClient is the client of ULB

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *ULBClient

NewClient will return a instance of ULBClient

func (*ULBClient) AddTargets added in v0.22.6

func (c *ULBClient) AddTargets(req *AddTargetsRequest) (*AddTargetsResponse, error)

API: AddTargets

给应用型负载均衡监听器添加后端服务节点

func (*ULBClient) AllocateBackend

func (c *ULBClient) AllocateBackend(req *AllocateBackendRequest) (*AllocateBackendResponse, error)

API: AllocateBackend

添加CLB后端资源实例

func (*ULBClient) AllocateBackendBatch

func (c *ULBClient) AllocateBackendBatch(req *AllocateBackendBatchRequest) (*AllocateBackendBatchResponse, error)

API: AllocateBackendBatch

func (*ULBClient) BindSSL added in v0.6.10

func (c *ULBClient) BindSSL(req *BindSSLRequest) (*BindSSLResponse, error)

API: BindSSL

将SSL证书绑定到传统型负载均衡VServer

func (*ULBClient) CreateListener added in v0.22.6

func (c *ULBClient) CreateListener(req *CreateListenerRequest) (*CreateListenerResponse, error)

API: CreateListener

创建一个应用型负载均衡的监听器

func (*ULBClient) CreateLoadBalancer added in v0.22.6

func (c *ULBClient) CreateLoadBalancer(req *CreateLoadBalancerRequest) (*CreateLoadBalancerResponse, error)

API: CreateLoadBalancer

创建一个应用型负载均衡实例

func (*ULBClient) CreatePolicy

func (c *ULBClient) CreatePolicy(req *CreatePolicyRequest) (*CreatePolicyResponse, error)

API: CreatePolicy

传统型负载均衡创建VServer内容转发策略

func (*ULBClient) CreatePolicyGroup added in v0.14.3

func (c *ULBClient) CreatePolicyGroup(req *CreatePolicyGroupRequest) (*CreatePolicyGroupResponse, error)

API: CreatePolicyGroup

创建内容转发策略组

func (*ULBClient) CreateRule added in v0.22.11

func (c *ULBClient) CreateRule(req *CreateRuleRequest) (*CreateRuleResponse, error)

API: CreateRule

给应用型负载均衡监听器创建一条转发规则

func (*ULBClient) CreateSSL added in v0.6.10

func (c *ULBClient) CreateSSL(req *CreateSSLRequest) (*CreateSSLResponse, error)

API: CreateSSL

创建SSL证书,可以把整个 Pem 证书内容传过来,或者把证书、私钥、CA证书分别传过来

func (*ULBClient) CreateSecurityPolicy added in v0.21.39

func (c *ULBClient) CreateSecurityPolicy(req *CreateSecurityPolicyRequest) (*CreateSecurityPolicyResponse, error)

API: CreateSecurityPolicy

创建安全策略

func (*ULBClient) CreateULB

func (c *ULBClient) CreateULB(req *CreateULBRequest) (*CreateULBResponse, error)

API: CreateULB

创建传统型负载均衡负载均衡实例,可以选择内网或者外网

func (*ULBClient) CreateVServer

func (c *ULBClient) CreateVServer(req *CreateVServerRequest) (*CreateVServerResponse, error)

API: CreateVServer

创建CLB的VServer实例,定义监听的协议和端口以及负载均衡算法

func (*ULBClient) DeleteListener added in v0.22.6

func (c *ULBClient) DeleteListener(req *DeleteListenerRequest) (*DeleteListenerResponse, error)

API: DeleteListener

删除一个应用型负载均衡监听器

func (*ULBClient) DeleteLoadBalancer added in v0.22.6

func (c *ULBClient) DeleteLoadBalancer(req *DeleteLoadBalancerRequest) (*DeleteLoadBalancerResponse, error)

API: DeleteLoadBalancer

删除一个应用型负载均衡实例

func (*ULBClient) DeletePolicy

func (c *ULBClient) DeletePolicy(req *DeletePolicyRequest) (*DeletePolicyResponse, error)

API: DeletePolicy

删除传统型负载均衡的内容转发策略

func (*ULBClient) DeletePolicyGroup added in v0.14.3

func (c *ULBClient) DeletePolicyGroup(req *DeletePolicyGroupRequest) (*DeletePolicyGroupResponse, error)

API: DeletePolicyGroup

删除内容转发策略组

func (*ULBClient) DeleteRule added in v0.22.6

func (c *ULBClient) DeleteRule(req *DeleteRuleRequest) (*DeleteRuleResponse, error)

API: DeleteRule

删除应用型负载均衡监听器的一条转发规则

func (*ULBClient) DeleteSSL added in v0.6.10

func (c *ULBClient) DeleteSSL(req *DeleteSSLRequest) (*DeleteSSLResponse, error)

API: DeleteSSL

删除SSL证书

func (*ULBClient) DeleteSecurityPolicy added in v0.21.39

func (c *ULBClient) DeleteSecurityPolicy(req *DeleteSecurityPolicyRequest) (*DeleteSecurityPolicyResponse, error)

API: DeleteSecurityPolicy

删除安全策略

func (*ULBClient) DeleteULB

func (c *ULBClient) DeleteULB(req *DeleteULBRequest) (*DeleteULBResponse, error)

API: DeleteULB

删除传统型负载均衡实例

func (*ULBClient) DeleteVServer

func (c *ULBClient) DeleteVServer(req *DeleteVServerRequest) (*DeleteVServerResponse, error)

API: DeleteVServer

删除CLB的VServer实例

func (*ULBClient) DescribeListeners added in v0.22.11

func (c *ULBClient) DescribeListeners(req *DescribeListenersRequest) (*DescribeListenersResponse, error)

API: DescribeListeners

描述一个指定的监听器或者一个应用型负载均衡实例下的所有监听器

func (*ULBClient) DescribeLoadBalancers added in v0.22.11

API: DescribeLoadBalancers

描述特定条件下的应用型负载均衡实例或者全部的应用型负载均衡实例

func (*ULBClient) DescribePolicyGroup added in v0.14.3

func (c *ULBClient) DescribePolicyGroup(req *DescribePolicyGroupRequest) (*DescribePolicyGroupResponse, error)

API: DescribePolicyGroup

获取内容转发组详细信息

func (*ULBClient) DescribeRules added in v0.22.11

func (c *ULBClient) DescribeRules(req *DescribeRulesRequest) (*DescribeRulesResponse, error)

API: DescribeRules

描述一条指定的转发规则或者一个应用型负载均衡监听器下的所有转发规则

func (*ULBClient) DescribeSSL added in v0.6.10

func (c *ULBClient) DescribeSSL(req *DescribeSSLRequest) (*DescribeSSLResponse, error)

API: DescribeSSL

获取SSL证书信息,仅能获取SSL证书与传统型负载均衡监听器的绑定关系

func (*ULBClient) DescribeSSLV2 added in v0.22.7

func (c *ULBClient) DescribeSSLV2(req *DescribeSSLV2Request) (*DescribeSSLV2Response, error)

API: DescribeSSLV2

获取SSL证书信息,该接口可以同时获取SSL与传统型和应用型负载均衡监听器的绑定关系

func (*ULBClient) DescribeSecurityPolicies added in v0.21.39

API: DescribeSecurityPolicies

获取安全策略的信息,绑定关系仅能获取安全策略与传统型负载均衡监听器的绑定关系

func (*ULBClient) DescribeSecurityPoliciesV2 added in v0.22.7

API: DescribeSecurityPoliciesV2

获取安全策略的信息,可以同时获取安全策略与传统型和应用性负载均衡监听器的绑定关系

func (*ULBClient) DescribeSupportCiphers added in v0.21.39

API: DescribeSupportCiphers

返回安全策略所有支持的加密套件

func (*ULBClient) DescribeULB

func (c *ULBClient) DescribeULB(req *DescribeULBRequest) (*DescribeULBResponse, error)

API: DescribeULB

获取CLB详细信息

func (*ULBClient) DescribeULBSimple added in v0.17.2

func (c *ULBClient) DescribeULBSimple(req *DescribeULBSimpleRequest) (*DescribeULBSimpleResponse, error)

API: DescribeULBSimple

获取CLB信息

func (*ULBClient) DescribeVServer

func (c *ULBClient) DescribeVServer(req *DescribeVServerRequest) (*DescribeVServerResponse, error)

API: DescribeVServer

获取CLB下的VServer的详细信息

func (*ULBClient) NewAddTargetsRequest added in v0.22.6

func (c *ULBClient) NewAddTargetsRequest() *AddTargetsRequest

NewAddTargetsRequest will create request of AddTargets action.

func (*ULBClient) NewAllocateBackendBatchRequest

func (c *ULBClient) NewAllocateBackendBatchRequest() *AllocateBackendBatchRequest

NewAllocateBackendBatchRequest will create request of AllocateBackendBatch action.

func (*ULBClient) NewAllocateBackendRequest

func (c *ULBClient) NewAllocateBackendRequest() *AllocateBackendRequest

NewAllocateBackendRequest will create request of AllocateBackend action.

func (*ULBClient) NewBindSSLRequest added in v0.6.10

func (c *ULBClient) NewBindSSLRequest() *BindSSLRequest

NewBindSSLRequest will create request of BindSSL action.

func (*ULBClient) NewCreateListenerRequest added in v0.22.6

func (c *ULBClient) NewCreateListenerRequest() *CreateListenerRequest

NewCreateListenerRequest will create request of CreateListener action.

func (*ULBClient) NewCreateLoadBalancerRequest added in v0.22.6

func (c *ULBClient) NewCreateLoadBalancerRequest() *CreateLoadBalancerRequest

NewCreateLoadBalancerRequest will create request of CreateLoadBalancer action.

func (*ULBClient) NewCreatePolicyGroupRequest added in v0.14.3

func (c *ULBClient) NewCreatePolicyGroupRequest() *CreatePolicyGroupRequest

NewCreatePolicyGroupRequest will create request of CreatePolicyGroup action.

func (*ULBClient) NewCreatePolicyRequest

func (c *ULBClient) NewCreatePolicyRequest() *CreatePolicyRequest

NewCreatePolicyRequest will create request of CreatePolicy action.

func (*ULBClient) NewCreateRuleRequest added in v0.22.11

func (c *ULBClient) NewCreateRuleRequest() *CreateRuleRequest

NewCreateRuleRequest will create request of CreateRule action.

func (*ULBClient) NewCreateSSLRequest added in v0.6.10

func (c *ULBClient) NewCreateSSLRequest() *CreateSSLRequest

NewCreateSSLRequest will create request of CreateSSL action.

func (*ULBClient) NewCreateSecurityPolicyRequest added in v0.21.39

func (c *ULBClient) NewCreateSecurityPolicyRequest() *CreateSecurityPolicyRequest

NewCreateSecurityPolicyRequest will create request of CreateSecurityPolicy action.

func (*ULBClient) NewCreateULBRequest

func (c *ULBClient) NewCreateULBRequest() *CreateULBRequest

NewCreateULBRequest will create request of CreateULB action.

func (*ULBClient) NewCreateVServerRequest

func (c *ULBClient) NewCreateVServerRequest() *CreateVServerRequest

NewCreateVServerRequest will create request of CreateVServer action.

func (*ULBClient) NewDeleteListenerRequest added in v0.22.6

func (c *ULBClient) NewDeleteListenerRequest() *DeleteListenerRequest

NewDeleteListenerRequest will create request of DeleteListener action.

func (*ULBClient) NewDeleteLoadBalancerRequest added in v0.22.6

func (c *ULBClient) NewDeleteLoadBalancerRequest() *DeleteLoadBalancerRequest

NewDeleteLoadBalancerRequest will create request of DeleteLoadBalancer action.

func (*ULBClient) NewDeletePolicyGroupRequest added in v0.14.3

func (c *ULBClient) NewDeletePolicyGroupRequest() *DeletePolicyGroupRequest

NewDeletePolicyGroupRequest will create request of DeletePolicyGroup action.

func (*ULBClient) NewDeletePolicyRequest

func (c *ULBClient) NewDeletePolicyRequest() *DeletePolicyRequest

NewDeletePolicyRequest will create request of DeletePolicy action.

func (*ULBClient) NewDeleteRuleRequest added in v0.22.6

func (c *ULBClient) NewDeleteRuleRequest() *DeleteRuleRequest

NewDeleteRuleRequest will create request of DeleteRule action.

func (*ULBClient) NewDeleteSSLRequest added in v0.6.10

func (c *ULBClient) NewDeleteSSLRequest() *DeleteSSLRequest

NewDeleteSSLRequest will create request of DeleteSSL action.

func (*ULBClient) NewDeleteSecurityPolicyRequest added in v0.21.39

func (c *ULBClient) NewDeleteSecurityPolicyRequest() *DeleteSecurityPolicyRequest

NewDeleteSecurityPolicyRequest will create request of DeleteSecurityPolicy action.

func (*ULBClient) NewDeleteULBRequest

func (c *ULBClient) NewDeleteULBRequest() *DeleteULBRequest

NewDeleteULBRequest will create request of DeleteULB action.

func (*ULBClient) NewDeleteVServerRequest

func (c *ULBClient) NewDeleteVServerRequest() *DeleteVServerRequest

NewDeleteVServerRequest will create request of DeleteVServer action.

func (*ULBClient) NewDescribeListenersRequest added in v0.22.11

func (c *ULBClient) NewDescribeListenersRequest() *DescribeListenersRequest

NewDescribeListenersRequest will create request of DescribeListeners action.

func (*ULBClient) NewDescribeLoadBalancersRequest added in v0.22.11

func (c *ULBClient) NewDescribeLoadBalancersRequest() *DescribeLoadBalancersRequest

NewDescribeLoadBalancersRequest will create request of DescribeLoadBalancers action.

func (*ULBClient) NewDescribePolicyGroupRequest added in v0.14.3

func (c *ULBClient) NewDescribePolicyGroupRequest() *DescribePolicyGroupRequest

NewDescribePolicyGroupRequest will create request of DescribePolicyGroup action.

func (*ULBClient) NewDescribeRulesRequest added in v0.22.11

func (c *ULBClient) NewDescribeRulesRequest() *DescribeRulesRequest

NewDescribeRulesRequest will create request of DescribeRules action.

func (*ULBClient) NewDescribeSSLRequest added in v0.6.10

func (c *ULBClient) NewDescribeSSLRequest() *DescribeSSLRequest

NewDescribeSSLRequest will create request of DescribeSSL action.

func (*ULBClient) NewDescribeSSLV2Request added in v0.22.7

func (c *ULBClient) NewDescribeSSLV2Request() *DescribeSSLV2Request

NewDescribeSSLV2Request will create request of DescribeSSLV2 action.

func (*ULBClient) NewDescribeSecurityPoliciesRequest added in v0.21.39

func (c *ULBClient) NewDescribeSecurityPoliciesRequest() *DescribeSecurityPoliciesRequest

NewDescribeSecurityPoliciesRequest will create request of DescribeSecurityPolicies action.

func (*ULBClient) NewDescribeSecurityPoliciesV2Request added in v0.22.7

func (c *ULBClient) NewDescribeSecurityPoliciesV2Request() *DescribeSecurityPoliciesV2Request

NewDescribeSecurityPoliciesV2Request will create request of DescribeSecurityPoliciesV2 action.

func (*ULBClient) NewDescribeSupportCiphersRequest added in v0.21.39

func (c *ULBClient) NewDescribeSupportCiphersRequest() *DescribeSupportCiphersRequest

NewDescribeSupportCiphersRequest will create request of DescribeSupportCiphers action.

func (*ULBClient) NewDescribeULBRequest

func (c *ULBClient) NewDescribeULBRequest() *DescribeULBRequest

NewDescribeULBRequest will create request of DescribeULB action.

func (*ULBClient) NewDescribeULBSimpleRequest added in v0.17.2

func (c *ULBClient) NewDescribeULBSimpleRequest() *DescribeULBSimpleRequest

NewDescribeULBSimpleRequest will create request of DescribeULBSimple action.

func (*ULBClient) NewDescribeVServerRequest

func (c *ULBClient) NewDescribeVServerRequest() *DescribeVServerRequest

NewDescribeVServerRequest will create request of DescribeVServer action.

func (*ULBClient) NewReleaseBackendRequest

func (c *ULBClient) NewReleaseBackendRequest() *ReleaseBackendRequest

NewReleaseBackendRequest will create request of ReleaseBackend action.

func (*ULBClient) NewRemoveTargetsRequest added in v0.22.6

func (c *ULBClient) NewRemoveTargetsRequest() *RemoveTargetsRequest

NewRemoveTargetsRequest will create request of RemoveTargets action.

func (*ULBClient) NewUnBindSecurityPolicyRequest added in v0.21.39

func (c *ULBClient) NewUnBindSecurityPolicyRequest() *UnBindSecurityPolicyRequest

NewUnBindSecurityPolicyRequest will create request of UnBindSecurityPolicy action.

func (*ULBClient) NewUnbindSSLRequest added in v0.6.10

func (c *ULBClient) NewUnbindSSLRequest() *UnbindSSLRequest

NewUnbindSSLRequest will create request of UnbindSSL action.

func (*ULBClient) NewUpdateBackendAttributeRequest

func (c *ULBClient) NewUpdateBackendAttributeRequest() *UpdateBackendAttributeRequest

NewUpdateBackendAttributeRequest will create request of UpdateBackendAttribute action.

func (*ULBClient) NewUpdateBackendBatchRequest added in v0.22.7

func (c *ULBClient) NewUpdateBackendBatchRequest() *UpdateBackendBatchRequest

NewUpdateBackendBatchRequest will create request of UpdateBackendBatch action.

func (*ULBClient) NewUpdateListenerAttributeRequest added in v0.22.6

func (c *ULBClient) NewUpdateListenerAttributeRequest() *UpdateListenerAttributeRequest

NewUpdateListenerAttributeRequest will create request of UpdateListenerAttribute action.

func (*ULBClient) NewUpdateLoadBalancerAttributeRequest added in v0.22.6

func (c *ULBClient) NewUpdateLoadBalancerAttributeRequest() *UpdateLoadBalancerAttributeRequest

NewUpdateLoadBalancerAttributeRequest will create request of UpdateLoadBalancerAttribute action.

func (*ULBClient) NewUpdatePolicyGroupAttributeRequest added in v0.14.3

func (c *ULBClient) NewUpdatePolicyGroupAttributeRequest() *UpdatePolicyGroupAttributeRequest

NewUpdatePolicyGroupAttributeRequest will create request of UpdatePolicyGroupAttribute action.

func (*ULBClient) NewUpdatePolicyRequest

func (c *ULBClient) NewUpdatePolicyRequest() *UpdatePolicyRequest

NewUpdatePolicyRequest will create request of UpdatePolicy action.

func (*ULBClient) NewUpdateRuleAttributeRequest added in v0.22.6

func (c *ULBClient) NewUpdateRuleAttributeRequest() *UpdateRuleAttributeRequest

NewUpdateRuleAttributeRequest will create request of UpdateRuleAttribute action.

func (*ULBClient) NewUpdateSSLAttributeRequest added in v0.21.38

func (c *ULBClient) NewUpdateSSLAttributeRequest() *UpdateSSLAttributeRequest

NewUpdateSSLAttributeRequest will create request of UpdateSSLAttribute action.

func (*ULBClient) NewUpdateSSLBindingRequest added in v0.22.3

func (c *ULBClient) NewUpdateSSLBindingRequest() *UpdateSSLBindingRequest

NewUpdateSSLBindingRequest will create request of UpdateSSLBinding action.

func (*ULBClient) NewUpdateSecurityPolicyRequest added in v0.21.39

func (c *ULBClient) NewUpdateSecurityPolicyRequest() *UpdateSecurityPolicyRequest

NewUpdateSecurityPolicyRequest will create request of UpdateSecurityPolicy action.

func (*ULBClient) NewUpdateTargetsAttributeRequest added in v0.22.6

func (c *ULBClient) NewUpdateTargetsAttributeRequest() *UpdateTargetsAttributeRequest

NewUpdateTargetsAttributeRequest will create request of UpdateTargetsAttribute action.

func (*ULBClient) NewUpdateULBAttributeRequest

func (c *ULBClient) NewUpdateULBAttributeRequest() *UpdateULBAttributeRequest

NewUpdateULBAttributeRequest will create request of UpdateULBAttribute action.

func (*ULBClient) NewUpdateVServerAttributeRequest

func (c *ULBClient) NewUpdateVServerAttributeRequest() *UpdateVServerAttributeRequest

NewUpdateVServerAttributeRequest will create request of UpdateVServerAttribute action.

func (*ULBClient) ReleaseBackend

func (c *ULBClient) ReleaseBackend(req *ReleaseBackendRequest) (*ReleaseBackendResponse, error)

API: ReleaseBackend

从CLB的VServer释放后端资源实例

func (*ULBClient) RemoveTargets added in v0.22.6

func (c *ULBClient) RemoveTargets(req *RemoveTargetsRequest) (*RemoveTargetsResponse, error)

API: RemoveTargets

从应用型负载均衡监听器删除后端服务节点

func (*ULBClient) UnBindSecurityPolicy added in v0.21.39

func (c *ULBClient) UnBindSecurityPolicy(req *UnBindSecurityPolicyRequest) (*UnBindSecurityPolicyResponse, error)

API: UnBindSecurityPolicy

批量解绑安全策略,会同时解绑与传统型和应用型负载均衡监听器的绑定关系

func (*ULBClient) UnbindSSL added in v0.6.10

func (c *ULBClient) UnbindSSL(req *UnbindSSLRequest) (*UnbindSSLResponse, error)

API: UnbindSSL

从CLB下的VServer解绑SSL证书

func (*ULBClient) UpdateBackendAttribute

API: UpdateBackendAttribute

更新CLB后端资源实例(服务节点)属性

func (*ULBClient) UpdateBackendBatch added in v0.22.7

func (c *ULBClient) UpdateBackendBatch(req *UpdateBackendBatchRequest) (*UpdateBackendBatchResponse, error)

API: UpdateBackendBatch

批量更新ULB后端资源实例(服务节点)属性

func (*ULBClient) UpdateListenerAttribute added in v0.22.6

API: UpdateListenerAttribute

更新一个应用型负载均衡监听器的属性

func (*ULBClient) UpdateLoadBalancerAttribute added in v0.22.6

API: UpdateLoadBalancerAttribute

更新一个应用型负载均衡实例的属性

func (*ULBClient) UpdatePolicy

func (c *ULBClient) UpdatePolicy(req *UpdatePolicyRequest) (*UpdatePolicyResponse, error)

API: UpdatePolicy

更新传统型负载均衡内容转发规则,包括转发规则后的服务节点

func (*ULBClient) UpdatePolicyGroupAttribute added in v0.14.3

API: UpdatePolicyGroupAttribute

更新内容转发策略组属性

func (*ULBClient) UpdateRuleAttribute added in v0.22.6

func (c *ULBClient) UpdateRuleAttribute(req *UpdateRuleAttributeRequest) (*UpdateRuleAttributeResponse, error)

API: UpdateRuleAttribute

更新应用型负载均衡监听器的一条转发规则的属性

func (*ULBClient) UpdateSSLAttribute added in v0.21.38

func (c *ULBClient) UpdateSSLAttribute(req *UpdateSSLAttributeRequest) (*UpdateSSLAttributeResponse, error)

API: UpdateSSLAttribute

更新修改SSL的属性,如:修改SSLName

func (*ULBClient) UpdateSSLBinding added in v0.22.3

func (c *ULBClient) UpdateSSLBinding(req *UpdateSSLBindingRequest) (*UpdateSSLBindingResponse, error)

API: UpdateSSLBinding

将传统型或应用型负载均衡监听器绑定的证书更换为另一个证书,

func (*ULBClient) UpdateSecurityPolicy added in v0.21.39

func (c *ULBClient) UpdateSecurityPolicy(req *UpdateSecurityPolicyRequest) (*UpdateSecurityPolicyResponse, error)

API: UpdateSecurityPolicy

更新安全策略

func (*ULBClient) UpdateTargetsAttribute added in v0.22.6

API: UpdateTargetsAttribute

更新应用型负载均衡监听器后端服务节点的属性

func (*ULBClient) UpdateULBAttribute

func (c *ULBClient) UpdateULBAttribute(req *UpdateULBAttributeRequest) (*UpdateULBAttributeResponse, error)

API: UpdateULBAttribute

更新CLB名字业务组备注等属性字段

func (*ULBClient) UpdateVServerAttribute

API: UpdateVServerAttribute

更新传统型负载均衡VServer实例属性

type ULBIPSet

type ULBIPSet struct {

	// 弹性IP的带宽值(暂未对外开放)
	Bandwidth int

	// 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放)
	BandwidthType int

	// 弹性IP地址
	EIP string

	// 弹性IP的ID
	EIPId string

	// 弹性IP的运营商信息,枚举值为:  Bgp:BGP IP International:国际IP
	OperatorName string
}

ULBIPSet - DescribeULB

type ULBPolicySet

type ULBPolicySet struct {

	// 内容转发下rs的详细信息,参考PolicyBackendSet
	BackendSet []PolicyBackendSet

	// 内容转发规则中域名的匹配方式。枚举值:Regular,正则;Wildcard,泛域名
	DomainMatchMode string

	// 内容转发匹配字段;默认内容转发类型下为空。
	Match string

	// 内容转发Id,默认内容转发类型下为空。
	PolicyId string

	// 内容转发优先级,范围[1,9999],数字越大优先级越高。默认内容转发规则下为0。
	PolicyPriority int

	// 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发
	PolicyType string

	// 默认内容转发类型下返回当前rs总数
	TotalCount int

	// 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空
	Type string

	// 所属VServerId
	VServerId string
}

ULBPolicySet - 内容转发详细列表

type ULBSSLSet

type ULBSSLSet struct {

	// SSL证书绑定到的对象
	BindedTargetSet []SSLBindedTargetSet

	// SSL证书的创建时间
	CreateTime int

	// USSL证书平台的域名,只有当SSLSource为1时才出现
	Domains string

	// SSL证书的HASH值
	HashValue string

	// 证书过期时间,只有当SSLSource为1时才出现
	NotAfter int

	// 证书颁发时间,只有当SSLSource为1时才出现
	NotBefore int

	// SSL证书的内容
	SSLContent string

	// SSL证书的Id
	SSLId string

	// SSL证书的名字
	SSLName string

	// SSL证书来源,SSL证书来源,0代表证书来自于ULB平台,1代表证书来自于USSL平台
	SSLSource int

	// SSL证书类型,暂时只有 Pem 一种类型
	SSLType string

	// USSL证书平台的编号,只有当SSLSource为1时才出现
	USSLId string
}

ULBSSLSet - DescribeSSL

type ULBSet

type ULBSet struct {

	// 带宽
	Bandwidth int

	// 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽
	BandwidthType int

	// ULB 所属的业务组ID
	BusinessId string

	// ULB的创建时间,格式为Unix Timestamp
	CreateTime int

	// ULB是否开启日志功能。0,关闭;1,开启
	EnableLog int

	// ULB的到期时间,格式为Unix Timestamp
	ExpireTime int `deprecated:"true"`

	// 防火墙信息,具体结构见下方 FirewallSet
	FirewallSet []FirewallSet

	// ULB的详细信息列表,具体结构见下方 ULBIPSet
	IPSet []ULBIPSet

	// ULB ip类型,枚举值:IPv6 / IPv4 (内部测试,暂未对外开放)
	IPVersion string

	// ULB 监听器类型,枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发;Comprehensive,兼容型;Pending,未定型
	ListenType string

	// 日志功能相关信息,仅当EnableLog为true时会返回,具体结构见下方 LoggerSet
	LogSet LoggerSet

	// 负载均衡的资源名称
	Name string

	// ULB的内网IP,当ULBType为OuterMode时,该值为空
	PrivateIP string

	// 负载均衡的备注
	Remark string

	// ULB的详细信息列表(废弃)
	Resource []string `deprecated:"true"`

	// ULB后向代理IP,仅当有代理IP时返回否
	SnatIps []string

	// ULB 为 InnerMode 时,ULB 所属的子网ID,默认为空
	SubnetId string

	// 负载均衡的业务组名称
	Tag string

	// 负载均衡的资源ID
	ULBId string

	//
	ULBName string `deprecated:"true"`

	// ULB 的类型
	ULBType string

	// ULB所在的VPC的ID
	VPCId string

	// 负载均衡实例中存在的VServer实例列表,具体结构见下方 ULBVServerSet
	VServerSet []ULBVServerSet
}

ULBSet - DescribeULB

type ULBSimpleSet added in v0.17.2

type ULBSimpleSet struct {

	// 带宽
	Bandwidth int

	// 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽
	BandwidthType int

	// ULB 所属的业务组ID
	BusinessId string

	// ULB的创建时间,格式为Unix Timestamp
	CreateTime int

	// ULB是否开启日志功能。0,关闭;1,开启
	EnableLog int

	// 防火墙信息,具体结构见下方 FirewallSet
	FirewallSet []FirewallSet

	// ULB的详细信息列表,具体结构见下方 ULBIPSet
	IPSet []ULBIPSet

	// ULB提供服务的IP类型。枚举值,“IPv4”,"IPv6"。默认为“IPv4”
	IPVersion string

	// ULB 监听器类型,枚举值:RequestProxy,请求代理; PacketsTransmit ,报文转发;Comprehensive,兼容型;Pending,未定型
	ListenType string

	// 日志功能相关信息,仅当EnableLog为true时会返回,具体结构见下方 LoggerSet
	LogSet LoggerSet

	// 负载均衡的资源名称
	Name string

	// ULB的内网IP,当ULBType为OuterMode时,该值为空
	PrivateIP string

	// 负载均衡的备注
	Remark string

	// ULB后向代理IP,仅当有代理IP时返回否
	SnatIps []string

	// ULB 为 InnerMode 时,ULB 所属的子网ID
	SubnetId string

	// 负载均衡的业务组名称
	Tag string

	// 负载均衡的资源ID
	ULBId string

	// ULB 的类型(InnerMode or OuterMode)
	ULBType string

	// ULB所在的VPC的ID
	VPCId string

	// ulb下vserver数量
	VServerCount int

	// WAF功能状态,枚举类型:Unavailable:无法创建WAF;NoWAF:未绑定WAF;Intranet:内网回源Waf;Extranet:外网回源Waf
	WAFMode string
}

ULBSimpleSet - ulb简明信息

type ULBVServerSet

type ULBVServerSet struct {

	// 后端资源信息列表,具体结构见下方 ULBBackendSet
	BackendSet []ULBBackendSet

	// 空闲连接的回收时间,单位:秒。
	ClientTimeout int

	// 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名
	Domain string

	// 数据压缩开关,0:关闭 1:开启
	EnableCompression int

	// 0:关闭 1:开启,用于开启http2功能;默认值为0
	EnableHTTP2 int

	// 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能
	ForwardPort int

	// VServer服务端口
	FrontendPort int

	// 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发
	ListenType string

	// VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。
	Method string

	// 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测, Customize -> UDP检查请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path; 报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize
	MonitorType string

	// 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径
	Path string

	// 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。
	PersistenceInfo string

	// VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。
	PersistenceType string

	// 内容转发信息列表,具体结构见下方 ULBPolicySet
	PolicySet []ULBPolicySet

	// VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。
	Protocol string

	// 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文
	RequestMsg string

	// 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文
	ResponseMsg string

	// VServer绑定的SSL证书信息,具体结构见下方 ULBSSLSet。
	SSLSet []ULBSSLSet

	// VServer绑定的安全策略,具体结构见BindSecurityPolicy
	SecurityPolicy BindSecurityPolicy

	// VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。
	Status int

	// 负载均衡实例的Id
	ULBId string

	// VServer实例的Id
	VServerId string

	// VServer实例的名字
	VServerName string
}

ULBVServerSet - DescribeULB

type UlbPolicyBackendSet added in v0.14.3

type UlbPolicyBackendSet struct {

	// 后端资源实例的ID
	BackendId string

	// 后端资源实例的服务端口
	Port int

	// 后端资源实例的内网IP
	PrivateIP string
}

UlbPolicyBackendSet - DescribePolicyGroup

type UlbPolicyGroupSet added in v0.14.3

type UlbPolicyGroupSet struct {

	// 内容转发策略组ID
	GroupId string

	// 内容转发策略组名称
	GroupName string

	// 内容转发策略组详细信息,具体结构见 UlbPolicySet
	PolicySet []UlbPolicySet
}

UlbPolicyGroupSet - DescribePolicyGroup

type UlbPolicySet added in v0.14.3

type UlbPolicySet struct {

	// 内容转发策略组ID所应用的后端资源列表,具体结构见 UlbPolicyBackendSet
	BackendSet []UlbPolicyBackendSet

	// 内容转发匹配字段
	Match string

	// 内容转发策略组ID
	PolicyId string

	// 内容转发匹配字段的类型,当前只支持按域名转发。枚举值为: Domain,按域名转发
	Type string

	// 内容转发策略组ID应用的VServer实例的ID
	VServerId string
}

UlbPolicySet - DescribePolicyGroup

type UnBindSecurityPolicyRequest added in v0.21.39

type UnBindSecurityPolicyRequest struct {
	request.CommonBase

	// 安全策略ID
	SecurityPolicyId *string `required:"true"`
}

UnBindSecurityPolicyRequest is request schema for UnBindSecurityPolicy action

type UnBindSecurityPolicyResponse added in v0.21.39

type UnBindSecurityPolicyResponse struct {
	response.CommonBase
}

UnBindSecurityPolicyResponse is response schema for UnBindSecurityPolicy action

type UnbindSSLRequest added in v0.6.10

type UnbindSSLRequest struct {
	request.CommonBase

	// SSL证书的Id
	SSLId *string `required:"true"`

	// 所绑定CLB实例ID
	ULBId *string `required:"true"`

	// CLB所绑定VServer实例ID
	VServerId *string `required:"true"`
}

UnbindSSLRequest is request schema for UnbindSSL action

type UnbindSSLResponse added in v0.6.10

type UnbindSSLResponse struct {
	response.CommonBase
}

UnbindSSLResponse is response schema for UnbindSSL action

type UpdateBackendAttributeRequest

type UpdateBackendAttributeRequest struct {
	request.CommonBase

	// 后端资源实例的ID(CLB后端ID,非资源自身ID)
	BackendId *string `required:"true"`

	// 后端实例状态开关
	Enabled *int `required:"false"`

	// 是否为backup0:主rs1:备rs默认为0
	IsBackup *int `required:"false"`

	// 后端资源服务端口,取值范围[1-65535]
	Port *int `required:"false"`

	// 传统型负载均衡资源ID
	ULBId *string `required:"true"`

	// 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1
	Weight *int `required:"false"`
}

UpdateBackendAttributeRequest is request schema for UpdateBackendAttribute action

type UpdateBackendAttributeResponse

type UpdateBackendAttributeResponse struct {
	response.CommonBase
}

UpdateBackendAttributeResponse is response schema for UpdateBackendAttribute action

type UpdateBackendBatchParamAttributes added in v0.22.7

type UpdateBackendBatchParamAttributes struct {

	// 后端资源实例的ID(ULB后端ID,非资源自身ID)
	BackendId *string `required:"true"`

	// 后端实例状态开关
	Enabled *int `required:"false"`

	// 是否为backup 0:主rs 1:备rs 默认为0
	IsBackup *int `required:"false"`

	// 后端资源服务端口,取值范围[1-65535]
	Port *int `required:"false"`

	// 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
	Weight *int `required:"false"`
}

UpdateBackendBatchParamAttributes is request schema for complex param

type UpdateBackendBatchRequest added in v0.22.7

type UpdateBackendBatchRequest struct {
	request.CommonBase

	//
	Attributes []UpdateBackendBatchParamAttributes `required:"false"`

	// 负载均衡资源ID
	ULBId *string `required:"true"`
}

UpdateBackendBatchRequest is request schema for UpdateBackendBatch action

type UpdateBackendBatchResponse added in v0.22.7

type UpdateBackendBatchResponse struct {
	response.CommonBase

	// 返回ulb对每个rs的修改是否成功
	BackendSet []BackendMsg
}

UpdateBackendBatchResponse is response schema for UpdateBackendBatch action

type UpdateListenerAttributeParamHealthCheckConfig added in v0.22.6

type UpdateListenerAttributeParamHealthCheckConfig struct {

	// (应用型专用)HTTP检查域名
	Domain *string `required:"false"`

	// 是否开启健康检查功能。暂时不支持关闭;默认值为:true
	Enabled *bool `required:"false"`

	// (应用型专用)HTTP检查路径
	Path *string `required:"false"`

	// 健康检查方式。应用型限定取值:“Port”/"HTTP";默认值:“Port”
	Type *string `required:"false"`
}

UpdateListenerAttributeParamHealthCheckConfig is request schema for complex param

type UpdateListenerAttributeParamStickinessConfig added in v0.22.6

type UpdateListenerAttributeParamStickinessConfig struct {

	// (应用型专用)自定义Cookie。当StickinessType取值"UserDefined"时有效;限定字符长度:[0-255]
	CookieName *string `required:"false"`

	// 是否开启会话保持功能。应用型负载均衡实例基于Cookie实现,网络型负载均衡则基于源IP,保证在对应的空闲超时时间内,同一个源IP送到同一个服务节点。默认值为:false
	Enabled *bool `required:"false"`

	// (应用型专用)Cookie处理方式。限定枚举值:"ServerInsert" / "UserDefined",默认值为:“ServerInsert”
	Type *string `required:"false"`
}

UpdateListenerAttributeParamStickinessConfig is request schema for complex param

type UpdateListenerAttributeRequest added in v0.22.6

type UpdateListenerAttributeRequest struct {
	request.CommonBase

	// (应用型专用)服务器默认证书ID。仅HTTPS监听支持
	Certificates []string `required:"false"`

	// (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩
	CompressionEnabled *bool `required:"false"`

	// (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启
	HTTP2Enabled *bool `required:"false"`

	//
	HealthCheckConfig *UpdateListenerAttributeParamHealthCheckConfig `required:"false"`

	// 连接空闲超时时间。单位:秒。应用型限定取值:[1-86400]
	IdleTimeout *int `required:"false"`

	// 监听器的ID
	ListenerId *string `required:"true"`

	// 负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	// 监听器的名称。限定字符长度:[1-255];限定特殊字符,仅支持:-_.
	Name *string `required:"false"`

	// (应用型专用)是否开启HTTP重定向到HTTPS。仅HTTP监听支持开启
	RedirectEnabled *bool `required:"false"`

	// (应用型专用)重定向端口。限定取值:[1-65535]
	RedirectPort *int `required:"false"`

	// 监听器的备注信息。限定字符长度:[0-255]
	Remark *string `required:"false"`

	// 负载均衡算法。应用型限定取值:"Roundrobin"/"Source"/"WeightRoundrobin"/" Leastconn"/"Backup"
	Scheduler *string `required:"false"`

	// (应用型专用)安全策略组ID。仅HTTPS监听支持绑定。“Default”,表示绑定原生策略
	SecurityPolicyId *string `required:"false"`

	//
	StickinessConfig *UpdateListenerAttributeParamStickinessConfig `required:"false"`
}

UpdateListenerAttributeRequest is request schema for UpdateListenerAttribute action

type UpdateListenerAttributeResponse added in v0.22.6

type UpdateListenerAttributeResponse struct {
	response.CommonBase
}

UpdateListenerAttributeResponse is response schema for UpdateListenerAttribute action

type UpdateLoadBalancerAttributeParamAccessLogConfig added in v0.22.6

type UpdateLoadBalancerAttributeParamAccessLogConfig struct {

	// (应用型专用)是否开启访问日志记录功能
	Enabled *bool `required:"false"`

	// (应用型专用)用于存储访问日志的bucket
	US3BucketName *string `required:"false"`

	// (应用型专用)上传访问日志到bucket所需的token
	US3TokenId *string `required:"false"`
}

UpdateLoadBalancerAttributeParamAccessLogConfig is request schema for complex param

type UpdateLoadBalancerAttributeRequest added in v0.22.6

type UpdateLoadBalancerAttributeRequest struct {
	request.CommonBase

	//
	AccessLogConfig *UpdateLoadBalancerAttributeParamAccessLogConfig `required:"false"`

	// 负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	// 负载均衡实例的名称,不传则默认不修改
	Name *string `required:"false"`

	// 负载均衡实例的备注信息,不传则默认不修改,限定字符长度:[0-255]
	Remark *string `required:"false"`

	// 负载均衡实例所属的业务组ID,不传则默认不修改
	Tag *string `required:"false"`
}

UpdateLoadBalancerAttributeRequest is request schema for UpdateLoadBalancerAttribute action

type UpdateLoadBalancerAttributeResponse added in v0.22.6

type UpdateLoadBalancerAttributeResponse struct {
	response.CommonBase
}

UpdateLoadBalancerAttributeResponse is response schema for UpdateLoadBalancerAttribute action

type UpdatePolicyGroupAttributeRequest added in v0.14.3

type UpdatePolicyGroupAttributeRequest struct {
	request.CommonBase

	// 内容转发策略组ID
	GroupId *string `required:"true"`

	// 修改策略转发组名称
	GroupName *string `required:"false"`
}

UpdatePolicyGroupAttributeRequest is request schema for UpdatePolicyGroupAttribute action

type UpdatePolicyGroupAttributeResponse added in v0.14.3

type UpdatePolicyGroupAttributeResponse struct {
	response.CommonBase
}

UpdatePolicyGroupAttributeResponse is response schema for UpdatePolicyGroupAttribute action

type UpdatePolicyRequest

type UpdatePolicyRequest struct {
	request.CommonBase

	// 内容转发策略应用的后端资源实例的ID(CLB的后端节点Id),来源于 AllocateBackend 返回的 BackendId,不传表示更新转发节点为空
	BackendId []string `required:"false"`

	// 内容转发规则中域名的匹配方式,默认与原本一致。枚举值:Regular,正则;Wildcard,泛域名
	DomainMatchMode *string `required:"false"`

	// 内容转发匹配字段
	Match *string `required:"true"`

	// 传统型负载均衡转发规则的ID,当Type为Default时,可以不传或为空
	PolicyId *string `required:"false"`

	// 策略优先级,1-9999;只针对路径规则生效
	PolicyPriority *int `required:"false"`

	// 内容转发匹配字段的类型,枚举值:Domain -> 域名转发规则;Path -> 路径转发规则;Default -> 默认转发规则,不传默认值Domain
	Type *string `required:"false"`

	// 需要添加内容转发策略的传统型负载均衡实例ID
	ULBId *string `required:"true"`

	// 需要添加内容转发策略的VServer实例ID,只支持请求代理模式下,HTTP或HTTPS协议的CLB下的VServer
	VServerId *string `required:"true"`
}

UpdatePolicyRequest is request schema for UpdatePolicy action

type UpdatePolicyResponse

type UpdatePolicyResponse struct {
	response.CommonBase

	// 【该字段已废弃,请谨慎使用】
	PolicyId string `deprecated:"true"`
}

UpdatePolicyResponse is response schema for UpdatePolicy action

type UpdateRuleAttributeParamRuleActions added in v0.22.6

type UpdateRuleAttributeParamRuleActions struct {

	//
	ForwardConfig *UpdateRuleAttributeParamRuleActionsForwardConfig `required:"false"`

	// 动作类型。限定枚举值:"Forward";RuleActions数组长度不为0时必填
	Type *string `required:"false"`
}

UpdateRuleAttributeParamRuleActions is request schema for complex param

type UpdateRuleAttributeParamRuleActionsForwardConfig added in v0.22.6

type UpdateRuleAttributeParamRuleActionsForwardConfig struct {

	//
	Targets []UpdateRuleAttributeParamRuleActionsForwardConfigTargets `required:"false"`
}

UpdateRuleAttributeParamRuleActionsForwardConfig is request schema for complex param

type UpdateRuleAttributeParamRuleActionsForwardConfigTargets added in v0.22.6

type UpdateRuleAttributeParamRuleActionsForwardConfigTargets struct {

	// 转发的后端服务节点的标识ID。限定在监听器的服务节点池里;数组长度可以是0;转发服务节点配置的数组长度不为0时,Id必填
	Id *string `required:"false"`

	// 转发的后端服务节点的权重。仅监听器负载均衡算法是加权轮询是有效
	Weight *int `required:"false"`
}

UpdateRuleAttributeParamRuleActionsForwardConfigTargets is request schema for complex param

type UpdateRuleAttributeParamRuleConditions added in v0.22.6

type UpdateRuleAttributeParamRuleConditions struct {

	//
	HostConfig *UpdateRuleAttributeParamRuleConditionsHostConfig `required:"false"`

	//
	PathConfig *UpdateRuleAttributeParamRuleConditionsPathConfig `required:"false"`

	// 匹配条件类型。限定枚举值:"Host"/"Path";RuleConditions数组长度不为0时必填
	Type *string `required:"false"`
}

UpdateRuleAttributeParamRuleConditions is request schema for complex param

type UpdateRuleAttributeParamRuleConditionsHostConfig added in v0.22.6

type UpdateRuleAttributeParamRuleConditionsHostConfig struct {

	// 匹配方式。限定枚举值:"Regular"/"Wildcard",默认值:"Regular"
	MatchMode *string `required:"false"`

	// 取值。暂时只支持数组长度为1;取值需符合相关匹配方式的条件;修改域名匹配时必填
	Values []string `required:"false"`
}

UpdateRuleAttributeParamRuleConditionsHostConfig is request schema for complex param

type UpdateRuleAttributeParamRuleConditionsPathConfig added in v0.22.6

type UpdateRuleAttributeParamRuleConditionsPathConfig struct {

	// 取值。暂时只支持数组长度为1;取值需符合相关条件;修改路径匹配时必填
	Values []string `required:"false"`
}

UpdateRuleAttributeParamRuleConditionsPathConfig is request schema for complex param

type UpdateRuleAttributeRequest added in v0.22.6

type UpdateRuleAttributeRequest struct {
	request.CommonBase

	// 监听器的ID
	ListenerId *string `required:"true"`

	// 负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	// 当转发的服务节点为空时,规则是否忽略。默认转发规则不可更改
	Pass *bool `required:"false"`

	//
	RuleActions []UpdateRuleAttributeParamRuleActions `required:"false"`

	//
	RuleConditions []UpdateRuleAttributeParamRuleConditions `required:"false"`

	// 转发规则的ID
	RuleId *string `required:"true"`
}

UpdateRuleAttributeRequest is request schema for UpdateRuleAttribute action

type UpdateRuleAttributeResponse added in v0.22.6

type UpdateRuleAttributeResponse struct {
	response.CommonBase
}

UpdateRuleAttributeResponse is response schema for UpdateRuleAttribute action

type UpdateSSLAttributeRequest added in v0.21.38

type UpdateSSLAttributeRequest struct {
	request.CommonBase

	// SSL的资源id
	SSLId *string `required:"true"`

	// SSL实例名称,不允许传空
	SSLName *string `required:"true"`
}

UpdateSSLAttributeRequest is request schema for UpdateSSLAttribute action

type UpdateSSLAttributeResponse added in v0.21.38

type UpdateSSLAttributeResponse struct {
	response.CommonBase
}

UpdateSSLAttributeResponse is response schema for UpdateSSLAttribute action

type UpdateSSLBindingRequest added in v0.22.3

type UpdateSSLBindingRequest struct {
	request.CommonBase

	// 所操作监听器实例ID(仅ListenerId传参时,将更换该监听器所有原证书为OldSSLId的绑定关系;LoadBalancerId和ListenerId都不传参则将更新该项目下所有原证书为OldSSLId的绑定关系;若LoadBalancerId与ListenerId皆有传参,则会强校验ULB与Vsserver的所属关系,将更换该ulb下vserver所绑定的OldSSLId为NewSSLId)(监听器指VServer或Listener)
	ListenerId *string `required:"false"`

	// 所操作LB实例ID(仅LoadBalancerId传参时,将更换该LB所有原证书为OldSSLId的绑定关系;LoadBalancerId和ListenerId都不传参则将更新该项目下所有原证书为OldSSLId的绑定关系)(LB指CLB或ALB)
	LoadBalancerId *string `required:"false"`

	// 监听器实例需要绑定的新的证书
	NewSSLId *string `required:"true"`

	// 监听器实例绑定的旧的证书
	OldSSLId *string `required:"true"`
}

UpdateSSLBindingRequest is request schema for UpdateSSLBinding action

type UpdateSSLBindingResponse added in v0.22.3

type UpdateSSLBindingResponse struct {
	response.CommonBase
}

UpdateSSLBindingResponse is response schema for UpdateSSLBinding action

type UpdateSecurityPolicyRequest added in v0.21.39

type UpdateSecurityPolicyRequest struct {
	request.CommonBase

	// 加密套件,TLS最低版本和加密套件必须全不为空或全为空
	SSLCiphers []string `required:"false"`

	// 安全策略ID
	SecurityPolicyId *string `required:"true"`

	// 安全策略名称
	SecurityPolicyName *string `required:"false"`

	// TLS最低版本,TLS最低版本和加密套件必须全不为空或全为空
	TLSVersion *string `required:"false"`
}

UpdateSecurityPolicyRequest is request schema for UpdateSecurityPolicy action

type UpdateSecurityPolicyResponse added in v0.21.39

type UpdateSecurityPolicyResponse struct {
	response.CommonBase
}

UpdateSecurityPolicyResponse is response schema for UpdateSecurityPolicy action

type UpdateTargetsAttributeParamTargets added in v0.22.6

type UpdateTargetsAttributeParamTargets struct {

	// 服务节点是否启用。默认值true;要更新的Targets数组长度至少为1,不超过20个
	Enabled *bool `required:"false"`

	// 服务节点的标识ID。限定枚举值:"UHost" / "UNI"/"UPM"/"IP";要更新的Targets数组长度至少为1,不超过20个
	Id *string `required:"false"`

	// 服务节点是否为备节点。默认值false;要更新的Targets数组长度至少为1,不超过20个
	IsBackup *bool `required:"false"`

	// 服务节点的权重。限定取值:[1-100],默认值1;仅在加权轮询算法时有效;要更新的Targets数组长度至少为1,不超过20个
	Weight *int `required:"false"`
}

UpdateTargetsAttributeParamTargets is request schema for complex param

type UpdateTargetsAttributeRequest added in v0.22.6

type UpdateTargetsAttributeRequest struct {
	request.CommonBase

	// 监听器的ID
	ListenerId *string `required:"true"`

	// 负载均衡实例的ID
	LoadBalancerId *string `required:"true"`

	//
	Targets []UpdateTargetsAttributeParamTargets `required:"false"`
}

UpdateTargetsAttributeRequest is request schema for UpdateTargetsAttribute action

type UpdateTargetsAttributeResponse added in v0.22.6

type UpdateTargetsAttributeResponse struct {
	response.CommonBase
}

UpdateTargetsAttributeResponse is response schema for UpdateTargetsAttribute action

type UpdateULBAttributeRequest

type UpdateULBAttributeRequest struct {
	request.CommonBase

	// 设置用于存储ulb日志的bucket
	BucketName *string `required:"false"`

	// 日志开关,1代表开启日志,0代表关闭日志,传1时必须同时传BucketName,TokenName与TokenId二选一
	EnableLog *int `required:"false"`

	// 是否开启WAF。枚举类型:Yes,No,默认值为No
	IsWAFOn *string `required:"false"`

	// 名字,不传则默认不修改
	Name *string `required:"false"`

	// 备注,不传则默认不修改
	Remark *string `required:"false"`

	// 业务,不传则默认不修改
	Tag *string `required:"false"`

	// 用于指定上传到bucket所需的token,与TokenName选填其一即可
	TokenId *string `required:"false"`

	// 用于指定上传到bucket所需的token,与TokenId选填其一即可
	TokenName *string `required:"false"`

	// CLB资源ID
	ULBId *string `required:"true"`
}

UpdateULBAttributeRequest is request schema for UpdateULBAttribute action

type UpdateULBAttributeResponse

type UpdateULBAttributeResponse struct {
	response.CommonBase
}

UpdateULBAttributeResponse is response schema for UpdateULBAttribute action

type UpdateVServerAttributeRequest

type UpdateVServerAttributeRequest struct {
	request.CommonBase

	// 请求代理的VServer下表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;报文转发的VServer下表示回话保持的时间,单位:秒,取值范围:[60,900],0 表示禁用连接保持
	ClientTimeout *int `required:"false"`

	// MonitorType 为 Path 时指定健康检查发送请求时HTTP HEADER 里的域名
	Domain *string `required:"false"`

	// 0:关闭 1:开启,用于数据压缩功能
	EnableCompression *int `required:"false"`

	// 0:关闭 1:开启,用于开启http2功能;默认值为0
	EnableHTTP2 *int `required:"false"`

	// 重定向端口,取值范围[0-65535];默认值为0,代表关闭;仅HTTP协议支持开启重定向功能
	ForwardPort *int `required:"false"`

	// VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> 最小连接数;Backup -> 主备模式。ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin,Backup在请求代理和报文转发中使用。默认为:"Roundrobin"
	Method *string `required:"false"`

	// 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;Ping -> Ping探测,Customize -> UDP检查请求代理型默认值为Port,其中TCP协议仅支持Port,其他协议支持Port和Path;报文转发型TCP协议仅支持Port,UDP协议支持Ping、Port和Customize,默认值为Ping
	MonitorType *string `required:"false"`

	// MonitorType 为 Path 时指定健康检查发送请求时的路径,默认为 /
	Path *string `required:"false"`

	// 根据PersistenceType确定: None或ServerInsert, 此字段无意义; UserDefined, 则此字段传入用户自定义会话保持String. 若无此字段则不做修改
	PersistenceInfo *string `required:"false"`

	// VServer会话保持模式,若无此字段则不做修改。枚举值:None:关闭;ServerInsert:自动生成KEY;UserDefined:用户自定义KEY。
	PersistenceType *string `required:"false"`

	// 【该字段已废弃,请谨慎使用】
	Protocol *string `required:"false" deprecated:"true"`

	// 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查发出的请求报文
	RequestMsg *string `required:"false"`

	// 根据MonitorType确认; 当MonitorType为Customize时,此字段有意义,代表UDP检查请求应收到的响应报文
	ResponseMsg *string `required:"false"`

	// 安全策略组ID
	SecurityPolicyId *string `required:"false"`

	// 传统型负载均衡实例ID
	ULBId *string `required:"true"`

	// 传统型负载均衡VServer实例ID
	VServerId *string `required:"true"`

	// VServer实例名称,若无此字段则不做修改
	VServerName *string `required:"false"`
}

UpdateVServerAttributeRequest is request schema for UpdateVServerAttribute action

type UpdateVServerAttributeResponse

type UpdateVServerAttributeResponse struct {
	response.CommonBase
}

UpdateVServerAttributeResponse is response schema for UpdateVServerAttribute action

Jump to

Keyboard shortcuts

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