GET /agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath}
Returns a resource representation of a file or folder in the guest OS.
Request
To get a specific guest OS file or folder, send the GET HTTP request to the /agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath} resource.
HTTP Request
|
GET https://<Enterprise-Manager>:9398/api/agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath} |
Request Headers
The request contains the following headers:
|
Header |
Required |
Description |
|---|---|---|
|
X-RestSvcSessionId |
True |
The request requires authorization. In the header, the client must send a session ID copied from the server reply to the request creating a new logon session. For details, see Authentication and Security. |
|
Accept |
False |
Identifies the format of the response. Possible values:
If the request does not contain the header, the server will return the response in the XML format. |
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
|
Header |
Description |
|---|---|
|
Content-length |
The length of the response body. |
|
Content-type |
The media type and syntax of the request body message. Possible values:
|
Response Body
The response body contains links to the file or folder restore action and links that let the client browse the file system of the backed up machine. Following the links, the client can get a list of all files and folders, a list of files only, a list of folders only as well as can paginate display results.
Parameters
|
Element |
Type |
Description |
|---|---|---|
|
Files |
FileEntryListType |
Collection of directories that are contained in the the current directory. For details, see Files. |
|
Directories |
DirectoryEntryListType |
Collection of directories that are contained in the the current directory. For details, see Directories. |
|
PagingInfo |
PagingInfoType |
Resource that lets you paginate display results. |
The FileEntry resource contains the following parameters.
|
Element |
Type |
Description |
|---|---|---|
|
Path |
String |
Path to the file in the machine file system hierarchy, for example: C:\william.fox\Report.docx. |
|
Name |
String |
Name of the file, for example: Report.docx. |
|
Size |
Long |
File size, in bytes. |
|
Owner |
String |
File owner. |
|
ModifiedDateUTC |
DateTime |
Date and the file was last modified. |
|
Actions |
LinkListType |
List of request URLs available for the file. |
The DirectoryEntry resource contains the following parameters.
|
Element |
Type |
Description |
|---|---|---|
|
Path |
String |
Path to the directory in the machine file system hierarchy, for example: C:\Reports. |
|
Name |
String |
Name of the directory, for example: reports. |
Links
|
Reference |
Relationship |
Description |
|---|---|---|
|
/agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath} |
Up |
URL of the /agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath} resource — the directory at the higher level of hierarchy that contains the current directory entry. |
|
/agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath}?action=listAll |
Down |
URL of the /agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath} resource — a collection of directories and files contained in the current directory. |
|
/agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath}?action=listDirs |
Down |
URL of the /agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath} resource — a collection of directories contained in the current directory. |
|
/agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath}?action=listFiles |
Down |
URL of the /agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath} resource — a collection of files contained in the current directory. |
|
/agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath}?action=restore |
Restore |
URL for the POST /agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath}?action=restore request. |
Example
The example below returns a resource representation for the C:/Users folder in the backed up machine's guest OS:
|
Request: GET https://localhost:9398/api/agents/agentRestorePoints/dd3cf3d0-0533-424e-abc3-249c4c62b797/mounts/1/C:/Users Request Header: X-RestSvcSessionId NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj Response: 200 OK Response Body: <FileSystemEntries Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users?action=listAll&pageSize=100&page=1" xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |