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

Function list_clusters

tools/marvin/marvin/lib/common.py:769–776  ·  view source on GitHub ↗

List all Clusters matching criteria

(apiclient, **kwargs)

Source from the content-addressed store, hash-verified

767
768
769def list_clusters(apiclient, **kwargs):
770 """List all Clusters matching criteria"""
771
772 cmd = listClusters.listClustersCmd()
773 [setattr(cmd, k, v) for k, v in list(kwargs.items())]
774 if 'account' in list(kwargs.keys()) and 'domainid' in list(kwargs.keys()):
775 cmd.listall=True
776 return(apiclient.listClusters(cmd))
777
778
779def list_ssvms(apiclient, **kwargs):

Calls 2

keysMethod · 0.80
listClustersMethod · 0.65