Create a Share Folder

 

Creates a shared folder on the specified server.

URI Template

POST services/builtin/StorageManagement.svc/serverfolder/create/overwritepermissions/{overwritePermissions}?sharename={sharename}&path={path}&description={description}&servername={serverName}

overwritePermissions
Determines how the API treats a folder that already exists in the specified location: yes to overwrite the permissions, or no to return an error.

sharename
Name of the share to be created.

path
Physical path on the server for the new share.

description
A description of the share.

serverName
The server the share will be created on.

Sample Request

POST https://www.contoso.com/services/builtin/StorageManagement.svc/serverfolder/create /overwritepermissions/True?sharename=Temp&path=E:%5Ctmp_folder&description=desc&severname=wse-second 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 The request is invalid.
401 Access to the requested resource is denied.
404 The request resource does not exist.
409 The specified share name is not unique.