public interface GridLoadBalancerApi
Modifier and Type | Method and Description |
---|---|
LoadBalancer |
addLoadBalancer(String name,
IpPortPair virtualIp,
List<IpPortPair> realIps,
AddLoadBalancerOptions... options)
Creates a load balancer with given properties.
|
LoadBalancer |
deleteById(Long id)
Deletes the load balancer by Id
|
LoadBalancer |
deleteByName(String name)
Deletes the load balancer by name;
NOTE: Using this parameter may generate an error if one or more load balancers share a
non-unique name.
|
LoadBalancer |
editLoadBalancer(long id,
List<IpPortPair> realIps)
Edits the existing load balancer to change the real IP mapping.
|
LoadBalancer |
editLoadBalancerNamed(String name,
List<IpPortPair> realIps)
Edits the existing load balancer to change the real IP mapping.
|
Set<Option> |
getDatacenters()
Retrieves the list of supported Datacenters to launch servers into.
|
Set<LoadBalancer> |
getLoadBalancerList()
Returns all load balancers found for the current user.
|
Set<LoadBalancer> |
getLoadBalancersById(Long... ids)
Returns the load balancer(s) by unique id(s).
|
Set<LoadBalancer> |
getLoadBalancersByName(String... names)
Returns the load balancer(s) by unique name(s).
|
@GET @Path(value="/grid/loadbalancer/list") Set<LoadBalancer> getLoadBalancerList()
@GET @Path(value="/grid/loadbalancer/get") Set<LoadBalancer> getLoadBalancersByName(String... names)
names
- to get the load balancers@GET @Path(value="/grid/loadbalancer/get") Set<LoadBalancer> getLoadBalancersById(Long... ids)
ids
- to get the load balancers@GET @Path(value="/grid/loadbalancer/add") LoadBalancer addLoadBalancer(@QueryParam(value="name") String name, IpPortPair virtualIp, List<IpPortPair> realIps, AddLoadBalancerOptions... options)
name
- name of the load balancervirtualIp
- virtual IP with IP address set in Ip.ip
and port
set in IpPortPair.port
realIps
- real IPs to bind the virtual IP to, with IP address set in
Ip.ip
and port set in IpPortPair.port
options
- options that specify load balancer's type (round robin, least load), persistence
strategy, or description.@GET @Path(value="/grid/loadbalancer/edit") LoadBalancer editLoadBalancerNamed(@QueryParam(value="name") String name, List<IpPortPair> realIps)
name
- id of the existing load balancerrealIps
- real IPs to bind the virtual IP to, with IP address set in
Ip.ip
and port set in IpPortPair.port
@GET @Path(value="/grid/loadbalancer/edit") LoadBalancer editLoadBalancer(@QueryParam(value="id") long id, List<IpPortPair> realIps)
id
- name of the existing load balancerrealIps
- real IPs to bind the virtual IP to, with IP address set in
Ip.ip
and port set in IpPortPair.port
@GET @Path(value="/grid/loadbalancer/delete") LoadBalancer deleteById(@QueryParam(value="id") Long id)
id
- id of the load balancer to delete@GET @Path(value="/grid/loadbalancer/delete") LoadBalancer deleteByName(@QueryParam(value="name") String name)
name
- name of the load balancer to be deleted@GET @Path(value="/common/lookup/list") Set<Option> getDatacenters()
addLoadBalancer(java.lang.String, org.jclouds.gogrid.domain.IpPortPair, java.util.List<org.jclouds.gogrid.domain.IpPortPair>, org.jclouds.gogrid.options.AddLoadBalancerOptions...)
.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.