I've got a Powershell script that extracts the disk usage per VM directly from the VSAN system by directly accessing the ESXi Hosts in the cluster. It currently:
- Connects to the ESXi host with its credentials
- Extracts the VSAN object system on that host
- Iterates through it to extract the VM UUID, overhead for that VM, physical used capacity, etc.
For security reasons, I will no longer be able to connect directly to the ESXi systems with their credentials. I still have access to the vCenter server, however it is a requirement that the VSAN data comes from VSAN itself, not from the vCenter. Is there any way to do this?
Thanks in advance for any advice!
I've tried pulling the data directly from the vCenter, but I've been told that sometimes this data can vary, and for the type of analysis we're doing, that is not allowed.