Seeweb Unofficial PHP SDK for Easycloud (v.0.2)
Product information: http://www.seeweb.it/easycloudserver
Api official documentation: [http://www.wikicloud.it/EasyCloud] (http://www.wikicloud.it/EasyCloud)
USERNAME = Your account username
PASSWORD = Your account password
TEMPLATENAME = Name of bootable image, get by getinfo()
SIZE = Avariable size see DOC
LOCATION = Avariable location see DOC
ECSNAME = Server name
Include library and basic usage
namespace Ecs;
require 'vendor/autoload.php';
$ecs = new Ecs ('USERNAME','PASSWORD',' https://ecs.cloudcenter.seeweb.it/api/public/easycloud/');
Get account information
$response = $ecs->getinfo();
print_r($response);
Create new Ecs
$response = $ecs->create('TEMPLATENAME','SIZE','LOCATION');
print_r($response);
Delete Ecs
$response = $ecs->delete('ECSNAME');
print_r($response)
Make snapshoot
$response = $ecs->action('ECSNAME','snapshot','Comment comment');
print_r($response);