{"id":21359368,"url":"https://github.com/trendmicro/tm-v1-api-mockup","last_synced_at":"2025-03-16T06:25:46.378Z","repository":{"id":203434108,"uuid":"677269642","full_name":"trendmicro/tm-v1-api-mockup","owner":"trendmicro","description":"Trend Vision One API Mockup Tool","archived":false,"fork":false,"pushed_at":"2024-10-29T16:19:48.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-22T18:51:42.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trendmicro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-11T06:39:14.000Z","updated_at":"2024-01-18T09:45:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"8132a57b-8404-4656-8e6e-6cdfbe664939","html_url":"https://github.com/trendmicro/tm-v1-api-mockup","commit_stats":null,"previous_names":["trendmicro/tm-v1-api-mockup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro%2Ftm-v1-api-mockup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro%2Ftm-v1-api-mockup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro%2Ftm-v1-api-mockup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro%2Ftm-v1-api-mockup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trendmicro","download_url":"https://codeload.github.com/trendmicro/tm-v1-api-mockup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835028,"owners_count":20355539,"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":"2024-11-22T05:27:58.367Z","updated_at":"2025-03-16T06:25:46.351Z","avatar_url":"https://github.com/trendmicro.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TMV1 Mock\n\nTMV1 Mock is a HTTP-based mock server built using WireMock, designed to simulate the TrendMicro V1 API. It allows developers and testers to easily replicate different responses from the API without making actual API calls.\n\n## Setup\nYou will need to have WireMock and Maven installed on your system. Additionally, the pytmv1 python library is needed to interact with the mock server. Ensure that you have these set up before proceeding.\n\n## Adding Additional Mock Responses\nIf you would like to add more mock responses, follow these steps:\n\n0. **Check the API Docs**: [API Docs](https://automation.trendmicro.com/xdr/api-v3)\n1. **Run Wiremock on Docker**: docker run -dit -p 127.0.0.1:8080:8080 --name tmv1mock -v $PWD:/home/wiremock wiremock/wiremock:latest –verbose\n2. **Identify the Request**: Determine the API endpoint, HTTP method, and any necessary parameters or headers that your new mock response will react to.\n3. **Create the Response**: Define the status code, body, and headers that your mock response will return.\n4. **Register the Stub**: Using WireMock's API, you can register your new stub. This will typically involve adding a new file in the `mappings` directory.\n5. **Test New Stubs**: Restart the WireMock Docker, and run the action via that pytmv1 client that has been initialized with the correct localhost params\n6. **Rebuild the Project**: After adding your new stub, you will need to rebuild the project with Maven by running the command `mvn clean package`.\n7. **Upload New Code to Server**: SCP the new mock tar into the server /tmp/\n8. **Restart the Mock Server**: You'll then need to restart the mock server, so it picks up the new stub. You can do this with the command `docker stop apimock \u0026\u0026 docker start apimock`.\n\n## Example Usage\n\nHere's a basic example of how to interact with the mock server using the pytmv1 library:\n\n```python\nimport pytmv1\nclient = pytmv1.client(\"AppName\", \"API-KEY\", \"https://tmv1-mock.trendmicro.com/\")\nclient.get_alert_details(alert_id=\"bad_request\")\n```\n\nIn this example, we initialize a client with the parameters appname, apikey, and url. We then call an action method `get_alert_details()` with a specific parameter `alert_id`.\n\nThe mock server is set up to respond based on the specific parameters provided. For example, if a random string is provided to the `alert_id` parameter, a 200 response will be gotten from the mock. However, if \"bad_request\" or \"server_error\" is passed as the `alert_id` parameter, a 400 or 500 response will be gotten respectively.\n\nIn some cases, since some actions do not require parameters, the API-KEY is checked by WireMock for a specific string to determine the response.\n\nBelow is the full list of the currently available parameters to produce the various available responses:\n\n| Action                                 | Response | Parameter                                                             | Comment                         |\n|----------------------------------------|----------|-----------------------------------------------------------------------|---------------------------------|\n| disable_account                        | 207-202  | accountName == random string                                          |                                 |\n| disable_account                        | 207-400  | accountName == 'action_not_supported'                                 |                                 |\n| disable_account                        | 207-400  | accountName == 'fields_not_found'                                     |                                 |\n| disable_account                        | 207-400  | accountName == 'invalid_field_format'                                 |                                 |\n| disable_account                        | 207-400  | accountName == 'target_not_found'                                     |                                 |\n| disable_account                        | 207-400  | accountName == 'task_duplication'                                     |                                 |\n| disable_account                        | 207-403  | accountName == 'access_denied_no_scope'                               |                                 |\n| disable_account                        | 207-403  | accountName == 'feature_disabled'                                     |                                 |\n| disable_account                        | 207-403  | accountName == 'insufficient_permissions'                             |                                 |\n| disable_account                        | 207-403  | accountName == 'unsupported_response'                                 |                                 |\n| disable_account                        | 207-500  | accountName == 'internal_server_error'                                |                                 |\n| disable_account                        | 400      | accountName == 'invalid_format'                                       |                                 |\n| disable_account                        | 403      | accountName == 'access_denied'                                        |                                 |\n| disable_account                        | 500      | accountName == 'server_error'                                         |                                 |\n| enable_account                         | 207-202  | accountName == random string                                          |                                 |\n| enable_account                         | 207-400  | accountName == 'action_not_supported'                                 |                                 |\n| enable_account                         | 207-400  | accountName == 'fields_not_found'                                     |                                 |\n| enable_account                         | 207-400  | accountName == 'invalid_field_format'                                 |                                 |\n| enable_account                         | 207-400  | accountName == 'target_not_found'                                     |                                 |\n| enable_account                         | 207-400  | accountName == 'task_duplication'                                     |                                 |\n| enable_account                         | 207-403  | accountName == 'access_denied_no_scope'                               |                                 |\n| enable_account                         | 207-403  | accountName == 'feature_disabled'                                     |                                 |\n| enable_account                         | 207-403  | accountName == 'insufficient_permissions'                             |                                 |\n| enable_account                         | 207-403  | accountName == 'unsupported_response'                                 |                                 |\n| enable_account                         | 207-500  | accountName == 'internal_server_error'                                |                                 |\n| enable_account                         | 400      | accountName == 'invalid_format'                                       |                                 |\n| enable_account                         | 403      | accountName == 'access_denied'                                        |                                 |\n| enable_account                         | 500      | accountName == 'server_error'                                         |                                 |\n| reset_password_account                 | 207-202  | accountName == random string                                          |                                 |\n| reset_password_account                 | 207-400  | accountName == 'action_not_supported'                                 |                                 |\n| reset_password_account                 | 207-400  | accountName == 'fields_not_found'                                     |                                 |\n| reset_password_account                 | 207-400  | accountName == 'invalid_field_format'                                 |                                 |\n| reset_password_account                 | 207-400  | accountName == 'target_not_found'                                     |                                 |\n| reset_password_account                 | 207-400  | accountName == 'task_duplication'                                     |                                 |\n| reset_password_account                 | 207-403  | accountName == 'access_denied_no_scope'                               |                                 |\n| reset_password_account                 | 207-403  | accountName == 'feature_disabled'                                     |                                 |\n| reset_password_account                 | 207-403  | accountName == 'insufficient_permissions'                             |                                 |\n| reset_password_account                 | 207-403  | accountName == 'unsupported_response'                                 |                                 |\n| reset_password_account                 | 207-500  | accountName == 'internal_server_error'                                |                                 |\n| reset_password_account                 | 400      | accountName == 'invalid_format'                                       |                                 |\n| reset_password_account                 | 403      | accountName == 'access_denied'                                        |                                 |\n| reset_password_account                 | 500      | accountName == 'server_error'                                         |                                 |\n| sign_out_account                       | 207-202  | accountName == random string                                          |                                 |\n| sign_out_account                       | 207-400  | accountName == 'action_not_supported'                                 |                                 |\n| sign_out_account                       | 207-400  | accountName == 'fields_not_found'                                     |                                 |\n| sign_out_account                       | 207-400  | accountName == 'invalid_field_format'                                 |                                 |\n| sign_out_account                       | 207-400  | accountName == 'target_not_found'                                     |                                 |\n| sign_out_account                       | 207-400  | accountName == 'task_duplication'                                     |                                 |\n| sign_out_account                       | 207-403  | accountName == 'access_denied_no_scope'                               |                                 |\n| sign_out_account                       | 207-403  | accountName == 'feature_disabled'                                     |                                 |\n| sign_out_account                       | 207-403  | accountName == 'insufficient_permissions'                             |                                 |\n| sign_out_account                       | 207-403  | accountName == 'unsupported_response'                                 |                                 |\n| sign_out_account                       | 207-500  | accountName == 'internal_server_error'                                |                                 |\n| sign_out_account                       | 400      | accountName == 'invalid_format'                                       |                                 |\n| sign_out_account                       | 403      | accountName == 'access_denied'                                        |                                 |\n| sign_out_account                       | 500      | accountName == 'server_error'                                         |                                 |\n| get_task_result                        | 200      | task_id == random string                                              | Use client.get_base_task_result |\n| get_task_result                        | 200      | task_id == 'block_suspicious'                                         |                                 |\n| get_task_result                        | 200      | task_id == 'collect_file'                                             |                                 |\n| get_task_result                        | 200      | task_id == 'delete_message'                                           |                                 |\n| get_task_result                        | 200      | task_id == 'disable_account'                                          |                                 |\n| get_task_result                        | 200      | task_id == 'enable_account'                                           |                                 |\n| get_task_result                        | 200      | task_id == 'force_sign_out'                                           |                                 |\n| get_task_result                        | 200      | task_id == 'isolate_endpoint'                                         |                                 |\n| get_task_result                        | 200      | task_id == 'quarantine_message'                                       |                                 |\n| get_task_result                        | 200      | task_id == 'remove_suspicious'                                        |                                 |\n| get_task_result                        | 200      | task_id == 'reset_password'                                           |                                 |\n| get_task_result                        | 200      | task_id == 'reset_endpoint'                                           |                                 |\n| get_task_result                        | 200      | task_id == 'restore_message'                                          |                                 |\n| get_task_result                        | 200      | task_id == 'submit_sandbox'                                           |                                 |\n| get_task_result                        | 200      | task_id == 'terminate_process'                                        |                                 |\n| get_task_result                        | 400      | task_id == 'bad_request'                                              |                                 |\n| get_task_result                        | 403      | task_id == 'access_denied'                                            |                                 |\n| get_task_result                        | 404      | task_id == 'not_found'                                                |                                 |\n| get_task_result                        | 500      | task_id == 'internal_error'                                           |                                 |\n| check_connectivity                     | 200      | None                                                                  |                                 |\n| check_connectivity                     | 500      | API_KEY == 'SERVER_ERROR'                                             |                                 |\n| delete_email_message                   | 207-202  | messageId OR uniqueId == random string                                |                                 |\n| delete_email_message                   | 207-400  | messageId == 'action_not_supported'                                   |                                 |\n| delete_email_message                   | 207-400  | messageId == 'fields_not_found'                                       |                                 |\n| delete_email_message                   | 207-400  | messageId == 'invalid_field_format'                                   |                                 |\n| delete_email_message                   | 207-400  | messageId == 'target_not_found'                                       |                                 |\n| delete_email_message                   | 207-400  | messageId == 'task_duplication'                                       |                                 |\n| delete_email_message                   | 207-403  | messageId == 'access_denied_no_scope'                                 |                                 |\n| delete_email_message                   | 207-403  | messageId == 'feature_disabled'                                       |                                 |\n| delete_email_message                   | 207-403  | messageId == 'insufficient_permissions'                               |                                 |\n| delete_email_message                   | 207-403  | messageId == 'unsupported_response'                                   |                                 |\n| delete_email_message                   | 207-500  | messageId == 'internal_server_error'                                  |                                 |\n| delete_email_message                   | 400      | messageId == 'invalid_format'                                         |                                 |\n| delete_email_message                   | 403      | messageId == 'access_denied'                                          |                                 |\n| delete_email_message                   | 500      | messageId == 'server_error'                                           |                                 |\n| quarantine_email_message               | 207-202  | messageId OR uniqueId == random string                                |                                 |\n| quarantine_email_message               | 207-400  | messageId == 'action_not_supported'                                   |                                 |\n| quarantine_email_message               | 207-400  | messageId == 'fields_not_found'                                       |                                 |\n| quarantine_email_message               | 207-400  | messageId == 'invalid_field_format'                                   |                                 |\n| quarantine_email_message               | 207-400  | messageId == 'target_not_found'                                       |                                 |\n| quarantine_email_message               | 207-400  | messageId == 'task_duplication'                                       |                                 |\n| quarantine_email_message               | 207-403  | messageId == 'access_denied_no_scope'                                 |                                 |\n| quarantine_email_message               | 207-403  | messageId == 'feature_disabled'                                       |                                 |\n| quarantine_email_message               | 207-403  | messageId == 'insufficient_permissions'                               |                                 |\n| quarantine_email_message               | 207-403  | messageId == 'unsupported_response'                                   |                                 |\n| quarantine_email_message               | 207-500  | messageId == 'internal_server_error'                                  |                                 |\n| quarantine_email_message               | 400      | messageId == 'invalid_format'                                         |                                 |\n| quarantine_email_message               | 403      | messageId == 'access_denied'                                          |                                 |\n| quarantine_email_message               | 500      | messageId == 'server_error'                                           |                                 |\n| restore_email_message                  | 207-202  | messageId OR uniqueId == random string                                |                                 |\n| restore_email_message                  | 207-400  | messageId == 'action_not_supported'                                   |                                 |\n| restore_email_message                  | 207-400  | messageId == 'fields_not_found'                                       |                                 |\n| restore_email_message                  | 207-400  | messageId == 'invalid_field_format'                                   |                                 |\n| restore_email_message                  | 207-400  | messageId == 'target_not_found'                                       |                                 |\n| restore_email_message                  | 207-400  | messageId == 'task_duplication'                                       |                                 |\n| restore_email_message                  | 207-403  | messageId == 'access_denied_no_scope'                                 |                                 |\n| restore_email_message                  | 207-403  | messageId == 'feature_disabled'                                       |                                 |\n| restore_email_message                  | 207-403  | messageId == 'insufficient_permissions'                               |                                 |\n| restore_email_message                  | 207-403  | messageId == 'unsupported_response'                                   |                                 |\n| restore_email_message                  | 207-500  | messageId == 'internal_server_error'                                  |                                 |\n| restore_email_message                  | 400      | messageId == 'invalid_format'                                         |                                 |\n| restore_email_message                  | 403      | messageId == 'access_denied'                                          |                                 |\n| restore_email_message                  | 500      | messageId == 'server_error'                                           |                                 |\n| collect_file                           | 207-202  | agentGuid OR endpointName == random string                            |                                 |\n| collect_file                           | 207-400  | endpointName == 'action_not_supported'                                |                                 |\n| collect_file                           | 207-400  | endpointName == 'fields_not_found'                                    |                                 |\n| collect_file                           | 207-400  | endpointName == 'invalid_field_format'                                |                                 |\n| collect_file                           | 207-400  | endpointName == 'target_not_found'                                    |                                 |\n| collect_file                           | 207-400  | endpointName == 'task_duplication'                                    |                                 |\n| collect_file                           | 207-403  | endpointName == 'access_denied_no_scope'                              |                                 |\n| collect_file                           | 207-403  | endpointName == 'feature_disabled'                                    |                                 |\n| collect_file                           | 207-403  | endpointName == 'insufficient_permissions'                            |                                 |\n| collect_file                           | 207-403  | endpointName == 'unsupported_response'                                |                                 |\n| collect_file                           | 207-500  | endpointName == 'internal_server_error'                               |                                 |\n| collect_file                           | 400      | endpointName == 'invalid_format'                                      |                                 |\n| collect_file                           | 403      | endpointName == 'access_denied'                                       |                                 |\n| collect_file                           | 500      | endpointName == 'server_error'                                        |                                 |\n| isolate_endpoint                       | 207-202  | agentGuid OR endpointName == random string                            |                                 |\n| isolate_endpoint                       | 207-400  | endpointName == 'action_not_supported'                                |                                 |\n| isolate_endpoint                       | 207-400  | endpointName == 'fields_not_found'                                    |                                 |\n| isolate_endpoint                       | 207-400  | endpointName == 'invalid_field_format'                                |                                 |\n| isolate_endpoint                       | 207-400  | endpointName == 'target_not_found'                                    |                                 |\n| isolate_endpoint                       | 207-400  | endpointName == 'task_duplication'                                    |                                 |\n| isolate_endpoint                       | 207-403  | endpointName == 'access_denied_no_scope'                              |                                 |\n| isolate_endpoint                       | 207-403  | endpointName == 'feature_disabled'                                    |                                 |\n| isolate_endpoint                       | 207-403  | endpointName == 'insufficient_permissions'                            |                                 |\n| isolate_endpoint                       | 207-403  | endpointName == 'unsupported_response'                                |                                 |\n| isolate_endpoint                       | 207-500  | endpointName == 'internal_server_error'                               |                                 |\n| isolate_endpoint                       | 400      | endpointName == 'invalid_format'                                      |                                 |\n| isolate_endpoint                       | 403      | endpointName == 'access_denied'                                       |                                 |\n| isolate_endpoint                       | 500      | endpointName == 'server_error'                                        |                                 |\n| restore_endpoint                       | 207-202  | agentGuid OR endpointName == random string                            |                                 |\n| restore_endpoint                       | 207-400  | endpointName == 'action_not_supported'                                |                                 |\n| restore_endpoint                       | 207-400  | endpointName == 'fields_not_found'                                    |                                 |\n| restore_endpoint                       | 207-400  | endpointName == 'invalid_field_format'                                |                                 |\n| restore_endpoint                       | 207-400  | endpointName == 'target_not_found'                                    |                                 |\n| restore_endpoint                       | 207-400  | endpointName == 'task_duplication'                                    |                                 |\n| restore_endpoint                       | 207-403  | endpointName == 'access_denied_no_scope'                              |                                 |\n| restore_endpoint                       | 207-403  | endpointName == 'feature_disabled'                                    |                                 |\n| restore_endpoint                       | 207-403  | endpointName == 'insufficient_permissions'                            |                                 |\n| restore_endpoint                       | 207-403  | endpointName == 'unsupported_response'                                |                                 |\n| restore_endpoint                       | 207-500  | endpointName == 'internal_server_error'                               |                                 |\n| restore_endpoint                       | 400      | endpointName == 'invalid_format'                                      |                                 |\n| restore_endpoint                       | 403      | endpointName == 'access_denied'                                       |                                 |\n| restore_endpoint                       | 500      | endpointName == 'server_error'                                        |                                 |\n| terminate_process                      | 207-202  | agentGuid OR endpointName == random string                            |                                 |\n| terminate_process                      | 207-400  | endpointName == 'action_not_supported'                                |                                 |\n| terminate_process                      | 207-400  | endpointName == 'fields_not_found'                                    |                                 |\n| terminate_process                      | 207-400  | endpointName == 'invalid_field_format'                                |                                 |\n| terminate_process                      | 207-400  | endpointName == 'target_not_found'                                    |                                 |\n| terminate_process                      | 207-400  | endpointName == 'task_duplication'                                    |                                 |\n| terminate_process                      | 207-403  | endpointName == 'access_denied_no_scope'                              |                                 |\n| terminate_process                      | 207-403  | endpointName == 'feature_disabled'                                    |                                 |\n| terminate_process                      | 207-403  | endpointName == 'insufficient_permissions'                            |                                 |\n| terminate_process                      | 207-403  | endpointName == 'unsupported_response'                                |                                 |\n| terminate_process                      | 207-500  | endpointName == 'internal_server_error'                               |                                 |\n| terminate_process                      | 400      | endpointName == 'invalid_format'                                      |                                 |\n| terminate_process                      | 403      | endpointName == 'access_denied'                                       |                                 |\n| terminate_process                      | 500      | endpointName == 'server_error'                                        |                                 |\n| add_to_block_list                      | 207-202  | url OR domain OR fileSha1 OR senderMailAddress OR ip == random string |                                 |\n| add_to_block_list                      | 207-400  | url == 'action_not_supported'                                         |                                 |\n| add_to_block_list                      | 207-400  | url == 'fields_not_found'                                             |                                 |\n| add_to_block_list                      | 207-400  | url == 'invalid_field_format'                                         |                                 |\n| add_to_block_list                      | 207-400  | url == 'target_not_found'                                             |                                 |\n| add_to_block_list                      | 207-400  | url == 'task_duplication'                                             |                                 |\n| add_to_block_list                      | 207-403  | url == 'access_denied_no_scope'                                       |                                 |\n| add_to_block_list                      | 207-403  | url == 'feature_disabled'                                             |                                 |\n| add_to_block_list                      | 207-403  | url == 'insufficient_permissions'                                     |                                 |\n| add_to_block_list                      | 207-403  | url == 'unsupported_response'                                         |                                 |\n| add_to_block_list                      | 207-500  | url == 'internal_server_error'                                        |                                 |\n| add_to_block_list                      | 400      | url == 'invalid_format'                                               |                                 |\n| add_to_block_list                      | 403      | url == 'access_denied'                                                |                                 |\n| add_to_block_list                      | 500      | url == 'server_error'                                                 |                                 |\n| remove_from_block_list                 | 207-202  | url OR domain OR fileSha1 OR senderMailAddress OR ip == random string |                                 |\n| remove_from_block_list                 | 207-400  | url == 'action_not_supported'                                         |                                 |\n| remove_from_block_list                 | 207-400  | url == 'fields_not_found'                                             |                                 |\n| remove_from_block_list                 | 207-400  | url == 'invalid_field_format'                                         |                                 |\n| remove_from_block_list                 | 207-400  | url == 'target_not_found'                                             |                                 |\n| remove_from_block_list                 | 207-400  | url == 'task_duplication'                                             |                                 |\n| remove_from_block_list                 | 207-403  | url == 'access_denied_no_scope'                                       |                                 |\n| remove_from_block_list                 | 207-403  | url == 'feature_disabled'                                             |                                 |\n| remove_from_block_list                 | 207-403  | url == 'insufficient_permissions'                                     |                                 |\n| remove_from_block_list                 | 207-403  | url == 'unsupported_response'                                         |                                 |\n| remove_from_block_list                 | 207-500  | url == 'internal_server_error'                                        |                                 |\n| remove_from_block_list                 | 400      | url == 'invalid_format'                                               |                                 |\n| remove_from_block_list                 | 403      | url == 'access_denied'                                                |                                 |\n| remove_from_block_list                 | 500      | url == 'server_error'                                                 |                                 |\n| add_to_exception_list                  | 207-201  | url OR domain OR fileSha1 OR senderMailAddress OR ip == random string |                                 |\n| add_to_exception_list                  | 207-400  | url == 'bad_request'                                                  |                                 |\n| add_to_exception_list                  | 207-500  | url == 'internal_server_error'                                        |                                 |\n| add_to_exception_list                  | 400      | url == 'invalid_format'                                               |                                 |\n| add_to_exception_list                  | 403      | url == 'access_denied'                                                |                                 |\n| add_to_exception_list                  | 429      | url == 'too_many_requests'                                            |                                 |\n| add_to_exception_list                  | 500      | url == 'server_error'                                                 |                                 |\n| add_to_suspicious_list                 | 207-201  | url OR domain OR fileSha1 OR senderMailAddress OR ip == random string |                                 |\n| add_to_suspicious_list                 | 207-400  | url == 'bad_request'                                                  |                                 |\n| add_to_suspicious_list                 | 207-500  | url == 'internal_server_error'                                        |                                 |\n| add_to_suspicious_list                 | 400      | url == 'invalid_format'                                               |                                 |\n| add_to_suspicious_list                 | 403      | url == 'access_denied'                                                |                                 |\n| add_to_suspicious_list                 | 429      | url == 'too_many_requests'                                            |                                 |\n| add_to_suspicious_list                 | 500      | url == 'server_error'                                                 |                                 |\n| remove_from_exception_list             | 207-204  | url OR domain OR fileSha1 OR senderMailAddress OR ip == random string |                                 |\n| remove_from_exception_list             | 207-400  | url == 'bad_request'                                                  |                                 |\n| remove_from_exception_list             | 207-404  | url == 'not_found'                                                    |                                 |\n| remove_from_exception_list             | 207-500  | url == 'internal_server_error'                                        |                                 |\n| remove_from_exception_list             | 400      | url == 'invalid_format'                                               |                                 |\n| remove_from_exception_list             | 403      | url == 'access_denied'                                                |                                 |\n| remove_from_exception_list             | 429      | url == 'too_many_requests'                                            |                                 |\n| remove_from_exception_list             | 500      | url == 'server_error'                                                 |                                 |\n| remove_from_suspicious_list            | 207-204  | url OR domain OR fileSha1 OR senderMailAddress OR ip == random string |                                 |\n| remove_from_suspicious_list            | 207-400  | url == 'bad_request'                                                  |                                 |\n| remove_from_suspicious_list            | 207-404  | url == 'not_found'                                                    |                                 |\n| remove_from_suspicious_list            | 207-500  | url == 'internal_server_error'                                        |                                 |\n| remove_from_suspicious_list            | 400      | url == 'invalid_format'                                               |                                 |\n| remove_from_suspicious_list            | 403      | url == 'access_denied'                                                |                                 |\n| remove_from_suspicious_list            | 429      | url == 'too_many_requests'                                            |                                 |\n| remove_from_suspicious_list            | 500      | url == 'server_error'                                                 |                                 |\n| get_exception_list                     | 200      | API_KEY == random string                                              |                                 |\n| get_exception_list                     | 400      | API_KEY == 'BAD_REQUEST'                                              |                                 |\n| get_exception_list                     | 403      | API_KEY == 'ACCESS_DENIED'                                            |                                 |\n| get_exception_list                     | 429      | API_KEY == 'TOO_MANY_REQUESTS'                                        |                                 |\n| get_exception_list                     | 500      | API_KEY == 'SERVER_ERROR'                                             |                                 |\n| get_suspicious_list                    | 200      | API_KEY == random string                                              |                                 |\n| get_suspicious_list                    | 400      | API_KEY == 'BAD_REQUEST'                                              |                                 |\n| get_suspicious_list                    | 403      | API_KEY == 'ACCESS_DENIED'                                            |                                 |\n| get_suspicious_list                    | 429      | API_KEY == 'TOO_MANY_REQUESTS'                                        |                                 |\n| get_suspicious_list                    | 500      | API_KEY == 'SERVER_ERROR'                                             |                                 |\n| get_sandbox_analysis_result            | 200      | report_id == random string                                            |                                 |\n| get_sandbox_analysis_result            | 404      | report_id == 'not_found'                                              |                                 |\n| get_sandbox_analysis_result            | 500      | report_id == 'server_error'                                           |                                 |\n| get_sandbox_submission_status          | 200      | task_id == random string                                              |                                 |\n| get_sandbox_submission_status          | 404      | task_id == 'not_found'                                                |                                 |\n| get_sandbox_submission_status          | 500      | task_id == 'server_error'                                             |                                 |\n| submit_file_to_sandbox                 | 202      | file_name == random string                                            |                                 |\n| submit_file_to_sandbox                 | 400      | file_name == 'badRequest.txt'                                         |                                 |\n| submit_file_to_sandbox                 | 413      | file_name == 'tooBig.txt'                                             |                                 |\n| submit_file_to_sandbox                 | 429      | file_name == 'tooMany.txt'                                            |                                 |\n| submit_file_to_sandbox                 | 500      | file_name == 'serverError.txt'                                        |                                 |\n| submit_urls_to_sandbox                 | 207-202  | url == random string                                                  |                                 |\n| submit_urls_to_sandbox                 | 207-400  | url ==  'bad_request'                                                 |                                 |\n| submit_urls_to_sandbox                 | 400      | url == 'invalid_request'                                              |                                 |\n| submit_urls_to_sandbox                 | 413      | url == 'too_large'                                                    |                                 |\n| submit_urls_to_sandbox                 | 429      | url == 'too_many'                                                     |                                 |\n| submit_urls_to_sandbox                 | 500      | url == 'server_error'                                                 |                                 |\n| download_sandbox_analysis_result       | 200      | submit_id == random string                                            |                                 |\n| download_sandbox_analysis_result       | 404      | submit_id == 'not_found'                                              |                                 |\n| download_sandbox_analysis_result       | 500      | submit_id == 'server_error'                                           |                                 |\n| download_sandbox_investigation_package | 200      | submit_id == random string                                            |                                 |\n| download_sandbox_investigation_package | 404      | submit_id == 'not_found'                                              |                                 |\n| download_sandbox_investigation_package | 500      | submit_id == 'server_error'                                           |                                 |\n| get_sandbox_suspicious_list            | 200      | submit_id == random string                                            |                                 |\n| get_sandbox_suspicious_list            | 404      | submit_id == 'not_found'                                              |                                 |\n| get_sandbox_suspicious_list            | 500      | submit_id == 'server_error'                                           |                                 |\n| get_email_activity_data                | 200      | endpoint == random string                                             |                                 |\n| get_email_activity_data                | 400      | endpoint == 'bad_request'                                             |                                 |\n| get_email_activity_data                | 408      | endpoint == 'request_timeout'                                         |                                 |\n| get_email_activity_data                | 500      | endpoint == 'server_error'                                            |                                 |\n| get_endpoint_activity_data             | 200      | endpoint == random string                                             |                                 |\n| get_endpoint_activity_data             | 400      | endpoint == 'bad_request'                                             |                                 |\n| get_endpoint_activity_data             | 408      | endpoint == 'request_timeout'                                         |                                 |\n| get_endpoint_activity_data             | 500      | endpoint == 'server_error'                                            |                                 |\n| get_endpoint_data                      | 400      | endpoint == 'bad_request'                                             |                                 |\n| get_endpoint_data                      | 500      | endpoint == 'server_error'                                            |                                 | \n| get_endpoint_data                      | 200      | endpoint == random string                                             |                                 |\n| get_endpoint_data                      | 400      | endpoint == 'bad_request'                                             |                                 |\n| get_endpoint_data                      | 500      | endpoint == 'server_error'                                            |                                 | \n| add_alert_note                         | 201      | content == random string                                              |                                 |\n| add_alert_note                         | 400      | content == 'bad_request'                                              |                                 |\n| add_alert_note                         | 404      | content == 'not_found'                                                |                                 |\n| add_alert_note                         | 500      | content == 'server_error'                                             |                                 |\n| edit_alert_status                      | 204      | if_match == random string                                             |                                 |\n| edit_alert_status                      | 404      | if_match == 'not_found'                                               |                                 |\n| edit_alert_status                      | 412      | if_match == 'precondition_failed'                                     |                                 |\n| edit_alert_status                      | 500      | if_match == 'server_error'                                            |                                 |\n| get_alert_details                      | 200      | alert_id == random string                                             |                                 |\n| get_alert_details                      | 400      | alert_id == 'bad_request'                                             |                                 |\n| get_alert_details                      | 500      | alert_id == 'server_error'                                            |                                 |\n| get_alert_list                         | 200      | start_date_time == random string                                      |                                 |\n| get_alert_list                         | 200      | start_date_time == 'next_link'                                        |                                 |\n| get_alert_list                         | 200      | skip_token == 'c2tpcFRva2Vu'                                          |                                 |\n| get_alert_list                         | 400      | start_date_time == 'bad_request'                                      |                                 |\n| get_alert_list                         | 500      | start_date_time == 'server_error'                                     |                                 |\n\n## Contributing\n\n### Code of Conduct\n\nTrend Micro has adopted a [Code of Conduct](https://github.com/trendmicro/tm-v1/blob/main/CODE_OF_CONDUCT.md) that we expect project participants to adhere to. Please read the [full text](https://github.com/trendmicro/tm-v1/blob/main/CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.\n\nRead our [contributing guide](https://github.com/trendmicro/tm-v1/blob/main/CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Trend Vision One.\n\n### Development\n\nIf you want to actively help Trend Vision One by creating connectors, we created [dedicated documentation](https://docs.trendmicro.com/en-us/enterprise/trend-micro-xdr-help/Home) about the deployment of a development environment and how to start.\n\n## Community\n\n### Status \u0026 bugs\n\nCurrently Trend Vision One GitHub is under heavy development. If you wish to report bugs or request new features, you can use the [Github issues module](https://github.com/trendmicro/tm-v1-api-mockup/issues).\n\n### Discussion\n\nIf you need support or you wish to engage a discussion about the Trend Vision One platform, feel free to join us on our [Forums](https://success.trendmicro.com/forum/s/topic/0TO4T000000LH90WAG/trend-micro-vision-one).\n\n### Support\n\nSupports will be provided through the community. As this is an OSS project but not a formal Trend Micro product, formal product support is not applied.\n\n## About\n\n### Authors\n\nTrend Vision One is a product designed and developed by the company [Trend Micro](https://www.trendmicro.com).\n\n\u003ca href=\"https://www.trendmicro.com\" alt=\"Trend Micro\"\u003e\u003cimg src=\"https://www.trendmicro.com/content/dam/trendmicro/global/en/core/images/logos/tm-logo-red-white-t.svg\" width=\"230\" /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendmicro%2Ftm-v1-api-mockup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrendmicro%2Ftm-v1-api-mockup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendmicro%2Ftm-v1-api-mockup/lists"}