mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-04 17:47:00 +03:00
Feature #1404: Add poweroff action to Java OCA
This commit is contained in:
parent
26b0193169
commit
69eb361d7a
@ -491,6 +491,15 @@ public class VirtualMachine extends PoolElement{
|
||||
return action("shutdown");
|
||||
}
|
||||
|
||||
/**
|
||||
* Powers off a running VM.
|
||||
* @return If an error occurs the error message contains the reason.
|
||||
*/
|
||||
public OneResponse poweroff()
|
||||
{
|
||||
return action("poweroff");
|
||||
}
|
||||
|
||||
/**
|
||||
* Reboots a running VM.
|
||||
* @return If an error occurs the error message contains the reason.
|
||||
|
Loading…
x
Reference in New Issue
Block a user