List all templates matching criteria
(apiclient, **kwargs)
| 907 | |
| 908 | |
| 909 | def 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 | |
| 919 | def list_domains(apiclient, **kwargs): |