Minimal CloudStack Access Library and Utilities
Makes it easy to connect to Apache CloudStack. Tested with version 4.2 and later.
Includes helper scripts to work with zones and hosts and helps you get started with your own scripts.
pip install minicloudstack
Export the following environment variables (alternatively arguments can be used):
export CS_API_URL="http://mycloudstackapi.example.com/" export CS_API_KEY="1235..." export CS_SECRET_KEY="abcdef..."
Start your python shell (python or ipython).
import minicloudstack mcs = minicloudstack.MiniCloudStack() for template in mcs.list("templates", templatefilter="featured"): print template.id, template.name
Also provided are the following scripts that can be useful:
mcs-createzone mcs-deletezone mcs-registertemplate mcs-addhost mcs-volume minicloudstack
Start them with –help for detailed instructions.
We hope you find them useful!
Greenqloud Dev Team.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.