Hi I'm looking for API or ansible modules that can tell me the capacity utilization percentage for a cluster. The same that is visible in the capcity under vsan.
Here:
https://developer.vmware.com/samples/885/quickly-get-vsphere-cluster-resource-usage-capacity--cpu-mem-storage#code
If you want PowerCLI, then this will get you the basics, then you can mine the data however you want