Host Storage System Compute Disk Partition Info For Resize
Computes the disk partition information for the purpose of resizing a given partition.
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.
{
"partition": {
"_typeName": "string",
"diskName": "string",
"partition": 0
},
"blockRange": {
"_typeName": "string",
"partition": 0,
"type": "string",
"start": {
"_typeName": "string",
"blockSize": 0,
"block": 0
},
"end": {
"_typeName": "string",
"blockSize": 0,
"block": 0
}
},
"partitionFormat": "string"
}
This data object type describes the specification of a Disk partition.
A BlockRange data object type describes a contiguous set of blocks on a disk.
A BlockRange may describe either a partition or unpartitioned (primordial) blocks on the disk.
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.
resized disk partition information
{
"_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 blockRange or partition 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"
}
]
}