Cluster Compute Resource Get Resource Usage
This API can be invoked to get the current CPU, memory and storage usage in the cluster.
Required privileges: System.Read
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 ClusterComputeResource/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
An instance of ResourceUsageSummary with following information:
- cpuCapacityMHz: Sum of CPU capacity of all the available hosts in the cluster in MHz.
- cpuUsedMHz: Sum of CPU consumed in all the available hosts in the cluster in MHz.
- memCapacityMB: Sum of memory capacity of all the available hosts in the cluster in MB.
- memUsedMB: Sum of memory consumed in all the available hosts in this cluster in MB.
- storageCapacityMB: Total storage capacity of all the accessible datastores in this cluster.
- storageUsedMB: Total storage consumed in all the accessible datastores in this cluster.
"ClusterResourceUsageSummary Object"
cpuUsedMHz
cpuCapacityMHz
memUsedMB
memCapacityMB
pMemAvailableMB
pMemCapacityMB
storageUsedMB
storageCapacityMB
curl -X POST -H 'Authorization: <value>' https://{api_host}/sdk/vim25/{release}/ClusterComputeResource/{moId}/GetResourceUsage