Vsan Vc Cluster Config System Vsan Query Cluster Drs Stats
To support integration between vSAN and DRS, we are expected to report runtime stats of vSAN member hosts and VMs locate in specified vSAN cluster from storage perspective.
Per request from DRS service, below stats are requested:
- 1. capacity contributed to vSAN datastore per host;
- 2. capacity usage to vSAN datastore per host;
- 3. total size per vSAN VM;
- 4. valid data percentage on every host per vSAN VM;
This API is used to retrieve runtime stats requested by DRS.
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case VsanVcClusterConfigSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"VsanQueryClusterDrsStatsRequestType Object"
The target vSAN cluster;
Required privileges: System.Read
Specified VM list of which runtime stats should be reported. If omitted return stats of all vSAN VMs locate in specified vSAN cluster;
List of VsanHostDrsStats, in which stats should be parsed by the order of returned DrsStats.
[
"VsanHostDrsStats Object"
]
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VsanVcClusterConfigSystem/{moId}/VsanQueryClusterDrsStats