diff --git a/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java b/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java
index ccb89f254d..2660b4d9ac 100644
--- a/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java
+++ b/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java
@@ -248,6 +248,7 @@ public class VirtualMachine extends PoolElement{
* It is recommended to use the helper methods instead:
*
* - {@link VirtualMachine#shutdown()}
+ * - {@link VirtualMachine#reboot()}
* - {@link VirtualMachine#cancel()}
* - {@link VirtualMachine#hold()}
* - {@link VirtualMachine#release()}
@@ -259,7 +260,7 @@ public class VirtualMachine extends PoolElement{
*
*
* @param action The action name to be performed, can be:
- * "shutdown", "hold", "release", "stop", "cancel", "suspend",
+ * "shutdown", "reboot", "hold", "release", "stop", "cancel", "suspend",
* "resume", "restart", "finalize".
* @return If an error occurs the error message contains the reason.
*/
@@ -357,6 +358,15 @@ public class VirtualMachine extends PoolElement{
return action("shutdown");
}
+ /**
+ * Reboots a running VM.
+ * @return If an error occurs the error message contains the reason.
+ */
+ public OneResponse reboot()
+ {
+ return action("reboot");
+ }
+
/**
* Cancels the running VM.
* @return If an error occurs the error message contains the reason.