ulb

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSetBackend

type DataSetBackend struct {

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

	// 资源系统记录的后端节点id
	MetricId string

	// 后端节点名称
	Name string

	// 后端节点业务组
	Tag string

	// 后端节点备注
	Remark string

	// 后端节点监听端口
	Port int

	// 后端节点内网ip
	PrivateIP string
}

DataSetBackend - GetBackendMetricInfo的DataSet

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

type DataSetVServer

type DataSetVServer struct {

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

	// 监听器类型RequestProxy或者PacketsTransmit
	ListenType string

	// 后端节点名称
	Name string

	// 后端节点业务组
	Tag string

	// 后端节点监听端口
	Port int

	// 资源系统记录的后端节点id
	MetricId string

	// VServer 的 ID
	VServerId string
}

DataSetVServer - GetVServerMetricInfo的DataSet

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

type DescribeULBSimpleRequest

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

type DescribeULBSimpleResponse struct {
	response.CommonBase

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

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

DescribeULBSimpleResponse is response schema for DescribeULBSimple action

type GetBackendMetricInfoRequest

type GetBackendMetricInfoRequest struct {
	request.CommonBase

	// 后端rs的BackendId数组
	BackendIds []string `required:"true"`

	// 负载均衡实例的ID
	ULBId *string `required:"false"`

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

GetBackendMetricInfoRequest is request schema for GetBackendMetricInfo action

type GetBackendMetricInfoResponse

type GetBackendMetricInfoResponse struct {
	response.CommonBase

	// 符合条件的总数
	TotalCount int

	// Backend列表,每项参数详见 DataSetBackend
	DataSet []DataSetBackend
}

GetBackendMetricInfoResponse is response schema for GetBackendMetricInfo action

type GetVServerMetricInfoRequest

type GetVServerMetricInfoRequest struct {
	request.CommonBase

	// 项目ID
	Project *string `required:"true"`

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

	// VServer实例的ID的数组
	VServerIds []string `required:"true"`

	// VServer 实例的 Id
	VServerId *string `required:"false"`
}

GetVServerMetricInfoRequest is request schema for GetVServerMetricInfo action

type GetVServerMetricInfoResponse

type GetVServerMetricInfoResponse struct {
	response.CommonBase

	// VServer列表
	DataSet []DataSetVServer

	// 符合条件的总数
	TotalCount int
}

GetVServerMetricInfoResponse is response schema for GetVServerMetricInfo action

type PolicyBackendSet

type PolicyBackendSet struct {

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

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

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

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

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

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

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

type ULBBackendSet

type ULBBackendSet struct {

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

	// 后端资源实例的类型
	ResourceType string

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

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

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

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

	// 后端资源实例的启用与否
	Enabled int

	// 后端资源实例的运行状态
	Status int

	// 后端资源实例的资源所在的子网的ID
	SubnetId string
}

ULBBackendSet - DescribeULB

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

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

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

DescribeULBSimple - 获取ULB信息

func (*ULBClient) GetBackendMetricInfo

func (c *ULBClient) GetBackendMetricInfo(req *GetBackendMetricInfoRequest) (*GetBackendMetricInfoResponse, error)

GetBackendMetricInfo - 获取用于查询后端节点监控的元数据

func (*ULBClient) GetVServerMetricInfo

func (c *ULBClient) GetVServerMetricInfo(req *GetVServerMetricInfoRequest) (*GetVServerMetricInfoResponse, error)

GetVServerMetricInfo - GetVServerMetricInfo

func (*ULBClient) NewDescribeULBSimpleRequest

func (c *ULBClient) NewDescribeULBSimpleRequest() *DescribeULBSimpleRequest

NewDescribeULBSimpleRequest will create request of DescribeULBSimple action.

func (*ULBClient) NewGetBackendMetricInfoRequest

func (c *ULBClient) NewGetBackendMetricInfoRequest() *GetBackendMetricInfoRequest

NewGetBackendMetricInfoRequest will create request of GetBackendMetricInfo action.

func (*ULBClient) NewGetVServerMetricInfoRequest

func (c *ULBClient) NewGetVServerMetricInfoRequest() *GetVServerMetricInfoRequest

NewGetVServerMetricInfoRequest will create request of GetVServerMetricInfo action.

type ULBIPSet

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 ULBPolicySet

type ULBPolicySet struct {

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

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

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

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

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

	// 所属VServerId
	VServerId string

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

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

ULBPolicySet - 内容转发详细列表

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

type ULBSSLSet

type ULBSSLSet struct {

	// SSL证书的Id
	SSLId string

	// SSL证书的名字
	SSLName string
}

ULBSSLSet - DescribeULB

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

type ULBSet

type ULBSet struct {

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

	// 负载均衡的资源名称(内部记载,废弃)
	ULBName string

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

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

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

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

	// 带宽
	Bandwidth int

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

	// ULB的到期时间,格式为Unix Timestamp
	ExpireTime int

	// ULB的详细信息列表(废弃)
	Resource []string

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

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

	// ULB 的类型
	ULBType string

	// ULB所在的VPC的ID
	VPCId string

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

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

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

ULBSet - DescribeULB

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

type ULBVServerSet

type ULBVServerSet struct {

	// VServer实例的Id
	VServerId string

	// VServer实例的名字
	VServerName string

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

	// VServer服务端口
	FrontendPort int

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

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

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

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

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

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

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

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

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

	// 健康检查的类型,Port:端口,Path:路径
	MonitorType string

	// MonitorType 为 Path 时指定健康检查发送请求时HTTP HEADER 里的域名
	Domain string

	// MonitorType 为 Path 时指定健康检查发送请求时的路径,默认为 /
	Path string
}

ULBVServerSet - DescribeULB

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

Jump to

Keyboard shortcuts

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