API

From $1

    code.pngFor the programmers among you, Scalr has an API that allows you to execute commands on your infrastructure. For example launching or terminating Instances, getting details for one of your Farms, or listing DNS information.

    Versions

    Current Version

    The Current API Version is 2.3.0 (Added 8 new methods for deployment process)

    Older Versions

    • 2.2.0 (Minor improvements and fixes)
    • 2.1.0 (Added methods for working with apache vhosts)
    • 2.0.0

    Sample libraries & helper scripts

    Attached to this page are some sample scripts (PHP, Java, and Perl) for using Scalr's API. Download and modify them to get started easily. Ruby on Rails users are lucky - there is a Gem available for them: Scalr Gem on GitHub.

    Tags: (Edit tags)
    • No tags
    FileSizeDateAttached by 
     scalr-example-php.txt
    Scalr PHP Example (more modern than the other one here because it connects to v2 of the API)
    918 bytes19:53, 28 Oct 2011henrynwActions
    ScalrAPI.example.php
    Use API with PHP. Sample client.
    980 bytes13:49, 27 Jul 2010igor.savchenkoActions
    ScalrAPI.example.pl
    Use API with Perl. Sample client.
    2.5 kB13:49, 27 Jul 2010igor.savchenkoActions
    ScalrApiClient.java
    Use API with Java. Sample client.
    3.04 kB13:49, 27 Jul 2010igor.savchenkoActions
    Comments (1)
    Viewing 1 of 1 comments: view all
    The Scalr gem on github still uses the pre-2.0 API. I've updated it to use the 2.0 API. Pull request to the original gem's author was just sent, but if you want to get your hands on the code now, it's at http://github.com/threetee/scalr/tree/api-2.0.
    Posted 12:46, 12 Oct 2010
    Viewing 1 of 1 comments: view all
    You must login to post a comment.

     
    Powered by MindTouch Core