Interface FloatingIPApi
@Beta
@Path("/floatingips")
@Consumes("application/json")
public interface FloatingIPApi
Provides access to Floating IP operations for the OpenStack Networking (Neutron) v2 API.
A floating IP is an IP address on an external network, which is associated with a specific port, and optionally a
specific IP address, on a private OpenStack Networking network. Therefore a floating IP allows access to an
instance on a private network from an external network. Floating IPs can only be defined on networks for which the
attribute floatingip:external (by the external network extension) has been set to True.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(FloatingIP.CreateFloatingIP createFloatingIP) Creates a floating IP.boolean
Deletes the specified floatingIPReturns the details for a specific floating IP.list()
Returns a list of floating IPs to which the tenant has access.list
(PaginationOptions options) update
(String id, FloatingIP.UpdateFloatingIP updateFloatingIP) Update a Floating IP
-
Method Details
-
list
Returns a list of floating IPs to which the tenant has access. Default policy settings return only those floating IPs that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights.- Returns:
- the list of all floatingIP references configured for the tenant.
-
list
- Returns:
- the list of all floatingIP references configured for the tenant.
-
get
Returns the details for a specific floating IP.- Parameters:
id
- the id of the floatingIP to return- Returns:
- FloatingIPs collection or empty if not found
-
create
Creates a floating IP.- Parameters:
createFloatingIP
- Options for creating a Floating IP- Returns:
- the newly created Floating IP
-
update
@Named("floatingip:update") @PUT @Path("/{id}") FloatingIP update(@PathParam("id") String id, FloatingIP.UpdateFloatingIP updateFloatingIP) Update a Floating IP- Parameters:
id
- the id of the Floating IP to updateupdateFloatingIP
- Contains only the attributes to update- Returns:
- The modified Floating IP
-
delete
Deletes the specified floatingIP- Parameters:
id
- the id of the floatingIP to delete- Returns:
- true if delete successful, false if not
-