Skip to main content

GetPhysicalDiskInformation

(Windows only) Will retrieve the physical disk information on the device.

Syntax​

Method ID​

#define WAAPI_MID_GET_PHYSICAL_DISK_INFORMATION 30013

JSON Input Structure​

{
"input": {
"method": 30013
}
}

Input Properties​

This method does not require any additional parameters beyond the method ID.

JSON Output Structure​

{
"result": {
"method": 30013,
"code": number,
"timing": number,
"timestamp": string,
"physical_disks": [
{
"disk_id": string,
"friendly_name": string,
"serial_number": string,
"manufacturer": string,
"model": string,
"media_type": number,
"bus_type": number,
"operational_status": [
number,
...
],
"health_status": number,
"size": number,
"temperature": number,
"temperature_max": number,
"volumes": [
{
"volume_id": string,
"drive_letter": string,
"operational_status": [
number,
...
],
"health_status": number,
"size": number,
"file_system": string
},
...
]
},
...
]
}
}

Output Properties​

PropertyTypeDescription
result.methodnumberThe method ID that generated this result.
result.codenumberThe result code. See Result Codes.
result.timingnumberThe measured time for the method call in milliseconds.
result.timestampstringThe timestamp in seconds of when the call was made.
result.physical_disksarray<object>List of physical disks detected on the system.
result.physical_disks.disk_idstringUnique identifier for the physical disk.
result.physical_disks.friendly_namestringThe name assigned to the physical disk.
result.physical_disks.serial_numberstring(optional) Manufacturer-assigned serial number of the physical disk.
result.physical_disks.manufacturerstring(optional) The name of the company responsible for the physical disk's hardware.
result.physical_disks.modelstring(optional) Model number of the physical disk.
result.physical_disks.media_typenumber(optional) The media type of the physical disk.
result.physical_disks.bus_typenumber(optional) The storage bus type of the physical disk.
result.physical_disks.operational_statusarray<number>(optional) List of operational status values further explaining a given health status of the physical disk.
result.physical_disks.health_statusnumber(optional) Health status of the physical disk.
result.physical_disks.sizenumber(optional) Total capacity of the physical disk in bytes.
result.physical_disks.temperaturenumber(optional) The current temperature of the physical disk in degrees Celsius.
result.physical_disks.temperature_maxnumber(optional) The maximum temperature in degrees Celsius at which the physical disk is capable of normal operation.
result.physical_disks.volumesarray<object>(optional) List of volumes residing on the disk.
result.physical_disks.volumes.volume_idstring(optional) Unique identifier for the volume.
result.physical_disks.volumes.drive_letterstring(optional) The volume's assigned drive letter.
result.physical_disks.volumes.operational_statusarray<number>(optional) List of operational status values further explaining a given health status of the volume.
result.physical_disks.volumes.health_statusnumber(optional) Health status of the volume.
result.physical_disks.volumes.sizenumber(optional) Total capacity of the volume in bytes
result.physical_disks.volumes.file_systemstring(optional) The file system format type of the volume.

Result Codes​

CodeNameDescription
0WAAPI_OKThe operation completed successfully.
note

Other codes may be returned. See the full Result Codes reference for the complete list.

Remarks​

Error Handling​

The results of this function are determined by the error code returned by the call. If successful, WAAPI_OK or a special success code will be returned. Always check both the function return value and the result.code field in the output JSON.

Examples​

Examples will be added here demonstrating the usage of this method.

See Also​


Last updated: 2026-10-01