Add activate_image, desactivate_image, uplaod_image
This commit is contained in:
parent
10a6cd146d
commit
0db8d0ebbe
2 changed files with 43 additions and 14 deletions
|
@ -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);
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue