ulb

package
v0.21.25 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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 BackendMsg added in v0.20.0

type BackendMsg struct {

	// rs的资源ID
	BackendId string `required:"true"`
	// 修改rs返回的消息
	SubMessage string `required:"true"`
	// 修改rs的返回值
	SubRetCode int `required:"true"`
}

BackendMsg -

type DescribeULBSimpleRequest added in v0.8.1

type DescribeULBSimpleRequest struct {
	request.CommonBase

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

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

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

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

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

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

DescribeULBSimpleRequest is request schema for DescribeULBSimple action

type DescribeULBSimpleResponse added in v0.8.1

type DescribeULBSimpleResponse struct {
	response.CommonBase

	// 满足条件的ULB总数
	TotalCount int

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

DescribeULBSimpleResponse is response schema for DescribeULBSimple action

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) DescribeULBSimple added in v0.8.1

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

DescribeULBSimple - 获取ULB信息

func (*ULBClient) NewDescribeULBSimpleRequest added in v0.8.1

func (c *ULBClient) NewDescribeULBSimpleRequest() *DescribeULBSimpleRequest

NewDescribeULBSimpleRequest will create request of DescribeULBSimple action.

func (*ULBClient) NewUpdateBackendBatchRequest added in v0.20.0

func (c *ULBClient) NewUpdateBackendBatchRequest() *UpdateBackendBatchRequest

NewUpdateBackendBatchRequest will create request of UpdateBackendBatch action.

func (*ULBClient) NewUpdateSSLBindingRequest

func (c *ULBClient) NewUpdateSSLBindingRequest() *UpdateSSLBindingRequest

NewUpdateSSLBindingRequest will create request of UpdateSSLBinding action.

func (*ULBClient) UpdateBackendBatch added in v0.20.0

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

API: UpdateBackendBatch

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

func (*ULBClient) UpdateSSLBinding

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

UpdateSSLBinding - 将VServer绑定的证书更换为另一个证书

type ULBIPSet added in v0.8.1

type ULBIPSet struct {

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

	// 弹性IP地址
	EIP string

	// 弹性IP的ID
	EIPId string
}

ULBIPSet - DescribeULB

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type ULBSimpleSet added in v0.8.1

type ULBSimpleSet struct {

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

	// 负载均衡的资源名称(资源系统中),缺省值“ULB”
	Name string

	// 负载均衡的业务组名称,缺省值“Default”
	Tag string

	// 负载均衡的备注,缺省值“”
	Remark string

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

	// ULB所在的VPC的ID
	VPCId string

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

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

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

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

	// 带宽
	Bandwidth int

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

	// ulb下vserver数量
	VServerCount int

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

ULBSimpleSet - ulb简明信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UpdateBackendBatchParamAttributes added in v0.20.0

type UpdateBackendBatchParamAttributes struct {

	// 后端资源实例的ID(ULB后端ID,非资源自身ID)
	BackendId *string `required:"true"`
	// 后端资源服务端口,取值范围[1-65535]
	Port *int `required:"false"`
	// 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
	Weight *int `required:"false"`
	// 后端实例状态开关
	Enabled *int `required:"false"`
	// 是否为backup 0:主rs 1:备rs 默认为0
	IsBackup *int `required:"false"`
}

Attributes.N is request schema for complex param

type UpdateBackendBatchRequest added in v0.20.0

type UpdateBackendBatchRequest struct {
	request.CommonBase

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

UpdateBackendBatchRequest is request schema for UpdateBackendBatch action

type UpdateBackendBatchResponse added in v0.20.0

type UpdateBackendBatchResponse struct {
	response.CommonBase

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

UpdateBackendBatchResponse is response schema for UpdateBackendBatch action

type UpdateSSLBindingRequest

type UpdateSSLBindingRequest struct {
	request.CommonBase

	// 所操作ULB实例ID
	ULBId *string `required:"true"`

	// 所操作VServer实例ID
	VServerId *string `required:"true"`

	// VServer实例绑定的旧的证书
	OldSSLId *string `required:"true"`

	// VServer实例需要绑定的新的证书
	NewSSLId *string `required:"true"`
}

UpdateSSLBindingRequest is request schema for UpdateSSLBinding action

type UpdateSSLBindingResponse

type UpdateSSLBindingResponse struct {
	response.CommonBase

	// 返回码
	RetCode int

	// 响应名称
	Action string
}

UpdateSSLBindingResponse is response schema for UpdateSSLBinding action

Jump to

Keyboard shortcuts

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