![JAR search and dependency download from the Maven repository](/logo.png)
org.openstack4j.api.compute.ComputeFloatingIPService Maven / Gradle / Ivy
package org.openstack4j.api.compute;
import java.util.List;
import org.openstack4j.common.RestService;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.compute.FloatingIP;
import org.openstack4j.model.compute.Server;
/**
* OpenStack Compute Floating-IP Operation API.
*
* @author Nathan Anderson
*/
public interface ComputeFloatingIPService extends RestService {
/**
* List floating ips associated with current tenant.
*
* @return the list extends floating i p>
*/
List extends FloatingIP> list();
/**
* Lists the current Floating IP Pool Names
* @return List of floating IP pool names
*/
List getPoolNames();
/**
* Allocate a floating ip address to tenant.
*
* @param pool the pool
* @return the floating ip
*/
FloatingIP allocateIP(String pool);
/**
* Deallocate ip address from tenant.
*
* @param id the id of floating ip address
* @return the action response
*/
ActionResponse deallocateIP(String id);
/**
* Adds floating-ip to server.
*
* @param server the server
* @param fixedIpAddress the fixed ip address
* @param ipAddress the ip address
* @return the action response
*/
ActionResponse addFloatingIP(Server server, String fixedIpAddress, String ipAddress);
/**
* Adds floating-ip to server.
*
* @param server the server
* @param ipAddress the ip address
* @return the action response
*/
ActionResponse addFloatingIP(Server server, String ipAddress);
/**
* Remove floating-ip from server
*
* @param server the server
* @param ipAddress the ip address
*/
ActionResponse removeFloatingIP(Server server, String ipAddress);
/**
* Adds floating-ip to server.
* @param serverId the id of the server
* @param fixedIpAddress the fixed ip address
* @param ipAddress the ip address
* @return the action response
*/
ActionResponse addFloatingIP(String serverId, String fixedIpAddress, String ipAddress);
/**
* Adds floating-ip to server.
* @param serverId the id of the server
* @param ipAddress the ip address
* @return the action response
*/
ActionResponse addFloatingIP(String serverId, String ipAddress);
/**
* Remove floating-ip from server
* @param serverId the id of the server
* @param ipAddress the ip address
* @return
*/
ActionResponse removeFloatingIP(String serverId, String ipAddress) ;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy