Package: pytmv1
PyTMV1: Python Library for Trend Vision OnePrerequisitesUsing this project requires at leastPython 3.7.FeaturesA thread-safe client for your application.HTTP pooling capabilities.Easy integration with Trend Vision One APIs.ConfigurationparameterdescriptionnameIdentify the application using this library.tokenAuthentication token created for your account.urlVision One API url this client connects to.pool_connectionsNumber of connection pools to cache (defaults to 1).pool_maxsizeMaximum size of the pool (defaults to 1).Quick startInstallationpip install pytmv1Usage>>>importpytmv1>>>client=pytmv1.init("MyApplication","Token","https://api.xdr.trendmicro.com")>>>result=client.object.list_exception()>>>result.responseGetExceptionListResp(next_link=None,items=[ExceptionObject(url='https://*.example.com/path1/*',type=<ObjectType.URL:'url'>,last_modified_date_time='2023-01-12T14:05:37Z',description='object description')])>>>result.result_codeResultCode.SUCCESSBuild the projectSet virtual envpython3 -m venv venvsource venv/bin/activateInstall dependenciespip install -e ".[dev]"Buildhatch buildRun unit testspytest --verbose ./tests/unitRun integration tests$url: Vision One API url (i.e:https://api.xdr.trendmicro.com)pytest --mock-url="$url" --verbose ./tests/integrationSupported APIsPythonVision OneConnectivitysystem.check_connectivityCheck availability of serviceAPI Keysapi_key.createCreate API Keysapi_key.getGet API keyapi_key.updateUpdate API keyapi_key.deleteDelete API keysapi_key.[list/consume]List API keysCommontask.get_resultDownload response task resultsCustom Scriptsscript.createAdd custom scriptscript.downloadDownload custom scriptscript.updateUpdate custom scriptscript.deleteDelete custom scriptscript.runRun custom scriptscript.listList custom scriptsDomain Accountaccount.enableEnable user accountaccount.disableDisable user accountaccount.sign_outForce sign outaccount.resetForce password resetEmailemail.restoreRestore email messageemail.quarantineQuarantine email messageemail.deleteDelete email messageEndpointendpoint.collect_fileCollect fileendpoint.isolateIsolate endpointendpoint.restoreRestore endpointendpoint.terminate_processTerminate processSandbox Analysissandbox.submit_fileSubmit file to sandboxsandbox.submit_urlSubmit URLs to sandboxsandbox.get_analysis_resultGet analysis resultssandbox.get_submission_statusGet submission statussandbox.download_analysis_resultDownload analysis resultssandbox.download_investigation_packageDownload investigation packagesandbox.list_suspiciousDownload suspicious object listSearchemail.get_activity_countGet email activity data countemail.[list_activity, consume_activity]Get email activity dataendpoint.get_activity_countGet endpoint activity data countendpoint.[list_data, consume_data]Get endpoint dataendpoint.[list_activity, consume_activity]Get endpoint activity dataSuspicious Objectsobject.add_blockAdd to block listobject.delete_blockRemove from block listSuspicious Object Exception Listobject.add_exceptionAdd to exception listobject.delete_exceptionRemove from exception listobject.[list_exception, consume_exception]Get exception listSuspicious Object Listobject.add_suspiciousAdd to suspicious object listobject.delete_suspiciousRemove from suspicious object listobject.[list_suspicious, consume_suspicious]List suspicious objectsWorkbenchalert.getGet alert detailsalert.update_statusModify alert statusalert.[list, consume]Get alerts listWorkbench Notesnote.createAdd alert notenote.getGet alert notenote.updateEdit alert notenote.deleteDelete alert notesnote.[list, consume]Get alerts notesContributingRead ourcontributing guideto learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes to Trend Vision One.Code of conductTrend Micro has adopted aCode of Conductthat we expect project participants to adhere to. Please read thefull textto understand what actions will and will not be tolerated.LicenseProject distributed under theApache 2.0license.