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

Method delete

extensions/MaaS/maas.py:186–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

184 succeed({"status": "success", "message": "Instance created", "requested": deploy_payload})
185
186 def delete(self):
187 sysid = self.data.get("system_id")
188 if not sysid:
189 fail("system_id missing for delete")
190
191 self.call_maas("POST", f"/machines/{sysid}/", {"op": "release"}, ignore_404=True)
192 succeed({"status": "success", "message": f"Instance deleted or not found ({sysid})"})
193
194 def start(self):
195 sysid = self.data.get("system_id")

Callers

nothing calls this directly

Calls 4

call_maasMethod · 0.95
failFunction · 0.70
succeedFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected