lib/sapi.js
function listInstances(search_opts, callback) {
    if (arguments.length === 1) {
        callback = search_opts;
        search_opts = {};
    }

    var uri = '/instances?' + qs.stringify(search_opts);
    return (this.get(uri, callback));
}
function listInstances(search_opts, callback) {
    if (arguments.length === 1) {
        callback = search_opts;
        search_opts = {};
    }

    var uri = '/instances?' + qs.stringify(search_opts);
    return (this.get(uri, callback));
}
function listInstances ( search_opts , callback ) { if ( arguments . length === 1 ) { callback = search_opts ; search_opts = { } ; } var uri = '/instances?' + qs . stringify ( search_opts ) ; return ( this . get ( uri , callback ) ) ; }
Lists all instances

@param {Function} callback: of the form f(err, instances).
Lists all instances