Enumerate Folder Content

Title

Enumerate content of folder

URL Path

vault_rest/f older_content /{id}/{start}/{count}

Method

GET

CORS support

Yes

Http return

200, 400, 401, 403, 500

Table of Contents

Last Updated

25 Mar 2019

Summary

Retrieve a list of the user's files.

HTTP header parameters

Authorization

The authentication token of the caller

REQUIRED

This header should have the following format: Bearer [

Example: Bearer Cp01BwnXAIOLZXxn7yogjKqIZnZpQD

sort_column

Name of column to use when sorting data

OPTIONAL

Possible values: name, size, datecreated

sort_direction

Sorting direction

OPTIONAL

Possible values: asc, desc

find

Free text search string

OPTIONAL

Free text search string (Use only with English characters)

findB64

Free text search string (Base64 encoded)

OPTIONAL

Free text search string (Base64 encoded to support all charsets). Will override any value specified in 'find' header.

Method: GET

id

Unique identifier of folder

REQUIRED

start

Zero based position in list from where to start returning data

REQUIRED

count

Maximum number of list entries to return

REQUIRED

Request Error

400

Bad Request

Invalid HTTP request

401

Invalid parameter

One or more parameters are invalid

403

Forbidden

Authentication token is incorrect

500

Internal Server Error

Server is temporarily unavailable

Response

Example of a successful scan request:

{
"message": null,
"ui_message_key": null,
"files": [
{
"administrator_approval_state": "ApprovalDisabled",
"availability_state": "Available",
"can_be_deleted": true,
"can_be_downloaded": true,
"can_be_rescanned": true,
"can_retry_processing": false,
"expires": "2020-03-24T16:12:30.0000000",
"file_id": "fea4c85186a04fc39f855cc5e614f0a8",
"is_false_positive": false,
"is_locked": false,
"is_sanitized": false,
"name": "users.svg",
"owner": "admin admin",
"owner_id": 1,
"processing_state": "Available",
"scan_result": {
"actions_failed": "",
"blocked_reason": "",
"workflow_result": "Allowed"
},
"size": 1426,
"supervisor_approval_state": "ApprovalDisabled",
"unlock_eta": null,
"can_update_sharing": true
},
{
"administrator_approval_state": "ApprovalDisabled",
"availability_state": "Available",
"can_be_deleted": true,
"can_be_downloaded": true,
"can_be_rescanned": true,
"can_retry_processing": false,
"expires": "2020-03-24T16:12:30.0000000",
"file_id": "d57c2d865d1e4be0874e62d247cecfb3",
"is_false_positive": false,
"is_locked": false,
"is_sanitized": false,
"name": "WA.png",
"owner": "admin admin",
"owner_id": 1,
"processing_state": "Available",
"scan_result": {
"actions_failed": "",
"blocked_reason": "",
"workflow_result": "Allowed"
},
"size": 1765,
"supervisor_approval_state": "ApprovalDisabled",
"unlock_eta": null,
"can_update_sharing": true
}
],
"folders": [
],
"total_count": 2
}

Descriptions of response:

filter_count

Filtered entries count

Total number of entries in the database when a filter has been applied (via the find parameter). If no filter is specified this value is always equal to total_count.

total_count

Total entries count

Total number of entries of the specific type in the database.

files

Array of entries

An array containing files in the folder with information about each of them

folders

Array of entries

An array containing folders in the folder with information about each of them