Vsan Cluster Health System Vsan Query Cluster Health System Versions
Queries vSAN health service version number string for each host and check if all of them are consistent.
Mark issueFound flag as True if they are not consistent.
As of vSphere API version 9.0, this API is deprecated and should not be used. There is no dedicated vSAN health service version as the vSAN health functionality is always part of vCenter Server and ESX host. The vSAN health version will always equal the vCenter Server or ESX host version, which can be queried directly from the vCenter Server or ESX host APIs. Use version from vCenter Server or the appropriate ESX host version API instead.
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 VsanClusterHealthSystem/{moId}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
Show optional properties
{
"hosts": [
{}
],
"esxRootPassword": "string"
}
{
"hosts": [
"string"
],
"esxRootPassword": "string"
}
The vSAN hosts
The root password for the host. The password should be the same for all of hosts in the vSAN cluster
The vSAN cluster health service version result
{
"_typeName": "string",
"hostResults": [
{
"_typeName": "string",
"hostname": "string",
"version": "string",
"error": {
"_typeName": "string",
"faultCause": {
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"build": "string"
}
],
"vcVersion": "string",
"issueFound": false,
"upgradePossible": false,
"vcBuild": "string"
}
The version information for all the hosts requested includes disconnected hosts and hosts without response.
Return vSAN health service version number string on vCenter Server side.
If the query is not requested from vCenter Server, it will be unset.
True if the vSAN health service versions are inconsistent or query fails on some host.
True if the vSAN health service version can be upgraded on at least one host.
Takes into account which upgrade paths are supported, not just if the version is outdated.
Return the build number of VMware vCenter.
If the query is not requested from vCenter Server, it will be unset.
Failure
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"hosts":["string"],"esxRootPassword":"string"}' https://{api_host}/sdk/vim25/{release}/vsan/VsanClusterHealthSystem/{moId}/VsanQueryClusterHealthSystemVersions