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

Method create_from_snapshot

tools/marvin/marvin/lib/base.py:1652–1658  ·  view source on GitHub ↗

Create Template from snapshot

(cls, apiclient, snapshot, services, account=None,
                             domainid=None, projectid=None, random_name=True)

Source from the content-addressed store, hash-verified

1650
1651 @classmethod
1652 def create_from_snapshot(cls, apiclient, snapshot, services, account=None,
1653 domainid=None, projectid=None, random_name=True):
1654 """Create Template from snapshot"""
1655 # Create template from Snapshot ID
1656 cmd = createTemplate.createTemplateCmd()
1657
1658 return Template._set_command(apiclient, cmd, services, random_name, snapshot = snapshot, projectid = projectid)
1659
1660 @classmethod
1661 def _set_command(cls, apiclient, cmd, services, random_name=True, snapshot=None, volume=None, projectid=None):

Callers

nothing calls this directly

Calls 1

_set_commandMethod · 0.80

Tested by

no test coverage detected