VMware Cloud Community
Skeggii
Contributor
Contributor
Jump to solution

vSphere automation SDK for REST resources usage

Hi !

I am actually trying to develop a monitoring application for the vCenters of my company. I am using Symfony/PHP, but is it possible with the vSphere automation SDK for REST to retrieve some informations like vm's CPU usage, vm's memory usage or host's memory usage ?

Thank you for your help.

Regards,

Thomas

0 Kudos
1 Solution

Accepted Solutions
larstr
Champion
Champion
Jump to solution

Thomas,

Not every value you need is available through the REST API. The REST API is mainly focused on deployment and is still a bit limited when it comes to monitoring so you would still need to use the good old SOAP API. Or you can use PowerCLI to get those numbers in a slighly easier fashion. To get an idea of how to do this you could start here:

https://rudimartinsen.com/vsphere-performance/

Lars

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

2 Replies
Alex_Romeo
Leadership
Leadership
Jump to solution

Hi,

Why develop it with HiSymfony / PHP that you can do it in PowerCLI?

PowerCLI Module to Check CPU, Memory and Storage OverCommitment - VMware PowerCLI Blog - VMware Blog...

it's just an advice ...

Alessandro Romeo

Blog: https://www.aleadmin.it/
larstr
Champion
Champion
Jump to solution

Thomas,

Not every value you need is available through the REST API. The REST API is mainly focused on deployment and is still a bit limited when it comes to monitoring so you would still need to use the good old SOAP API. Or you can use PowerCLI to get those numbers in a slighly easier fashion. To get an idea of how to do this you could start here:

https://rudimartinsen.com/vsphere-performance/

Lars

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.