skip to navigation
skip to content

minicloudstack 1.0.9

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.

Alternatives

This library makes it easy to create quick utilities for Operational and Development purposes. For an interactive shell you should try cloudmonkey or shell scripting you can try cs.

Installation

pip install minicloudstack

Quickstart

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

Helper scripts

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.

Background

These scripts were created by Greenqloud when developing Qstack.

We hope you find them useful!

Greenqloud Dev Team.

 
File Type Py Version Uploaded on Size
minicloudstack-1.0.9-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-05-08 35KB
minicloudstack-1.0.9.tar.gz (md5) Source 2017-05-08 25KB