Created
August 7, 2014 17:15
-
-
Save rconradharris/f40f7789f41d3dba9989 to your computer and use it in GitHub Desktop.
Rackspace Flavor-List using Novaclient
This file contains 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
import novaclient.auth_plugin | |
from novaclient.v1_1 import client | |
novaclient.auth_plugin.discover_auth_systems() | |
auth_plugin = novaclient.auth_plugin.load_plugin(AUTH_SYSTEM) | |
c = client.Client(USER, | |
PASS, | |
TENANT, | |
AUTH_URL, | |
auth_plugin=auth_plugin, | |
auth_system=AUTH_SYSTEM, | |
region_name=REGION_NAME, | |
bypass_url=BYPASS_URL) | |
c.authenticate() | |
print c.flavors.list() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment