Stressed About Managing Multiple Clouds? We've Got Your Back!
I want to get these numbers with API call.
What is the best way to achieve this?
I don’t see anything from the REST API Explorer which would do this directly.
You could fetch the per-VM details for all VMs with an API call, probably vm get with projection for CPU and memory stats you want, then total it up by software.
I believe the % will require also to get the # of CPUs from the host/cluster and then do the math.
→ Total VMs CPUs ÷ Total Host/Cluster CPUs
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.