Vsan Remote Datastore System Vsan Precheck Datastore Source

Vsan Remote Datastore System Vsan Precheck Datastore Source

Run prechecks for a Datastore Source.

This can be used before creating, updating, destroying a Datastore Source or other places needing to verify a Datastore Source.

Required privileges: Host.Config.Storage

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

string
release
Required

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


Request Body
VsanPrecheckDatastoreSourceRequestType of type(s) application/json
Required
"VsanPrecheckDatastoreSourceRequestType Object"
datastoreSource
Required

The information of the Datastore Source to be prechecked.

string
operation
Optional

The hint of the operation which the precheck is performed against, see PrecheckDatastoreSourceOperationEnum.

Authentication
This operation uses the following authentication methods.
Responses
200

Pre-check results of the specified Datastore Source.

Returns VsanDatastoreSourcePrecheckResult of type(s) application/json
This response body class contains all of the following: InlineVsanDatastoreSourcePrecheckResult0
"VsanDatastoreSourcePrecheckResult Object"

500

VsanSslVerifyCertFault: SSL verification fault for remote vCenter such as certificate not verified.

VsanFault: Other vSAN related faults.

Returns VimFault of type(s) application/json
This response body class contains all of the following: InlineVimFault0
"VimFault Object"

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