org.jclouds.openstack.nova.v2_0.extensions
Interface FloatingIPApi


public interface FloatingIPApi

Provides synchronous access to Floating IPs.

Author:
Jeremy Daggett
See Also:
FloatingIPAsyncApi

Method Summary
 void addFloatingIPToServer(String address, String serverId)
          Add a Floating IP address to a Server
 FloatingIP allocate()
          Allocate a Floating IP address
 void deallocate(String id)
          Deallocate a Floating IP address
 FloatingIP getFloatingIP(String id)
          Get a specific Floating IP address
 Set<FloatingIP> listFloatingIPs()
          List all Floating IP addresses
 void removeFloatingIPFromServer(String address, String serverId)
          Remove a Floating IP address from a Server
 

Method Detail

listFloatingIPs

Set<FloatingIP> listFloatingIPs()
List all Floating IP addresses

Returns:
all Floating IPs

getFloatingIP

FloatingIP getFloatingIP(String id)
Get a specific Floating IP address

Returns:
all Floating IPs

allocate

FloatingIP allocate()
Allocate a Floating IP address

Returns:
a newly allocated FloatingIP

deallocate

void deallocate(String id)
Deallocate a Floating IP address

Parameters:
id - the Floating IP id

addFloatingIPToServer

void addFloatingIPToServer(String address,
                           String serverId)
Add a Floating IP address to a Server

Parameters:
serverId - the serverId
address - the IP address to add NOTE: Possibly move this to ServerApi?

removeFloatingIPFromServer

void removeFloatingIPFromServer(String address,
                                String serverId)
Remove a Floating IP address from a Server

Parameters:
serverId - the serverId
address - the IP address to remove NOTE: Possibly move this to ServerApi?


Copyright © 2009-2012 jclouds. All Rights Reserved.