A Ruby client for CloudStack's API
View the Project on GitHub chipchilders/cloudstack_ruby_client
My other projects are on chipchilders.github.io.
A Ruby client for CloudStack's API, licensed via the Apache Software License v2.
Install with gem install cloudstack_ruby_client
Extra special thanks to Quentin Pleplé for the original cloudstack-client-generator and Jason Hancock for keeping his fork of the generator updated (and for accepting my pull request to add Ruby support to it).
Here's a simple example of listing the network offerings provided by a CloudStack installation:
require 'cloudstack_ruby_client'
URL = 'http://192.168.56.10:8080/client/api/'
APIKEY = 'yy0sfd...Tq8YFw'
SECKEY = 'Pse4fq...lJFZVw'
client = CloudstackRubyClient::Client.new(URL, APIKEY, SECKEY, false)
puts client.list_network_offerings()
See, easy!
It's built against the Apache CloudStack 4.0.0-incubating release, but should work for most CloudStack 3.x versions (pre-Apache), as well as against future Apache releases in the 4.x line. We're using Semantic Versioning for CloudStack release numbering, so you'll know when backward compatibility breaks by the major version number.
Use the Apache CloudStack API docs to understand each available method.