Add a Shared Folder
Applies To: Windows Server 2012 Essentials
Creates a shared folder on the server.
URI Template
POST services/builtin/StorageManagement.svc/serverfolder/create/overwritepermissions/{overwritePermissions}?sharename={sharename}&path={path}&description={description}
{overwritePermissions}
true
to overwrite the descriptions on the shared folder; otherwise, false
.
{sharename}
The name of the shared folder to be created.
{path}
The path to the folder to share on the server.
{description}
A description of the shared folder.
Sample Request
POST https://www.contoso.com/services/builtin/StorageManagement.svc/serverfolder/create/overwritepermissions/True?sharename=Temp&path=E:%5Ctmp_folder&description=desc HTTP/1.1
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname
Content-Length: 0
Sample Response
HTTP/1.1 200 OK
Error Codes
Error Code | Error Message |
---|---|
400 | One or more parameters are not valid. |
401 | Access is denied to the requested resource. |
404 | The path does not exist. |