{"id":25332446,"url":"https://github.com/stanfrbd/trend_api","last_synced_at":"2025-04-08T07:45:46.214Z","repository":{"id":214345328,"uuid":"736289640","full_name":"stanfrbd/trend_api","owner":"stanfrbd","description":"Trend Micro CloudOne API Wrapper","archived":false,"fork":false,"pushed_at":"2023-12-29T11:09:07.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T04:52:14.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stanfrbd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-27T13:54:46.000Z","updated_at":"2023-12-27T14:06:37.000Z","dependencies_parsed_at":"2023-12-27T15:29:13.942Z","dependency_job_id":"c4aac588-9855-4356-ad72-9abf93dece37","html_url":"https://github.com/stanfrbd/trend_api","commit_stats":null,"previous_names":["stanfrbd/trend_api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanfrbd%2Ftrend_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanfrbd%2Ftrend_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanfrbd%2Ftrend_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stanfrbd%2Ftrend_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stanfrbd","download_url":"https://codeload.github.com/stanfrbd/trend_api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801185,"owners_count":20998331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-14T04:52:15.424Z","updated_at":"2025-04-08T07:45:46.167Z","avatar_url":"https://github.com/stanfrbd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trend_api\n\nThis script helps to get the list of computers and their agent status using Trend Micro CloudOne API in an easy way.\n\nFor a better understanding, refer to the official Trend Micro CloudOne API documentation: https://cloudone.trendmicro.com/docs/workload-security/api-reference/\n\n## Install dependencies\n\nYou might want to create a [`venv`](https://docs.python.org/3/library/venv.html) before installing the dependencies.\n\n```\npip install -r requirements.txt\n```\n\n## Usage\n\n```\nusage: trend_api.py [-h] {computers}\n\nList computers\n\npositional arguments:\n  {computers}  Action to perform\n\noptions:\n  -h, --help   show this help message and exit\n```\n\n# Quick start\n\nFollow the instructions to get an API Key:\n\n## Edit the config file\n```\ncp secrets-sample.json secrets.json\n```\n\nThen edit the config with the good values.\n\n| Secret | Explaination |\n|----------|--------------|\n|`apiKey`| Your API Key |\n|`proxyUrl`| Your proxy if needed - leave blank if not |\n\n```\n{\n    \"apiKey\": \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\",\n    \"proxyUrl\": \"\"\n}\n```\n\n## Execute the script\n\n\u003e Windows\n\n```\nPS C:\\Users\\Me\\Test\u003e python trend_api.py computers\n```\n\n\u003e Linux\n\n```\n$ python3 trend_api.py computers\n```\n\n\u003e Linux  \n\n```\n$ chmod +x trend_api.py\n$ ./trend_api.py computers\n```\n\n## Output\n\n- An Excel (autofiltered) file will be created with datetime.\n\n```\nPS C:\\Users\\Me\\Test\u003e python .\\trend_api.py computers\n0 agents are active, 49 agents have warnings, 63 agents have errors.\nProcessed 110 API results.\nSuccessfully created 2023-12-27-14_56_58-trend-api-results.xlsx\n```\n\n# Errors\n\nIf the `secrets.json` is not properly filled.\n```\nGeneral error: HTTP error: check your secrets file.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanfrbd%2Ftrend_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstanfrbd%2Ftrend_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstanfrbd%2Ftrend_api/lists"}