List all Hosts matching criteria
(apiclient, **kwargs)
| 807 | |
| 808 | |
| 809 | def list_hosts(apiclient, **kwargs): |
| 810 | """List all Hosts matching criteria""" |
| 811 | |
| 812 | cmd = listHosts.listHostsCmd() |
| 813 | [setattr(cmd, k, v) for k, v in list(kwargs.items())] |
| 814 | if 'account' in list(kwargs.keys()) and 'domainid' in list(kwargs.keys()): |
| 815 | cmd.listall=True |
| 816 | return(apiclient.listHosts(cmd)) |
| 817 | |
| 818 | |
| 819 | def list_configurations(apiclient, **kwargs): |