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

Function list_templates

tools/marvin/marvin/lib/common.py:909–916  ·  view source on GitHub ↗

List all templates matching criteria

(apiclient, **kwargs)

Source from the content-addressed store, hash-verified

907
908
909def list_templates(apiclient, **kwargs):
910 """List all templates matching criteria"""
911
912 cmd = listTemplates.listTemplatesCmd()
913 [setattr(cmd, k, v) for k, v in list(kwargs.items())]
914 if 'account' in list(kwargs.keys()) and 'domainid' in list(kwargs.keys()):
915 cmd.listall=True
916 return(apiclient.listTemplates(cmd))
917
918
919def list_domains(apiclient, **kwargs):

Calls 2

keysMethod · 0.80
listTemplatesMethod · 0.65