Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

Virtual Machine "Provisioned Space" and "Used Space"

$
0
0

I am trying to get the "Provisioned Space" and "Used Space" for a Virtual Machine, as reported by the vSphere Web Client in the following screenshot:

 

Screen Shot 2014-09-29 at 11.22.44 AM.png

 

I am using the VirtualMachineStorageSummary data object (vSphere Documentation Center)

 

I am collecting the committed and uncommitted properties, and then doing this:

 

spaceProvisioned = committed + uncommitted

spaceUsed = committed

 

However, I see differences in the numbers reported by the API vs the numbers vSphere web client shows.  Most of the virtual machines numbers reported by the API match the vSphere web client, but some are a few % off?

 

e.g. for the machine JK-IMPACT, I get spaceProvisioned = 44.11GB, spaceUsed = 38.83 from the API

but, in the vSphere UI (as shown below) it is: 44.11GB and 35.2GB !

 

Screen Shot 2014-09-29 at 11.36.33 AM.png

 

So the question is, am I pulling the wrong properties from the API, or is there something else I am missing in the way that the vSphere web client uses to calculate/display Provisioned and Used space.

 

Cheers,

Ian


Viewing all articles
Browse latest Browse all 1860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>