Shared IP addresses

From the Rackspace API guide:

Public IP addresses can be shared across multiple servers for use in various high availability scenarios. When an IP address is shared to another server, the cloud network restrictions are modified to allow each server to listen to and respond on that IP address (you may optionally specify that the target server network configuration be modified). Shared IP addresses can be used with many standard heartbeat facilities (e.g. keepalived) that monitor for failure and manage IP failover.

A shared IP group is a collection of servers that can share IPs with other members of the group. Any server in a group can share one or more public IPs with any other server in the group. With the exception of the first server in a shared IP group, servers must be launched into shared IP groups. A server may only be a member of one shared IP group.

See also

Use Server.share_ip() and Server.unshare_ip to share and unshare IPs in a group.

Classes

class ukcloudservers.IPGroupManager(api)
get(group)

Get an IP group.

Parameters:
  • group – ID of the image to get.
Return type:

IPGroup

list()

Get a list of all groups.

Return type:list of IPGroup
find(**kwargs)

Find a single item with attributes matching **kwargs.

This isn’t very efficient: it loads the entire list then filters on the Python side.

findall(**kwargs)

Find all items with attributes matching **kwargs.

This isn’t very efficient: it loads the entire list then filters on the Python side.

create(name, server=None)

Create a new IPGroup

Parameters:
  • name – An (arbitrary) name for the new image.
  • server – A Server (or its ID) to make a member of this group.
Return type:

IPGroup

delete(group)

Delete a group.

Parameters:
  • group – The IPGroup (or its ID) to delete.
class ukcloudservers.IPGroup(manager, info)
id

Shared group ID.

name

Name of the group.

servers

A list of server IDs in this group.

delete()

Delete this group.

Table Of Contents

Previous topic

Images

Next topic

Servers

This Page