Package: cloudonecli
cloudonecliThis package provides a command line tool for use with Trend Micro Cloud One suite of products, includingDeep Security (on premises and DSaaS)Smart CheckCloud Conformity (coming)Network Security (coming)This package currently supports Python versions:3.6.x and greater3.7.x and greater3.8.x and greaterNote:All replys from the server are in JSON. Thereforejqis a good companion
program to pipe the output to.  For most distros, you can install jq withyum install jqorapt-get install jqInstallationThe easiest way to install thus is to use pip in apipin avirtualenv:$ pip3 install thus --useror, if you are not installing in avirtualenv, to install globally:$ sudo pip3 install thusor for your user:$ pip3 install --user thusIf you have the thus installed and want to upgrade to the latest version
you can run::$ pip3 install --upgrade thusCommand Completion -- HIGHLY recommendedNot sure what shell you have? Runecho $SHELLif the result is/bin/bashyou have bash. If it comes back/bin/zshyou have zsh.
###bash
To enable tab completion for bash, executesource thus_completer_bash.shIf you used--userwhen installing thus, the standard location forthus_completer_bash.shis in~/.local/bin/thus_completer_bash.shIf you did not use--userwhen installing thus, the standard location forthus_completer_bash.shis in/usr/bin/thus_comleter_bash.shTo enable this everytime, add thesourcecommand to the full path tothus_completer_bash.shto your~/.bashrcfile.zshLocate yourthus_completer_zsh.shfile.
If you used--userthen installing thus, the standard location forthus_completer_zsh.shis in~/.local/bin/thus_completer_zsh.shIf you did not use--userwhen installing thus, the standard location forthus_completer_zsh.shis in/usr/bin/thus_comleter_zsh.shEdit the ~/.zshrc file. Add the following lines to the top of the file. It must be before any call toautoload$fpath=$fpath:~/.local/bin/thus_completer_zsh.shRestart your terminal for changes to take effect.Getting StartedBefore using thus, you need to provide credentials and hostnames of your services.
You do this by creating a config file. The file should be placed in~/.thus/credentials[default]
DSMapikey = F16564D5-492A-F167-5472-2CEDA60E12D7:GDwCvBV2kV7FjSVuYJXdEqeeeu0WKlls3/sqwu+HEXM=
SCUser: administrator
SCPassword: MySuperPasswordThis creates adefaultprofile that has both Deep Security and Smart Check credentials. You can add additional
profiles for more servers.Next, we need a config file to tell the thus, when using profiledefaultwhat settings we want to use.
The file should nbe placed in~/.thus/config[default]
DSMhost = https://emydsm.example.com:443/api
DSMverifyssl = False
SCHost = https://mySmartCheck.example.com:443/api
SCverifyssl = FalseNoteThe/apiat the end of the URL is required.Now whendefaultprofile is used for Smart Check, it will connect tohttps://mySmartCheck.example.com:443/apiusing the usernameadministratorand passwordMySuperPasswordExamplesGet a list of computers from Deep Security:thus deepsecurity computers listGet a list of computers from Deep Security with only two expand values:thus deepsecurity computers list expand=interfaces,webreputationGet a list of polices from Deep Security:thus deepsecurity policies listGet a list of scans from Smart Checkthus smartcheck scans listGetting HelpUse github issues for logging bugs and feature requests.