Using the Scalr API

You may find a complete guide with examples at http://wiki.scalr.com/display/docs/API