Documentation ¶
Overview ¶
Package ulb include resources of ucloud ulb product
See also
for detail.
Index ¶
- type AllocateBackendBatchRequest
- type AllocateBackendBatchResponse
- type AllocateBackendRequest
- type AllocateBackendResponse
- type BackendSet
- type CreatePolicyRequest
- type CreatePolicyResponse
- type CreateULBRequest
- type CreateULBResponse
- type CreateVServerRequest
- type CreateVServerResponse
- type DeletePolicyRequest
- type DeletePolicyResponse
- type DeleteULBRequest
- type DeleteULBResponse
- type DeleteVServerRequest
- type DeleteVServerResponse
- type DescribeULBRequest
- type DescribeULBResponse
- type DescribeVServerRequest
- type DescribeVServerResponse
- type PolicyBackendSet
- type ReleaseBackendRequest
- type ReleaseBackendResponse
- type ULBBackendSet
- type ULBClient
- func (c *ULBClient) AllocateBackend(req *AllocateBackendRequest) (*AllocateBackendResponse, error)
- func (c *ULBClient) AllocateBackendBatch(req *AllocateBackendBatchRequest) (*AllocateBackendBatchResponse, error)
- func (c *ULBClient) CreatePolicy(req *CreatePolicyRequest) (*CreatePolicyResponse, error)
- func (c *ULBClient) CreateULB(req *CreateULBRequest) (*CreateULBResponse, error)
- func (c *ULBClient) CreateVServer(req *CreateVServerRequest) (*CreateVServerResponse, error)
- func (c *ULBClient) DeletePolicy(req *DeletePolicyRequest) (*DeletePolicyResponse, error)
- func (c *ULBClient) DeleteULB(req *DeleteULBRequest) (*DeleteULBResponse, error)
- func (c *ULBClient) DeleteVServer(req *DeleteVServerRequest) (*DeleteVServerResponse, error)
- func (c *ULBClient) DescribeULB(req *DescribeULBRequest) (*DescribeULBResponse, error)
- func (c *ULBClient) DescribeVServer(req *DescribeVServerRequest) (*DescribeVServerResponse, error)
- func (c *ULBClient) NewAllocateBackendBatchRequest() *AllocateBackendBatchRequest
- func (c *ULBClient) NewAllocateBackendRequest() *AllocateBackendRequest
- func (c *ULBClient) NewCreatePolicyRequest() *CreatePolicyRequest
- func (c *ULBClient) NewCreateULBRequest() *CreateULBRequest
- func (c *ULBClient) NewCreateVServerRequest() *CreateVServerRequest
- func (c *ULBClient) NewDeletePolicyRequest() *DeletePolicyRequest
- func (c *ULBClient) NewDeleteULBRequest() *DeleteULBRequest
- func (c *ULBClient) NewDeleteVServerRequest() *DeleteVServerRequest
- func (c *ULBClient) NewDescribeULBRequest() *DescribeULBRequest
- func (c *ULBClient) NewDescribeVServerRequest() *DescribeVServerRequest
- func (c *ULBClient) NewReleaseBackendRequest() *ReleaseBackendRequest
- func (c *ULBClient) NewUpdateBackendAttributeRequest() *UpdateBackendAttributeRequest
- func (c *ULBClient) NewUpdatePolicyRequest() *UpdatePolicyRequest
- func (c *ULBClient) NewUpdateULBAttributeRequest() *UpdateULBAttributeRequest
- func (c *ULBClient) NewUpdateVServerAttributeRequest() *UpdateVServerAttributeRequest
- func (c *ULBClient) ReleaseBackend(req *ReleaseBackendRequest) (*ReleaseBackendResponse, error)
- func (c *ULBClient) UpdateBackendAttribute(req *UpdateBackendAttributeRequest) (*UpdateBackendAttributeResponse, error)
- func (c *ULBClient) UpdatePolicy(req *UpdatePolicyRequest) (*UpdatePolicyResponse, error)
- func (c *ULBClient) UpdateULBAttribute(req *UpdateULBAttributeRequest) (*UpdateULBAttributeResponse, error)
- func (c *ULBClient) UpdateVServerAttribute(req *UpdateVServerAttributeRequest) (*UpdateVServerAttributeResponse, error)
- type ULBIPSet
- type ULBPolicySet
- type ULBSSLSet
- type ULBSet
- type ULBVServerSet
- type UpdateBackendAttributeRequest
- type UpdateBackendAttributeResponse
- type UpdatePolicyRequest
- type UpdatePolicyResponse
- type UpdateULBAttributeRequest
- type UpdateULBAttributeResponse
- type UpdateVServerAttributeRequest
- type UpdateVServerAttributeResponse
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。ResourceId:所添加的后端资源的资源ID;ResourceType:所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器,默认值为“UHost”;Port:所添加的后端资源服务端口,取值范围[1-65535];Enabled:后端实例状态开关,枚举值: 1:启用; 0:禁用;IP:后端资源内网ip; 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"` // 后端实例状态开关,枚举值: 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 ¶
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 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 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"` // 付费方式 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 -> 一致性哈希(计算端口)。ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Roundrobin和Source在请求代理和报文转发中使用。默认为:"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 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 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 *string `required:"false"` // 数据偏移量 Offset *string `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 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 {
// 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) CreatePolicy ¶
func (c *ULBClient) CreatePolicy(req *CreatePolicyRequest) (*CreatePolicyResponse, error)
CreatePolicy - 创建VServer内容转发策略
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) 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) 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) NewCreatePolicyRequest ¶
func (c *ULBClient) NewCreatePolicyRequest() *CreatePolicyRequest
NewCreatePolicyRequest will create request of CreatePolicy 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) 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) 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) 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) UpdateBackendAttribute ¶
func (c *ULBClient) UpdateBackendAttribute(req *UpdateBackendAttributeRequest) (*UpdateBackendAttributeResponse, error)
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 ¶
func (c *ULBClient) UpdateVServerAttribute(req *UpdateVServerAttributeRequest) (*UpdateVServerAttributeResponse, error)
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 ¶
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 { // 健康检查类型,枚举值: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 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"` // 后端实例状态开关 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负载均衡算法,ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Roundrobin和Source在请求代理和报文转发中使用。 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
Source Files ¶
- allocate_backend.go
- allocate_backend_batch.go
- client.go
- create_policy.go
- create_ulb.go
- create_vserver.go
- delete_policy.go
- delete_ulb.go
- delete_vserver.go
- describe_ulb.go
- describe_vserver.go
- doc.go
- release_backend.go
- types_backend_set.go
- types_policy_backend_set.go
- types_ulbbackend_set.go
- types_ulbipset.go
- types_ulbpolicy_set.go
- types_ulbset.go
- types_ulbsslset.go
- types_ulbvserver_set.go
- update_backend_attribute.go
- update_policy.go
- update_ulbattribute.go
- update_vserver_attribute.go