Retrieve a Server that can Host a Shared Folder
Retrieves a list of servers which that can create a share folder.
URI Template
GET /services/builtin/StorageManagement.svc/servers
Sample Request
GET https://www.contoso.com/services/builtin/StorageManagement.svc/servers 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: 986
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:25:00 GMT
<ArrayOfStorageServerInfo xmlns="http://contracts.microsoft.com/WindowsServerEssentials/2011/09/WebApi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<StorageServerInfo>
<DeviceName>wSE-SERVER</DeviceName>
<DfsNameSpace>Shared Folders</DfsNameSpace>
<DfsPhysicalPath>C:\DFSRoots\Shared Folders</DfsPhysicalPath>
<IsSecondServer>false</IsSecondServer>
<OperatingSystemName>Windows Server 2012 R2 Essentials Preview</OperatingSystemName>
</StorageServerInfo>
<StorageServerInfo>
<DeviceName>WSE-SECOND</DeviceName>
<DfsNameSpace i:nil="true"/>
<DfsPhysicalPath i:nil="true"/>
<IsSecondServer>true</IsSecondServer>
<OperatingSystemName>Windows Server 2012 Standard</OperatingSystemName>
</StorageServerInfo>
</ArrayOfStorageServerInfo>
Error Codes
Error Code | Error Message |
---|---|
400 | The request is invalid. |
401 | Access to the specified resources is denied. |