Host Storage System Compute Disk Partition Info
Computes the disk partition information given the desired disk layout.
The server computes a new partition information object for a specific disk representing the desired layout.
See also HostDiskPartitionInfoPartitionFormatEnum.
Required privileges: Host.Config.Storage
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 HostStorageSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
{
"devicePath": "string",
"layout": {
"_typeName": "string",
"total": {
"_typeName": "string",
"blockSize": 0,
"block": 0
},
"partition": [
{
"_typeName": "string",
"partition": 0,
"type": "string",
"start": {
"_typeName": "string",
"blockSize": 0,
"block": 0
},
"end": {
"_typeName": "string",
"blockSize": 0,
"block": 0
}
}
]
},
"partitionFormat": "string"
}
The name of the device path for the specific disk.
This data object type describes the disk partition layout specified as a list of ordered BlockRanges.
This view of the disk partitions shows the data on the disk as a contiguous set of BlockRanges.
Specifies the desired partition format to be computed from the block range. If partitionFormat is not specified, the existing partitionFormat on disk is used, if the disk is not blank and mbr otherwise.
A data object that contains information about the partitions on a disk
{
"_typeName": "string",
"deviceName": "string",
"spec": {
"_typeName": "string",
"partitionFormat": "string",
"chs": {
"_typeName": "string",
"cylinder": 0,
"head": 0,
"sector": 0
},
"totalSectors": 0,
"partition": [
{
"_typeName": "string",
"partition": 0,
"startSector": 0,
"endSector": 0,
"type": "string",
"guid": "string",
"logical": false,
"attributes": 0,
"partitionAlignment": 0
}
]
},
"layout": {
"_typeName": "string",
"total": {
"_typeName": "string",
"blockSize": 0,
"block": 0
},
"partition": [
{
"_typeName": "string",
"partition": 0,
"type": "string",
"start": {
"_typeName": "string",
"blockSize": 0,
"block": 0
},
"end": {
"_typeName": "string",
"blockSize": 0,
"block": 0
}
}
]
}
}
The device name of the disk to which this partition information corresponds.
This data object type describes the disk partition table specification used to configure the partitions on a disk.
This data object represents the fundamental data needed to specify a partition table.
This data object type describes the disk partition layout specified as a list of ordered BlockRanges.
This view of the disk partitions shows the data on the disk as a contiguous set of BlockRanges.
NotFound: if the device could not be found.
InvalidArgument: if the layout is invalid.
HostConfigFault: if unable to get the current partition information for the device.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}