slb

package
Version: v0.0.0-...-ba7e8e4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 7 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"

	SLBServiceCode = "slb"
)
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 (
	PayByBandwidth = InternetChargeType("paybybandwidth")
	PayByTraffic   = InternetChargeType("paybytraffic")
)
View Source
const (
	IPv4 = AddressIPVersionType("ipv4")
	IPv6 = AddressIPVersionType("ipv6")
)
View Source
const (
	S1Small  = "slb.s1.small"
	S2Small  = "slb.s2.small"
	S2Medium = "slb.s2.medium"
	S3Small  = "slb.s3.small"
	S3Medium = "slb.s3.medium"
	S3Large  = "slb.s3.large"
)
View Source
const (
	NonProtection     = ModificationProtectionType("NonProtection")
	ConsoleProtection = ModificationProtectionType("ConsoleProtection")
)
View Source
const (
	Managed           = ServiceManagedModeType("Managed")
	Unmanaged         = ServiceManagedModeType("Unmanaged")
	DependencyManaged = ServiceManagedModeType("DependencyManaged")
)
View Source
const (
	ManagedLoadBalancer           = ManagedResourceType("LoadBalancer")
	ManagedTls                    = ManagedResourceType("Tls")
	ManagedVServerGroup           = ManagedResourceType("VServerGroup")
	ManagedMasterSlaveServerGroup = ManagedResourceType("MasterSlaveServerGroup")
	ManagedAcl                    = ManagedResourceType("Acl")
	ManagedListener               = ManagedResourceType("Listener")
	ManagedRule                   = ManagedResourceType("Rule")
	ManagedAppRule                = ManagedResourceType("AppRule")
	ManagedDomainExtension        = ManagedResourceType("DomainExtension")
)
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 AddTagsArgs

type AddTagsArgs struct {
	RegionId       common.Region
	LoadBalancerID string
	Tags           string
}

type AddTagsResponse

type AddTagsResponse struct {
	common.Response
}

type AddVServerGroupBackendServersArgs

type AddVServerGroupBackendServersArgs CreateVServerGroupArgs

type AddVServerGroupBackendServersResponse

type AddVServerGroupBackendServersResponse CreateVServerGroupResponse

type AddressIPVersionType

type AddressIPVersionType string

type AddressType

type AddressType string

type BackendServerType

type BackendServerType struct {
	ServerId string
	Weight   int
	Type     string
}

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 NewClientWithRegion

func NewClientWithRegion(endpoint string, accessKeyId, accessKeySecret string, regionID common.Region) *Client

func NewSLBClient

func NewSLBClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client

func NewSLBClientWithEndpointAndSecurityToken

func NewSLBClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewSLBClientWithEndpointAndSecurityToken4RegionalDomain

func NewSLBClientWithEndpointAndSecurityToken4RegionalDomain(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

only for hangzhou

func NewSLBClientWithSecurityToken

func NewSLBClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewSLBClientWithSecurityToken4RegionalDomain

func NewSLBClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

Only for hangzhou

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

func (client *Client) AddTags(args *AddTagsArgs) error

AddTags Add tags to resource

You can read doc at https://help.aliyun.com/document_detail/42871.html

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

func (client *Client) CreateRules(args *CreateRulesArgs) error

Create forward rules

You can read doc at https://help.aliyun.com/document_detail/35226.html?spm=5176.doc35226.6.671.625Omh

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

func (client *Client) DeleteRules(args *DeleteRulesArgs) error

Delete forward rules

You can read doc at https://help.aliyun.com/document_detail/35227.html?spm=5176.doc35226.6.672.6iNBtR

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

func (client *Client) DescribeRules(args *DescribeRulesArgs) (*DescribeRulesResponse, error)

Describe rule

You can read doc at https://help.aliyun.com/document_detail/35229.html?spm=5176.doc35226.6.674.DRJeKJ

func (*Client) DescribeServerCertificates

func (client *Client) DescribeServerCertificates(args *DescribeServerCertificatesArgs) (response *DescribeServerCertificatesResponse, err error)

DescribeServerCertificates Describe server certificates

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

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

func (client *Client) DescribeTags(args *DescribeTagsArgs) (tags []TagItemType, pagination *common.PaginationResult, err error)

DescribeResourceByTags describe resource by tags

You can read doc at https://help.aliyun.com/document_detail/42873.html?spm=5176.doc42872.6.267.CP1iWu

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

func (client *Client) DescribeZones(regionId common.Region) (zones []ZoneType, err error)

DescribeZones describes zones

func (*Client) DescribeZonesWithRaw

func (client *Client) DescribeZonesWithRaw(regionId common.Region) (response *DescribeZonesResponse, err error)

func (*Client) ModifyLoadBalancerInstanceSpec

func (client *Client) ModifyLoadBalancerInstanceSpec(args *ModifyLoadBalancerInstanceSpecArgs) (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) NewDescribeLoadBalancerAttribute

func (client *Client) NewDescribeLoadBalancerAttribute(args *NewDescribeLoadBalancerAttributeArgs) (loadBalancer *LoadBalancerType, err error)

func (*Client) RemoveBackendServers

func (client *Client) RemoveBackendServers(loadBalancerId string, backendServers []BackendServerType) (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) RemoveTags

func (client *Client) RemoveTags(args *RemoveTagsArgs) error

RemoveTags remove tags to resource

You can read doc at https://help.aliyun.com/document_detail/42872.html

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

func (client *Client) SetLoadBalancerDeleteProtection(args *SetLoadBalancerDeleteProtectionArgs) (err error)

SetLoadBalancerDeleteProtection loadbalancer delete protection

You can read doc at https://help.aliyun.com/document_detail/122674.html?spm=a2c4g.11186623.6.720.694f4265hwOdXQ

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

func (client *Client) SetLoadBalancerModificationProtection(args *SetLoadBalancerModificationProtectionArgs) (err error)

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

func (client *Client) SetRule(args *SetRuleArgs) error

Modify forward rules

You can read doc at https://help.aliyun.com/document_detail/35228.html?spm=5176.doc35227.6.673.rq40a9

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

func (*Client) WaitForListenerAsyn

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

WaitForListener waits for listener to given status

func (*Client) WaitForLoadBalancerAsyn

func (client *Client) WaitForLoadBalancerAsyn(loadBalancerId string, status Status, timeout int) 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           InternetChargeType
	Bandwidth                    int
	ClientToken                  string
	MasterZoneId                 string
	SlaveZoneId                  string
	LoadBalancerSpec             LoadBalancerSpecType
	AddressIPVersion             AddressIPVersionType
	DeleteProtection             FlagType
	ModificationProtectionStatus ModificationProtectionType
	ModificationProtectionReason string
	ResourceGroupId              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
	MasterZoneId     string
	SlaveZoneId      string
	AddressIPVersion AddressIPVersionType
}

type CreateLoadBalancerTCPListenerArgs

type CreateLoadBalancerTCPListenerArgs TCPListenerType

type CreateLoadBalancerUDPListenerArgs

type CreateLoadBalancerUDPListenerArgs UDPListenerType

type CreateRulesArgs

type CreateRulesArgs struct {
	RegionId       common.Region
	LoadBalancerId string
	ListenerPort   int
	RuleList       string
}

type CreateRulesResponse

type CreateRulesResponse struct {
	common.Response
}

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 DeleteRulesArgs

type DeleteRulesArgs struct {
	RegionId common.Region
	RuleIds  string
}

type DeleteRulesResponse

type DeleteRulesResponse 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
	LoadBalancerName   string
	AddressType        AddressType
	NetworkType        string
	VpcId              string
	VSwitchId          string
	Address            string
	InternetChargeType InternetChargeType
	ServerId           string
	Tags               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 DescribeRuleAttributeArgs

type DescribeRuleAttributeArgs struct {
	RegionId common.Region
	RuleId   string
}

type DescribeRuleAttributeResponse

type DescribeRuleAttributeResponse struct {
	common.Response
	LoadBalancerId string
	ListenerPort   int
	Rule
}

type DescribeRulesArgs

type DescribeRulesArgs struct {
	RegionId       common.Region
	LoadBalancerId string
	ListenerPort   int
}

type DescribeRulesResponse

type DescribeRulesResponse struct {
	common.Response
	Rules struct {
		Rule []Rule
	}
}

type DescribeServerCertificatesArgs

type DescribeServerCertificatesArgs struct {
	RegionId            common.Region
	ServerCertificateId string
}

type DescribeServerCertificatesResponse

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

type DescribeTagsArgs

type DescribeTagsArgs struct {
	RegionId       common.Region
	LoadBalancerID string
	Tags           string
	common.Pagination
}

type DescribeTagsResponse

type DescribeTagsResponse struct {
	common.Response
	common.PaginationResult
	TagSets struct {
		TagSet []TagItemType
	}
}

type DescribeVServerGroupAttributeArgs

type DescribeVServerGroupAttributeArgs struct {
	VServerGroupId string
	RegionId       common.Region
}

type DescribeVServerGroupAttributeResponse

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

type DescribeVServerGroupsArgs

type DescribeVServerGroupsArgs struct {
	LoadBalancerId  string
	RegionId        common.Region
	IncludeRule     bool
	IncludeListener bool
}

type DescribeVServerGroupsResponse

type DescribeVServerGroupsResponse struct {
	common.Response
	VServerGroups struct {
		VServerGroup []VServerGroup
	}
	AssociatedObjects struct {
		Listeners string
		Rules     string
	}
}

type DescribeZonesArgs

type DescribeZonesArgs struct {
	RegionId common.Region
}

type DescribeZonesResponse

type DescribeZonesResponse struct {
	common.Response
	Zones struct {
		Zone []ZoneType
	}
}

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
	ForwardPort            int
	ListenerForward        FlagType
	HealthCheckHttpCode    HealthCheckHttpCodeType
	VServerGroup           FlagType
	VServerGroupId         string
	Gzip                   FlagType
	XForwardedFor_SLBID    FlagType
	XForwardedFor_SLBIP    FlagType
	XForwardedFor_proto    FlagType
	Description            string
	AclId                  string
	AclStatus              string
	AclType                string
}

type HTTPSListenerType

type HTTPSListenerType struct {
	HTTPListenerType
	ServerCertificateId string
}

type HealthCheckHttpCodeType

type HealthCheckHttpCodeType string

func EncodeHealthCheckHttpCodeType

func EncodeHealthCheckHttpCodeType(healthCheckHttpCodes []HealthCheckHttpCodeType) (HealthCheckHttpCodeType, error)

type HealthCheckType

type HealthCheckType string

type HealthStatusType

type HealthStatusType struct {
	ServerId           string
	ServerHealthStatus string
}

type InternetChargeType

type InternetChargeType string

type ListenerPortAndProtocolType

type ListenerPortAndProtocolType struct {
	ListenerPort     int
	ListenerProtocol string
	Description      string
}

type ListenerStatus

type ListenerStatus string

type ListenerType

type ListenerType string

type LoadBalancerSpecType

type LoadBalancerSpecType string

type LoadBalancerType

type LoadBalancerType struct {
	LoadBalancerId               string
	ResourceGroupId              string
	LoadBalancerName             string
	LoadBalancerStatus           string
	Address                      string
	RegionId                     common.Region
	RegionIdAlias                string
	AddressType                  AddressType
	VSwitchId                    string
	VpcId                        string
	NetworkType                  string
	Bandwidth                    int
	InternetChargeType           InternetChargeType
	CreateTime                   string //Why not ISO 6801
	CreateTimeStamp              util.ISO6801Time
	DeleteProtection             FlagType
	ModificationProtectionStatus ModificationProtectionType
	ModificationProtectionReason string
	ListenerPorts                struct {
		ListenerPort []int
	}
	ListenerPortsAndProtocol struct {
		ListenerPortAndProtocol []ListenerPortAndProtocolType
	}
	BackendServers struct {
		BackendServer []BackendServerType
	}
	LoadBalancerSpec   LoadBalancerSpecType
	MasterZoneId       string
	SlaveZoneId        string
	AddressIPVersion   AddressIPVersionType
	ServiceManagedMode ServiceManagedModeType
}

type ManagedResourceModel

type ManagedResourceModel struct {
	ResourceId string
	Port       int
	Protocol   string
}

type ManagedResourceType

type ManagedResourceType string

type ModificationProtectionType

type ModificationProtectionType string

type ModifyLoadBalancerInstanceSpecArgs

type ModifyLoadBalancerInstanceSpecArgs struct {
	RegionId         common.Region
	LoadBalancerId   string
	LoadBalancerSpec LoadBalancerSpecType
}

type ModifyLoadBalancerInternetSpecArgs

type ModifyLoadBalancerInternetSpecArgs struct {
	LoadBalancerId     string
	InternetChargeType 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 NewDescribeLoadBalancerAttributeArgs

type NewDescribeLoadBalancerAttributeArgs struct {
	LoadBalancerId string
	RegionId       common.Region
	MasterZoneId   string
	SlaveZoneId    string
}

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 RemoveTagsArgs

type RemoveTagsArgs struct {
	RegionId       common.Region
	LoadBalancerID string
	Tags           string
}

type RemoveTagsResponse

type RemoveTagsResponse struct {
	common.Response
}

type RemoveVServerGroupBackendServersArgs

type RemoveVServerGroupBackendServersArgs CreateVServerGroupArgs

type RemoveVServerGroupBackendServersResponse

type RemoveVServerGroupBackendServersResponse CreateVServerGroupResponse

type Rule

type Rule struct {
	RuleId         string
	RuleName       string
	Domain         string
	Url            string `json:",omitempty"`
	VServerGroupId string
}

type Rules

type Rules struct {
	Rule []Rule
}

type SchedulerType

type SchedulerType string

type ServerCertificateType

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

type ServiceManagedControlArgs

type ServiceManagedControlArgs struct {
	RegionId           common.Region
	ServiceManagedMode ServiceManagedModeType
	ResourceType       ManagedResourceType
	Resources          []ManagedResourceModel
}

type ServiceManagedControlResponse

type ServiceManagedControlResponse struct {
	common.Response
}

type ServiceManagedModeType

type ServiceManagedModeType string

type SetBackendServersArgs

type SetBackendServersArgs AddBackendServersArgs

type SetBackendServersResponse

type SetBackendServersResponse AddBackendServersResponse

type SetListenerAccessControlStatusArgs

type SetListenerAccessControlStatusArgs struct {
	LoadBalancerId      string
	ListenerPort        int
	AccessControlStatus AccessControlStatus
}

type SetLoadBalancerDeleteProtectionArgs

type SetLoadBalancerDeleteProtectionArgs struct {
	LoadBalancerId   string
	DeleteProtection FlagType
	RegionId         common.Region
}

type SetLoadBalancerDeleteProtectionResponse

type SetLoadBalancerDeleteProtectionResponse struct {
	common.Response
}

type SetLoadBalancerHTTPListenerAttributeArgs

type SetLoadBalancerHTTPListenerAttributeArgs CreateLoadBalancerHTTPListenerArgs

type SetLoadBalancerHTTPSListenerAttributeArgs

type SetLoadBalancerHTTPSListenerAttributeArgs CreateLoadBalancerHTTPSListenerArgs

type SetLoadBalancerModificationProtectionArgs

type SetLoadBalancerModificationProtectionArgs struct {
	RegionId                     common.Region
	LoadBalancerId               string
	ModificationProtectionStatus ModificationProtectionType
	ModificationProtectionReason string
}

type SetLoadBalancerModificationProtectionResponse

type SetLoadBalancerModificationProtectionResponse struct {
	common.Response
}

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 SetRuleArgs

type SetRuleArgs struct {
	RegionId       common.Region
	RuleId         string
	VServerGroupId string
}

type SetRuleResponse

type SetRuleResponse struct {
	common.Response
}

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
	HealthCheck               FlagType
	HealthCheckType           HealthCheckType
	HealthCheckDomain         string
	HealthCheckURI            string
	HealthCheckConnectPort    int
	HealthyThreshold          int
	UnhealthyThreshold        int
	HealthCheckConnectTimeout int
	HealthCheckInterval       int
	HealthCheckHttpCode       HealthCheckHttpCodeType
	VServerGroup              FlagType
	VServerGroupId            string
	Description               string
	AclId                     string
	AclStatus                 string
	AclType                   string
}

type TagItem

type TagItem struct {
	TagKey   string
	TagValue string
}

type TagItemType

type TagItemType struct {
	TagItem
	InstanceCount int
}

type UDPListenerType

type UDPListenerType struct {
	LoadBalancerId            string
	ListenerPort              int
	BackendServerPort         int
	Bandwidth                 int
	Scheduler                 SchedulerType
	PersistenceTimeout        *int
	HealthCheck               FlagType
	HealthCheckConnectPort    int
	HealthyThreshold          int
	UnhealthyThreshold        int
	HealthCheckConnectTimeout int
	HealthCheckInterval       int
	VServerGroup              FlagType
	VServerGroupId            string
	Description               string

	AclId     string
	AclStatus string
	AclType   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        string
	ServerIp    string
	Description string
}

type VBackendServers

type VBackendServers struct {
	BackendServer []VBackendServerType
}

type VServerGroup

type VServerGroup struct {
	RegionId         common.Region
	VServerGroupName string
	VServerGroupId   string
}

type ZoneType

type ZoneType struct {
	ZoneId     string
	LocalName  string
	SlaveZones struct {
		SlaveZone []ZoneType
	}
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL