Vsan Space Report System Query Vsan Managed Storage Space Usage

Vsan Space Report System Query Vsan Managed Storage Space Usage

Query the space usage including the space usage overview and the space usage breakdown based on different datastore types.

The API can also be used to query physical capacity.

Required privileges: System.Read

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/vsan/VsanSpaceReportSystem/{moId}/QueryVsanManagedStorageSpaceUsage
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 VsanSpaceReportSystem/{moId}.

string
release
Required

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


Request Body
Required
"QueryVsanManagedStorageSpaceUsageRequestType Object"
cluster
Required

vSAN cluster

querySpec
Required

The QueryVsanManagedStorageSpaceUsageSpec to specify more detailed query specification.

Authentication
This operation uses the following authentication methods.
Responses
200

the space usage aggregated by different datastore type.

[
    "VsanSpaceUsageWithDatastoreType Object"
]

500

InvalidArgument: Exception for invalid input arguments, for example, if the querySpec contains invalid datastore type.

Returns InvalidArgument of type(s) application/json
"InvalidArgument Object"
string
invalidProperty
Optional

Optional name of the invalid property.


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