mirror of https://github.com/apache/cloudstack.git
api: Add event for VM recovery operation (#4486)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
This commit is contained in:
parent
0a2a54aeba
commit
aa67f9c6e2
|
|
@ -104,6 +104,7 @@ public class EventTypes {
|
|||
public static final String EVENT_VM_EXPUNGE = "VM.EXPUNGE";
|
||||
public static final String EVENT_VM_IMPORT = "VM.IMPORT";
|
||||
public static final String EVENT_VM_UNMANAGE = "VM.UNMANAGE";
|
||||
public static final String EVENT_VM_RECOVER = "VM.RECOVER";
|
||||
|
||||
// Domain Router
|
||||
public static final String EVENT_ROUTER_CREATE = "ROUTER.CREATE";
|
||||
|
|
|
|||
|
|
@ -2037,6 +2037,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
|||
|
||||
@Override
|
||||
@DB
|
||||
@ActionEvent(eventType = EventTypes.EVENT_VM_RECOVER, eventDescription = "Recovering VM")
|
||||
public UserVm recoverVirtualMachine(RecoverVMCmd cmd) throws ResourceAllocationException, CloudRuntimeException {
|
||||
|
||||
final Long vmId = cmd.getId();
|
||||
|
|
|
|||
Loading…
Reference in New Issue