Skip to end of metadata
Go to start of metadata

FileCloud User Automation App

 

To integrate FileCloud with your existing business processes, like extracting files out of FileCloud or uploading files into filecloud a command line based FileCloud Automation App is provided.

The FileCloud Automation tool (cloudapi) is currently only available on Windows platforms. If you need access to the tool for other operating systems, please contact customer support.

Installation of the the app is straight forward, just download the zip file and unzip it to any folder and run the "cloudapi" executable.

The following arguments are currently processed by the app.

ArgumentExplanation
-?Show Help
--userusername to use to do the action
--passwordpassword for the associated user
--hostfull URL to the server, e.g. http://files.xyz.com
--operationtype of operation to perform (more details below)
--remotepathusually remote path in the server
--remotenameusually remote name in the server
--localpathusually local path in the local machine


The following operations are supported:

OperationDetailed Description
UPLOADUploads a specific local file to the remote server 

cloudapi --user USERNAME --password PASSWORD --host SERVERURL --operation UPLOAD --remotepath PARENTPATH --localpath FILEPATH

Example:
cloudapi --user john --password mypassword --host http://files.xyz.com --operation UPLOAD --remotepath /john/myfolder --localpath c:/users/john/desktop/doc1.docx

DOWNLOAD

Downloads a specific file from the remote server to the local location

cloudapi --user USERNAME --password PASSWORD --host SERVERURL --operation DOWNLOAD --remotepath FULLPATH --remotename NAME --localpath FILEPATH

Example:
cloudapi --user john --password mypassword --host http://files.xyz.com --operation DOWNLOAD --remotepath /john/myfolder/doc1.docx --remotename doc1.docx --localpath c:/users/john/desktop/doc2.docx

CREATEFOLDER

Create a remote folder on the server

cloudapi --user USERNAME --password PASSWORD --host SERVERURL --operation CREATEFOLDER --remotepath PARENTPATH --remotename NAME

Example:
cloudapi --user john --password mypassword --host http://files.xyz.com --operation CREATEFOLDER --remotepath /john/myfolder --remotename newfolder

DELETE

Delete a file or folder on the server

cloudapi --user USERNAME --password PASSWORD --host SERVERURL --operation DELETE --remotepath PARENTPATH --remotename NAME

Example:

cloudapi --user john --password mypassword --host http://files.xyz.com --operation DELETE --remotepath /john/myfolder --remotename doc1.docx

UPLOADFOLDER

Uploads a folder recursively from the local machine to the remote server on the specified path

cloudapi --user USERNAME --password PASSWORD --host SERVERURL --operation UPLOADFOLDER --remotepath PARENTPATH --localpath LOCALFOLDERPATH

Example:

cloudapi --user john --password mypassword --host http://files.xyz.com --operation UPLOADFOLDER --remotepath /john/myfolder --localpath c:/users/john/desktop/localdata

DOWNLOADFOLDER

Downloads a folder recursively from the remote server to the local machine. Download will skip files if they are already present and if they have the same size as the size on the server.

cloudapi --user USERNAME --password PASSWORD --host SERVERURL --operation DOWNLOADFOLDER --remotepath FULLPATH --localpath LOCALFOLDERPATH

Example:

cloudapi --user john --password mypassword --host http://files.xyz.com --operation DOWNLOADFOLDER --remotepath /john/myfolder --localpath c:/users/john/desktop/localdatabakup

 

 

  • No labels