It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda MSP Knowledge Base

Browsing a File System Folder

  • Last updated on

This API allows you to browse a File System Folder.

Input Parameters

The following table provides the parameters and descriptions.

Parameter

Description

id

Folder revision id. Obtained via the Get list of drives API call, or by another Browse folder request, in case of subfolders.

page

Optional paging parameters. If not specified, the default is to fetch 50 items starting from index 0.

startIndex

Index where to start fetching.

count

How many records to fetch.

snapshotDate

Date of the snapshot, originally obtained via the Get list of snapshots call.

Example

{

 "Id": 146

}

Output parameters

The following table provides the parameters and descriptions.

Parameter

Description

type

Type of record. Either Folder or File.

id

Integer value. ID of the file/folder record. Use this parameter for subsequent browse requests for the next level (browse by Folder or File) or for sending it over to the restore API to restore this record.

path

String. Path of the file/folder.

lastModifiedDate

Available for type = File only: last modified date and time of the backed-up file.

name

String value. Display name of the path of the file/folder.

hasChildren

Boolean. Indicates whether a subsequent browse at next level is possible.

size

available for type = File only: size of file in bytes

Example

Array of files or folders that contain restorable revisions, with the following structure:

{

    "items": [

        {

            "type": "File",

            "lastModifiedDate": "2016-02-26T15:32:36",

            "size": 261315950,

            "id": 1446,

            "name": "large",

            "path": "C:\\large file\\large",

            "hasChildren": true,

            "backupTime": "0001-01-01T00:00:00"

        }

    ]

}

Example GET

GET /v2/accounts/{accountUsername}/computers/{subaccountId}/restore/filesandfolders/browse/filesystem/folder/{driveId}

Example Output

{

  "data": {

    "items": [

      {

        "type": "File",

        "lastModifiedDate": "2020-01-31T11:21:01",

        "size": 422,

        "id": 1,

        "name": "file1.rtf",

        "path": "F:\\Minibats\\file1.rtf",

        "hasChildren": true,

        "backupTime": "0001-01-01T00:00:00"

      }

   ]

}

 

Last updated on