mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 14:03:20 +09:00
feature #1055: OCA methods for reset operations
This commit is contained in:
1 parent
e1a3c5c7db
commit
84813377a4
2 files changed
+15
-1
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user