MCPcopy Create free account
hub / github.com/apache/cloudstack / recover

Method recover

tools/marvin/marvin/lib/base.py:795–803  ·  view source on GitHub ↗

Recover the instance

(self, apiclient)

Source from the content-addressed store, hash-verified

793 raise Exception(response[1])
794
795 def recover(self, apiclient):
796 """Recover the instance"""
797 cmd = recoverVirtualMachine.recoverVirtualMachineCmd()
798 cmd.id = self.id
799 apiclient.recoverVirtualMachine(cmd)
800
801 response = self.getState(apiclient, VirtualMachine.STOPPED)
802 if response[0] == FAIL:
803 raise Exception(response[1])
804
805 def restore(self, apiclient, templateid=None, diskofferingid=None, rootdisksize=None, expunge=None, details=None):
806 """Restore the instance"""

Callers

nothing calls this directly

Implementers 2

VMEntityVOengine/schema/src/main/java/org/apache
VMInstanceVOengine/schema/src/main/java/com/cloud/

Calls 2

getStateMethod · 0.95
recoverVirtualMachineMethod · 0.65

Tested by

no test coverage detected