1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #1055: OCA methods for reset operations

This commit is contained in:
Ruben S. Montero 2012-05-09 16:47:11 +02:00
parent e1a3c5c7db
commit 84813377a4
2 changed files with 15 additions and 1 deletions

View File

@ -417,6 +417,15 @@ public class VirtualMachine extends PoolElement{
return action("reboot");
}
/**
* Resets a running VM.
* @return If an error occurs the error message contains the reason.
*/
public OneResponse reset()
{
return action("reset");
}
/**
* Cancels the running VM.
* @return If an error occurs the error message contains the reason.

View File

@ -144,11 +144,16 @@ module OpenNebula
action('shutdown')
end
# Shutdowns an already deployed VM
# Reboots an already deployed VM
def reboot
action('reboot')
end
# Resets an already deployed VM
def reset
action('reset')
end
# Cancels a running VM
def cancel
action('cancel')