Created
December 23, 2010 14:22
-
-
Save chmouel/753038 to your computer and use it in GitHub Desktop.
Access Rackspace UK cloud from libcloud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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