Skip to content

Instantly share code, notes, and snippets.

@chmouel
Created December 23, 2010 14:22
Show Gist options
  • Save chmouel/753038 to your computer and use it in GitHub Desktop.
Save chmouel/753038 to your computer and use it in GitHub Desktop.
Access Rackspace UK cloud from libcloud
from libcloud.types import Provider
from libcloud.providers import get_driver
RACKSPACE_USER="USERNAME"
RACKSPACE_KEY="API_KEY"
Driver = get_driver(Provider.RACKSPACE_LON)
conn = Driver(RACKSPACE_USER, RACKSPACE_KEY)
print conn.list_nodes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment