Set Up Disk Partitions

The Web Services API enables you to manage disk partitions on ESXi host storage devices.
To set up the disk partitions, use the following steps.
  1. Call
    HostStorageSystem.RetrieveDiskPartitionInfo
    to retrieve information about existing partitions.
  2. Call
    HostStorageSystem.ComputeDiskPartition
    , passing in the desired disk layout. The server computes a new partition information object for a specific disk representing the desired layout and returns a
    HostDiskPartitionInfo
    object that you can use in the
    HostDiskPartitionSpec
    you pass into
    UpdateDiskPartitions
    .
  3. Call
    HostStorageSystem.UpdateDiskPartitions
    to update partitions by passing in a
    HostDiskPartitionSpec
    .