Retrieve a file share
Retrieve an Atom document representation of a file share programmatically.This method returns the Atom document of a file share. If you want to retrieve a feed, see Getting a feed of file shares.
See Authenticating requests for information about how to authenticate the request.
Table 1. Atom API request details
Method URI Output representation Description GET /basic/anonymous/api/share/{share-id}/entry share Atom document Returns a file share Atom document without authenticating the request. GET /basic/api/share/{share-id}/entry share Atom document Returns a file share Atom document. This request requires authentication.
Note: {share-id} is the value of the <td:uuid> element in the share's Atom entry document.You can use one or more of these headers with the request.
Table 2. Input headers
Parameter Description If-Modified-Since Used to validate the local cache of the feed and entry documents retrieved previously. If the feed or entry has not been modified since the specified date, HTTP response code 304 (Not Modified) is returned. If-None-Match Contains an ETag response header sent by the server in a previous request to the same URL. If the ETag is still valid for the specified resource, HTTP response code 304 (Not Modified) is returned.
Input
None.
Output
An Atom entry document for the file share.Returned HTTP headers
HTTP/1.1 200 OK
Indicates that the file share entry was successfully found and returned. If an error occurs, this header will contain one of the error codes below.
Content-Type: application/atom+xml
Indicates that the document returned contains data in Atom format.
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 Not Found
Parent topic
Work with sharesRelated reference
Share content
});