Retrieve a Storage Drive that can Host a Shared Folder
Retrieves a list of drives you can create a share folder on.
URI Template
GET /services/builtin/StorageManagement.svc/StorageDriveInfo?serverName={serverName}
serverName
The storage server containing the drives to query.
Sample Request
https://www.contoso.com/services/builtin/StorageManagement.svc/storagedriveinfo?servername=wse-second HTTP/1.1
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname
Sample Response
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 391
Content-Type: application/xml; charset=utf-8
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Content-Type-Options: nosniff
Date: Fri, 12 Apr 2013 08:37:16 GMT
<ArrayOfStorageDriveInfo xmlns="http://contracts.microsoft.com/WindowsServerEssentials/2011/09/WebApi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<StorageDriveInfo>
<DeviceName>wse-second</DeviceName>
<FileSystem>NTFS</FileSystem>
<ShortName>C</ShortName>
<Size>0</Size>
<SizeRemaining>0</SizeRemaining>
<VolumeName>SystemOnSecond</VolumeName>
</StorageDriveInfo>
</ArrayOfStorageDriveInfo>
Error Codes
Error Code | Error Message |
---|---|
400 | The request is invalid. |
401 | Access to the requested resource is denied. |
404 | The specified server does not exist. |