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

Method start

tools/marvin/marvin/lib/base.py:761–769  ·  view source on GitHub ↗

Start the instance

(self, apiclient)

Source from the content-addressed store, hash-verified

759 return VirtualMachine(virtual_machine.__dict__, services)
760
761 def start(self, apiclient):
762 """Start the instance"""
763 cmd = startVirtualMachine.startVirtualMachineCmd()
764 cmd.id = self.id
765 apiclient.startVirtualMachine(cmd)
766 response = self.getState(apiclient, VirtualMachine.RUNNING)
767 if response[0] == FAIL:
768 raise Exception(response[1])
769 return
770
771 def stop(self, apiclient, forced=None):
772 """Stop 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
startVirtualMachineMethod · 0.65

Tested by

no test coverage detected