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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"HarDDiskInfo":{"TotalFreeSpace":0,"TotalSize":0,"HDlist":[{"AvailableFreeSpace":0,"DriveFormat":"String","DriveType":"String","Name":"String","Size":0,"VolumeLabel":"String"}],"DetectTime":"\/Date(-62135596800000-0000)\/"},"Datetime":"\/Date(-62135596800000-0000)\/","IsSuccess":false,"ErrorMessage":"String"}