-
-
Notifications
You must be signed in to change notification settings - Fork 1
v0.5_drive.discovery
Returns a JSON-formatted list of machine drives.
##Filters
drive.discovery.fixed
Returns fixed drives.
drive.discovery.mounted
Returns mounted volumes both folder mounted and letter mounted.
Since 0.4
drive.discovery.mountfolder
Returns folder mounted volumes.
Since 0.4
drive.discovery.mountletter
Returns mounted volumes with assigned letter.
Since 0.4
drive.discovery.nomount
Returns unmounted volumes.
Since 0.4
drive.discovery.noswap
Returns only volumes without any system memory paging file.
Since 0.3
drive.discovery.removable
Returns removable drives.
drive.discovery.swap
Returns only volumes with system memory paging file.
Since 0.3
##Macros
{#FSCAPTION}
Filesystem display name.
Spected values: System (C:), SWAP (D:) etc.
Since 0.4
{#FSFORMAT}
Filesystem format.
Spected values: NTFS, FAT32 etc.
{#FSLABEL}
Filesystem label.
Spected values: System, SWAP etc.
{#FSNAME}
Assigned letter.
Spected values: C:, D:, C:\Boot\ etc.
{#FSPERFMON}
Drive instance name from Performance Monitor.
Spected values: C:, D:, C:\Boot, HarddiskVolume5 etc.
Since 0.5
##Output Example
drive.discovery.fixed
{"data": [
{
"{#FSNAME}":"\\\\?\\Volume{5de618bf-acd9-11e2-992c-edd1e5856534}\\",
"{#FSPERFMON}":"HarddiskVolume5",
"{#FSLABEL}":"VSS System",
"{#FSFORMAT}":"NTFS",
"{#FSCAPTION}":"VSS System (\\\\?\\5de618)"
},
{
"{#FSNAME}":"C:\\",
"{#FSPERFMON}":"C:",
"{#FSLABEL}":"System",
"{#FSFORMAT}":"NTFS",
"{#FSCAPTION}":"System (C:)"
},
{
"{#FSNAME}":"C:\\Boot\\",
"{#FSPERFMON}":"C:\\Boot",
"{#FSLABEL}":"Boot",
"{#FSFORMAT}":"NTFS",
"{#FSCAPTION}":"Boot (C:\\Boot)"
},
{
"{#FSNAME}":"Y:\\",
"{#FSPERFMON}":"Y:",
"{#FSLABEL}":"",
"{#FSFORMAT}":"FAT32",
"{#FSCAPTION}":"Y:"
}
] }
drive.discovery.nomount
{"data": [
{
"{#FSNAME}":"\\\\?\\Volume{5de618bf-acd9-11e2-992c-edd1e5856534}\\",
"{#FSPERFMON}":"HarddiskVolume5",
"{#FSLABEL}":"VSS System",
"{#FSFORMAT}":"NTFS",
"{#FSCAPTION}":"VSS System (\\\\?\\5de618)"
}
] }