ulb

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 4 Imported by: 11

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 AllocateBackendBatchRequest

type AllocateBackendBatchRequest struct {
	request.CommonBase

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

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

	// 用| 分割字段,格式:ResourceId| ResourceType| Port| Enabled|IP| Weight。ResourceId:所添加的后端资源的资源ID;ResourceType:所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器,默认值为“UHost”;Port:所添加的后端资源服务端口,取值范围[1-65535];Enabled:后端实例状态开关,枚举值: 1:启用; 0:禁用;IP:后端资源内网ip;Weight:所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
	Backends []string `required:"true"`

	// 已弃用,指定 Api 版本
	ApiVersion *int `required:"false"`
}

AllocateBackendBatchRequest is request schema for AllocateBackendBatch action

type AllocateBackendBatchResponse

type AllocateBackendBatchResponse struct {
	response.CommonBase

	// 所添加的后端资源ID,(为ULB系统中使用,与资源自身ID无关),可用于 UpdateBackendAttribute/UpdateBackendAttributeBatch/ReleaseBackend
	BackendSet []BackendSet
}

AllocateBackendBatchResponse is response schema for AllocateBackendBatch action

type AllocateBackendRequest

type AllocateBackendRequest struct {
	request.CommonBase

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

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

	// 所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器,默认值为“UHost”
	ResourceType *string `required:"true"`

	// 所添加的后端资源的资源ID
	ResourceId *string `required:"true"`

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

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

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

AllocateBackendRequest is request schema for AllocateBackend action

type AllocateBackendResponse

type AllocateBackendResponse struct {
	response.CommonBase

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

AllocateBackendResponse is response schema for AllocateBackend action

type BackendSet

type BackendSet struct {

	// rs的资源ID
	BackendId string

	// rs对应的UHost ID
	ResourceId string
}

BackendSet - ulb添加rs时返回的信息

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

type BindSSLRequest added in v0.6.10

type BindSSLRequest struct {
	request.CommonBase

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

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

	// SSL证书的Id
	SSLId *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 CreatePolicyRequest

type CreatePolicyRequest struct {
	request.CommonBase

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

	// 需要添加内容转发策略的VServer实例ID
	VServerId *string `required:"true"`

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

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

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

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 CreateSSLRequest added in v0.6.10

type CreateSSLRequest struct {
	request.CommonBase

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

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

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

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

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

	// CA证书
	CaCert *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 CreateULBRequest

type CreateULBRequest struct {
	request.CommonBase

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

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

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

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

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

	// 创建内网ULB时指定内网IP。若不传值,则随机分配当前子网下的IP(暂时不对外开放,创建外网ULB该字段会忽略)
	PrivateIp *string `required:"false"`

	// 付费方式
	ChargeType *string `required:"false"`

	// ULB所在的VPC的ID, 如果不传则使用默认的VPC
	VPCId *string `required:"false"`

	// 内网ULB 所属的子网ID,如果不传则使用默认的子网
	SubnetId *string `required:"false"`

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

CreateULBRequest is request schema for CreateULB action

type CreateULBResponse

type CreateULBResponse struct {
	response.CommonBase

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

CreateULBResponse is response schema for CreateULB action

type CreateVServerRequest

type CreateVServerRequest struct {
	request.CommonBase

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

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

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

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

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

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

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

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

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

	// 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;
	MonitorType *string `required:"false"`

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

	// 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名
	Path *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 DeletePolicyRequest

type DeletePolicyRequest struct {
	request.CommonBase

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

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

	// 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 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 DeleteULBRequest

type DeleteULBRequest struct {
	request.CommonBase

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

	// 删除ulb时是否释放绑定的EIP,false标识只解绑EIP,true表示会释放绑定的EIP,默认是false
	ReleaseEip *bool `required:"false"`
}

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"`

	// 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 DescribeSSLRequest added in v0.6.10

type DescribeSSLRequest struct {
	request.CommonBase

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

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

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

DescribeSSLRequest is request schema for DescribeSSL action

type DescribeSSLResponse added in v0.6.10

type DescribeSSLResponse struct {
	response.CommonBase

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

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

DescribeSSLResponse is response schema for DescribeSSL action

type DescribeULBRequest

type DescribeULBRequest struct {
	request.CommonBase

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

	// 数据分页值,默认为20
	Limit *int `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"`
}

DescribeULBRequest is request schema for DescribeULB action

type DescribeULBResponse

type DescribeULBResponse struct {
	response.CommonBase

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

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

DescribeULBResponse is response schema for DescribeULB action

type DescribeVServerRequest

type DescribeVServerRequest struct {
	request.CommonBase

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

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

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

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

DescribeVServerRequest is request schema for DescribeVServer action

type DescribeVServerResponse

type DescribeVServerResponse struct {
	response.CommonBase

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

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

DescribeVServerResponse is response schema for DescribeVServer 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 ReleaseBackendRequest

type ReleaseBackendRequest struct {
	request.CommonBase

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

	// 后端资源实例的ID(ULB后端ID,非资源自身ID)
	BackendId *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 SSLBindedTargetSet added in v0.6.11

type SSLBindedTargetSet struct {

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

	// 对应的VServer的名字
	VServerName string

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

	// ULB实例的名称
	ULBName string
}

SSLBindedTargetSet - DescribeSSL

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

	// ULB 后端实例的权重
	Weight int
}

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 {
	// contains filtered or unexported fields
}

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) AllocateBackend

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

AllocateBackend - 添加ULB后端资源实例

func (*ULBClient) AllocateBackendBatch

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

AllocateBackendBatch - 批量添加VServer后端节点

func (*ULBClient) BindSSL added in v0.6.10

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

BindSSL - 将SSL证书绑定到VServer

func (*ULBClient) CreatePolicy

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

CreatePolicy - 创建VServer内容转发策略

func (*ULBClient) CreateSSL added in v0.6.10

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

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

func (*ULBClient) CreateULB

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

CreateULB - 创建负载均衡实例,可以选择内网或者外网

func (*ULBClient) CreateVServer

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

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

func (*ULBClient) DeletePolicy

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

DeletePolicy - 删除内容转发策略

func (*ULBClient) DeleteSSL added in v0.6.10

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

DeleteSSL - 删除SSL证书

func (*ULBClient) DeleteULB

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

DeleteULB - 删除负载均衡实例

func (*ULBClient) DeleteVServer

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

DeleteVServer - 删除VServer实例

func (*ULBClient) DescribeSSL added in v0.6.10

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

DescribeSSL - 获取SSL证书信息

func (*ULBClient) DescribeULB

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

DescribeULB - 获取ULB详细信息

func (*ULBClient) DescribeVServer

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

DescribeVServer - 获取ULB下的VServer的详细信息

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) NewCreatePolicyRequest

func (c *ULBClient) NewCreatePolicyRequest() *CreatePolicyRequest

NewCreatePolicyRequest will create request of CreatePolicy action.

func (*ULBClient) NewCreateSSLRequest added in v0.6.10

func (c *ULBClient) NewCreateSSLRequest() *CreateSSLRequest

NewCreateSSLRequest will create request of CreateSSL 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) NewDeletePolicyRequest

func (c *ULBClient) NewDeletePolicyRequest() *DeletePolicyRequest

NewDeletePolicyRequest will create request of DeletePolicy action.

func (*ULBClient) NewDeleteSSLRequest added in v0.6.10

func (c *ULBClient) NewDeleteSSLRequest() *DeleteSSLRequest

NewDeleteSSLRequest will create request of DeleteSSL 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) NewDescribeSSLRequest added in v0.6.10

func (c *ULBClient) NewDescribeSSLRequest() *DescribeSSLRequest

NewDescribeSSLRequest will create request of DescribeSSL action.

func (*ULBClient) NewDescribeULBRequest

func (c *ULBClient) NewDescribeULBRequest() *DescribeULBRequest

NewDescribeULBRequest will create request of DescribeULB 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) 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) NewUpdatePolicyRequest

func (c *ULBClient) NewUpdatePolicyRequest() *UpdatePolicyRequest

NewUpdatePolicyRequest will create request of UpdatePolicy 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)

ReleaseBackend - 从VServer释放后端资源实例

func (*ULBClient) UnbindSSL added in v0.6.10

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

UnbindSSL - 从VServer解绑SSL证书

func (*ULBClient) UpdateBackendAttribute

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

func (*ULBClient) UpdatePolicy

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

UpdatePolicy - 更新内容转发规则,包括转发规则后的服务节点

func (*ULBClient) UpdateULBAttribute

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

UpdateULBAttribute - 更新ULB名字业务组备注等属性字段

func (*ULBClient) UpdateVServerAttribute

UpdateVServerAttribute - 更新VServer实例属性

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

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

	// SSL证书的内容
	SSLContent string

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

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

	// 证书的 Hash 值
	HashValue string
}

ULBSSLSet - DescribeSSL

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 {

	// 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;
	MonitorType string

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

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

	// 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
}

ULBVServerSet - DescribeULB

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

type UnbindSSLRequest added in v0.6.10

type UnbindSSLRequest struct {
	request.CommonBase

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

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

	// SSL证书的Id
	SSLId *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
	ULBId *string `required:"true"`

	// 后端资源实例的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"`
}

UpdateBackendAttributeRequest is request schema for UpdateBackendAttribute action

type UpdateBackendAttributeResponse

type UpdateBackendAttributeResponse struct {
	response.CommonBase
}

UpdateBackendAttributeResponse is response schema for UpdateBackendAttribute action

type UpdatePolicyRequest

type UpdatePolicyRequest struct {
	request.CommonBase

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

	// 需要添加内容转发策略的VServer实例ID
	VServerId *string `required:"true"`

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

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

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

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

UpdatePolicyRequest is request schema for UpdatePolicy action

type UpdatePolicyResponse

type UpdatePolicyResponse struct {
	response.CommonBase

	// 转发规则的ID
	PolicyId string
}

UpdatePolicyResponse is response schema for UpdatePolicy action

type UpdateULBAttributeRequest

type UpdateULBAttributeRequest struct {
	request.CommonBase

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

	// 名字
	Name *string `required:"false"`

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

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

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

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

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

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

	// VServer协议类型,请求代理只支持修改为 HTTP/HTTPS,报文转发VServer只支持修改为 TCP/UDP
	Protocol *string `required:"false"`

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

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

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

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

	// 健康检查的类型,Port:端口,Path:路径
	MonitorType *string `required:"false"`

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

	// MonitorType 为 Path 时指定健康检查发送请求时的路径,默认为 /
	Path *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