MCT.IT.MonitorAPI

<back to all web services

GetHardDiskInfoRequest

The following routes are available for this service:
GET/gethdinfo
GetHardDiskInfoRequest Parameters:
NameParameterData TypeRequiredDescription
ServerIdqueryGuidNo
GetHDInfoResponse Parameters:
NameParameterData TypeRequiredDescription
HarDDiskInfoformHardDiskTotalNo
DatetimeformDateTimeNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
IsSuccessformboolNo
ErrorMessageformstringNo
HardDiskTotal Parameters:
NameParameterData TypeRequiredDescription
TotalFreeSpaceformdoubleNo
TotalSizeformdoubleNo
HDlistformList<HardDiskInfo>No
DetectTimeformDateTimeNo
HardDiskInfo Parameters:
NameParameterData TypeRequiredDescription
AvailableFreeSpaceformdoubleNo
DriveFormatformstringNo
DriveTypeformstringNo
NameformstringNo
SizeformdoubleNo
VolumeLabelformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /gethdinfo HTTP/1.1 
Host: monitorapi.mcttechnology.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	HarDDiskInfo: 
	{
		TotalFreeSpace: 0,
		TotalSize: 0,
		HDlist: 
		[
			{
				AvailableFreeSpace: 0,
				DriveFormat: String,
				DriveType: String,
				Name: String,
				Size: 0,
				VolumeLabel: String
			}
		],
		DetectTime: 0001-01-01
	},
	Datetime: 0001-01-01,
	IsSuccess: False,
	ErrorMessage: String
}