public class ComputeFloatingIPServiceImpl extends BaseComputeServices implements ComputeFloatingIPService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
ComputeFloatingIPServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ActionResponse |
addFloatingIP(Server server,
String ipAddress)
Adds floating-ip to server.
|
ActionResponse |
addFloatingIP(Server server,
String fixedIpAddress,
String ipAddress)
Adds floating-ip to server.
|
ActionResponse |
addFloatingIP(String serverId,
String ipAddress)
Adds floating-ip to server.
|
ActionResponse |
addFloatingIP(String serverId,
String fixedIpAddress,
String ipAddress)
Adds floating-ip to server.
|
FloatingIP |
allocateIP(String pool)
Allocate a floating ip address to tenant.
|
ActionResponse |
deallocateIP(String id)
Deallocate ip address from tenant.
|
List<String> |
getPoolNames()
Lists the current Floating IP Pool Names
|
List<? extends FloatingIP> |
list()
List floating ips associated with current tenant.
|
ActionResponse |
removeFloatingIP(Server server,
String ipAddress)
Remove floating-ip from server
|
ActionResponse |
removeFloatingIP(String serverId,
String ipAddress)
Remove floating-ip from server
|
invokeAction, invokeActionWithResponsedelete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends FloatingIP> list()
list in interface ComputeFloatingIPServicepublic List<String> getPoolNames()
getPoolNames in interface ComputeFloatingIPServicepublic FloatingIP allocateIP(String pool)
allocateIP in interface ComputeFloatingIPServicepool - the poolpublic ActionResponse deallocateIP(String id)
deallocateIP in interface ComputeFloatingIPServiceid - the id of floating ip addresspublic ActionResponse addFloatingIP(Server server, String fixedIpAddress, String ipAddress)
addFloatingIP in interface ComputeFloatingIPServiceserver - the serverfixedIpAddress - the fixed ip addressipAddress - the ip addresspublic ActionResponse addFloatingIP(Server server, String ipAddress)
addFloatingIP in interface ComputeFloatingIPServiceserver - the serveripAddress - the ip addresspublic ActionResponse removeFloatingIP(Server server, String ipAddress)
removeFloatingIP in interface ComputeFloatingIPServiceserver - the serveripAddress - the ip addresspublic ActionResponse addFloatingIP(String serverId, String fixedIpAddress, String ipAddress)
addFloatingIP in interface ComputeFloatingIPServiceserverId - the id of the serverfixedIpAddress - the fixed ip addressipAddress - the ip addresspublic ActionResponse addFloatingIP(String serverId, String ipAddress)
addFloatingIP in interface ComputeFloatingIPServiceserverId - the id of the serveripAddress - the ip addresspublic ActionResponse removeFloatingIP(String serverId, String ipAddress)
removeFloatingIP in interface ComputeFloatingIPServiceserverId - the id of the serveripAddress - the ip addressCopyright © 2017. All rights reserved.