Vim Cluster Vsan Vc Disk Management System Remove Disk Ex

Vim Cluster Vsan Vc Disk Management System Remove Disk Ex

Remove vSAN capacity-tier disk(s) from use in a vSAN cluster with the specified data evacuation mode or remove vSAN direct disk(s).

It will auto-detect whether the disk(s) provided belong to vSAN capacity-tier disk or vSAN direct. If the disk(s) belong to vSAN capacity-tier disk, then vSAN disk will be removed. If the disk(s) belong to vSAN direct, then the vSAN direct disk(s) will be removed. For vSAN disk(s) removal, disk(s) will be removed one by one with the specified data evacuation mode. Removing a disk may cause data movement so a disk data evacuation resource check VsanPerformResourceCheck will be done before removing each disk. Note: This method cannot be used to remove the cache-tier disk or the last capacity-tier disk of a disk mapping since that will cause the whole disk mapping to be removed. Use RemoveDiskMappingEx instead if that is the case. For vSAN direct disk(s) removal, the storage system build on top of these vSAN direct disk(s) will be destroyed one by one with the specified data evacuation mode.

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

string
release
Required

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


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

The vSAN cluster which owns the given vSAN disk(s) and(or) vSAN direct disk(s).

Required privileges: Host.Config.Storage

array of object
disks
Required

List of vSAN disk(s) to be removed.

maintenanceSpec
Required

Specifies the data evacuation mode.

Authentication
This operation uses the following authentication methods.
Responses
200

A task to monitor the progress of disk(s) removal operation. If the removal operation includes vSAN disk(s) removal, then upon successful completion of the returned task, its result field will be populated with a VsanHostDiskResult[] filled with details for each vSAN disk.

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

500

VsanFault: If resource check completes with "red" status or any other error happens during the resource check stage or actual disk(s) removal stage for vSAN disk(s). If the specified disk is the last capacity-tier disk in a disk mapping, a more specific vim.fault.DiskIsLastRemainingNonSSD (which is a subclass of VsanFault) will be thrown instead.

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/VimClusterVsanVcDiskManagementSystem/{moId}/RemoveDiskEx