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

Function list_hosts

tools/marvin/marvin/lib/common.py:809–816  ·  view source on GitHub ↗

List all Hosts matching criteria

(apiclient, **kwargs)

Source from the content-addressed store, hash-verified

807
808
809def 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
819def list_configurations(apiclient, **kwargs):

Calls 2

keysMethod · 0.80
listHostsMethod · 0.65