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:
parent
e1a3c5c7db
commit
84813377a4
@ -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.
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user