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, invokeActionWithResponse
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends FloatingIP> list()
list
in interface ComputeFloatingIPService
public List<String> getPoolNames()
getPoolNames
in interface ComputeFloatingIPService
public FloatingIP allocateIP(String pool)
allocateIP
in interface ComputeFloatingIPService
pool
- the poolpublic ActionResponse deallocateIP(String id)
deallocateIP
in interface ComputeFloatingIPService
id
- the id of floating ip addresspublic ActionResponse addFloatingIP(Server server, String fixedIpAddress, String ipAddress)
addFloatingIP
in interface ComputeFloatingIPService
server
- the serverfixedIpAddress
- the fixed ip addressipAddress
- the ip addresspublic ActionResponse addFloatingIP(Server server, String ipAddress)
addFloatingIP
in interface ComputeFloatingIPService
server
- the serveripAddress
- the ip addresspublic ActionResponse removeFloatingIP(Server server, String ipAddress)
removeFloatingIP
in interface ComputeFloatingIPService
server
- the serveripAddress
- the ip addresspublic ActionResponse addFloatingIP(String serverId, String fixedIpAddress, String ipAddress)
addFloatingIP
in interface ComputeFloatingIPService
serverId
- the id of the serverfixedIpAddress
- the fixed ip addressipAddress
- the ip addresspublic ActionResponse addFloatingIP(String serverId, String ipAddress)
addFloatingIP
in interface ComputeFloatingIPService
serverId
- the id of the serveripAddress
- the ip addresspublic ActionResponse removeFloatingIP(String serverId, String ipAddress)
removeFloatingIP
in interface ComputeFloatingIPService
serverId
- the id of the serveripAddress
- the ip addressCopyright © 2017. All rights reserved.