Vsan Vc Cluster Config System Vsan Query Cluster Drs Stats

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.

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/vsan/VsanVcClusterConfigSystem/{moId}/VsanQueryClusterDrsStats
COPY
Path Parameters
string
moId
Required

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}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.


Request Body
VsanQueryClusterDrsStatsRequestType of type(s) application/json
Required
"VsanQueryClusterDrsStatsRequestType Object"
cluster
Required

The target vSAN cluster;

Required privileges: System.Read

array of object
vms
Optional

Specified VM list of which runtime stats should be reported. If omitted return stats of all vSAN VMs locate in specified vSAN cluster;

Authentication
This operation uses the following authentication methods.
Responses
200

List of VsanHostDrsStats, in which stats should be parsed by the order of returned DrsStats.

[
    "VsanHostDrsStats Object"
]
Optional

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VsanVcClusterConfigSystem/{moId}/VsanQueryClusterDrsStats