diff options
| author | yogg@epsina.com <evan.pisani@etudiant.univ-rennes1.fr> | 2016-01-31 17:47:06 +0100 |
|---|---|---|
| committer | yogg@epsina.com <evan.pisani@etudiant.univ-rennes1.fr> | 2016-01-31 17:47:06 +0100 |
| commit | 0db8d0ebbe36528346987cb21db67f31bfbe6017 (patch) | |
| tree | 006a5dc00df2e876d30b6ce9f1cedff9c77765f1 /server/test.php | |
| parent | 10a6cd146db2bc509059d07ff8b7887445524cab (diff) | |
Add activate_image, desactivate_image, uplaod_image
Diffstat (limited to 'server/test.php')
| -rw-r--r-- | server/test.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/test.php b/server/test.php index ce262fa..322dee4 100644 --- a/server/test.php +++ b/server/test.php @@ -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); ?>
\ No newline at end of file |
