HostDiskPartitionAttributes

HostDiskPartitionAttributes
HostDiskPartitionAttributes

Information about a single disk partition.

A partition is a contiguous set of blocks on a disk that is marked for use. The typeId identifies the purpose of the data in the partition.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "partition": 0,
    "startSector": 0,
    "endSector": 0,
    "type": "string",
    "guid": "string",
    "logical": false,
    "attributes": 0,
    "partitionAlignment": 0
}
integer As int32 As int32
partition
Required

The partition number.

Must be a positive integer.

integer As int64 As int64
startSector
Required

The start sector.

integer As int64 As int64
endSector
Required

The end sector.

string
type
Required

Type of data in the partition.

If it is a well-known partition type, it will be one of the defined types. If it is not, then it will be reported as a hexadecimal number. For example, "none", "vmfs", "linux", and "0x20" are all valid values.

See also HostDiskPartitionInfoTypeEnum.

string
guid
Optional

Globally Unique Identifier of the partition, as defined by the GUID Partition Table (GPT) format.

This is available only for GPT formatted disks.

boolean
logical
Required

The flag to indicate whether or not the partition is logical.

If true, the partition number should be greater than 4.

integer
attributes
Required

The attributes on the partition.

integer As int64 As int64
partitionAlignment
Optional

Partition alignment in bytes.

If unset, partition alignment value is unknown.