Vsan Capability System Vsan Get Capabilities

Vsan Capability System Vsan Get Capabilities

Retrieves the supported capabilities on the current system.

The calculation is based on the available APIs and registered managed objects. This way the client can be sure if a certain feature is supported on the system or not. For scenarios like disconnected hosts, older version hosts than ESXi 6.0 U1, or unable to retrieve capabilities due to other reasons, along with empty capability set, status of target managed object at the retrieving time is also returned to explain the reason. For a host whose capabilities are calculated according to host version, a 'calculated' capability status is returned. For other cases, the statuses field in VsanCapability is omitted.

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

string
release
Required

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


Request Body
VsanGetCapabilitiesRequestType of type(s) application/json
Required
"VsanGetCapabilitiesRequestType Object"
array of object
targets
Optional

An optional list of targeted managed objects. The supported targets are HostSystem and ClusterComputeResource instances. If a HostSystem is given, the result contains information about the capabilities of this certain host. If a cluster is passed, the result contains information about the capabilities of all hosts that reside in the cluster and the capabilities of the vCenter. If the targets parameter is empty, the result contains only the capabilities of the current vCenter.

Required privileges: System.Read

Authentication
This operation uses the following authentication methods.
Responses
200

A list of vim.cluster.VsanCapability.

[
    "VsanCapability Object"
]
Optional

500

Failure

Returns VsanFault of type(s) application/json
"VsanFault Object"

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