lib/sapi.js
function reprovisionInstance(uuid, image_uuid, callback) {
    assert.string(uuid, 'uuid');
    assert.string(image_uuid, 'image_uuid');

    var opts = {};
    opts.image_uuid = image_uuid;

    return (this.put(sprintf('/instances/%s/upgrade', uuid), opts, callback));
}
function reprovisionInstance(uuid, image_uuid, callback) {
    assert.string(uuid, 'uuid');
    assert.string(image_uuid, 'image_uuid');

    var opts = {};
    opts.image_uuid = image_uuid;

    return (this.put(sprintf('/instances/%s/upgrade', uuid), opts, callback));
}
function reprovisionInstance ( uuid , image_uuid , callback ) { assert . string ( uuid , 'uuid' ) ; assert . string ( image_uuid , 'image_uuid' ) ; var opts = { } ; opts . image_uuid = image_uuid ; return ( this . put ( sprintf ( '/instances/%s/upgrade' , uuid ) , opts , callback ) ) ; }
Reprovision an instance

@param {String} uuid: the UUID of the instances.
@param {String} image_uuid: new attributes
@param {Function} callback: of the form f(err, app).
Reprovision an instance