Vsan Vc Cluster Config System Vsan Validate Config Spec

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.

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

string
release
Required

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


Request Body
VsanValidateConfigSpecRequestType of type(s) application/json
Required
"VsanValidateConfigSpecRequestType Object"
cluster
Required

The target VC cluster to apply reconfig spec

Required privileges: Host.Inventory.EditCluster

vsanReconfigSpec
Required

The configure spec to be validated

Authentication
This operation uses the following authentication methods.
Responses
200

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"
]

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