slb

package
Version: v0.0.0-...-112a489 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SLBDefaultEndpoint is the default API endpoint of SLB services
	SLBDefaultEndpoint = "https://slb.aliyuncs.com"
	SLBAPIVersion      = "2014-05-15"
)
View Source
const (
	Starting    = ListenerStatus("starting")
	Running     = ListenerStatus("running")
	Configuring = ListenerStatus("configuring")
	Stopping    = ListenerStatus("stopping")
	Stopped     = ListenerStatus("stopped")
)
View Source
const (
	WRRScheduler = SchedulerType("wrr")
	WLCScheduler = SchedulerType("wlc")
)
View Source
const (
	OnFlag  = FlagType("on")
	OffFlag = FlagType("off")
)
View Source
const (
	InsertStickySessionType = StickySessionType("insert")
	ServerStickySessionType = StickySessionType("server")
)
View Source
const (
	HTTP_2XX = HealthCheckHttpCodeType("http_2xx")
	HTTP_3XX = HealthCheckHttpCodeType("http_3xx")
	HTTP_4XX = HealthCheckHttpCodeType("http_4xx")
	HTTP_5XX = HealthCheckHttpCodeType("http_5xx")
)
View Source
const (
	TCPHealthCheckType  = HealthCheckType("tcp")
	HTTPHealthCheckType = HealthCheckType("http")
)
View Source
const (
	OpenWhileList = AccessControlStatus("open_white_list")
	Close         = AccessControlStatus("close")
)
View Source
const (
	UDP   = ListenerType("UDP")
	TCP   = ListenerType("TCP")
	HTTP  = ListenerType("HTTP")
	HTTPS = ListenerType("HTTPS")
)
View Source
const (
	InternetAddressType = AddressType("internet")
	IntranetAddressType = AddressType("intranet")
)
View Source
const ActiveStatus = Status("active")
View Source
const BackendServerPort = -520
View Source
const DefaultTimeout = 60 //60 seconds
View Source
const DefaultWaitForInterval = 5 //5 seconds
View Source
const InactiveStatus = Status("inactive")
View Source
const LockedStatus = Status("locked")

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlStatus

type AccessControlStatus string

type AddBackendServersArgs

type AddBackendServersArgs struct {
	LoadBalancerId string
	BackendServers string
}

type AddBackendServersResponse

type AddBackendServersResponse struct {
	common.Response
	LoadBalancerId string
	BackendServers struct {
		BackendServer []BackendServerType
	}
}

type AddVServerGroupBackendServersArgs

type AddVServerGroupBackendServersArgs CreateVServerGroupArgs

type AddVServerGroupBackendServersResponse

type AddVServerGroupBackendServersResponse CreateVServerGroupResponse

type AddressType

type AddressType string

type BackendServerType

type BackendServerType struct {
	ServerId string
	Weight   int
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of ECS client

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint string, accessKeyId, accessKeySecret string) *Client

func (*Client) AddBackendServers

func (client *Client) AddBackendServers(loadBalancerId string, backendServers []BackendServerType) (result []BackendServerType, err error)

AddBackendServers Add backend servers

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-backendserver&AddBackendServers

func (*Client) AddListenerWhiteListItem

func (client *Client) AddListenerWhiteListItem(loadBalancerId string, port int, sourceItems string) (err error)

AddListenerWhiteListItem Add listener white-list item

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&AddListenerWhiteListItem

func (*Client) AddVServerGroupBackendServers

func (client *Client) AddVServerGroupBackendServers(args *AddVServerGroupBackendServersArgs) (response *AddVServerGroupBackendServersResponse, err error)

func (*Client) CreateLoadBalancer

func (client *Client) CreateLoadBalancer(args *CreateLoadBalancerArgs) (response *CreateLoadBalancerResponse, err error)

CreateLoadBalancer create loadbalancer

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-loadbalancer&CreateLoadBalancer

func (*Client) CreateLoadBalancerHTTPListener

func (client *Client) CreateLoadBalancerHTTPListener(args *CreateLoadBalancerHTTPListenerArgs) (err error)

CreateLoadBalancerHTTPListener create HTTP listener on loadbalancer

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&CreateLoadBalancerHTTPListener

func (*Client) CreateLoadBalancerHTTPSListener

func (client *Client) CreateLoadBalancerHTTPSListener(args *CreateLoadBalancerHTTPSListenerArgs) (err error)

CreateLoadBalancerHTTPSListener create HTTPS listener on loadbalancer

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&CreateLoadBalancerHTTPSListener

func (*Client) CreateLoadBalancerTCPListener

func (client *Client) CreateLoadBalancerTCPListener(args *CreateLoadBalancerTCPListenerArgs) (err error)

CreateLoadBalancerTCPListener create TCP listener on loadbalancer

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&CreateLoadBalancerTCPListener

func (*Client) CreateLoadBalancerUDPListener

func (client *Client) CreateLoadBalancerUDPListener(args *CreateLoadBalancerUDPListenerArgs) (err error)

CreateLoadBalancerUDPListener create UDP listener on loadbalancer

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&CreateLoadBalancerUDPListener

func (*Client) CreateVServerGroup

func (client *Client) CreateVServerGroup(args *CreateVServerGroupArgs) (response *CreateVServerGroupResponse, err error)

func (*Client) DeleteLoadBalancer

func (client *Client) DeleteLoadBalancer(loadBalancerId string) (err error)

DeleteLoadBalancer delete loadbalancer

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-loadbalancer&DeleteLoadBalancer

func (*Client) DeleteLoadBalancerListener

func (client *Client) DeleteLoadBalancerListener(loadBalancerId string, port int) (err error)

DeleteLoadBalancerListener Delete listener

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DeleteLoadBalancerListener

func (*Client) DeleteServerCertificate

func (client *Client) DeleteServerCertificate(regionId common.Region, serverCertificateId string) (err error)

DeleteServerCertificate Delete server certificate

You can read doc at http://docs.aliyun.com/#pub/slb/api-reference/api-servercertificate&DeleteServerCertificate

func (*Client) DeleteVServerGroup

func (client *Client) DeleteVServerGroup(args *DeleteVServerGroupArgs) (response *DeleteVServerGroupResponse, err error)

func (*Client) DescribeHealthStatus

func (client *Client) DescribeHealthStatus(args *DescribeHealthStatusArgs) (response *DescribeHealthStatusResponse, err error)

DescribeHealthStatus Describe health status

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-backendserver&DescribeHealthStatus

func (*Client) DescribeListenerAccessControlAttribute

func (client *Client) DescribeListenerAccessControlAttribute(loadBalancerId string, port int) (response *DescribeListenerAccessControlAttributeResponse, err error)

DescribeListenerAccessControlAttribute Describe listener access control attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeListenerAccessControlAttribute

func (*Client) DescribeLoadBalancerAttribute

func (client *Client) DescribeLoadBalancerAttribute(loadBalancerId string) (loadBalancer *LoadBalancerType, err error)

func (*Client) DescribeLoadBalancerHTTPListenerAttribute

func (client *Client) DescribeLoadBalancerHTTPListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerHTTPListenerAttributeResponse, err error)

DescribeLoadBalancerHTTPListenerAttribute Describe HTTP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeLoadBalancerHTTPListenerAttribute

func (*Client) DescribeLoadBalancerHTTPSListenerAttribute

func (client *Client) DescribeLoadBalancerHTTPSListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerHTTPSListenerAttributeResponse, err error)

DescribeLoadBalancerHTTPSListenerAttribute Describe HTTPS listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeLoadBalancerHTTPSListenerAttribute

func (*Client) DescribeLoadBalancerTCPListenerAttribute

func (client *Client) DescribeLoadBalancerTCPListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerTCPListenerAttributeResponse, err error)

DescribeLoadBalancerTCPListenerAttribute Describe TCP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeLoadBalancerTCPListenerAttribute

func (*Client) DescribeLoadBalancerUDPListenerAttribute

func (client *Client) DescribeLoadBalancerUDPListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerUDPListenerAttributeResponse, err error)

DescribeLoadBalancerUDPListenerAttribute Describe UDP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&DescribeLoadBalancerUDPListenerAttribute

func (*Client) DescribeLoadBalancers

func (client *Client) DescribeLoadBalancers(args *DescribeLoadBalancersArgs) (loadBalancers []LoadBalancerType, err error)

func (*Client) DescribeRegions

func (client *Client) DescribeRegions() (regions []RegionType, err error)

DescribeRegions describes regions

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-loadbalancer&DescribeRegions

func (*Client) DescribeServerCertificatesArgs

func (client *Client) DescribeServerCertificatesArgs(regionId common.Region, serverCertificateId string) (serverCertificates []ServerCertificateType, err error)

DescribeServerCertificates Describe server certificates

You can read doc at http://docs.aliyun.com/#pub/slb/api-reference/api-servercertificate&DescribeServerCertificates

func (*Client) DescribeVServerGroupAttribute

func (client *Client) DescribeVServerGroupAttribute(args *DescribeVServerGroupAttributeArgs) (response *DescribeVServerGroupAttributeResponse, err error)

func (*Client) DescribeVServerGroups

func (client *Client) DescribeVServerGroups(args *DescribeVServerGroupsArgs) (response *DescribeVServerGroupsResponse, err error)

func (*Client) ModifyLoadBalancerInternetSpec

func (client *Client) ModifyLoadBalancerInternetSpec(args *ModifyLoadBalancerInternetSpecArgs) (err error)

func (*Client) ModifyVServerGroupBackendServers

func (client *Client) ModifyVServerGroupBackendServers(args *ModifyVServerGroupBackendServersArgs) (response *ModifyVServerGroupBackendServersResponse, err error)

func (*Client) RemoveBackendServers

func (client *Client) RemoveBackendServers(loadBalancerId string, backendServers []string) (result []BackendServerType, err error)

RemoveBackendServers Remove backend servers

You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-backendserver&RemoveBackendServers

func (*Client) RemoveListenerWhiteListItem

func (client *Client) RemoveListenerWhiteListItem(loadBalancerId string, port int, sourceItems string) (err error)

RemoveListenerWhiteListItem Remove listener white-list item

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&RemoveListenerWhiteListItem

func (*Client) RemoveVServerGroupBackendServers

func (client *Client) RemoveVServerGroupBackendServers(args *RemoveVServerGroupBackendServersArgs) (response *RemoveVServerGroupBackendServersResponse, err error)

func (*Client) SetBackendServers

func (client *Client) SetBackendServers(loadBalancerId string, backendServers []BackendServerType) (result []BackendServerType, err error)

func (*Client) SetListenerAccessControlStatus

func (client *Client) SetListenerAccessControlStatus(loadBalancerId string, port int, status AccessControlStatus) (err error)

SetListenerAccessControlStatus Set listener access control status

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetListenerAccessControlStatus

func (*Client) SetLoadBalancerHTTPListenerAttribute

func (client *Client) SetLoadBalancerHTTPListenerAttribute(args *SetLoadBalancerHTTPListenerAttributeArgs) (err error)

SetLoadBalancerHTTPListenerAttribute Set HTTP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetLoadBalancerHTTPListenerAttribute

func (*Client) SetLoadBalancerHTTPSListenerAttribute

func (client *Client) SetLoadBalancerHTTPSListenerAttribute(args *SetLoadBalancerHTTPSListenerAttributeArgs) (err error)

SetLoadBalancerHTTPSListenerAttribute Set HTTPS listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetLoadBalancerHTTPSListenerAttribute

func (*Client) SetLoadBalancerName

func (client *Client) SetLoadBalancerName(loadBalancerId string, name string) (err error)

func (*Client) SetLoadBalancerStatus

func (client *Client) SetLoadBalancerStatus(loadBalancerId string, status Status) (err error)

func (*Client) SetLoadBalancerTCPListenerAttribute

func (client *Client) SetLoadBalancerTCPListenerAttribute(args *SetLoadBalancerTCPListenerAttributeArgs) (err error)

SetLoadBalancerTCPListenerAttribute Set TCP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetLoadBalancerTCPListenerAttribute

func (*Client) SetLoadBalancerUDPListenerAttribute

func (client *Client) SetLoadBalancerUDPListenerAttribute(args *SetLoadBalancerUDPListenerAttributeArgs) (err error)

SetLoadBalancerUDPListenerAttribute Set UDP listener attribute

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&SetLoadBalancerUDPListenerAttribute

func (*Client) SetServerCertificateName

func (client *Client) SetServerCertificateName(regionId common.Region, serverCertificateId string, name string) (err error)

SetServerCertificateName Set name of server certificate

You can read doc at http://docs.aliyun.com/#pub/slb/api-reference/api-servercertificate&SetServerCertificateName

func (*Client) SetVServerGroupAttribute

func (client *Client) SetVServerGroupAttribute(args *SetVServerGroupAttributeArgs) (response *SetVServerGroupAttributeResponse, err error)

func (*Client) StartLoadBalancerListener

func (client *Client) StartLoadBalancerListener(loadBalancerId string, port int) (err error)

StartLoadBalancerListener Start listener

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&StartLoadBalancerListener

func (*Client) StopLoadBalancerListener

func (client *Client) StopLoadBalancerListener(loadBalancerId string, port int) (err error)

StopLoadBalancerListener Stop listener

You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&StopLoadBalancerListener

func (*Client) UploadServerCertificate

func (client *Client) UploadServerCertificate(args *UploadServerCertificateArgs) (response *UploadServerCertificateResponse, err error)

UploadServerCertificate Upload server certificate

You can read doc at http://docs.aliyun.com/#pub/slb/api-reference/api-servercertificate&UploadServerCertificate

func (*Client) WaitForListener

func (client *Client) WaitForListener(loadBalancerId string, port int, listenerType ListenerType) (status ListenerStatus, err error)

WaitForListener waits for listener to given status

type CommonListenerWhiteListItemArgs

type CommonListenerWhiteListItemArgs struct {
	LoadBalancerId string
	ListenerPort   int
	SourceItems    string
}

type CommonLoadBalancerListenerArgs

type CommonLoadBalancerListenerArgs struct {
	LoadBalancerId string
	ListenerPort   int
}

type CommonLoadBalancerListenerResponse

type CommonLoadBalancerListenerResponse struct {
	common.Response
}

type CreateLoadBalancerArgs

type CreateLoadBalancerArgs struct {
	RegionId           common.Region
	LoadBalancerName   string
	AddressType        AddressType
	VSwitchId          string
	InternetChargeType common.InternetChargeType
	Bandwidth          int
	ClientToken        string
}

type CreateLoadBalancerHTTPListenerArgs

type CreateLoadBalancerHTTPListenerArgs HTTPListenerType

type CreateLoadBalancerHTTPSListenerArgs

type CreateLoadBalancerHTTPSListenerArgs HTTPSListenerType

type CreateLoadBalancerResponse

type CreateLoadBalancerResponse struct {
	common.Response
	LoadBalancerId   string
	Address          string
	NetworkType      string
	VpcId            string
	VSwitchId        string
	LoadBalancerName string
}

type CreateLoadBalancerTCPListenerArgs

type CreateLoadBalancerTCPListenerArgs TCPListenerType

type CreateLoadBalancerUDPListenerArgs

type CreateLoadBalancerUDPListenerArgs UDPListenerType

type CreateVServerGroupArgs

type CreateVServerGroupArgs struct {
	LoadBalancerId   string
	RegionId         common.Region
	VServerGroupName string
	VServerGroupId   string
	BackendServers   string
}

type CreateVServerGroupResponse

type CreateVServerGroupResponse struct {
	common.Response
	VServerGroupId   string
	VServerGroupName string
	BackendServers   VBackendServers
}

type DeleteLoadBalancerArgs

type DeleteLoadBalancerArgs struct {
	LoadBalancerId string
}

type DeleteLoadBalancerResponse

type DeleteLoadBalancerResponse struct {
	common.Response
}

type DeleteServerCertificateArgs

type DeleteServerCertificateArgs struct {
	RegionId            common.Region
	ServerCertificateId string
}

type DeleteServerCertificateResponse

type DeleteServerCertificateResponse struct {
	common.Response
}

type DeleteVServerGroupArgs

type DeleteVServerGroupArgs struct {
	VServerGroupId string
	RegionId       common.Region
}

type DeleteVServerGroupResponse

type DeleteVServerGroupResponse struct{ common.Response }

type DescribeHealthStatusArgs

type DescribeHealthStatusArgs struct {
	LoadBalancerId string
	ListenerPort   int
}

type DescribeHealthStatusResponse

type DescribeHealthStatusResponse struct {
	common.Response
	BackendServers struct {
		BackendServer []HealthStatusType
	}
}

type DescribeListenerAccessControlAttributeResponse

type DescribeListenerAccessControlAttributeResponse struct {
	common.Response
	AccessControlStatus AccessControlStatus
	SourceItems         string
}

type DescribeLoadBalancerAttributeArgs

type DescribeLoadBalancerAttributeArgs struct {
	LoadBalancerId string
}

type DescribeLoadBalancerAttributeResponse

type DescribeLoadBalancerAttributeResponse struct {
	common.Response
	LoadBalancerType
}

type DescribeLoadBalancerHTTPListenerAttributeResponse

type DescribeLoadBalancerHTTPListenerAttributeResponse struct {
	DescribeLoadBalancerListenerAttributeResponse
	HTTPListenerType
}

type DescribeLoadBalancerHTTPSListenerAttributeResponse

type DescribeLoadBalancerHTTPSListenerAttributeResponse struct {
	DescribeLoadBalancerListenerAttributeResponse
	HTTPSListenerType
}

type DescribeLoadBalancerListenerAttributeResponse

type DescribeLoadBalancerListenerAttributeResponse struct {
	common.Response
	Status ListenerStatus
}

type DescribeLoadBalancerTCPListenerAttributeResponse

type DescribeLoadBalancerTCPListenerAttributeResponse struct {
	DescribeLoadBalancerListenerAttributeResponse
	TCPListenerType
}

type DescribeLoadBalancerUDPListenerAttributeResponse

type DescribeLoadBalancerUDPListenerAttributeResponse struct {
	DescribeLoadBalancerListenerAttributeResponse
	UDPListenerType
}

type DescribeLoadBalancersArgs

type DescribeLoadBalancersArgs struct {
	RegionId           common.Region
	LoadBalancerId     string
	AddressType        AddressType
	NetworkType        string
	VpcId              string
	VSwitchId          string
	Address            string
	InternetChargeType common.InternetChargeType
	ServerId           string
}

type DescribeLoadBalancersResponse

type DescribeLoadBalancersResponse struct {
	common.Response
	LoadBalancers struct {
		LoadBalancer []LoadBalancerType
	}
}

type DescribeRegionsArgs

type DescribeRegionsArgs struct {
}

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	common.Response
	Regions struct {
		Region []RegionType
	}
}

type DescribeServerCertificatesArgs

type DescribeServerCertificatesArgs struct {
	RegionId            common.Region
	ServerCertificateId string
}

type DescribeServerCertificatesResponse

type DescribeServerCertificatesResponse struct {
	common.Response
	ServerCertificates struct {
		ServerCertificate []ServerCertificateType
	}
}

type DescribeVServerGroupAttributeArgs

type DescribeVServerGroupAttributeArgs struct {
	VServerGroupId string
	RegionId       common.Region
}

type DescribeVServerGroupAttributeResponse

type DescribeVServerGroupAttributeResponse CreateVServerGroupResponse

type DescribeVServerGroupsArgs

type DescribeVServerGroupsArgs struct {
	LoadBalancerId string
	RegionId       common.Region
}

type DescribeVServerGroupsResponse

type DescribeVServerGroupsResponse struct {
	common.Response
	VServerGroups struct {
		VServerGroup []VServerGroup
	}
}

type FlagType

type FlagType string

type HTTPListenerType

type HTTPListenerType struct {
	LoadBalancerId         string
	ListenerPort           int
	BackendServerPort      int
	Bandwidth              int
	Scheduler              SchedulerType
	StickySession          FlagType
	StickySessionType      StickySessionType
	CookieTimeout          int
	Cookie                 string
	HealthCheck            FlagType
	HealthCheckDomain      string
	HealthCheckURI         string
	HealthCheckConnectPort int
	HealthyThreshold       int
	UnhealthyThreshold     int
	HealthCheckTimeout     int
	HealthCheckInterval    int
	HealthCheckHttpCode    HealthCheckHttpCodeType
	VServerGroupId         string
}

type HTTPSListenerType

type HTTPSListenerType struct {
	HTTPListenerType
	ServerCertificateId string
}

type HealthCheckHttpCodeType

type HealthCheckHttpCodeType string

type HealthCheckType

type HealthCheckType string

type HealthStatusType

type HealthStatusType struct {
	ServerId           string
	ServerHealthStatus string
}

type ListenerPortAndProtocolType

type ListenerPortAndProtocolType struct {
	ListenerPort     int
	ListenerProtocol string
}

type ListenerStatus

type ListenerStatus string

type ListenerType

type ListenerType string

type LoadBalancerType

type LoadBalancerType struct {
	LoadBalancerId     string
	LoadBalancerName   string
	LoadBalancerStatus string
	Address            string
	RegionId           common.Region
	RegionIdAlias      string
	AddressType        AddressType
	VSwitchId          string
	VpcId              string
	NetworkType        string
	Bandwidth          int
	InternetChargeType common.InternetChargeType
	CreateTime         string //Why not ISO 6801
	CreateTimeStamp    util.ISO6801Time
	ListenerPorts      struct {
		ListenerPort []int
	}
	ListenerPortsAndProtocol struct {
		ListenerPortAndProtocol []ListenerPortAndProtocolType
	}
	BackendServers struct {
		BackendServer []BackendServerType
	}
}

type ModifyLoadBalancerInternetSpecArgs

type ModifyLoadBalancerInternetSpecArgs struct {
	LoadBalancerId     string
	InternetChargeType common.InternetChargeType
	Bandwidth          int
}

type ModifyLoadBalancerInternetSpecResponse

type ModifyLoadBalancerInternetSpecResponse struct {
	common.Response
}

type ModifyVServerGroupBackendServersArgs

type ModifyVServerGroupBackendServersArgs struct {
	VServerGroupId    string
	RegionId          common.Region
	OldBackendServers string
	NewBackendServers string
}

type ModifyVServerGroupBackendServersResponse

type ModifyVServerGroupBackendServersResponse CreateVServerGroupResponse

type RegionType

type RegionType struct {
	RegionId  common.Region
	LocalName string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&regiontype

type RemoveBackendServersArgs

type RemoveBackendServersArgs struct {
	LoadBalancerId string
	BackendServers []string
}

type RemoveBackendServersResponse

type RemoveBackendServersResponse struct {
	common.Response
	LoadBalancerId string
	BackendServers struct {
		BackendServer []BackendServerType
	}
}

type RemoveVServerGroupBackendServersArgs

type RemoveVServerGroupBackendServersArgs CreateVServerGroupArgs

type RemoveVServerGroupBackendServersResponse

type RemoveVServerGroupBackendServersResponse CreateVServerGroupResponse

type SchedulerType

type SchedulerType string

type ServerCertificateType

type ServerCertificateType struct {
	RegionId              common.Region
	ServerCertificateId   string
	ServerCertificateName string
	Fingerprint           string
}

type SetBackendServersArgs

type SetBackendServersArgs AddBackendServersArgs

type SetBackendServersResponse

type SetBackendServersResponse AddBackendServersResponse

type SetListenerAccessControlStatusArgs

type SetListenerAccessControlStatusArgs struct {
	LoadBalancerId      string
	ListenerPort        int
	AccessControlStatus AccessControlStatus
}

type SetLoadBalancerHTTPListenerAttributeArgs

type SetLoadBalancerHTTPListenerAttributeArgs CreateLoadBalancerHTTPListenerArgs

type SetLoadBalancerHTTPSListenerAttributeArgs

type SetLoadBalancerHTTPSListenerAttributeArgs CreateLoadBalancerHTTPSListenerArgs

type SetLoadBalancerNameArgs

type SetLoadBalancerNameArgs struct {
	LoadBalancerId   string
	LoadBalancerName string
}

type SetLoadBalancerNameResponse

type SetLoadBalancerNameResponse struct {
	common.Response
}

type SetLoadBalancerStatusArgs

type SetLoadBalancerStatusArgs struct {
	LoadBalancerId     string
	LoadBalancerStatus Status
}

type SetLoadBalancerStatusResponse

type SetLoadBalancerStatusResponse struct {
	common.Response
}

type SetLoadBalancerTCPListenerAttributeArgs

type SetLoadBalancerTCPListenerAttributeArgs CreateLoadBalancerTCPListenerArgs

type SetLoadBalancerUDPListenerAttributeArgs

type SetLoadBalancerUDPListenerAttributeArgs CreateLoadBalancerUDPListenerArgs

type SetServerCertificateNameArgs

type SetServerCertificateNameArgs struct {
	RegionId              common.Region
	ServerCertificateId   string
	ServerCertificateName string
}

type SetServerCertificateNameResponse

type SetServerCertificateNameResponse struct {
	common.Response
}

type SetVServerGroupAttributeArgs

type SetVServerGroupAttributeArgs struct {
	LoadBalancerId   string
	RegionId         common.Region
	VServerGroupName string
	VServerGroupId   string
	BackendServers   string
}

type SetVServerGroupAttributeResponse

type SetVServerGroupAttributeResponse struct {
	common.Response
	VServerGroupId   string
	VServerGroupName string
	BackendServers   VBackendServers
}

type Status

type Status string

type StickySessionType

type StickySessionType string

type TCPListenerType

type TCPListenerType struct {
	LoadBalancerId         string
	ListenerPort           int
	BackendServerPort      int
	Bandwidth              int
	Scheduler              SchedulerType
	PersistenceTimeout     int
	HealthCheckType        HealthCheckType
	HealthCheckDomain      string
	HealthCheckURI         string
	HealthCheckConnectPort int
	HealthyThreshold       int
	UnhealthyThreshold     int
	HealthCheckTimeout     int
	HealthCheckInterval    int
	HealthCheckHttpCode    HealthCheckHttpCodeType
	VServerGroupId         string
}

type UDPListenerType

type UDPListenerType struct {
	LoadBalancerId         string
	ListenerPort           int
	BackendServerPort      int
	Bandwidth              int
	Scheduler              SchedulerType
	PersistenceTimeout     int
	HealthCheckConnectPort int
	HealthyThreshold       int
	UnhealthyThreshold     int
	HealthCheckTimeout     int
	HealthCheckInterval    int
	VServerGroupId         string
}

type UploadServerCertificateArgs

type UploadServerCertificateArgs struct {
	RegionId              common.Region
	ServerCertificate     string
	ServerCertificateName string
	PrivateKey            string
}

type UploadServerCertificateResponse

type UploadServerCertificateResponse struct {
	common.Response
	ServerCertificateId   string
	ServerCertificateName string
	Fingerprint           string
}

type VBackendServerType

type VBackendServerType struct {
	ServerId string
	Weight   int
	Port     int
}

type VBackendServers

type VBackendServers struct {
	BackendServer []VBackendServerType
}

type VServerGroup

type VServerGroup struct {
	VServerGroupName string
	VServerGroupId   string
}

Jump to

Keyboard shortcuts

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