GET /agents/agentRestorePoints/{ID}/mounts/{ID}/{filepath}

In this article

    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 URL of 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:

    • application/xml — the client can send this value in the header to accept response in the XML format.
    • application/json — the client must send this value in the header to accept the request in the JSON format.

    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:

    • application/xml
    • application/json

    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.

    Files

    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.

    Directories

    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">
     <Links>
       <Link Href="https://localhost:9398/api/vmRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:?action=listAll&pageSize=100&page=1" Rel="Up"/>
     </Links>
     <Files>
       <FileEntry Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/desktop.ini" Type="FileEntry">
         <Links>
           <Link Href="https://localhost:9398/api/vmRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users?action=listAll&pageSize=100&page=1" Rel="Up"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/desktop.ini?action=restore" Rel="Restore"/>
         </Links>
         <Path>C:/Users/desktop.ini</Path>
         <Name>desktop.ini</Name>
         <Size>174</Size>
         <ModifiedDateUTC>2016-07-16T13:21:29Z</ModifiedDateUTC>
       </FileEntry>
     </Files>
     <Directories>
       <DirectoryEntry Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Administrator" Type="DirectoryEntry">
         <Links>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users?action=listAll&pageSize=100&page=1" Rel="Up"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Administrator?action=listAll&pageSize=100&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Administrator?action=listDirs&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Administrator?action=listFiles&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Administrator?action=restore" Rel="Restore"/>
         </Links>
         <Path>C:/Users/Administrator</Path>
         <Name>Administrator</Name>
       </DirectoryEntry>
       <DirectoryEntry Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/All%20Users" Type="DirectoryEntry">
         <Links>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users?action=listAll&pageSize=100&page=1" Rel="Up"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/All%20Users?action=listAll&pageSize=100&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/All%20Users?action=listDirs&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/All%20Users?action=listFiles&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/All%20Users?action=restore" Rel="Restore"/>
         </Links>
         <Path>C:/Users/All Users</Path>
         <Name>All Users</Name>
       </DirectoryEntry>
       <DirectoryEntry Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default" Type="DirectoryEntry">
         <Links>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users?action=listAll&pageSize=100&page=1" Rel="Up"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default?action=listAll&pageSize=100&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default?action=listDirs&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default?action=listFiles&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default?action=restore" Rel="Restore"/>
         </Links>
         <Path>C:/Users/Default</Path>
         <Name>Default</Name>
       </DirectoryEntry>
       <DirectoryEntry Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default%20User" Type="DirectoryEntry">
         <Links>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users?action=listAll&pageSize=100&page=1" Rel="Up"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default%20User?action=listAll&pageSize=100&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default%20User?action=listDirs&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default%20User?action=listFiles&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Default%20User?action=restore" Rel="Restore"/>
         </Links>
         <Path>C:/Users/Default User</Path>
         <Name>Default User</Name>
       </DirectoryEntry>
       <DirectoryEntry Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Public" Type="DirectoryEntry">
         <Links>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users?action=listAll&pageSize=100&page=1" Rel="Up"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Public?action=listAll&pageSize=100&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Public?action=listDirs&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Public?action=listFiles&pageSize=10&page=1" Rel="Down"/>
           <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users/Public?action=restore" Rel="Restore"/>
         </Links>
         <Path>C:/Users/Public</Path>
         <Name>Public</Name>
       </DirectoryEntry>
     </Directories>
     <PagingInfo PageNum="1" PageSize="100" PagesCount="1">
       <Links>
         <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users?action=listAll&pageSize=100&page=1" Rel="First"/>
         <Link Href="https://localhost:9398/api/agents/agentRestorePoints/bffd6a30-170e-4dc5-ad7c-d9ab0dc5fefb/mounts/1/C:/Users?action=listAll&pageSize=100&page=1" Rel="Last"/>
       </Links>
     </PagingInfo>
    </FileSystemEntries>