Add activate_image, desactivate_image, uplaod_image

This commit is contained in:
yogg@epsina.com 2016-01-31 17:47:06 +01:00
parent 10a6cd146d
commit 0db8d0ebbe
2 changed files with 43 additions and 14 deletions

View file

@ -43,7 +43,7 @@ $opt['containerFormat'] = 'ami';
$opt['diskFormat'] = 'iso';
$opt['visibility'] = 'public';
$opt['minDisk'] = 1;
$opt['protected'] = true;
$opt['protected'] = false;
$opt['minRam'] = 10;
//$new_image = $image->create_image($opt);
@ -58,6 +58,7 @@ foreach($images as $i){
echo $i->name;
if($i->name == "Test"){
$id_image = $i->id;
echo $i->status;
}
echo "</br>";
}
@ -69,5 +70,10 @@ echo "</br>";
//$image->delete_image($id_image);
//$image->desactivate_image($id_image);
//$image->reactivate_image($id_image);
//$file_name = "/home/yogg/Downloads/TinyCore-6.4.1.iso";
//$image->upload_image($id_image, $file_name);
?>