usage: python -m egnyte [-h] [-c CONFIG_PATH] [-v] [--impersonate USERNAME] {config,token,test,audit,upload,download,settings} ...
-c, --config-path | |
Path to config file | |
-v, --verbose | Be more verbose. Can be repeated for debugging |
--impersonate | Impersonate another user (username or email) |
commands related to configuration
usage: python -m egnyte config [-h] {show,create,update,token} ...
generate a new access token and print it
usage: python -m egnyte token [-h] [-d DOMAIN] [-l LOGIN] [-p PASSWORD] [-k API_KEY]
-d, --domain | domain name |
-l, --login | login |
-p, --password | password |
-k, --key | API key |
test if config is correct (connects to service)
usage: python -m egnyte test [-h]
generate audit reports
usage: python -m egnyte audit [-h] {files,logins,permissions,get} ...
send files to Egnyte
usage: python -m egnyte upload [-h] [-x EXCLUDE] paths [paths ...] target
paths | Paths (files to directories) to upload |
target | Path in Cloud File System to upload to |
-x, --exclude | Exclude items that match this glob pattern |
download files from Egnyte
usage: python -m egnyte download [-h] [--target TARGET] [--overwrite] paths [paths ...]
paths | Paths (files to directories) to download |
--target | Local directory to put downloaded files and directories in |
--overwrite | Delete local files and directories that conflict with cloud content |
show domain settings
usage: python -m egnyte settings [-h]
usage: python -m egnyte config [-h] {show,create,update,token} ...
show configuration
usage: python -m egnyte config show [-h]
create a new configuration file
usage: python -m egnyte config create [-h] -d DOMAIN [-l LOGIN] [-p PASSWORD] -k API_KEY [-t ACCESS_TOKEN]
-d, --domain | domain name |
-l, --login | login |
-p, --password | password |
-k, --key | API key |
-t, --token | API access token |
update a configuration file
usage: python -m egnyte config update [-h] [-d DOMAIN] [-l LOGIN] [-p PASSWORD] [-k API_KEY] [-t ACCESS_TOKEN]
-d, --domain | domain name |
-l, --login | login |
-p, --password | password |
-k, --key | API key |
-t, --token | API access token |
generate a new access token and store it in config file
usage: python -m egnyte config token [-h]
usage: python -m egnyte audit [-h] {files,logins,permissions,get} ...
create Files report
usage: python -m egnyte audit files [-h] [--save SAVE] [--format FORMAT] [--start START] [--end END] [--folder FOLDER] [--file FILE] [--users USERS] [--transaction_type TRANSACTION_TYPE]
--save | File to save to the report to (default is standard output) |
--format | Report type (json or csv. Default is csv) |
--start | Start date (YYYY-MM-DD) |
--end | End date (YYYY-MM-DD) |
--folder | Absolute folder path for the destination folder. ‘folder’ or ‘file’ is required. Can be used multiple times |
--file | Absolute folder path for the destination file, wildcards allowed. ‘folder’ or ‘file’ is required |
--users | Users to report on (comma separated list, default is all) |
--transaction_type | |
Transaction type: upload, download, preview, delete, copy, move, restore_trash, delete_trash, create_link, delete_link, download_link (comma separated list, default is all |
create Logins report
usage: python -m egnyte audit logins [-h] [--save SAVE] [--format FORMAT] [--start START] [--end END] --events EVENTS [--access-points ACCESS_POINTS] [--users USERS]
--save | File to save to the report to (default is standard output) |
--format | Report type (json or csv. Default is csv) |
--start | Start date (YYYY-MM-DD) |
--end | End date (YYYY-MM-DD) |
--events | Event types: logins, logouts, account_lockouts, password_resets, failed_attempts (comma separated list) |
--access-points | |
Access points to cover: Web, FTP, Mobile (comma separated list, default is all) | |
--users | Users to report on (comma separated list, default is all) |
create Permissions report
usage: python -m egnyte audit permissions [-h] [--save SAVE] [--format FORMAT] [--start START] [--end END] --assigners ASSIGNERS --folder FOLDER [--users USERS] [--groups GROUPS]
--save | File to save to the report to (default is standard output) |
--format | Report type (json or csv. Default is csv) |
--start | Start date (YYYY-MM-DD) |
--end | End date (YYYY-MM-DD) |
--assigners | Permission assigners (comma separated list) |
--folder | Absolute folder path for the destination folder. Can be used multiple times |
--users | Users to report on (comma separated list) |
--groups | Groups to report on (comma separated list) |
get a previously generated report
usage: python -m egnyte audit get [-h] [--save SAVE] --id ID
--save | File to save to the report to (default is standard output) |
--id | Id of the report |