Modifier and Type | Method and Description |
---|---|
String |
assignVirtualMachinesToLoadBalancerRule(String id,
Iterable<String> virtualMachineIds)
Assigns virtual machine or a list of virtual machines to a load balancer
rule.
|
String |
assignVirtualMachinesToLoadBalancerRule(String id,
String... virtualMachineIds)
Assigns virtual machine or a list of virtual machines to a load balancer
rule.
|
String |
createLoadBalancerRuleForPublicIP(String publicIPId,
LoadBalancerRule.Algorithm algorithm,
String name,
int privatePort,
int publicPort,
CreateLoadBalancerRuleOptions... options)
Creates a load balancer rule.
|
String |
deleteLoadBalancerRule(String id)
deletes a loadbalancer rule
|
LoadBalancerRule |
getLoadBalancerRule(String id)
get a specific LoadBalancerRule by id
|
Set<LoadBalancerRule> |
listLoadBalancerRules(ListLoadBalancerRulesOptions... options)
List the load balancer rules
|
Set<VirtualMachine> |
listVirtualMachinesAssignedToLoadBalancerRule(String id)
List all virtual machine instances that are assigned to a load balancer
rule.
|
String |
removeVirtualMachinesFromLoadBalancerRule(String id,
Iterable<String> virtualMachineIds)
Removes a virtual machine or a list of virtual machines from a load
balancer rule.
|
String |
removeVirtualMachinesFromLoadBalancerRule(String id,
String... virtualMachineIds)
Removes a virtual machine or a list of virtual machines from a load
balancer rule.
|
LoadBalancerRule |
updateLoadBalancerRule(String id,
UpdateLoadBalancerRuleOptions... options)
Update a load balancer rule.
|
@Named(value="listLoadBalancerRules") @GET @Consumes(value="application/json") Set<LoadBalancerRule> listLoadBalancerRules(ListLoadBalancerRulesOptions... options)
options
- if present, how to constrain the list.@Named(value="listLoadBalancerRules") @GET @Consumes(value="application/json") LoadBalancerRule getLoadBalancerRule(@QueryParam(value="id") String id)
id
- LoadBalancerRule to get@Named(value="createLoadBalancerRule") @GET @Consumes(value="application/json") String createLoadBalancerRuleForPublicIP(@QueryParam(value="publicipid") String publicIPId, @QueryParam(value="algorithm") LoadBalancerRule.Algorithm algorithm, @QueryParam(value="name") String name, @QueryParam(value="privateport") int privatePort, @QueryParam(value="publicport") int publicPort, CreateLoadBalancerRuleOptions... options)
publicIPId
- the public port from where the network traffic will be load
balanced fromalgorithm
- load balancer algorithm (source, roundrobin, leastconn)name
- name of the load balancer ruleprivatePort
- the private port of the private ip address/virtual machine where
the network traffic will be load balanced topublicPort
- public ip address id from where the network traffic will be load
balanced fromoptions
- optional call arguments@Named(value="updateLoadBalancerRule") @GET @Consumes(value="application/json") LoadBalancerRule updateLoadBalancerRule(@QueryParam(value="id") String id, UpdateLoadBalancerRuleOptions... options)
id
- rule idoptions
- optional arguments@Named(value="deleteLoadBalancerRule") @GET @Consumes(value="application/json") String deleteLoadBalancerRule(@QueryParam(value="id") String id)
id
- id of the rule to delete@Named(value="assignToLoadBalancerRule") @GET @Consumes(value="application/json") String assignVirtualMachinesToLoadBalancerRule(@QueryParam(value="id") String id, @QueryParam(value="virtualmachineids") Iterable<String> virtualMachineIds)
id
- the ID of the load balancer rulevirtualMachineIds
- the list of IDs of the virtual machine that are being assigned
to the load balancer rule@Named(value="assignToLoadBalancerRule") @GET @Consumes(value="application/json") String assignVirtualMachinesToLoadBalancerRule(@QueryParam(value="id") String id, @QueryParam(value="virtualmachineids") String... virtualMachineIds)
id
- the ID of the load balancer rulevirtualMachineIds
- the list of IDs of the virtual machine that are being assigned
to the load balancer rule@Named(value="removeFromLoadBalancerRule") @GET @Consumes(value="application/json") String removeVirtualMachinesFromLoadBalancerRule(@QueryParam(value="id") String id, @QueryParam(value="virtualmachineids") Iterable<String> virtualMachineIds)
id
- the ID of the load balancer rulevirtualMachineIds
- the list of IDs of the virtual machine that are being removed
from the load balancer rule@Named(value="removeFromLoadBalancerRule") @GET @Consumes(value="application/json") String removeVirtualMachinesFromLoadBalancerRule(@QueryParam(value="id") String id, @QueryParam(value="virtualmachineids") String... virtualMachineIds)
id
- the ID of the load balancer rulevirtualMachineIds
- the list of IDs of the virtual machine that are being removed
from the load balancer rule@Named(value="listLoadBalancerRuleInstances") @GET @Consumes(value="application/json") Set<VirtualMachine> listVirtualMachinesAssignedToLoadBalancerRule(@QueryParam(value="id") String id)
id
- id of the ruleCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.