@Beta
public interface FloatingIPApi
Modifier and Type | Method and Description |
---|---|
void |
addToServer(String address,
String serverId)
Adds a Floating IP address to a Server
|
FloatingIP |
allocateFromPool(String pool)
Allocates a Floating IP address from a pool
|
FloatingIP |
create()
Allocates a Floating IP address
|
void |
delete(String id)
Deletes a Floating IP address
|
FloatingIP |
get(String id)
Gets a specific Floating IP address
|
com.google.common.collect.FluentIterable<FloatingIP> |
list()
Lists all Floating IP addresses
|
void |
removeFromServer(String address,
String serverId)
Removes a Floating IP address from a Server
|
@Named(value="floatingIP:list") com.google.common.collect.FluentIterable<FloatingIP> list()
@Named(value="floatingIP:get") @Nullable FloatingIP get(String id)
@Named(value="floatingIP:create") @Nullable FloatingIP create()
@Named(value="floatingIP:allocateFromPool") @Nullable FloatingIP allocateFromPool(String pool)
pool
- Pool to allocate IP address from@Named(value="floatingIP:delete") void delete(String id)
id
- the Floating IP id@Named(value="floatingIP:add") void addToServer(String address, String serverId)
serverId
- the server idaddress
- the IP address to add
NOTE: Possibly move this to ServerApi?Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.