Vim Cluster Vsan Vc Disk Management System Initialize Disk Mappings
This API is used to create new vSAN disk groups or attach more disks into existing vSAN disk group on specified host.
It deprecates APIs AddDisks_Task and InitializeDisks_Task, to support creating both hybrid and all flash disk group. Scsi disks eligible for vSAN service, could be retrieved through API QueryDisksForVsan. If the "creationType" of the given spec is set to "vsandirect", then it will create vSAN direct datastores on each specified SSD and HDD.
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}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"InitializeDiskMappingsRequestType Object"
The specification to create vSAN disk group. Please reference to VimVsanHostDiskMappingCreationSpec;
Required privileges: Host.Config.Storage
VsanFault: If below issues exist:
- Specified host doesn't exist;
- User doesn't have Host.Config.Storage privilege on specified host;
- Specified host is not connected to vCenter server;
- If requests to create all flash disk group but host's ESX software doesn't support this feature;
- If requests to create all flash disk group but host is not licensed to support this feature;
- If requests to append disks to existing disk group, but specified more than one disks for cache tier;
- If none of specified disks for capacity tier is eligible for vSAN;
"VsanFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/VimClusterVsanVcDiskManagementSystem/{moId}/InitializeDiskMappings