VM__get_by_uuid($uuid); if ($action == "start") { $xenserver->VM__start($vmref, false, false); } if ($action == "shutdown") { $xenserver->VM__clean_shutdown($vmref); } if ($action == "hardshutdown") { $xenserver->VM__hard_shutdown($vmref); } echo "OK"; } else { echo "Missing action or uuid"; } ?>