@Beta
@Consumes(value="application/json")
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") @GET @Path(value="/os-floating-ips") com.google.common.collect.FluentIterable<FloatingIP> list()
@Named(value="floatingIP:get") @GET @Path(value="/os-floating-ips/{id}") @Nullable FloatingIP get(@PathParam(value="id") String id)
@Named(value="floatingIP:create") @POST @Path(value="/os-floating-ips") @Produces(value="application/json") @Nullable FloatingIP create()
@Named(value="floatingIP:allocateFromPool") @POST @Path(value="/os-floating-ips") @Produces(value="application/json") @Nullable FloatingIP allocateFromPool(String pool)
pool
- Pool to allocate IP address from@Named(value="floatingIP:delete") @DELETE @Path(value="/os-floating-ips/{id}") void delete(@PathParam(value="id") String id)
id
- the Floating IP id@Named(value="floatingIP:add") @POST @Path(value="/servers/{id}/action") @Produces(value="application/json") void addToServer(String address, @PathParam(value="id") String serverId)
serverId
- the server idaddress
- the IP address to add
NOTE: Possibly move this to ServerApi?@Named(value="floatingIP:remove") @POST @Path(value="/servers/{id}/action") @Produces(value="application/json") void removeFromServer(String address, @PathParam(value="id") String serverId)
serverId
- the server idaddress
- the IP address to remove
NOTE: Possibly move this to ServerApi?Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.