Vim Cluster Vsan Vc Disk Management System Vsan Add Storage Pool Disk

Vim Cluster Vsan Vc Disk Management System Vsan Add Storage Pool Disk

This API can be used to add new disk(s) to the storage pool for vSAN ESA consumption.

If StoragePoolDiskType is specified as 'SingleTier', disks will be added to 'Single Tier' storagepool. Eligible disks for storagepool can be queried from 'QueryDisksForVsan' QueryDisksForVsan.

Required privileges: Host.Config.Storage

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/vsan/VimClusterVsanVcDiskManagementSystem/{moId}/VsanAddStoragePoolDisk
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
VsanAddStoragePoolDiskRequestType of type(s) application/json
Required
"VsanAddStoragePoolDiskRequestType Object"
array of object
specs
Optional

The specifications to add disks to vSAN storage pool. Please reference to VimVsanHostAddStoragePoolDiskSpec. Multiple specs can be used by AddStoragePoolDisks to add disks on different hosts in one API call. All hosts should in same vSAN cluster.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

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

500

VsanFault: If below issues exist:

  1. Specified host doesn't exist;
  2. User doesn't have Host.Config.Storage privilege on specified host;
  3. Specified host is not connected to vCenter server;
  4. If none of specified disks for storage pool is eligible for vSAN ESA;
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}/VsanAddStoragePoolDisk