As with any new VMware software release, I always love geeking out and taking a look at the new APIs have been added and/or updated that can benefit our users. Having spent some time automating various aspects of vSAN, I came across a couple of new vSAN capacity usage reporting APIs (vSphere API & vSAN Management API) that were introduced in vSphere 8.0 Update 3 that I thought was worth mentioning.
While vSAN already had an existing capacity API by using the querySpaceUsage() method as part of the VsanSpaceReportSystem, it did not provide granular information about the raw storage capacity that was claimed by vSAN, whether that was for vSAN Original Storage Architecture (OSA) or vSAN Express Storage Architecture (ESA).
As part of the VsanVcClusterConfigSystem, there is now a new vSAN API called getClaimedCapacity() that will return the raw capacity in bytes for all claimed disks for vSAN OSA and/or ESA which is also useful for those looking to understand their tebibyte (TiB) usage, as that is also unit of licensing for vSAN storage with the new VMware vSphere Foundation (VVF) and VMware Cloud Foundation (VCF) offers.