Documentation ¶
Overview ¶
Package nlb include resources of ucloud nlb product
See also
for detail.
Index ¶
- type AddNLBTargetsParamTargets
- type AddNLBTargetsRequest
- type AddNLBTargetsResponse
- type CreateNLBListenerParamHealthCheckConfig
- type CreateNLBListenerRequest
- type CreateNLBListenerResponse
- type CreateNetworkLoadBalancerRequest
- type CreateNetworkLoadBalancerResponse
- type DeleteNLBListenerRequest
- type DeleteNLBListenerResponse
- type DeleteNetworkLoadBalancerRequest
- type DeleteNetworkLoadBalancerResponse
- type DescribeNLBListenersRequest
- type DescribeNLBListenersResponse
- type DescribeNetworkLoadBalancersRequest
- type DescribeNetworkLoadBalancersResponse
- type GetNetworkLoadBalancerPriceRequest
- type GetNetworkLoadBalancerPriceResponse
- type HealthCheckConfig
- type IPInfo
- type Listener
- type NLBClient
- func (c *NLBClient) AddNLBTargets(req *AddNLBTargetsRequest) (*AddNLBTargetsResponse, error)
- func (c *NLBClient) CreateNLBListener(req *CreateNLBListenerRequest) (*CreateNLBListenerResponse, error)
- func (c *NLBClient) CreateNetworkLoadBalancer(req *CreateNetworkLoadBalancerRequest) (*CreateNetworkLoadBalancerResponse, error)
- func (c *NLBClient) DeleteNLBListener(req *DeleteNLBListenerRequest) (*DeleteNLBListenerResponse, error)
- func (c *NLBClient) DeleteNetworkLoadBalancer(req *DeleteNetworkLoadBalancerRequest) (*DeleteNetworkLoadBalancerResponse, error)
- func (c *NLBClient) DescribeNLBListeners(req *DescribeNLBListenersRequest) (*DescribeNLBListenersResponse, error)
- func (c *NLBClient) DescribeNetworkLoadBalancers(req *DescribeNetworkLoadBalancersRequest) (*DescribeNetworkLoadBalancersResponse, error)
- func (c *NLBClient) GetNetworkLoadBalancerPrice(req *GetNetworkLoadBalancerPriceRequest) (*GetNetworkLoadBalancerPriceResponse, error)
- func (c *NLBClient) NewAddNLBTargetsRequest() *AddNLBTargetsRequest
- func (c *NLBClient) NewCreateNLBListenerRequest() *CreateNLBListenerRequest
- func (c *NLBClient) NewCreateNetworkLoadBalancerRequest() *CreateNetworkLoadBalancerRequest
- func (c *NLBClient) NewDeleteNLBListenerRequest() *DeleteNLBListenerRequest
- func (c *NLBClient) NewDeleteNetworkLoadBalancerRequest() *DeleteNetworkLoadBalancerRequest
- func (c *NLBClient) NewDescribeNLBListenersRequest() *DescribeNLBListenersRequest
- func (c *NLBClient) NewDescribeNetworkLoadBalancersRequest() *DescribeNetworkLoadBalancersRequest
- func (c *NLBClient) NewGetNetworkLoadBalancerPriceRequest() *GetNetworkLoadBalancerPriceRequest
- func (c *NLBClient) NewRemoveNLBTargetsRequest() *RemoveNLBTargetsRequest
- func (c *NLBClient) NewUpdateNLBListenerAttributeRequest() *UpdateNLBListenerAttributeRequest
- func (c *NLBClient) NewUpdateNLBTargetsAttributeRequest() *UpdateNLBTargetsAttributeRequest
- func (c *NLBClient) NewUpdateNetworkLoadBalancerAttributeRequest() *UpdateNetworkLoadBalancerAttributeRequest
- func (c *NLBClient) RemoveNLBTargets(req *RemoveNLBTargetsRequest) (*RemoveNLBTargetsResponse, error)
- func (c *NLBClient) UpdateNLBListenerAttribute(req *UpdateNLBListenerAttributeRequest) (*UpdateNLBListenerAttributeResponse, error)
- func (c *NLBClient) UpdateNLBTargetsAttribute(req *UpdateNLBTargetsAttributeRequest) (*UpdateNLBTargetsAttributeResponse, error)
- func (c *NLBClient) UpdateNetworkLoadBalancerAttribute(req *UpdateNetworkLoadBalancerAttributeRequest) (*UpdateNetworkLoadBalancerAttributeResponse, error)
- type NetworkLoadBalancer
- type PriceDetail
- type RemoveNLBTargetsRequest
- type RemoveNLBTargetsResponse
- type Target
- type UpdateNLBListenerAttributeParamHealthCheckConfig
- type UpdateNLBListenerAttributeRequest
- type UpdateNLBListenerAttributeResponse
- type UpdateNLBTargetsAttributeParamTargets
- type UpdateNLBTargetsAttributeRequest
- type UpdateNLBTargetsAttributeResponse
- type UpdateNetworkLoadBalancerAttributeRequest
- type UpdateNetworkLoadBalancerAttributeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddNLBTargetsParamTargets ¶
type AddNLBTargetsParamTargets struct { // 服务节点是否启用 Enabled *bool `required:"false"` // 服务节点的端口,限定取值:[1-65535] Port *int `required:"false"` // 服务节点所在地域 Region *string `required:"false"` // 服务节点的IP。在IP类型时,必传 ResourceIP *string `required:"false"` // 服务节点的资源ID。在非IP类型时,必传 ResourceId *string `required:"false"` // 服务节点的资源名称 ResourceName *string `required:"false"` // 服务节点的类型。限定枚举值:"UHost" / "UNI"/"UPM"/"IP",默认值:"UHost";非IP类型,如果该资源有多个IP,将只能添加主IP;非IP类型,展示时,会显示相关资源信息,IP类型只展示IP信息。 ResourceType *string `required:"false"` // 服务节点的子网资源ID。 SubnetId *string `required:"false"` // 服务节点的VPC资源ID。在IP类型时,必传 VPCId *string `required:"false"` // 服务节点的权重。限定取值:[1-100],默认值1;仅在加权轮询、加权最小连接数算法时有效 Weight *int `required:"false"` }
AddNLBTargetsParamTargets is request schema for complex param
type AddNLBTargetsRequest ¶
type AddNLBTargetsRequest struct { request.CommonBase // 监听器的ID。 ListenerId *string `required:"true"` // 负载均衡实例的ID。 NLBId *string `required:"true"` // Targets []AddNLBTargetsParamTargets `required:"false"` }
AddNLBTargetsRequest is request schema for AddNLBTargets action
type AddNLBTargetsResponse ¶
type AddNLBTargetsResponse struct { response.CommonBase // Targets []Target }
AddNLBTargetsResponse is response schema for AddNLBTargets action
type CreateNLBListenerParamHealthCheckConfig ¶
type CreateNLBListenerParamHealthCheckConfig struct { // 是否开启健康检查功能。暂时不支持关闭,默认 true Enabled *bool `required:"false"` // 健康检查探测端口 说明: 限定取值:[1-65535] Port *int `required:"false"` // UDP" 检查模式的请求字符串 ReqMsg *string `required:"false"` // "UDP" 检查模式的预期响应字符串 ResMsg *string `required:"false"` // 健康检查方式 限定取值:"Port"/"UDP"/"Ping" 默认值:“Port” Type *string `required:"false"` }
CreateNLBListenerParamHealthCheckConfig is request schema for complex param
type CreateNLBListenerRequest ¶
type CreateNLBListenerRequest struct { request.CommonBase // 端口范围的结束端口限定取值:[1-65535]取值不小于起始端口默认值 65535 EndPort *int `required:"false"` // HealthCheckConfig *CreateNLBListenerParamHealthCheckConfig `required:"false"` // 负载均衡实例的ID NLBId *string `required:"true"` // 监听器的名称限定字符长度:[1-255]限定特殊字符,仅支持:-_.默认值:listener Name *string `required:"false"` // 监听协议限定取值:"TCP"/"UDP" Protocol *string `required:"false"` // 监听器的备注信息限定字符长度:[0-255] Remark *string `required:"false"` // 负载均衡算法限定取值:"RoundRobin"/"SourceHash"/"LeastConn"/"WeightLeastConn "/"WeightRoundRobin"默认值 "RoundRobin" Scheduler *string `required:"false"` // 端口范围的起始端口限定取值:[1-65535]默认值 1 StartPort *int `required:"false"` // 会话保持超时时间。单位:秒限定取值:[60-900],0 表示不开启会话保持默认值60 StickinessTimeout *int `required:"false"` }
CreateNLBListenerRequest is request schema for CreateNLBListener action
type CreateNLBListenerResponse ¶
type CreateNLBListenerResponse struct { response.CommonBase // 监听器的ID ListenerId string }
CreateNLBListenerResponse is response schema for CreateNLBListener action
type CreateNetworkLoadBalancerRequest ¶
type CreateNetworkLoadBalancerRequest struct { request.CommonBase // API 版本,限定取值 "v1.0"/"v2.0",默认值:"v2.0" ApiVersion *string `required:"false"` // 付费模式,限定取值:"Dynamic"/"Month"/"Year" ChargeType *string `required:"false"` // 代金券code CouponId *string `required:"false"` // 负载均衡实例的IP协议,限定取值:"IPv4"/"IPv6"/"DualStack",默认值:"IPv4" IPVersion *string `required:"false"` // 负载均衡实例的名称限定字符长度:[1-255]限定特殊字符,仅支持:-_.默认值:nlb Name *string `required:"false"` // 购买的时长 Quantity *int `required:"false"` // 负载均衡实例的备注信息限定字符长度:[0-255] Remark *string `required:"false"` // 负载均衡实例所属的子网资源ID SubnetId *string `required:"true"` // 负载均衡实例所属的业务组ID Tag *string `required:"false"` // 载均衡实例所属的VPC资源ID VPCId *string `required:"true"` }
CreateNetworkLoadBalancerRequest is request schema for CreateNetworkLoadBalancer action
type CreateNetworkLoadBalancerResponse ¶
type CreateNetworkLoadBalancerResponse struct { response.CommonBase // Message string // NLBId string }
CreateNetworkLoadBalancerResponse is response schema for CreateNetworkLoadBalancer action
type DeleteNLBListenerRequest ¶
type DeleteNLBListenerRequest struct { request.CommonBase // 监听器的ID ListenerId *string `required:"true"` // 负载均衡实例的ID NLBId *string `required:"true"` }
DeleteNLBListenerRequest is request schema for DeleteNLBListener action
type DeleteNLBListenerResponse ¶
type DeleteNLBListenerResponse struct {
response.CommonBase
}
DeleteNLBListenerResponse is response schema for DeleteNLBListener action
type DeleteNetworkLoadBalancerRequest ¶
type DeleteNetworkLoadBalancerRequest struct { request.CommonBase // 负载均衡实例的ID NLBId *string `required:"true"` // 删除NLB时释放绑定的EIP ReleaseEIP *bool `required:"false"` }
DeleteNetworkLoadBalancerRequest is request schema for DeleteNetworkLoadBalancer action
type DeleteNetworkLoadBalancerResponse ¶
type DeleteNetworkLoadBalancerResponse struct {
response.CommonBase
}
DeleteNetworkLoadBalancerResponse is response schema for DeleteNetworkLoadBalancer action
type DescribeNLBListenersRequest ¶
type DescribeNLBListenersRequest struct { request.CommonBase // 限制返回的监听器数量 Limit *int `required:"false"` // 监听器的ID ListenerId *string `required:"false"` // 负载均衡实例的ID。未指定 ListenerId ,则描述指定的 LoadBalancerId 下的所有监听器 NLBId *string `required:"true"` // 设置监听器的偏移量 Offset *string `required:"false"` }
DescribeNLBListenersRequest is request schema for DescribeNLBListeners action
type DescribeNLBListenersResponse ¶
type DescribeNLBListenersResponse struct { response.CommonBase // Listeners []Listener // TotalCount int }
DescribeNLBListenersResponse is response schema for DescribeNLBListeners action
type DescribeNetworkLoadBalancersRequest ¶
type DescribeNetworkLoadBalancersRequest struct { request.CommonBase // 负载均衡实例的转发类型 ForwardingMode *string `required:"false"` // 数据分页值,默认为100 Limit *int `required:"false"` // 负载均衡实例的ID,数组 NLBIds []string `required:"false"` // 数据偏移量,默认为0 Offset *int `required:"false"` // 是否获取监听器和后端服务节点的详细信息 ShowDetail *bool `required:"false"` // 限定所在的子网 SubnetId *string `required:"false"` // 限定所在的VPC VPCId *string `required:"false"` }
DescribeNetworkLoadBalancersRequest is request schema for DescribeNetworkLoadBalancers action
type DescribeNetworkLoadBalancersResponse ¶
type DescribeNetworkLoadBalancersResponse struct { response.CommonBase // NLBs []NetworkLoadBalancer // 满足条件的负载均衡实例总数 TotalCount int }
DescribeNetworkLoadBalancersResponse is response schema for DescribeNetworkLoadBalancers action
type GetNetworkLoadBalancerPriceRequest ¶
type GetNetworkLoadBalancerPriceRequest struct { request.CommonBase // 付费模式限定枚举值:"Year" / "Month"/ "Dynamic"默认获取三种价格 ChargeType *string `required:"false"` // 负载均衡实例计费方式限定枚举值:"Instance" / "LCU"默认值:"Instance" PayMode *string `required:"false"` // 购买时长按小时购买(Dynamic)时无需此参数。月付时,此参数传 0,代表了购买至月末默认 1 Quantity *int `required:"false"` }
GetNetworkLoadBalancerPriceRequest is request schema for GetNetworkLoadBalancerPrice action
type GetNetworkLoadBalancerPriceResponse ¶
type GetNetworkLoadBalancerPriceResponse struct { response.CommonBase // Prices []PriceDetail }
GetNetworkLoadBalancerPriceResponse is response schema for GetNetworkLoadBalancerPrice action
type HealthCheckConfig ¶
type HealthCheckConfig struct { // 是否开启健康检查功能。 Enabled bool // 健康检查间隔时间限定取值:[1-60] 单位秒默认 2s Interval int // 健康检查最大失败数限定取值:[1-10] 默认 3 MaxFail int // 健康检查最小成功数限定取值:[1-10] 默认 3 MinSuccess int // 健康检查探测端口说明:限定取值:[1-65535] Port int // UDP" 检查模式的请求字符串"HTTP" 检查模式的请求 json 字符串 ReqMsg string // "UDP" 检查模式的预期响应字符串"HTTP" 检查模式的响应状态码 ResMsg string // 健康检查方式限定取值:"Port"/"UDP"/"Ping" /"HTTP"默认值:“Port” Type string }
HealthCheckConfig - 健康检查配置
type IPInfo ¶
type IPInfo struct { // 网络模式,限定枚举值:"Internet" / "Intranet" AddressType string // 带宽值。单位 M Bandwidth int // 带宽类型,限定枚举值:0(普通带宽)/ 1(共享带宽) BandwidthType int // IP 地址 IP string // IP协议版本,限定枚举值:"IPv4" / "IPv6" IPVersion string // 唯一标识 ID Id string // 外网IP的运营商信息,限定枚举值:"Telecom" / "Unicom"/"International"/"Bgp"/"Duplet"/"BGPPro"/"China-mobile"/"Anycast" OperatorName string // IP 类型,1(前向 IP)/ 2(后向 IP) Type int }
IPInfo - 绑定的IP信息
type Listener ¶
type Listener struct { // 端口范围的结束端口 EndPort int // 健康检查相关配置 HealthCheckConfig HealthCheckConfig // 监听器的ID ListenerId string // 监听器的名称 Name string // 监听协议,限定取值:"TCP"/"UDP" Protocol string // 监听器的备注信息 Remark string // 负载均衡算法,限定取值:"RoundRobin"/"SourceHash"/"LeastConn"/"WeightLeastConn "/"WeightRoundRobin " Scheduler string // 端口范围的起始端口 StartPort int // listener 健康状态,"Healthy"/"Unhealthy"/"PartialHealth"/"None" State string // 会话保持超时时间。单位:秒,0表示不开启会话保持 StickinessTimeout int // 服务节点信息 Targets []Target }
Listener - 监听器信息
type NLBClient ¶
NLBClient is the client of NLB
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *NLBClient
NewClient will return a instance of NLBClient
func (*NLBClient) AddNLBTargets ¶
func (c *NLBClient) AddNLBTargets(req *AddNLBTargetsRequest) (*AddNLBTargetsResponse, error)
API: AddNLBTargets
给监听器添加后端服务节点
func (*NLBClient) CreateNLBListener ¶
func (c *NLBClient) CreateNLBListener(req *CreateNLBListenerRequest) (*CreateNLBListenerResponse, error)
API: CreateNLBListener
创建监听器
func (*NLBClient) CreateNetworkLoadBalancer ¶
func (c *NLBClient) CreateNetworkLoadBalancer(req *CreateNetworkLoadBalancerRequest) (*CreateNetworkLoadBalancerResponse, error)
API: CreateNetworkLoadBalancer
创建网络型负载均衡
func (*NLBClient) DeleteNLBListener ¶
func (c *NLBClient) DeleteNLBListener(req *DeleteNLBListenerRequest) (*DeleteNLBListenerResponse, error)
API: DeleteNLBListener
删除一个网络型负载均衡监听器
func (*NLBClient) DeleteNetworkLoadBalancer ¶
func (c *NLBClient) DeleteNetworkLoadBalancer(req *DeleteNetworkLoadBalancerRequest) (*DeleteNetworkLoadBalancerResponse, error)
API: DeleteNetworkLoadBalancer
删除负载均衡实例
func (*NLBClient) DescribeNLBListeners ¶
func (c *NLBClient) DescribeNLBListeners(req *DescribeNLBListenersRequest) (*DescribeNLBListenersResponse, error)
API: DescribeNLBListeners
描述监听器
func (*NLBClient) DescribeNetworkLoadBalancers ¶
func (c *NLBClient) DescribeNetworkLoadBalancers(req *DescribeNetworkLoadBalancersRequest) (*DescribeNetworkLoadBalancersResponse, error)
API: DescribeNetworkLoadBalancers
描述负载均衡实例
func (*NLBClient) GetNetworkLoadBalancerPrice ¶
func (c *NLBClient) GetNetworkLoadBalancerPrice(req *GetNetworkLoadBalancerPriceRequest) (*GetNetworkLoadBalancerPriceResponse, error)
API: GetNetworkLoadBalancerPrice
获取负载均衡价格
func (*NLBClient) NewAddNLBTargetsRequest ¶
func (c *NLBClient) NewAddNLBTargetsRequest() *AddNLBTargetsRequest
NewAddNLBTargetsRequest will create request of AddNLBTargets action.
func (*NLBClient) NewCreateNLBListenerRequest ¶
func (c *NLBClient) NewCreateNLBListenerRequest() *CreateNLBListenerRequest
NewCreateNLBListenerRequest will create request of CreateNLBListener action.
func (*NLBClient) NewCreateNetworkLoadBalancerRequest ¶
func (c *NLBClient) NewCreateNetworkLoadBalancerRequest() *CreateNetworkLoadBalancerRequest
NewCreateNetworkLoadBalancerRequest will create request of CreateNetworkLoadBalancer action.
func (*NLBClient) NewDeleteNLBListenerRequest ¶
func (c *NLBClient) NewDeleteNLBListenerRequest() *DeleteNLBListenerRequest
NewDeleteNLBListenerRequest will create request of DeleteNLBListener action.
func (*NLBClient) NewDeleteNetworkLoadBalancerRequest ¶
func (c *NLBClient) NewDeleteNetworkLoadBalancerRequest() *DeleteNetworkLoadBalancerRequest
NewDeleteNetworkLoadBalancerRequest will create request of DeleteNetworkLoadBalancer action.
func (*NLBClient) NewDescribeNLBListenersRequest ¶
func (c *NLBClient) NewDescribeNLBListenersRequest() *DescribeNLBListenersRequest
NewDescribeNLBListenersRequest will create request of DescribeNLBListeners action.
func (*NLBClient) NewDescribeNetworkLoadBalancersRequest ¶
func (c *NLBClient) NewDescribeNetworkLoadBalancersRequest() *DescribeNetworkLoadBalancersRequest
NewDescribeNetworkLoadBalancersRequest will create request of DescribeNetworkLoadBalancers action.
func (*NLBClient) NewGetNetworkLoadBalancerPriceRequest ¶
func (c *NLBClient) NewGetNetworkLoadBalancerPriceRequest() *GetNetworkLoadBalancerPriceRequest
NewGetNetworkLoadBalancerPriceRequest will create request of GetNetworkLoadBalancerPrice action.
func (*NLBClient) NewRemoveNLBTargetsRequest ¶
func (c *NLBClient) NewRemoveNLBTargetsRequest() *RemoveNLBTargetsRequest
NewRemoveNLBTargetsRequest will create request of RemoveNLBTargets action.
func (*NLBClient) NewUpdateNLBListenerAttributeRequest ¶
func (c *NLBClient) NewUpdateNLBListenerAttributeRequest() *UpdateNLBListenerAttributeRequest
NewUpdateNLBListenerAttributeRequest will create request of UpdateNLBListenerAttribute action.
func (*NLBClient) NewUpdateNLBTargetsAttributeRequest ¶
func (c *NLBClient) NewUpdateNLBTargetsAttributeRequest() *UpdateNLBTargetsAttributeRequest
NewUpdateNLBTargetsAttributeRequest will create request of UpdateNLBTargetsAttribute action.
func (*NLBClient) NewUpdateNetworkLoadBalancerAttributeRequest ¶
func (c *NLBClient) NewUpdateNetworkLoadBalancerAttributeRequest() *UpdateNetworkLoadBalancerAttributeRequest
NewUpdateNetworkLoadBalancerAttributeRequest will create request of UpdateNetworkLoadBalancerAttribute action.
func (*NLBClient) RemoveNLBTargets ¶
func (c *NLBClient) RemoveNLBTargets(req *RemoveNLBTargetsRequest) (*RemoveNLBTargetsResponse, error)
API: RemoveNLBTargets
删除后端服务节点
func (*NLBClient) UpdateNLBListenerAttribute ¶
func (c *NLBClient) UpdateNLBListenerAttribute(req *UpdateNLBListenerAttributeRequest) (*UpdateNLBListenerAttributeResponse, error)
API: UpdateNLBListenerAttribute
更新监听器属性
func (*NLBClient) UpdateNLBTargetsAttribute ¶
func (c *NLBClient) UpdateNLBTargetsAttribute(req *UpdateNLBTargetsAttributeRequest) (*UpdateNLBTargetsAttributeResponse, error)
API: UpdateNLBTargetsAttribute
更新后端服务节点属性
func (*NLBClient) UpdateNetworkLoadBalancerAttribute ¶
func (c *NLBClient) UpdateNetworkLoadBalancerAttribute(req *UpdateNetworkLoadBalancerAttributeRequest) (*UpdateNetworkLoadBalancerAttributeResponse, error)
API: UpdateNetworkLoadBalancerAttribute
更新负载均衡实例属性
type NetworkLoadBalancer ¶
type NetworkLoadBalancer struct { // 是否开启自动续费 AutoRenewEnabled bool // 付费模式 ChargeType string // 负载均衡实例创建时间。格式为 Unix Timestamp CreateTime int // 负载均衡实例的转发模式 ForwardingMode string // 绑定的IP信息 IPInfos []IPInfo // 负载均衡实例支持的IP协议版本 IPVersion string // Listeners []Listener // 负载均衡实例的ID NLBId string // 负载均衡实例的名称 Name string // 有效期(计费) PurchaseValue int // 负载均衡实例的备注信息 Remark string // NLB 状态:Normal-正常;Closed-欠费停服;Deleted 已删除 Status string // 负载均衡实例所属的子网资源ID SubnetId string // 负载均衡实例所属的业务组ID Tag string // 负载均衡实例所属的VPC资源ID VPCId string }
NetworkLoadBalancer - 负载均衡实例信息
type PriceDetail ¶
type PriceDetail struct { // 负载均衡付费方式 ChargeType string // 用户折后价,单位“元”。CustomPrice=OriginalPrice*用户折扣 CustomPrice float64 // 购买负载均衡的原价,单位“元” OriginalPrice float64 // 购买负载均衡的实际价格,单位“元” Price float64 // 资源有效期,以Unix Timestamp表示 PurchaseValue int }
PriceDetail - 负载均衡实例的价格信息
type RemoveNLBTargetsRequest ¶
type RemoveNLBTargetsRequest struct { request.CommonBase // 服务节点的标识ID。单次请求不能超过 40 个 Ids []string `required:"true"` // 监听器的ID ListenerId *string `required:"true"` // 负载均衡实例的ID NLBId *string `required:"true"` }
RemoveNLBTargetsRequest is request schema for RemoveNLBTargets action
type RemoveNLBTargetsResponse ¶
type RemoveNLBTargetsResponse struct {
response.CommonBase
}
RemoveNLBTargetsResponse is response schema for RemoveNLBTargets action
type Target ¶
type Target struct { // 服务节点是否开启 Enabled bool // 服务节点的标识 ID说明:添加服务节点的时候无需传更新服务节点属性时必传 Id string // 服务节点的端口 Port int // 服务节点所在地域 Region string // 服务节点的IP。在IP类型时,必传 ResourceIP string // 服务节点的资源ID。在非IP类型时,必传 ResourceId string // 服务节点的资源名称 ResourceName string // 服务节点的类型 ResourceType string // 服务节点的健康检查状态说明:描述服务节点信息时显示限定枚举值:"Healthy"/"Unhealthy" State string // 服务节点的子网资源ID。在IP类型时,必传 SubnetId string // 服务节点的VPC资源ID。在IP类型时,必传 VPCId string // 服务节点的权重。支持更新 Weight int }
Target - 服务节点信息
type UpdateNLBListenerAttributeParamHealthCheckConfig ¶
type UpdateNLBListenerAttributeParamHealthCheckConfig struct { // 是否开启健康检查功能。暂时不支持关闭,默认 true Enabled *bool `required:"false"` // 健康检查探测端口 说明: 限定取值:[1-65535] Port *int `required:"false"` // UDP" 检查模式的请求字符串 ReqMsg *string `required:"false"` // "UDP" 检查模式的预期响应字符串 ResMsg *string `required:"false"` // 健康检查方式 限定取值:"Port"/"UDP"/"Ping" 默认值:“Port” Type *string `required:"false"` }
UpdateNLBListenerAttributeParamHealthCheckConfig is request schema for complex param
type UpdateNLBListenerAttributeRequest ¶
type UpdateNLBListenerAttributeRequest struct { request.CommonBase // 端口范围的结束端口 限定取值:[1-65535] 取值不小于起始端口 默认值 65535,只有全端口模式支持修改 EndPort *int `required:"false"` // HealthCheckConfig *UpdateNLBListenerAttributeParamHealthCheckConfig `required:"false"` // 负载均衡实例的ID ListenerId *string `required:"true"` // 负载均衡实例的ID NLBId *string `required:"true"` // 监听器的名称 Name *string `required:"false"` // 监听器的备注信息 Remark *string `required:"false"` // 负载均衡算法 限定取值:"RoundRobin"/"SourceHash"/"LeastConn"/"WeightLeastConn "/"WeightRoundRobin" 默认值 "RoundRobin" Scheduler *string `required:"false"` // 端口范围的起始端口 限定取值:[1-65535] 默认值 1,只有全端口模式支持修改 StartPort *int `required:"false"` // 会话保持超时时间。单位:秒说明:限定取值:[60-900],0 表示不开启会话保持默认值60 StickinessTimeout *int `required:"false"` }
UpdateNLBListenerAttributeRequest is request schema for UpdateNLBListenerAttribute action
type UpdateNLBListenerAttributeResponse ¶
type UpdateNLBListenerAttributeResponse struct {
response.CommonBase
}
UpdateNLBListenerAttributeResponse is response schema for UpdateNLBListenerAttribute action
type UpdateNLBTargetsAttributeParamTargets ¶
type UpdateNLBTargetsAttributeParamTargets struct { // 是否禁用服务节点 Enabled *bool `required:"false"` // 服务节点的ID Id *string `required:"false"` // 服务节点的权重。限定取值:[1-100],默认值1;仅在加权轮询、加权最小连接数算法时有效 Weight *int `required:"false"` }
UpdateNLBTargetsAttributeParamTargets is request schema for complex param
type UpdateNLBTargetsAttributeRequest ¶
type UpdateNLBTargetsAttributeRequest struct { request.CommonBase // 监听器的ID ListenerId *string `required:"true"` // 负载均衡实例的ID NLBId *string `required:"true"` // Targets []UpdateNLBTargetsAttributeParamTargets `required:"false"` }
UpdateNLBTargetsAttributeRequest is request schema for UpdateNLBTargetsAttribute action
type UpdateNLBTargetsAttributeResponse ¶
type UpdateNLBTargetsAttributeResponse struct {
response.CommonBase
}
UpdateNLBTargetsAttributeResponse is response schema for UpdateNLBTargetsAttribute action
type UpdateNetworkLoadBalancerAttributeRequest ¶
type UpdateNetworkLoadBalancerAttributeRequest struct { request.CommonBase // 负载均衡实例的ID NLBId *string `required:"true"` // 负载均衡实例的名称 Name *string `required:"false"` // 负载均衡实例的备注信息 Remark *string `required:"false"` // 负载均衡实例所属的业务组ID Tag *string `required:"false"` }
UpdateNetworkLoadBalancerAttributeRequest is request schema for UpdateNetworkLoadBalancerAttribute action
type UpdateNetworkLoadBalancerAttributeResponse ¶
type UpdateNetworkLoadBalancerAttributeResponse struct {
response.CommonBase
}
UpdateNetworkLoadBalancerAttributeResponse is response schema for UpdateNetworkLoadBalancerAttribute action