Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import shade
- import json
- cloud_name = 'phx-private'
- project_name = 'QSC-DEV'
- filters = {'name': 'p3dlqscats'}
- servers = []
- # Initialize and turn on debug logging
- shade.simple_logging(debug=True)
- # Initialize cloud
- # Cloud configs are read with os-client-config
- # clouds:
- # phx-private:
- # auth:
- # auth_url: <auth_url>
- # username: username
- # password: <password>
- # project_name: user-project
- default_cloud = shade.openstack_cloud(cloud=cloud_name)
- servers = default_cloud.list_servers()
- print servers
- project_cloud = default_cloud.connect_as_project(project=project_name)
Add Comment
Please, Sign In to add comment