{{sidenavigation.sidenavigationExpandLabel}}
{{getMsg('Help_YouAreHere')}}: {{page.title}} {{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}} {{helpModel.downloadHelpPdfDataStatus}}

Drive

The Drive WebAPI provides access to entries in the drive. Users with the respective permission can view the metadata of drive entries, as well as download, upload and delete drive entries according to their permissions in the drive.

Commands

Additional Command Description
/drive Show a list of all available Drive Roots
/drive/meta/<Path ID> Show a metadata listing of Drive entries in the selected path or Drive ID
/drive/content/<Path ID> Content download handler for selected path or Drive ID

GET /api/drive

Request a list of available Drive roots. A Drive root is defined by mounted services, with the RootID being the local file storage on the server. In requests that do not explicitly state a mount ID, the RootID is implied. The response is a map of mounted service IDs with a description.

Example Request

# Request
# Use user:password for authorization
GET /api/drive  HTTP/1.1
Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u
 
# Response - A list of Drive roots
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: <CONTENT LENGTH>
 
{
  "RootID": "Drive",
  ...
}

Application Example

# Browser access
http://127.0.0.1:9000/api/drive
 
# Shell access using curl
curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/drive"
 
# Shell access using curl using username and password
curl -Lsu username:password "http://127.0.0.1:9000/api/drive"
i-net CoWork
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help - Drive