Export (0) Print
Expand All

Retrieve a Temporary URL for a File

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Retrieves a temporary URL for a file. The URL can be accessed only twice and only within 30 seconds after retrieval.

URI Template

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

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

Sample Request

GET https://www.contoso.com/services/builtin/FileOperationService.svc/accessuri?path=servername/company/a.txt HTTP/1.1
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname

Sample Response

HTTP/1.1 200 OK
<anyURI xmlns="http://schemas.microsoft.com/2003/10/Serialization/">SharedContent/?token=vCl3tfTLB9Uw1MHMPsvHOqUgwFaaeiDW7MsEAwxJIv1TJEWX67icebM1JxxBJCzX4zasiDfYDToptHXkloT8DmPwv84VVfCQvkY7V86oxGyPZgnF1U02U3ENzcdtpfVxZAg%2bU%2fKCs9%2bAZpxbjhvb54yIh7rapQR1UqsiFdB%2fq0bLtuo3lcAKARfMN%2bJcaJH2ZkbTXQCVmIqXnlydG7ypEI1AszM0c9yNkdfGvxe0WdgvcdsUmPKoYbkev1c6T3OjqTOehS7kGWA%3d</anyURI>

Error Codes

 

Error Code Error Message

400

The path is too long or has unsupported characters (such as *\|"<>).

401

Access is denied to the requested resource.

404

The path does not exist.

See Also

Show:
© 2014 Microsoft