Vsan Vc Cluster Config System Vsan Validate Config Spec
Validate the vSAN cluster reconfig spec to figure out whether user spec can be supported by target cluster.
This API cannot predict the runtime failure, but only check the spec based on software capability. If target cluster cannot support the spec, it returns the detailed config issues.
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}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"VsanValidateConfigSpecRequestType Object"
The target VC cluster to apply reconfig spec
Required privileges: Host.Inventory.EditCluster
The configure spec to be validated
A list of different validation results. The result returned are of two types. 1. If the spec enables vSAN ESA, then result for every precheck is returned using VsanClusterConfigPrecheckItem. This includes prechecks of all possible statuses as in VsanHealthStatusTypeEnum 2. If the spec does not enable vSAN ESA, then the result for prechecks are returned using ClusterComputeResourceValidationResultBase. Here, only the the prechecks which fail the validation are returned. The field info contains the precheck failure reason.
[
"ClusterComputeResourceValidationResultBase Object"
]
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VsanVcClusterConfigSystem/{moId}/VsanValidateConfigSpec