VMware Cloud Community
parweenk
Contributor
Contributor

REST API for CPU, Memory and Storage info for Cluster

Hi All,

We are trying to get REST API for CPU, Memory and Storage info for Cluster. Currently I can see there are API's for JAVA and Python. Our application is on Ruby on Rails. Can anyone help me in fetching the appropriate API.( I have attached screenshot of the data I want the API for)

Related Docs :

VMware vSphere 6.5 Documentation Library

Quickly Get vSphere Cluster Resource Usage capacity cpu mem storage - Samples - VMware {code}

Reply
0 Kudos
1 Reply
sk84
Expert
Expert

Yes, vSphere 6.5 introduced REST API and it's called "vSphere Automation API".

But this API don't has full functionality yet. So I'm not sure if you can get the CPU, Memory and Storage information for a cluster object.

More resources:

vSphere Automation API - VMware API Explorer - VMware {code}

Getting Started with the vSphere Automation SDK for REST - VMware {code} - VMware Blogs

GitHub - vmware/vsphere-automation-sdk-rest: REST Samples for the vSphere Automation SDK

--- Regards, Sebastian VCP6.5-DCV // VCP7-CMA // vSAN 2017 Specialist Please mark this answer as 'helpful' or 'correct' if you think your question has been answered correctly.
Reply
0 Kudos