Documentation ¶
Index ¶
- Constants
- type AccessControlStatus
- type AddBackendServersArgs
- type AddBackendServersResponse
- type AddTagsArgs
- type AddTagsResponse
- type AddVServerGroupBackendServersArgs
- type AddVServerGroupBackendServersResponse
- type AddressIPVersionType
- type AddressType
- type BackendServerType
- type Client
- func NewClient(accessKeyId, accessKeySecret string) *Client
- func NewClientWithEndpoint(endpoint string, accessKeyId, accessKeySecret string) *Client
- func NewClientWithRegion(endpoint string, accessKeyId, accessKeySecret string, regionID common.Region) *Client
- func NewSLBClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client
- func NewSLBClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewSLBClientWithEndpointAndSecurityToken4RegionalDomain(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewSLBClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string, ...) *Client
- func NewSLBClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, ...) *Client
- func (client *Client) AddBackendServers(loadBalancerId string, backendServers []BackendServerType) (result []BackendServerType, err error)
- func (client *Client) AddListenerWhiteListItem(loadBalancerId string, port int, sourceItems string) (err error)
- func (client *Client) AddTags(args *AddTagsArgs) error
- func (client *Client) AddVServerGroupBackendServers(args *AddVServerGroupBackendServersArgs) (response *AddVServerGroupBackendServersResponse, err error)
- func (client *Client) CreateLoadBalancer(args *CreateLoadBalancerArgs) (response *CreateLoadBalancerResponse, err error)
- func (client *Client) CreateLoadBalancerHTTPListener(args *CreateLoadBalancerHTTPListenerArgs) (err error)
- func (client *Client) CreateLoadBalancerHTTPSListener(args *CreateLoadBalancerHTTPSListenerArgs) (err error)
- func (client *Client) CreateLoadBalancerTCPListener(args *CreateLoadBalancerTCPListenerArgs) (err error)
- func (client *Client) CreateLoadBalancerUDPListener(args *CreateLoadBalancerUDPListenerArgs) (err error)
- func (client *Client) CreateRules(args *CreateRulesArgs) error
- func (client *Client) CreateVServerGroup(args *CreateVServerGroupArgs) (response *CreateVServerGroupResponse, err error)
- func (client *Client) DeleteLoadBalancer(loadBalancerId string) (err error)
- func (client *Client) DeleteLoadBalancerListener(loadBalancerId string, port int) (err error)
- func (client *Client) DeleteRules(args *DeleteRulesArgs) error
- func (client *Client) DeleteServerCertificate(regionId common.Region, serverCertificateId string) (err error)
- func (client *Client) DeleteVServerGroup(args *DeleteVServerGroupArgs) (response *DeleteVServerGroupResponse, err error)
- func (client *Client) DescribeHealthStatus(args *DescribeHealthStatusArgs) (response *DescribeHealthStatusResponse, err error)
- func (client *Client) DescribeListenerAccessControlAttribute(loadBalancerId string, port int) (response *DescribeListenerAccessControlAttributeResponse, err error)
- func (client *Client) DescribeLoadBalancerAttribute(loadBalancerId string) (loadBalancer *LoadBalancerType, err error)
- func (client *Client) DescribeLoadBalancerHTTPListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerHTTPListenerAttributeResponse, err error)
- func (client *Client) DescribeLoadBalancerHTTPSListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerHTTPSListenerAttributeResponse, err error)
- func (client *Client) DescribeLoadBalancerTCPListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerTCPListenerAttributeResponse, err error)
- func (client *Client) DescribeLoadBalancerUDPListenerAttribute(loadBalancerId string, port int) (response *DescribeLoadBalancerUDPListenerAttributeResponse, err error)
- func (client *Client) DescribeLoadBalancers(args *DescribeLoadBalancersArgs) (loadBalancers []LoadBalancerType, err error)
- func (client *Client) DescribeRegions() (regions []RegionType, err error)
- func (client *Client) DescribeRuleAttribute(args *DescribeRuleAttributeArgs) (*DescribeRuleAttributeResponse, error)
- func (client *Client) DescribeRules(args *DescribeRulesArgs) (*DescribeRulesResponse, error)
- func (client *Client) DescribeServerCertificates(args *DescribeServerCertificatesArgs) (response *DescribeServerCertificatesResponse, err error)
- func (client *Client) DescribeServerCertificatesArgs(regionId common.Region, serverCertificateId string) (serverCertificates []ServerCertificateType, err error)
- func (client *Client) DescribeTags(args *DescribeTagsArgs) (tags []TagItemType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeVServerGroupAttribute(args *DescribeVServerGroupAttributeArgs) (response *DescribeVServerGroupAttributeResponse, err error)
- func (client *Client) DescribeVServerGroups(args *DescribeVServerGroupsArgs) (response *DescribeVServerGroupsResponse, err error)
- func (client *Client) DescribeZones(regionId common.Region) (zones []ZoneType, err error)
- func (client *Client) DescribeZonesWithRaw(regionId common.Region) (response *DescribeZonesResponse, err error)
- func (client *Client) ModifyLoadBalancerInstanceSpec(args *ModifyLoadBalancerInstanceSpecArgs) (err error)
- func (client *Client) ModifyLoadBalancerInternetSpec(args *ModifyLoadBalancerInternetSpecArgs) (err error)
- func (client *Client) ModifyVServerGroupBackendServers(args *ModifyVServerGroupBackendServersArgs) (response *ModifyVServerGroupBackendServersResponse, err error)
- func (client *Client) NewDescribeLoadBalancerAttribute(args *NewDescribeLoadBalancerAttributeArgs) (loadBalancer *LoadBalancerType, err error)
- func (client *Client) RemoveBackendServers(loadBalancerId string, backendServers []BackendServerType) (result []BackendServerType, err error)
- func (client *Client) RemoveListenerWhiteListItem(loadBalancerId string, port int, sourceItems string) (err error)
- func (client *Client) RemoveTags(args *RemoveTagsArgs) error
- func (client *Client) RemoveVServerGroupBackendServers(args *RemoveVServerGroupBackendServersArgs) (response *RemoveVServerGroupBackendServersResponse, err error)
- func (client *Client) ServiceManagedControl(args *ServiceManagedControlArgs) (err error)
- func (client *Client) SetBackendServers(loadBalancerId string, backendServers []BackendServerType) (result []BackendServerType, err error)
- func (client *Client) SetListenerAccessControlStatus(loadBalancerId string, port int, status AccessControlStatus) (err error)
- func (client *Client) SetLoadBalancerDeleteProtection(args *SetLoadBalancerDeleteProtectionArgs) (err error)
- func (client *Client) SetLoadBalancerHTTPListenerAttribute(args *SetLoadBalancerHTTPListenerAttributeArgs) (err error)
- func (client *Client) SetLoadBalancerHTTPSListenerAttribute(args *SetLoadBalancerHTTPSListenerAttributeArgs) (err error)
- func (client *Client) SetLoadBalancerModificationProtection(args *SetLoadBalancerModificationProtectionArgs) (err error)
- func (client *Client) SetLoadBalancerName(loadBalancerId string, name string) (err error)
- func (client *Client) SetLoadBalancerStatus(loadBalancerId string, status Status) (err error)
- func (client *Client) SetLoadBalancerTCPListenerAttribute(args *SetLoadBalancerTCPListenerAttributeArgs) (err error)
- func (client *Client) SetLoadBalancerUDPListenerAttribute(args *SetLoadBalancerUDPListenerAttributeArgs) (err error)
- func (client *Client) SetRule(args *SetRuleArgs) error
- func (client *Client) SetServerCertificateName(regionId common.Region, serverCertificateId string, name string) (err error)
- func (client *Client) SetVServerGroupAttribute(args *SetVServerGroupAttributeArgs) (response *SetVServerGroupAttributeResponse, err error)
- func (client *Client) StartLoadBalancerListener(loadBalancerId string, port int) (err error)
- func (client *Client) StopLoadBalancerListener(loadBalancerId string, port int) (err error)
- func (client *Client) UploadServerCertificate(args *UploadServerCertificateArgs) (response *UploadServerCertificateResponse, err error)
- func (client *Client) WaitForListener(loadBalancerId string, port int, listenerType ListenerType) (status ListenerStatus, err error)
- func (client *Client) WaitForListenerAsyn(loadBalancerId string, port int, listenerType ListenerType, ...) error
- func (client *Client) WaitForLoadBalancerAsyn(loadBalancerId string, status Status, timeout int) error
- type CommonListenerWhiteListItemArgs
- type CommonLoadBalancerListenerArgs
- type CommonLoadBalancerListenerResponse
- type CreateLoadBalancerArgs
- type CreateLoadBalancerHTTPListenerArgs
- type CreateLoadBalancerHTTPSListenerArgs
- type CreateLoadBalancerResponse
- type CreateLoadBalancerTCPListenerArgs
- type CreateLoadBalancerUDPListenerArgs
- type CreateRulesArgs
- type CreateRulesResponse
- type CreateVServerGroupArgs
- type CreateVServerGroupResponse
- type DeleteLoadBalancerArgs
- type DeleteLoadBalancerResponse
- type DeleteRulesArgs
- type DeleteRulesResponse
- type DeleteServerCertificateArgs
- type DeleteServerCertificateResponse
- type DeleteVServerGroupArgs
- type DeleteVServerGroupResponse
- type DescribeHealthStatusArgs
- type DescribeHealthStatusResponse
- type DescribeListenerAccessControlAttributeResponse
- type DescribeLoadBalancerAttributeArgs
- type DescribeLoadBalancerAttributeResponse
- type DescribeLoadBalancerHTTPListenerAttributeResponse
- type DescribeLoadBalancerHTTPSListenerAttributeResponse
- type DescribeLoadBalancerListenerAttributeResponse
- type DescribeLoadBalancerTCPListenerAttributeResponse
- type DescribeLoadBalancerUDPListenerAttributeResponse
- type DescribeLoadBalancersArgs
- type DescribeLoadBalancersResponse
- type DescribeRegionsArgs
- type DescribeRegionsResponse
- type DescribeRuleAttributeArgs
- type DescribeRuleAttributeResponse
- type DescribeRulesArgs
- type DescribeRulesResponse
- type DescribeServerCertificatesArgs
- type DescribeServerCertificatesResponse
- type DescribeTagsArgs
- type DescribeTagsResponse
- type DescribeVServerGroupAttributeArgs
- type DescribeVServerGroupAttributeResponse
- type DescribeVServerGroupsArgs
- type DescribeVServerGroupsResponse
- type DescribeZonesArgs
- type DescribeZonesResponse
- type FlagType
- type HTTPListenerType
- type HTTPSListenerType
- type HealthCheckHttpCodeType
- type HealthCheckType
- type HealthStatusType
- type InternetChargeType
- type ListenerPortAndProtocolType
- type ListenerStatus
- type ListenerType
- type LoadBalancerSpecType
- type LoadBalancerType
- type ManagedResourceModel
- type ManagedResourceType
- type ModificationProtectionType
- type ModifyLoadBalancerInstanceSpecArgs
- type ModifyLoadBalancerInternetSpecArgs
- type ModifyLoadBalancerInternetSpecResponse
- type ModifyVServerGroupBackendServersArgs
- type ModifyVServerGroupBackendServersResponse
- type NewDescribeLoadBalancerAttributeArgs
- type RegionType
- type RemoveBackendServersArgs
- type RemoveBackendServersResponse
- type RemoveTagsArgs
- type RemoveTagsResponse
- type RemoveVServerGroupBackendServersArgs
- type RemoveVServerGroupBackendServersResponse
- type Rule
- type Rules
- type SchedulerType
- type ServerCertificateType
- type ServiceManagedControlArgs
- type ServiceManagedControlResponse
- type ServiceManagedModeType
- type SetBackendServersArgs
- type SetBackendServersResponse
- type SetListenerAccessControlStatusArgs
- type SetLoadBalancerDeleteProtectionArgs
- type SetLoadBalancerDeleteProtectionResponse
- type SetLoadBalancerHTTPListenerAttributeArgs
- type SetLoadBalancerHTTPSListenerAttributeArgs
- type SetLoadBalancerModificationProtectionArgs
- type SetLoadBalancerModificationProtectionResponse
- type SetLoadBalancerNameArgs
- type SetLoadBalancerNameResponse
- type SetLoadBalancerStatusArgs
- type SetLoadBalancerStatusResponse
- type SetLoadBalancerTCPListenerAttributeArgs
- type SetLoadBalancerUDPListenerAttributeArgs
- type SetRuleArgs
- type SetRuleResponse
- type SetServerCertificateNameArgs
- type SetServerCertificateNameResponse
- type SetVServerGroupAttributeArgs
- type SetVServerGroupAttributeResponse
- type Status
- type StickySessionType
- type TCPListenerType
- type TagItem
- type TagItemType
- type UDPListenerType
- type UploadServerCertificateArgs
- type UploadServerCertificateResponse
- type VBackendServerType
- type VBackendServers
- type VServerGroup
- type ZoneType
Constants ¶
const ( // SLBDefaultEndpoint is the default API endpoint of SLB services SLBDefaultEndpoint = "https://slb.aliyuncs.com" SLBAPIVersion = "2014-05-15" SLBServiceCode = "slb" )
const ( Starting = ListenerStatus("starting") Running = ListenerStatus("running") Configuring = ListenerStatus("configuring") Stopping = ListenerStatus("stopping") Stopped = ListenerStatus("stopped") )
const ( WRRScheduler = SchedulerType("wrr") WLCScheduler = SchedulerType("wlc") )
const ( OnFlag = FlagType("on") OffFlag = FlagType("off") )
const ( InsertStickySessionType = StickySessionType("insert") ServerStickySessionType = StickySessionType("server") )
const ( HTTP_2XX = HealthCheckHttpCodeType("http_2xx") HTTP_3XX = HealthCheckHttpCodeType("http_3xx") HTTP_4XX = HealthCheckHttpCodeType("http_4xx") HTTP_5XX = HealthCheckHttpCodeType("http_5xx") )
const ( TCPHealthCheckType = HealthCheckType("tcp") HTTPHealthCheckType = HealthCheckType("http") )
const ( OpenWhileList = AccessControlStatus("open_white_list") Close = AccessControlStatus("close") )
const ( UDP = ListenerType("UDP") TCP = ListenerType("TCP") HTTP = ListenerType("HTTP") HTTPS = ListenerType("HTTPS") )
const ( InternetAddressType = AddressType("internet") IntranetAddressType = AddressType("intranet") )
const ( PayByBandwidth = InternetChargeType("paybybandwidth") PayByTraffic = InternetChargeType("paybytraffic") )
const ( IPv4 = AddressIPVersionType("ipv4") IPv6 = AddressIPVersionType("ipv6") )
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" )
const ( NonProtection = ModificationProtectionType("NonProtection") ConsoleProtection = ModificationProtectionType("ConsoleProtection") )
const ( Managed = ServiceManagedModeType("Managed") Unmanaged = ServiceManagedModeType("Unmanaged") DependencyManaged = ServiceManagedModeType("DependencyManaged") )
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") )
const ActiveStatus = Status("active")
const BackendServerPort = -520
const DefaultTimeout = 60 //60 seconds
const DefaultWaitForInterval = 5 //5 seconds
const InactiveStatus = Status("inactive")
const LockedStatus = Status("locked")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControlStatus ¶
type AccessControlStatus string
type AddBackendServersArgs ¶
type AddBackendServersResponse ¶
type AddBackendServersResponse struct { common.Response LoadBalancerId string BackendServers struct { BackendServer []BackendServerType } }
type AddTagsArgs ¶
type AddTagsResponse ¶
type AddVServerGroupBackendServersArgs ¶
type AddVServerGroupBackendServersArgs CreateVServerGroupArgs
type AddVServerGroupBackendServersResponse ¶
type AddVServerGroupBackendServersResponse CreateVServerGroupResponse
type AddressIPVersionType ¶
type AddressIPVersionType string
type AddressType ¶
type AddressType string
type BackendServerType ¶
type Client ¶
func NewClientWithEndpoint ¶
func NewClientWithRegion ¶
func NewSLBClient ¶
func NewSLBClientWithEndpointAndSecurityToken4RegionalDomain ¶
func NewSLBClientWithEndpointAndSecurityToken4RegionalDomain(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client
only for hangzhou
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 ¶
DeleteLoadBalancer delete loadbalancer
You can read doc at http://docs.aliyun.com/#/pub/slb/api-reference/api-related-loadbalancer&DeleteLoadBalancer
func (*Client) DeleteLoadBalancerListener ¶
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) DescribeRuleAttribute ¶
func (client *Client) DescribeRuleAttribute(args *DescribeRuleAttributeArgs) (*DescribeRuleAttributeResponse, error)
Describe rule
You can read doc at https://help.aliyun.com/document_detail/35229.html?spm=5176.doc35226.6.674.DRJeKJ
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 ¶
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) ServiceManagedControl ¶
func (client *Client) ServiceManagedControl(args *ServiceManagedControlArgs) (err error)
api: https://yuque.antfin-inc.com/docs/share/63b5a2d3-6fb3-4bd7-a50e-c4b385b866fd?#
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) SetLoadBalancerStatus ¶
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 ¶
StartLoadBalancerListener Start listener
You can read doc at https://docs.aliyun.com/#/pub/slb/api-reference/api-related-listener&StartLoadBalancerListener
func (*Client) StopLoadBalancerListener ¶
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
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 CreateLoadBalancerTCPListenerArgs ¶
type CreateLoadBalancerTCPListenerArgs TCPListenerType
type CreateLoadBalancerUDPListenerArgs ¶
type CreateLoadBalancerUDPListenerArgs UDPListenerType
type CreateRulesArgs ¶
type CreateRulesResponse ¶
type CreateVServerGroupArgs ¶
type CreateVServerGroupResponse ¶
type CreateVServerGroupResponse struct { common.Response VServerGroupId string VServerGroupName string BackendServers VBackendServers }
type DeleteLoadBalancerArgs ¶
type DeleteLoadBalancerArgs struct {
LoadBalancerId string
}
type DeleteRulesArgs ¶
type DeleteRulesResponse ¶
type DeleteVServerGroupArgs ¶
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 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 DescribeRulesArgs ¶
type DescribeRulesResponse ¶
type DescribeServerCertificatesResponse ¶
type DescribeServerCertificatesResponse struct { common.Response ServerCertificates struct { ServerCertificate []ServerCertificateType } }
type DescribeTagsArgs ¶
type DescribeTagsResponse ¶
type DescribeTagsResponse struct { common.Response common.PaginationResult TagSets struct { TagSet []TagItemType } }
type DescribeVServerGroupsResponse ¶
type DescribeVServerGroupsResponse struct { common.Response VServerGroups struct { VServerGroup []VServerGroup } AssociatedObjects struct { Listeners string Rules string } }
type DescribeZonesArgs ¶
type DescribeZonesResponse ¶
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 InternetChargeType ¶
type InternetChargeType 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 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 ModifyVServerGroupBackendServersResponse ¶
type ModifyVServerGroupBackendServersResponse CreateVServerGroupResponse
type RegionType ¶
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype®iontype
type RemoveBackendServersResponse ¶
type RemoveBackendServersResponse struct { common.Response LoadBalancerId string BackendServers struct { BackendServer []BackendServerType } }
type RemoveTagsArgs ¶
type RemoveTagsResponse ¶
type RemoveVServerGroupBackendServersArgs ¶
type RemoveVServerGroupBackendServersArgs CreateVServerGroupArgs
type RemoveVServerGroupBackendServersResponse ¶
type RemoveVServerGroupBackendServersResponse CreateVServerGroupResponse
type SchedulerType ¶
type SchedulerType string
type ServerCertificateType ¶
type ServiceManagedControlArgs ¶
type ServiceManagedControlArgs struct { RegionId common.Region ServiceManagedMode ServiceManagedModeType ResourceUid string ResourceBid string ResourceType ManagedResourceType Resources []ManagedResourceModel }
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 SetLoadBalancerHTTPListenerAttributeArgs ¶
type SetLoadBalancerHTTPListenerAttributeArgs CreateLoadBalancerHTTPListenerArgs
type SetLoadBalancerHTTPSListenerAttributeArgs ¶
type SetLoadBalancerHTTPSListenerAttributeArgs CreateLoadBalancerHTTPSListenerArgs
type SetLoadBalancerModificationProtectionArgs ¶
type SetLoadBalancerModificationProtectionArgs struct { RegionId common.Region LoadBalancerId string ModificationProtectionStatus ModificationProtectionType ModificationProtectionReason string }
type SetLoadBalancerNameArgs ¶
type SetLoadBalancerTCPListenerAttributeArgs ¶
type SetLoadBalancerTCPListenerAttributeArgs CreateLoadBalancerTCPListenerArgs
type SetLoadBalancerUDPListenerAttributeArgs ¶
type SetLoadBalancerUDPListenerAttributeArgs CreateLoadBalancerUDPListenerArgs
type SetRuleArgs ¶
type SetRuleResponse ¶
type SetVServerGroupAttributeResponse ¶
type SetVServerGroupAttributeResponse struct { common.Response VServerGroupId string VServerGroupName string BackendServers VBackendServers }
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 TagItemType ¶
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 VBackendServerType ¶
type VBackendServers ¶
type VBackendServers struct {
BackendServer []VBackendServerType
}