Retrieve the Metadata for a Single File or Folder


Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Retrieves the basic metadata of a single item.

GET services/builtin/FileOperationService.svc/itemmetadata?path={path}

A network path that begins with the server name, in the format /ServerName/FolderPath[/FileName].

GET HTTP/1.1  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  

HTTP/1.1 200 OK  
Cache-Control: private  
Content-Length: 387  
Content-Type: application/xml; charset=utf-8  
Server: Microsoft-IIS/8.0  
Set-Cookie: ASP.NET_SessionId=wnrm1yhkcg1nc42a31ntua4o; path=/; HttpOnly  
X-AspNet-Version: 4.0.30319  
Set-Cookie: UserToken=b157ea4f-ad7e-d96a-df9c-b438bd8e6fc3; path=/  
X-Powered-By: ASP.NET  
X-Content-Type-Options: nosniff  
Date: Wed, 19 Oct 2011 06:33:15 GMT  


Error CodeError Message
400One or more parameters are not valid.
401Access is denied to the requested resource.
404The path does not exist.

The AccessPermission element in the response can contain one of the following enumeration values:

Enumeration Value NameValueMeaning
None0No access.
ReadOnly1Read-only access.
Full2Read/write access.
Other3Unknown or unspecified access.

Web Service Methods

Community Additions