From e6be46f890c722c8ac8886ea523e7a0f7a3e756c Mon Sep 17 00:00:00 2001 From: ablakley-r7 <96182471+ablakley-r7@users.noreply.github.com> Date: Wed, 22 Nov 2023 13:24:00 +0000 Subject: [PATCH] [PLGN-295] Insight VM - Update Site Included Targets Defect (#2081) (#2134) * Update two actions | add unit tests | refresh * Add examples | Refresh | Undo dockerfile changes * Update help.md * Downgrade * Update dockerfile, add tasks init * Fix unit test imports * Fix schema changes * Update requirements --- plugins/rapid7_insightvm/.CHECKSUM | 190 +- plugins/rapid7_insightvm/Dockerfile | 2 +- .../bin/komand_rapid7_insightvm | 334 +- plugins/rapid7_insightvm/help.md | 5878 ++++++----------- .../actions/__init__.py | 236 +- .../add_scan_engine_pool_engine/__init__.py | 2 +- .../add_scan_engine_pool_engine/schema.py | 13 +- .../add_user_asset_group_access/__init__.py | 2 +- .../add_user_asset_group_access/schema.py | 13 +- .../actions/add_user_site_access/__init__.py | 2 +- .../actions/add_user_site_access/schema.py | 13 +- .../actions/asset_search/__init__.py | 2 +- .../actions/asset_search/schema.py | 2015 +----- .../asset_vulnerability_solution/__init__.py | 2 +- .../asset_vulnerability_solution/schema.py | 623 +- .../actions/create_asset_group/__init__.py | 2 +- .../actions/create_asset_group/schema.py | 16 +- .../actions/create_exception/__init__.py | 2 +- .../actions/create_exception/schema.py | 17 +- .../actions/create_scan_engine/__init__.py | 2 +- .../actions/create_scan_engine/schema.py | 15 +- .../create_scan_engine_pool/__init__.py | 2 +- .../actions/create_scan_engine_pool/schema.py | 13 +- .../actions/create_site/__init__.py | 2 +- .../actions/create_site/schema.py | 21 +- .../actions/create_tag/__init__.py | 2 +- .../actions/create_tag/schema.py | 16 +- .../actions/create_user/__init__.py | 2 +- .../actions/create_user/schema.py | 13 +- .../actions/delete_asset/__init__.py | 2 +- .../actions/delete_asset/schema.py | 16 +- .../actions/delete_asset_group/__init__.py | 2 +- .../actions/delete_asset_group/schema.py | 13 +- .../actions/delete_exception/__init__.py | 2 +- .../actions/delete_exception/schema.py | 13 +- .../actions/delete_scan_engine/__init__.py | 2 +- .../actions/delete_scan_engine/schema.py | 13 +- .../delete_scan_engine_pool/__init__.py | 2 +- .../actions/delete_scan_engine_pool/schema.py | 13 +- .../actions/delete_site/__init__.py | 2 +- .../actions/delete_site/schema.py | 13 +- .../actions/delete_tag/__init__.py | 2 +- .../actions/delete_tag/schema.py | 13 +- .../actions/delete_user/__init__.py | 2 +- .../actions/delete_user/schema.py | 13 +- .../actions/disable_user/__init__.py | 2 +- .../actions/disable_user/schema.py | 13 +- .../actions/download_report/__init__.py | 2 +- .../actions/download_report/schema.py | 20 +- .../actions/enable_user/__init__.py | 2 +- .../actions/enable_user/schema.py | 13 +- .../generate_adhoc_sql_report/__init__.py | 2 +- .../generate_adhoc_sql_report/schema.py | 27 +- .../generate_shared_secret/__init__.py | 2 +- .../actions/generate_shared_secret/schema.py | 16 +- .../actions/get_asset/__init__.py | 2 +- .../actions/get_asset/schema.py | 2015 +----- .../actions/get_asset_group/__init__.py | 2 +- .../actions/get_asset_group/schema.py | 65 +- .../get_asset_group_assets/__init__.py | 2 +- .../actions/get_asset_group_assets/schema.py | 13 +- .../actions/get_asset_groups/__init__.py | 2 +- .../actions/get_asset_groups/schema.py | 65 +- .../actions/get_asset_software/__init__.py | 2 +- .../actions/get_asset_software/schema.py | 243 +- .../actions/get_asset_tags/__init__.py | 2 +- .../actions/get_asset_tags/schema.py | 71 +- .../get_asset_vulnerabilities/__init__.py | 2 +- .../get_asset_vulnerabilities/schema.py | 179 +- .../get_authentication_source/__init__.py | 2 +- .../get_authentication_source/schema.py | 35 +- .../get_authentication_sources/__init__.py | 2 +- .../get_authentication_sources/schema.py | 35 +- .../__init__.py | 2 +- .../schema.py | 125 +- .../actions/get_role/__init__.py | 2 +- .../actions/get_role/schema.py | 68 +- .../actions/get_roles/__init__.py | 2 +- .../actions/get_roles/schema.py | 68 +- .../actions/get_scan/__init__.py | 2 +- .../actions/get_scan/schema.py | 13 +- .../actions/get_scan_assets/__init__.py | 2 +- .../actions/get_scan_assets/schema.py | 2015 +----- .../actions/get_scan_engine/__init__.py | 2 +- .../actions/get_scan_engine/schema.py | 75 +- .../actions/get_scan_engine_pool/__init__.py | 2 +- .../actions/get_scan_engine_pool/schema.py | 87 +- .../actions/get_scan_engine_pools/__init__.py | 2 +- .../actions/get_scan_engine_pools/schema.py | 87 +- .../actions/get_scan_engines/__init__.py | 2 +- .../actions/get_scan_engines/schema.py | 75 +- .../actions/get_scans/__init__.py | 2 +- .../actions/get_scans/schema.py | 225 +- .../actions/get_site/__init__.py | 2 +- .../actions/get_site/schema.py | 99 +- .../actions/get_site_assets/__init__.py | 2 +- .../actions/get_site_assets/schema.py | 2015 +----- .../actions/get_sites/__init__.py | 2 +- .../actions/get_sites/schema.py | 99 +- .../actions/get_tag/__init__.py | 2 +- .../actions/get_tag/schema.py | 71 +- .../actions/get_tag_asset_groups/__init__.py | 2 +- .../actions/get_tag_asset_groups/schema.py | 16 +- .../actions/get_tag_assets/__init__.py | 2 +- .../actions/get_tag_assets/schema.py | 13 +- .../actions/get_tag_sites/__init__.py | 2 +- .../actions/get_tag_sites/schema.py | 16 +- .../actions/get_tags/__init__.py | 2 +- .../actions/get_tags/schema.py | 71 +- .../actions/get_user/__init__.py | 2 +- .../actions/get_user/schema.py | 318 +- .../actions/get_users/__init__.py | 2 +- .../actions/get_users/schema.py | 318 +- .../get_vulnerabilities_by_cve/__init__.py | 2 +- .../get_vulnerabilities_by_cve/schema.py | 976 +-- .../actions/get_vulnerability/__init__.py | 2 +- .../actions/get_vulnerability/schema.py | 976 +-- .../__init__.py | 2 +- .../schema.py | 13 +- .../actions/list_inactive_assets/__init__.py | 2 +- .../actions/list_inactive_assets/schema.py | 2015 +----- .../actions/list_reports/__init__.py | 2 +- .../actions/list_reports/schema.py | 16 +- .../remove_asset_group_tags/__init__.py | 2 +- .../actions/remove_asset_group_tags/schema.py | 13 +- .../actions/remove_asset_tag/__init__.py | 2 +- .../actions/remove_asset_tag/schema.py | 13 +- .../__init__.py | 2 +- .../remove_scan_engine_pool_engine/schema.py | 13 +- .../remove_tag_asset_groups/__init__.py | 2 +- .../actions/remove_tag_asset_groups/schema.py | 13 +- .../remove_tag_search_criteria/__init__.py | 2 +- .../remove_tag_search_criteria/schema.py | 13 +- .../actions/remove_tag_sites/__init__.py | 2 +- .../actions/remove_tag_sites/schema.py | 13 +- .../__init__.py | 2 +- .../remove_user_asset_group_access/schema.py | 13 +- .../remove_user_site_access/__init__.py | 2 +- .../actions/remove_user_site_access/schema.py | 13 +- .../actions/review_exception/__init__.py | 2 +- .../actions/review_exception/schema.py | 13 +- .../actions/scan/__init__.py | 2 +- .../actions/scan/schema.py | 13 +- .../actions/tag_asset/__init__.py | 2 +- .../actions/tag_asset/schema.py | 13 +- .../actions/tag_asset_group/__init__.py | 2 +- .../actions/tag_asset_group/schema.py | 13 +- .../actions/tag_assets/__init__.py | 2 +- .../actions/tag_assets/schema.py | 16 +- .../actions/tag_site/__init__.py | 2 +- .../actions/tag_site/schema.py | 13 +- .../actions/top_remediations/__init__.py | 2 +- .../actions/top_remediations/schema.py | 251 +- .../__init__.py | 2 +- .../schema.py | 13 +- .../actions/update_scan_status/__init__.py | 2 +- .../actions/update_scan_status/schema.py | 13 +- .../update_shared_credential/__init__.py | 2 +- .../update_shared_credential/schema.py | 20 +- .../actions/update_site/__init__.py | 2 +- .../actions/update_site/schema.py | 13 +- .../__init__.py | 2 +- .../schema.py | 13 +- .../update_site_excluded_targets/__init__.py | 2 +- .../update_site_excluded_targets/action.py | 2 +- .../update_site_excluded_targets/schema.py | 13 +- .../__init__.py | 2 +- .../schema.py | 13 +- .../update_site_included_targets/__init__.py | 2 +- .../update_site_included_targets/action.py | 2 +- .../update_site_included_targets/schema.py | 13 +- .../update_site_scan_engine/__init__.py | 2 +- .../actions/update_site_scan_engine/schema.py | 13 +- .../update_tag_search_criteria/__init__.py | 2 +- .../update_tag_search_criteria/schema.py | 13 +- .../actions/update_user/__init__.py | 2 +- .../actions/update_user/schema.py | 13 +- .../__init__.py | 2 +- .../update_user_asset_group_access/schema.py | 13 +- .../actions/update_user_role/__init__.py | 2 +- .../actions/update_user_role/schema.py | 13 +- .../update_user_site_access/__init__.py | 2 +- .../actions/update_user_site_access/schema.py | 13 +- .../__init__.py | 2 +- .../schema.py | 16 +- .../connection/__init__.py | 2 +- .../connection/schema.py | 22 +- .../komand_rapid7_insightvm/tasks/__init__.py | 2 + .../triggers/__init__.py | 7 +- .../new_exception_request/__init__.py | 2 +- .../triggers/new_exception_request/schema.py | 129 +- .../triggers/new_scans/__init__.py | 2 +- .../triggers/new_scans/schema.py | 229 +- plugins/rapid7_insightvm/plugin.spec.yaml | 117 +- plugins/rapid7_insightvm/requirements.txt | 4 +- plugins/rapid7_insightvm/setup.py | 4 +- ...te_excluded_targets_no_addresses.json.resp | 8 + ...te_included_targets_no_addresses.json.resp | 8 + .../test_asset_vulnerability_solution.py | 2 +- .../unit_test/test_create_exception.py | 2 +- .../unit_test/test_delete_asset.py | 2 +- .../test_generate_adhoc_sql_report.py | 2 +- .../unit_test/test_get_asset.py | 2 +- .../unit_test/test_get_asset_software.py | 2 +- .../test_get_asset_vulnerabilities.py | 2 +- ...t_get_expiring_vulnerability_exceptions.py | 2 +- .../unit_test/test_list_inactive_assets.py | 2 +- .../unit_test/test_list_reports.py | 2 +- .../unit_test/test_new_scans.py | 2 +- .../unit_test/test_tag_assets.py | 2 +- .../test_update_shared_credential.py | 2 +- .../test_update_site_excluded_targets.py | 9 +- .../test_update_site_included_targets.py | 9 +- ...vulnerability_exception_expiration_date.py | 2 +- plugins/rapid7_insightvm/unit_test/util.py | 5 + 215 files changed, 5770 insertions(+), 17855 deletions(-) create mode 100644 plugins/rapid7_insightvm/komand_rapid7_insightvm/tasks/__init__.py create mode 100644 plugins/rapid7_insightvm/unit_test/payloads/get_site_excluded_targets_no_addresses.json.resp create mode 100644 plugins/rapid7_insightvm/unit_test/payloads/get_site_included_targets_no_addresses.json.resp diff --git a/plugins/rapid7_insightvm/.CHECKSUM b/plugins/rapid7_insightvm/.CHECKSUM index ad0ffe2b7f..648eb38641 100644 --- a/plugins/rapid7_insightvm/.CHECKSUM +++ b/plugins/rapid7_insightvm/.CHECKSUM @@ -1,375 +1,375 @@ { - "spec": "304db3a88024351dde64b53c2b36e38e", - "manifest": "2810f249b53b1a4681aa845dcb74b769", - "setup": "607ea7af8d2c6ff9dec362c4dfd7d139", + "spec": "e8da36ef239156809597572946df2ea3", + "manifest": "138d918083ad59c0f8de7c018212a929", + "setup": "5f4d67fe3ecbe62a6ac891aa442e20b9", "schemas": [ { "identifier": "add_scan_engine_pool_engine/schema.py", - "hash": "4dfe1eea0e57b8a995874008895c3e21" + "hash": "1a01756fd66e5843d659663174c88c6c" }, { "identifier": "add_user_asset_group_access/schema.py", - "hash": "5ace2b4f5dcc91705bbd305b37743cee" + "hash": "08ab5b17b341c5cc2f7ca4f4adfdd777" }, { "identifier": "add_user_site_access/schema.py", - "hash": "481b87e6bc7c2544972e8a56c6ae7283" + "hash": "53aa3117d7e292ed8c2302675b1c1772" }, { "identifier": "asset_search/schema.py", - "hash": "a6ef61352fcea3e1fa232e807d1609fe" + "hash": "af717568c29059fa8ec93c86238c460c" }, { "identifier": "asset_vulnerability_solution/schema.py", - "hash": "7a789e0b1682910486c4f180a8bee983" + "hash": "58bbe516a723ad6f7ab992533d3379b7" }, { "identifier": "create_asset_group/schema.py", - "hash": "3edf58f02f63972d543c8aecd82c01da" + "hash": "6326dec6682c2d703ee530d0db7d5767" }, { "identifier": "create_exception/schema.py", - "hash": "ecadc48c96d491c728db3fd93437ef9c" + "hash": "5a88da99893e8c361f1a5d2edb67fe5c" }, { "identifier": "create_scan_engine/schema.py", - "hash": "548bc51488b92fb91c08a9cdad7d0c6d" + "hash": "1eedaed0bb8b773e5b9aac115864c366" }, { "identifier": "create_scan_engine_pool/schema.py", - "hash": "a77c07ddfd7a037dc54161b76bff4670" + "hash": "632cf572d027101a357ad59c6f424d2f" }, { "identifier": "create_site/schema.py", - "hash": "a6bbb260e2aecab55ae816578c051e88" + "hash": "198a067a9e4176274a1dea8bae7d4e8a" }, { "identifier": "create_tag/schema.py", - "hash": "9d90f6f02d6f231a385068b35cf0ad94" + "hash": "b736d58b905e90b30d875fe85f8b21ed" }, { "identifier": "create_user/schema.py", - "hash": "2cdd80a0b0a3db62bd625713adee57c9" + "hash": "f704f0121dbaa3756d2780a173c0a812" }, { "identifier": "delete_asset/schema.py", - "hash": "12d1b87245b7bc3c65de673de3221826" + "hash": "1670f60e0793c32c1fcebbda9b18c493" }, { "identifier": "delete_asset_group/schema.py", - "hash": "eda8a0e5b25b8c7ea25c8f5934547bb8" + "hash": "046cb4eec23eadc368c737dcd7d536be" }, { "identifier": "delete_exception/schema.py", - "hash": "9d8de37d662ecdee41426aceebd00381" + "hash": "4d207623d3bb8db82bef4d1729efba9b" }, { "identifier": "delete_scan_engine/schema.py", - "hash": "8aa268da4b4b51cca1b86c67e6504dcb" + "hash": "892681232a364e0b3f8ba6a507bb4f31" }, { "identifier": "delete_scan_engine_pool/schema.py", - "hash": "e3de4e6aea8778d1a877522e0215c6f7" + "hash": "0aa5a8d41b933cacb517dcea6dba371a" }, { "identifier": "delete_site/schema.py", - "hash": "f8de163fad1dbf8c88ac1d743cff2878" + "hash": "cffb5cf68bdad7adc2ae4c299d5976a0" }, { "identifier": "delete_tag/schema.py", - "hash": "ef05a78440f01ed3f7df61c3d496a807" + "hash": "2809fa90b3a07cae20df3094abb52225" }, { "identifier": "delete_user/schema.py", - "hash": "50cc3d6e141d54f6d35b2299fcacaaf0" + "hash": "37a3e8de289bf045377adf1c61ff0814" }, { "identifier": "disable_user/schema.py", - "hash": "0171a13aed11fc3b6e5f1d8764d51f43" + "hash": "264c3476b5f080f0b9a6f5616b887d6f" }, { "identifier": "download_report/schema.py", - "hash": "b521ba28bd1e26827348f5a5b12bd734" + "hash": "2c6baa06e4ca73ba4d6a1583ed0f9f69" }, { "identifier": "enable_user/schema.py", - "hash": "247d17b564c722dbfb038a4488edddcf" + "hash": "495a18431490fe3ad81ab69f75a8edc3" }, { "identifier": "generate_adhoc_sql_report/schema.py", - "hash": "8751244a235fc2cec7d298546a3a9efa" + "hash": "426ca6927498b60da753d2812cff1456" }, { "identifier": "generate_shared_secret/schema.py", - "hash": "14c391ecf508d14ae3f9046c8c01a603" + "hash": "14c560aeb54da36416388dead4bc0b2e" }, { "identifier": "get_asset/schema.py", - "hash": "c87430a0b1c9f1357b298d648abc0206" + "hash": "593b1e11bb8deffb9c444370193df74f" }, { "identifier": "get_asset_group/schema.py", - "hash": "ea426df50386f15f409433283ca400f5" + "hash": "9293d20f472f620c3a3ba49a40816241" }, { "identifier": "get_asset_group_assets/schema.py", - "hash": "5f0b1e25e353b685ad3aaf1d344c0329" + "hash": "554eb7dc198f0516a13a0a39ad5dc620" }, { "identifier": "get_asset_groups/schema.py", - "hash": "178f2b24586b56ff2abf39f0ff5cb5f5" + "hash": "92303f8d35c1bb44d0e21b9fc5f6a03f" }, { "identifier": "get_asset_software/schema.py", - "hash": "625301ffd22597dff7d8665e4753b631" + "hash": "db13804533e3f686a5777ba39320b799" }, { "identifier": "get_asset_tags/schema.py", - "hash": "f61b788296f1d1eb70da998329b9f3ef" + "hash": "4227c5a65b2fe0724f40e2f234389c0e" }, { "identifier": "get_asset_vulnerabilities/schema.py", - "hash": "252860b202fa81722c24534f5675c049" + "hash": "302759bdb3e88875f8389c4ca9dccb47" }, { "identifier": "get_authentication_source/schema.py", - "hash": "ff8d7957827702d53f43fca2cc9d88d1" + "hash": "b4bf212b499d08f5bac04f066d5482b3" }, { "identifier": "get_authentication_sources/schema.py", - "hash": "84fd4322103343915335cb312e338b8c" + "hash": "c7fed591c63c3fe055ddd851168d51bc" }, { "identifier": "get_expiring_vulnerability_exceptions/schema.py", - "hash": "0566a60eebdd51b500dbe68cf5b44b7d" + "hash": "40a640123403f8efe70f4df7698fdf3e" }, { "identifier": "get_role/schema.py", - "hash": "7bcffa5e39c5a2f21636c7a580045ff8" + "hash": "4e060b20412e4598b21db3bb9a72257b" }, { "identifier": "get_roles/schema.py", - "hash": "1fb549281e0dca42e8d1b86655666b46" + "hash": "fbd7b72fe2c7d4043a2316505afde132" }, { "identifier": "get_scan/schema.py", - "hash": "5aaca3bc2d9a04dcaad380cc5db02465" + "hash": "03a4c6d9c6fb8f9478492d9929a79c83" }, { "identifier": "get_scan_assets/schema.py", - "hash": "4b10305d3792a25b921d1ceb2ffdee10" + "hash": "0482fe7f12e687ac5bee37b054c78982" }, { "identifier": "get_scan_engine/schema.py", - "hash": "a93669e76397417c65733d78f88dd66a" + "hash": "1ae948712778a0b8ec775f2bedf44e04" }, { "identifier": "get_scan_engine_pool/schema.py", - "hash": "93675de7dd94e942f1dd687798ba1686" + "hash": "674463b069747780bdfb00d1905c636d" }, { "identifier": "get_scan_engine_pools/schema.py", - "hash": "b94b218dc056a8807d360d17457826eb" + "hash": "16b920193adac44d1e71b9332ee28e4a" }, { "identifier": "get_scan_engines/schema.py", - "hash": "65c4a99b50bcd886a0b5c9d26077b4f0" + "hash": "f6d9b23188422c226a5a0ffca7a921d0" }, { "identifier": "get_scans/schema.py", - "hash": "ca5b6f80cbf513ef4a76669bd1a551e8" + "hash": "eecd5c3be43522170183cb64c98bc391" }, { "identifier": "get_site/schema.py", - "hash": "f946303f019a9fcc27a67f2cd81713de" + "hash": "2c11f459f6767eeb93caf21e7acd663e" }, { "identifier": "get_site_assets/schema.py", - "hash": "eb144d42a277a0cbd556e8e4f3350145" + "hash": "6d5b2505220f8248d56c6544c1c1ed9a" }, { "identifier": "get_sites/schema.py", - "hash": "1e9030868f22e639e76ca6a6ee091a4e" + "hash": "72d7e17e47e782c0328fd350cb746321" }, { "identifier": "get_tag/schema.py", - "hash": "5ee42ccdb01d3d08f6e9e6654b8fb017" + "hash": "52da53699ee264236bf08ba974a5b661" }, { "identifier": "get_tag_asset_groups/schema.py", - "hash": "3fc693085b6cf23a786cd36ed9fbbf35" + "hash": "6b7caf66716a67ce6abaa7cf08349086" }, { "identifier": "get_tag_assets/schema.py", - "hash": "60f0b4c23e66b78538526ebc2dfc8ab3" + "hash": "a4819f92cb89c86f29a95c73299b725a" }, { "identifier": "get_tag_sites/schema.py", - "hash": "2c441fe8ac87a846d661e6badac887e8" + "hash": "a27f56def3259eecf762d7c03c27a425" }, { "identifier": "get_tags/schema.py", - "hash": "3eef3a7fe88a3506014ce6f599e1c27a" + "hash": "3c29d35b0fc7dcb98d7d8f646e731900" }, { "identifier": "get_user/schema.py", - "hash": "4c97579abd7e6526c00590c142ada588" + "hash": "e9e7b8992d7dd7d3a88b8783d2bd1fb1" }, { "identifier": "get_users/schema.py", - "hash": "759048509b8ec12ec306ebbfc161e850" + "hash": "2098738b3c0871835dc2ad85d1125fcf" }, { "identifier": "get_vulnerabilities_by_cve/schema.py", - "hash": "0073424fa561e29e12775ccfa10071d3" + "hash": "eee134dc1224533b85ac450e4097253a" }, { "identifier": "get_vulnerability/schema.py", - "hash": "19f674dc7713ff5b25074bd667b415b0" + "hash": "8fa89d04130dde11d82a5edc53ce236c" }, { "identifier": "get_vulnerability_affected_assets/schema.py", - "hash": "ce2bee964e7a5b617f256c8b96495b9b" + "hash": "538061657d149887608d2fba65c2cdce" }, { "identifier": "list_inactive_assets/schema.py", - "hash": "a23c2fb58ae45708f72749ea71370e24" + "hash": "0171ecf108e072f31de9559b252712b9" }, { "identifier": "list_reports/schema.py", - "hash": "ebcc5adc96ef038b41fd9eb8661529c4" + "hash": "b923fc8eb8e9da541d04187d8e9fcb49" }, { "identifier": "remove_asset_group_tags/schema.py", - "hash": "e1d0eee1ef524f574cf391bf3be29d48" + "hash": "586f644100073253cc9836eb8bc8bfce" }, { "identifier": "remove_asset_tag/schema.py", - "hash": "0c6c4d3e216d0cd84526c732859354cf" + "hash": "749b87aa77c694ff0d567a30b1ee19cb" }, { "identifier": "remove_scan_engine_pool_engine/schema.py", - "hash": "05c3caa896333d038338b18817553c7e" + "hash": "91f5457cf4b6dc7a5bd61726044eece5" }, { "identifier": "remove_tag_asset_groups/schema.py", - "hash": "81fd40cfaa2cabb113b3eb8374dc9cd5" + "hash": "4b6b534a0503e56f32b9446c566e95b8" }, { "identifier": "remove_tag_search_criteria/schema.py", - "hash": "ca3fc9d19c3a5ba843d1e0edc9c57ba7" + "hash": "a97af72179591cf9dc6b421632416faa" }, { "identifier": "remove_tag_sites/schema.py", - "hash": "36c79671b6b0dc04db80b1b35d3079cb" + "hash": "a7256934952271e55f71c530dcedd33c" }, { "identifier": "remove_user_asset_group_access/schema.py", - "hash": "c88988aa799df342f01093f0aea24d12" + "hash": "f06f963939ac87cb7b5b8cb2f7aa44a2" }, { "identifier": "remove_user_site_access/schema.py", - "hash": "5cd42d3a6a838d8b77349eb4312f78c4" + "hash": "f3ac57d8955a7f55eadda4eff14afec0" }, { "identifier": "review_exception/schema.py", - "hash": "9fc0044fd4803908aaea3ef8a90924ec" + "hash": "0265edab8bc8be6fd78aac25aa587365" }, { "identifier": "scan/schema.py", - "hash": "e20a2e1b5acc40004ddb8fe9c1e1cee6" + "hash": "08bc7f6a1dfde5355f9c0f708aaeaea0" }, { "identifier": "tag_asset/schema.py", - "hash": "907b503c1d4c2c5503ad45771433eca0" + "hash": "9a3f6eee71bff819f8b4557cc373805f" }, { "identifier": "tag_asset_group/schema.py", - "hash": "6c949d7c35213e909a2c4ddf1f0e89ef" + "hash": "0009b549fc6c4c0e324d7f53a5044a5b" }, { "identifier": "tag_assets/schema.py", - "hash": "1616cccc6bb8a40a351b1402f6ce35c6" + "hash": "280e471f1081481e2b95a40feae98149" }, { "identifier": "tag_site/schema.py", - "hash": "c6372acbb45e7eba53ca17094fafa157" + "hash": "02835eb13c462f83af830329cf32e69c" }, { "identifier": "top_remediations/schema.py", - "hash": "c828ddf0a8d7690db1b4b5f10d301830" + "hash": "08cb410b6e19f692509163845cceea57" }, { "identifier": "update_asset_group_search_criteria/schema.py", - "hash": "80a91968b0d475cddcce361ebe03cfa1" + "hash": "f2572c15c8f41b7ad0564a0db1ff19f0" }, { "identifier": "update_scan_status/schema.py", - "hash": "ebb7ade204ab64aac0cc2d66cfcb61b2" + "hash": "7e553d59aa5ace6243bdd02c9299dbbe" }, { "identifier": "update_shared_credential/schema.py", - "hash": "13859b90e35462d5f23d50af1eb059b7" + "hash": "b2937e01f10c50162b9ce41265b513ed" }, { "identifier": "update_site/schema.py", - "hash": "a5ae6d551d7108d2ab986a0bb1ab848f" + "hash": "1ad9c8e2c92efda347e5eb1bf77dd271" }, { "identifier": "update_site_excluded_asset_groups/schema.py", - "hash": "27147813e9976cd0988114b08dc6e3bc" + "hash": "a4a6e08fc068fec1ea397e6c936fc0e2" }, { "identifier": "update_site_excluded_targets/schema.py", - "hash": "83081d4b5099ec3da99e02ccc9795a40" + "hash": "15c9256d8a34904608498255e1cbedf8" }, { "identifier": "update_site_included_asset_groups/schema.py", - "hash": "af65953c6beeb28ccc01b6b5e5a874d2" + "hash": "35c11e69fe0731bb61bc873b8d47cb5b" }, { "identifier": "update_site_included_targets/schema.py", - "hash": "d8b35a3d83d5580db3812a2e2e3dec3a" + "hash": "a8e4b01444147b730da2a21df2943c90" }, { "identifier": "update_site_scan_engine/schema.py", - "hash": "3361df4d2db048fe1e5dff29640b65a9" + "hash": "9eb5bed15e62b3aea544533229962d21" }, { "identifier": "update_tag_search_criteria/schema.py", - "hash": "66c22d084806758e20326022be49f313" + "hash": "7d5213e811d184206202caecba808140" }, { "identifier": "update_user/schema.py", - "hash": "9dcb975d635c81c9cbba4af87a16f894" + "hash": "33aff9705909fb63d28a288614da1998" }, { "identifier": "update_user_asset_group_access/schema.py", - "hash": "4a3d254caf754f87acb1c0a269050371" + "hash": "9a4dc6958fbfdefb5fcbea7c728edff3" }, { "identifier": "update_user_role/schema.py", - "hash": "7f1c423cf5c7583b1ac332227e08f001" + "hash": "11f7c01239e5ef74552227fc512338b4" }, { "identifier": "update_user_site_access/schema.py", - "hash": "d9697fef4ceb2f238d65dfac89c5b45e" + "hash": "143c29badab40d6beab44ec431650563" }, { "identifier": "update_vulnerability_exception_expiration_date/schema.py", - "hash": "698fbb24e83a9592472cb7180308bddf" + "hash": "c60d2bb958607819acb496dece853819" }, { "identifier": "connection/schema.py", - "hash": "3179e4b063008f507474b5605270da5d" + "hash": "86f621bcf85d54926d1a4c5e50203168" }, { "identifier": "new_exception_request/schema.py", - "hash": "6e99b6e57f5d35b1b68d53d73e443af1" + "hash": "f2a9e67a7b640a9a6c685fa68bf9bedc" }, { "identifier": "new_scans/schema.py", - "hash": "e1e19bb26c002cd43bdad5dcf50a0aee" + "hash": "a907a9c47939be620564f30a3e8a6533" } ] } \ No newline at end of file diff --git a/plugins/rapid7_insightvm/Dockerfile b/plugins/rapid7_insightvm/Dockerfile index 67597b78b4..2ea826cd1f 100755 --- a/plugins/rapid7_insightvm/Dockerfile +++ b/plugins/rapid7_insightvm/Dockerfile @@ -1,4 +1,4 @@ -FROM rapid7/insightconnect-python-3-38-slim-plugin:4 +FROM rapid7/insightconnect-python-3-38-slim-plugin:5 LABEL organization=komand LABEL sdk=python LABEL type=plugin diff --git a/plugins/rapid7_insightvm/bin/komand_rapid7_insightvm b/plugins/rapid7_insightvm/bin/komand_rapid7_insightvm index 253af22a3b..7973d9b4ed 100755 --- a/plugins/rapid7_insightvm/bin/komand_rapid7_insightvm +++ b/plugins/rapid7_insightvm/bin/komand_rapid7_insightvm @@ -1,12 +1,12 @@ #!/usr/bin/env python -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import os import json from sys import argv Name = "Rapid7 InsightVM Console" Vendor = "rapid7" -Version = "6.1.0" +Version = "6.1.1" Description = "InsightVM is a powerful vulnerability management tool which finds, prioritizes, and remediates vulnerabilities. This plugin uses an orchestrator to get top remediations, scan results and start scans" @@ -23,7 +23,7 @@ def main(): monkey.patch_all() import insightconnect_plugin_runtime - from komand_rapid7_insightvm import connection, actions, triggers + from komand_rapid7_insightvm import connection, actions, triggers, tasks class ICONRapid7Insightvm(insightconnect_plugin_runtime.Plugin): def __init__(self): @@ -34,188 +34,188 @@ def main(): description=Description, connection=connection.Connection() ) - self.add_trigger(triggers.NewExceptionRequest()) - self.add_trigger(triggers.NewScans()) - - self.add_action(actions.AddScanEnginePoolEngine()) - - self.add_action(actions.AddUserAssetGroupAccess()) - - self.add_action(actions.AddUserSiteAccess()) - - self.add_action(actions.AssetSearch()) - - self.add_action(actions.AssetVulnerabilitySolution()) - - self.add_action(actions.CreateAssetGroup()) - - self.add_action(actions.CreateException()) - - self.add_action(actions.CreateScanEngine()) - - self.add_action(actions.CreateScanEnginePool()) - - self.add_action(actions.CreateSite()) - - self.add_action(actions.CreateTag()) - - self.add_action(actions.CreateUser()) - - self.add_action(actions.DeleteAsset()) - - self.add_action(actions.DeleteAssetGroup()) - - self.add_action(actions.DeleteException()) - - self.add_action(actions.DeleteScanEngine()) - - self.add_action(actions.DeleteScanEnginePool()) - - self.add_action(actions.DeleteSite()) - - self.add_action(actions.DeleteTag()) - - self.add_action(actions.DeleteUser()) - - self.add_action(actions.DisableUser()) - - self.add_action(actions.DownloadReport()) - - self.add_action(actions.EnableUser()) - - self.add_action(actions.GenerateAdhocSqlReport()) - - self.add_action(actions.GenerateSharedSecret()) - - self.add_action(actions.GetAsset()) - - self.add_action(actions.GetAssetGroup()) - - self.add_action(actions.GetAssetGroupAssets()) - - self.add_action(actions.GetAssetGroups()) - - self.add_action(actions.GetAssetSoftware()) - - self.add_action(actions.GetAssetTags()) - - self.add_action(actions.GetAssetVulnerabilities()) - - self.add_action(actions.GetAuthenticationSource()) - - self.add_action(actions.GetAuthenticationSources()) - - self.add_action(actions.GetExpiringVulnerabilityExceptions()) - - self.add_action(actions.GetRole()) - - self.add_action(actions.GetRoles()) - + + self.add_trigger(triggers.NewExceptionRequest()) + + self.add_action(actions.Scan()) + self.add_action(actions.GetScan()) - - self.add_action(actions.GetScanAssets()) - - self.add_action(actions.GetScanEngine()) - - self.add_action(actions.GetScanEnginePool()) - - self.add_action(actions.GetScanEnginePools()) - - self.add_action(actions.GetScanEngines()) - - self.add_action(actions.GetScans()) - - self.add_action(actions.GetSite()) - + self.add_action(actions.GetSiteAssets()) - - self.add_action(actions.GetSites()) - + + self.add_action(actions.GetScanAssets()) + + self.add_action(actions.GetAssetVulnerabilities()) + + self.add_action(actions.GetAssetSoftware()) + + self.add_action(actions.DownloadReport()) + + self.add_action(actions.ListReports()) + + self.add_action(actions.GetVulnerabilityAffectedAssets()) + + self.add_action(actions.CreateTag()) + + self.add_action(actions.DeleteTag()) + + self.add_action(actions.GetTags()) + self.add_action(actions.GetTag()) - - self.add_action(actions.GetTagAssetGroups()) - - self.add_action(actions.GetTagAssets()) - + self.add_action(actions.GetTagSites()) - - self.add_action(actions.GetTags()) - - self.add_action(actions.GetUser()) - - self.add_action(actions.GetUsers()) - - self.add_action(actions.GetVulnerabilitiesByCve()) - - self.add_action(actions.GetVulnerability()) - - self.add_action(actions.GetVulnerabilityAffectedAssets()) - - self.add_action(actions.ListInactiveAssets()) - - self.add_action(actions.ListReports()) - - self.add_action(actions.RemoveAssetGroupTags()) - + + self.add_action(actions.GetTagAssets()) + + self.add_action(actions.GetTagAssetGroups()) + self.add_action(actions.RemoveAssetTag()) - - self.add_action(actions.RemoveScanEnginePoolEngine()) - + + self.add_action(actions.RemoveAssetGroupTags()) + self.add_action(actions.RemoveTagAssetGroups()) - - self.add_action(actions.RemoveTagSearchCriteria()) - + self.add_action(actions.RemoveTagSites()) - - self.add_action(actions.RemoveUserAssetGroupAccess()) - - self.add_action(actions.RemoveUserSiteAccess()) - - self.add_action(actions.ReviewException()) - - self.add_action(actions.Scan()) - + + self.add_action(actions.RemoveTagSearchCriteria()) + + self.add_action(actions.TagSite()) + self.add_action(actions.TagAsset()) - - self.add_action(actions.TagAssetGroup()) - + self.add_action(actions.TagAssets()) - - self.add_action(actions.TagSite()) - - self.add_action(actions.TopRemediations()) - - self.add_action(actions.UpdateAssetGroupSearchCriteria()) - - self.add_action(actions.UpdateScanStatus()) - - self.add_action(actions.UpdateSharedCredential()) - + + self.add_action(actions.TagAssetGroup()) + + self.add_action(actions.UpdateTagSearchCriteria()) + + self.add_action(actions.AssetSearch()) + + self.add_action(actions.GetAsset()) + + self.add_action(actions.GetAssetTags()) + + self.add_action(actions.GetSites()) + + self.add_action(actions.GetSite()) + + self.add_action(actions.CreateSite()) + self.add_action(actions.UpdateSite()) - - self.add_action(actions.UpdateSiteExcludedAssetGroups()) - + + self.add_action(actions.UpdateSiteIncludedTargets()) + self.add_action(actions.UpdateSiteExcludedTargets()) - + self.add_action(actions.UpdateSiteIncludedAssetGroups()) - - self.add_action(actions.UpdateSiteIncludedTargets()) - + + self.add_action(actions.UpdateSiteExcludedAssetGroups()) + + self.add_action(actions.DeleteSite()) + + self.add_action(actions.GetAssetGroups()) + + self.add_action(actions.GetAssetGroup()) + + self.add_action(actions.CreateAssetGroup()) + + self.add_action(actions.DeleteAssetGroup()) + + self.add_action(actions.UpdateAssetGroupSearchCriteria()) + + self.add_action(actions.GetVulnerabilitiesByCve()) + + self.add_action(actions.GetScans()) + + self.add_action(actions.UpdateScanStatus()) + + self.add_action(actions.GenerateSharedSecret()) + + self.add_action(actions.GetScanEngines()) + + self.add_action(actions.GetScanEngine()) + + self.add_action(actions.CreateScanEngine()) + + self.add_action(actions.DeleteScanEngine()) + + self.add_action(actions.GetScanEnginePools()) + + self.add_action(actions.GetScanEnginePool()) + + self.add_action(actions.CreateScanEnginePool()) + + self.add_action(actions.AddScanEnginePoolEngine()) + + self.add_action(actions.RemoveScanEnginePoolEngine()) + + self.add_action(actions.DeleteScanEnginePool()) + self.add_action(actions.UpdateSiteScanEngine()) - - self.add_action(actions.UpdateTagSearchCriteria()) - + + self.add_action(actions.GetAuthenticationSources()) + + self.add_action(actions.GetAuthenticationSource()) + + self.add_action(actions.GetRoles()) + + self.add_action(actions.GetRole()) + + self.add_action(actions.GetUsers()) + + self.add_action(actions.GetUser()) + + self.add_action(actions.CreateUser()) + self.add_action(actions.UpdateUser()) - - self.add_action(actions.UpdateUserAssetGroupAccess()) - + + self.add_action(actions.DeleteUser()) + + self.add_action(actions.DisableUser()) + + self.add_action(actions.EnableUser()) + self.add_action(actions.UpdateUserRole()) - + + self.add_action(actions.UpdateUserAssetGroupAccess()) + + self.add_action(actions.AddUserAssetGroupAccess()) + + self.add_action(actions.RemoveUserAssetGroupAccess()) + self.add_action(actions.UpdateUserSiteAccess()) - + + self.add_action(actions.AddUserSiteAccess()) + + self.add_action(actions.RemoveUserSiteAccess()) + + self.add_action(actions.TopRemediations()) + + self.add_action(actions.GenerateAdhocSqlReport()) + + self.add_action(actions.ReviewException()) + + self.add_action(actions.DeleteException()) + + self.add_action(actions.CreateException()) + + self.add_action(actions.GetVulnerability()) + + self.add_action(actions.GetAssetGroupAssets()) + + self.add_action(actions.DeleteAsset()) + + self.add_action(actions.ListInactiveAssets()) + + self.add_action(actions.GetExpiringVulnerabilityExceptions()) + self.add_action(actions.UpdateVulnerabilityExceptionExpirationDate()) - + + self.add_action(actions.AssetVulnerabilitySolution()) + + self.add_action(actions.UpdateSharedCredential()) + """Run plugin""" cli = insightconnect_plugin_runtime.CLI(ICONRapid7Insightvm()) diff --git a/plugins/rapid7_insightvm/help.md b/plugins/rapid7_insightvm/help.md index 0669412972..f9fdce9e5c 100644 --- a/plugins/rapid7_insightvm/help.md +++ b/plugins/rapid7_insightvm/help.md @@ -1,8 +1,6 @@ # Description -Automate your vulnerability management operations with the combined power of [InsightVM](https://www.rapid7.com/products/insightvm/) and InsightConnect by using this plugin. Simplify getting data in and data out of InsightVM. As a Security Admin your time is valuable - save time by orchestrating site administration, user management, asset tagging, asset scanning and much much more! - -This plugin utilizes the [InsightVM API 3](https://help.rapid7.com/insightvm/en-us/api/index.html). +InsightVM is a powerful vulnerability management tool which finds, prioritizes, and remediates vulnerabilities. This plugin uses an orchestrator to get top remediations, scan results and start scans # Key Features @@ -15,20 +13,20 @@ This plugin utilizes the [InsightVM API 3](https://help.rapid7.com/insightvm/en- * Username and password for a user with the necessary permissions # Supported Product Versions - + * Rapid7 InsightVM API v3 2022-05-25 # Documentation ## Setup - -The connection configuration accepts the following parameters: + +The connection configuration accepts the following parameters: |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | |credentials|credential_username_password|None|True|Username and password|None|{'username': 'user1', 'password': 'mypassword'}| -|url|string|None|True|URL to your InsightVM console, without trailing slashes|None|https://example.com| - +|url|string|None|True|URL to your InsightVM console, without trailing slashes|None|https://insightvm.example.com:3780| + Example input: ``` @@ -42,1358 +40,713 @@ Example input: ### Actions -#### Update Shared Credentials -This action is used to update shared credentials. +#### Add Scan Engine Pool Engine + +Add a scan engine to a scan engine pool (AWS pre-authorized engine AMI engines cannot be pooled) ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|account|account|None|True|Specify the type of service to authenticate as well as all of the information required by that service|None|{'authentication_type': 'no-authentication', 'community_name': 'rapid community', 'database': 'rapid7_database', 'domain': 'rapid7.com', 'enumerate_sids': False, 'notes_id_password': 'notes_id_password', 'ntlm_hash': '86956E15C7F452086BEEB6BB005E0388', 'oracle_listener_password': 'oracle_listener_password', 'password': 'password', 'pem_key': '-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEA3Tz2mr7SZiAMfQyuvBj...', 'permission_elevation': 'sudo', 'permission_elevation_password': 'permission_elevation_password', 'permission_elevation_username': 'permission_elevation_username', 'privacy_password': 'privacy_password', 'privacy_type': 'no-privacy', 'private_key_password': 'private_key_password', 'realm': 'realm0', 'service': 'telnet', 'sid': 'rapid7_database2', 'use_windows_authentication': False, 'username': 'username'}| -|description|string|None|False|The description of the credential|None|example input with every field filled. Note real input will only have specific fields filled| -|host_restriction|string|None|False|The host name or IP address that you want to restrict the credentials to|None|my-macbook-name| -|id|integer|None|False|The identifier of the credential|None|123| -|name|string|None|True|The name of the credential|None|my-AS400-credentials| -|port_restriction|string|None|False|Further restricts the credential to attempt to authenticate on a specific port. The port can only be restricted if the property hostRestriction is specified|None|8888| -|site_assignment|string|None|True|Assigns the shared scan credential either to be available to all sites or to a specific list of sites. All sites - The shared scan credential is assigned to all current and future sites. specific-sites - The shared scan credential is assigned to zero sites by default. Administrators must explicitly assign sites to the shared credential. Shared scan credentials assigned to a site can disabled within the site configuration, if needed|['all-sites', 'specific-sites']|all-sites| -|sites|[]integer|None|False|List of site identifiers. These sites are explicitly assigned access to the shared scan credential, allowing the site to use the credential for authentication during a scan. This property can only be set if the value of property siteAssignment is set to "specific-sites". When the property siteAssignment is set to "all-sites", this property will be null|None|[]| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|engine_id|integer|None|True|Scan engine ID|None|1234567| +|pool_id|integer|None|True|Scan engine pool ID|None|1234| + Example input: ``` - +{ + "engine_id": 1234567, + "pool_id": 1234 +} ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://hostname:3780/api/3/...", - "rel": "self" - } - ] + "links": [] } ``` -#### Get Asset Vulnerability Solutions - -This action returns the highest-superceding rollup solutions for a list of vulnerabilities on an asset. +#### Add User Asset Group Access + +Grant an user account access to an asset group by ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_id|integer|None|True|The identifier of the asset|None|423| -|vulnerability_ids|[]string|None|True|A list of identifiers of the vulnerabilities|None|["flash_player-cve-2017-11305"]| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_group_id|integer|None|True|The identifier of the asset group|None|5678| +|user_id|integer|None|True|The identifier of the user account|None|1234| + Example input: ``` { - "asset_id": 1234 + "asset_group_id": 5678, + "user_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|vulnerabilities_solution|[]vulnerability_solution|True|Highest-superceding rollup solutions for a vulnerabilities on an asset| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "vulnerabilities_solution": [ - { - "links": [ - { - "href": "https://example.com/api/3/assets/234/vulnerabilities/flash_player-cve-2017-11305/solution", - "rel": "self" - } - ], - "resources": [ - { - "appliesTo": "Adobe Flash on Microsoft Windows", - "confidence": "exact", - "estimate": "PT20M", - "id": "adobe-flash-windows-upgrade-latest", - "links": [ - { - "href": "https://example.com/api/3/solutions/adobe-flash-windows-upgrade-latest", - "rel": "self" - }, - { - "href": "https://example.com/api/3/solutions/adobe-flash-windows-upgrade-latest/prerequisites", - "rel": "Prerequisites" - }, - { - "href": "https://example.com/api/3/solutions/adobe-flash-windows-upgrade-latest/supersedes", - "rel": "Supersedes" - } - ], - "matches": [ - { - "confidence": "exact", - "fingerprint": { - "description": "Adobe Flash 18.0.0.209", - "family": "Flash", - "product": "Flash", - "vendor": "Adobe", - "version": "18.0.0.209" - }, - "links": [ - { - "href": "https://example.com/api/3/solutions/adobe-flash-upgrade-28-0-0-126-windows", - "id": "adobe-flash-upgrade-28-0-0-126-windows", - "rel": "Solution" - } - ], - "solution": "adobe-flash-upgrade-28-0-0-126-windows", - "type": "software" - } - ], - "steps": { - "html": "\u003cp\u003e\r\n\u003cp\u003eAdobe Flash Player can be downloaded from the \r\n\u003ca href=\"http://get.adobe.com/flash/\"\u003eFlash Player Download Center\u003c/a\u003e, or from the \r\n\u003ca href=\"http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html\"\u003earchived Flash Players page\u003c/a\u003e. \u003c/p\u003e\u003c/p\u003e", - "text": "Adobe Flash Player can be downloaded from the Flash Player Download Center (http://get.adobe.com/flash/), or from the archived Flash Players page (http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html)." - }, - "summary": { - "html": "Upgrade to the latest version of Adobe Flash Player for Windows", - "text": "Upgrade to the latest version of Adobe Flash Player for Windows" - }, - "type": "configuration" - } - ] - } - ] + "links": [] } ``` -#### Update Vulnerability Exception Expiration Date - -This action is used to update vulnerability exception expiration dates. +#### Add User Site Access + +Grant an user account access to a site by ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|date|string|None|True|Expiration date|None|2020-02-24T06:59:59.999Z| -|id|integer|None|True|Asset ID|None|42| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|site_id|integer|None|True|The identifier of the site|None|4567| +|user_id|integer|None|True|The identifier of the user account|None|1234| + Example input: ``` { - "date": "2020-02-24T06:59:59.999Z", - "id": 42 + "site_id": 4567, + "user_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|success|boolean|True|Was operation successful| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "success": true + "links": [] } ``` -#### Get Expiring Vulnerability Exceptions - -This action is used to return a list of expiring vulnerabilities. +#### Asset Search + +Search for assets using filtered asset search ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|expires_in_less_than|integer|7|True|Number of days left until the exception expires|None|7| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|searchCriteria|object|None|True|Tag search criteria - options documentation: https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| +|size|number|0|False|The number of records to retrieve. If blank or '0' all assets that match the search will be returned|None|100| +|sort_criteria|object|None|False|JSON object for sorting by criteria. Multiple criteria can be specified with an order of 'asc' (ascending) or 'desc' (descending)|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| + Example input: ``` { - "expires_in_less_than": 7 + "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}", + "size": 0, + "sort_criteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|exceptions|[]vulnerability_exception|False|Exceptions about to expire| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|assets|[]asset|True|List of asset details returned by the search|[]| + Example output: ``` { - "exceptions": [ - { - "expires": "2020-09-10T06:59:59.999Z", - "id": 1, - "links": [ - { - "href": "https://example.com:3780/api/3/vulnerability_exceptions/1", - "rel": "self" - } - ], - "review": { - "comment": "Auto approved by submitter.", - "date": "2020-09-04T17:02:04.603Z", - "links": [ - { - "id": 1, - "href": "https://example.com:3780/api/3/users/1", - "rel": "Reviewer" - } - ], - "name": "admin", - "user": 1 - }, - "scope": { - "links": [ - { - "id": "ssh-default-account-admin-password-admin", - "href": "https://example.com:3780/api/3/vulnerabilities/ssh-default-account-admin-password-admin", - "rel": "Vulnerability" - } - ], - "type": "global", - "vulnerability": "ssh-default-account-admin-password-admin" - }, - "state": "approved", - "submit": { - "date": "2020-09-04T17:02:04.557065Z", - "links": [ - { - "id": 1, - "href": "https://example.com:3780/api/3/users/1", - "rel": "Submitter" - } - ], - "name": "admin", - "reason": "false positive", - "user": 1 - } - } - ] + "assets": [] } ``` -#### List Inactive Assets - -This action returns a list of inactive assets (limit 1000). +#### Get Asset Vulnerability Solutions + +Returns the highest-superceding rollup solutions for a list of vulnerabilities on an asset ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|days_ago|integer|14|True|How many days ago should an asset be considered still active|None|14| -|size|number|500|False|The number of assets to retrieve. If blank then 500 inactive assets will be returned, the maximum limit is 1000 assets|None|100| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_id|integer|None|True|The identifier of the asset|None|423| +|vulnerability_ids|[]string|None|True|A list of identifiers of the vulnerabilities|None|["flash_player-cve-2017-11305"]| + Example input: ``` { - "days_ago": 14, - "size": 100 + "asset_id": 423, + "vulnerability_ids": "flash_player-cve-2017-11305" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|assets|[]asset|True|A list of inactive assets| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|vulnerabilities_solution|[]vulnerability_solution|True|Highest-superceding rollup solutions for a vulnerabilities on an asset|[]| + Example output: ``` { - "assets": [ - { - "addresses": [ - { - "ip": "192.168.100.50" - } - ], - "assessedForPolicies": false, - "assessedForVulnerabilities": true, - "history": [ - { - "date": "2020-08-18T20:04:09.508Z", - "scanId": 3, - "type": "SCAN", - "version": 1 - } - ], - "hostName": "example-host", - "hostNames": [ - { - "name": "example-host", - "source": "dns" - } - ], - "id": 2, - "ip": "192.168.100.50", - "links": [ - ], - "os": "Ubuntu Linux 12.04", - "osFingerprint": { - "cpe": { - "part": "o", - "product": "ubuntu_linux", - "swEdition": "lts", - "v2.2": "cpe:/o:canonical:ubuntu_linux:12.04::~~lts~~~", - "v2.3": "cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:*", - "vendor": "canonical", - "version": "12.04" - }, - "description": "Ubuntu Linux 12.04", - "family": "Linux", - "id": 2, - "product": "Linux", - "systemName": "Ubuntu Linux", - "vendor": "Ubuntu", - "version": "12.04" - }, - "rawRiskScore": 4251.2236328125, - "riskScore": 4251.2236328125, - "services": [ - { - "configurations": [ - ], - "family": "OpenSSH", - "links": [ - ], - "name": "SSH", - "port": 22, - "product": "OpenSSH", - "protocol": "tcp", - "vendor": "OpenBSD", - "version": "5.9p1" - }, - { - "configurations": [ - { - "name": "bind.version", - "value": "Bind, James Bind." - } - ], - "family": "BIND", - "links": [ - ], - "name": "DNS", - "port": 53, - "product": "BIND", - "protocol": "udp", - "version": "Bind, James Bind." - }, - { - "configurations": [ - { - "name": "bind.version", - "value": "Bind, James Bind." - } - ], - "family": "BIND", - "links": [ - ], - "name": "DNS", - "port": 53, - "product": "BIND", - "protocol": "tcp", - "version": "Bind, James Bind." - } - ], - "vulnerabilities": { - "critical": 1, - "exploits": 1, - "malwareKits": 0, - "moderate": 5, - "severe": 7, - "total": 13 - } - } - ] + "vulnerabilities_solution": [] } ``` -#### Delete an Asset - -This action is used to delete an Asset. +#### Create Asset Group + +Create an asset group ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Asset ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|description|string|None|True|Asset group description|None|example description| +|name|string|None|True|Asset group name|None|example name| +|searchCriteria|object|None|False|Asset group search criteria - options documentation: https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| +|type|string|None|True|Asset group type|['dynamic', 'static']|dynamic| + Example input: ``` { - "id": 1234 + "description": "example description", + "name": "example name", + "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}", + "type": "dynamic" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|success|boolean|True|Was the operation successful| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|ID of the created tag|20| + Example output: ``` { - "success": true + "id": 20 } ``` -#### Get Asset Group Assets - -This action is used to get Asset Group Assets. +#### Create Vulnerability Exception Submission + +Create a vulnerability exception submission ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Asset group ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|comment|string|Exception created with InsightConnect|True|Comment to include in the vulnerability exception submission|None|example comment| +|expiration|date|None|False|The date the vulnerability exception expires|None|2021-12-30 00:00:00| +|key|string|None|False|The key to identify a specific instance if the type is Instance|None|9de5069c5afe602b2ea0a04b66beb2c0| +|port|integer|None|False|The port the vulnerability appears on if the type is Instance|None|40000| +|reason|string|None|True|Reason for the exception|['False Positive', 'Compensating Control', 'Acceptable Use', 'Acceptable Risk', 'Other']|False Positive| +|scope|integer|None|False|The ID of the scope the vulnerability exception applies to. May be empty if type is Global|None|1234| +|type|string|None|True|The type of vulnerability exception to create|['Global', 'Site', 'Asset', 'Asset Group', 'Instance']|Global| +|vulnerability|string|None|True|The vulnerability this exception applies to|None|vulnerability| + Example input: ``` { - "id": 1234 + "comment": "Exception created with InsightConnect", + "expiration": "2021-12-30 00:00:00", + "key": "9de5069c5afe602b2ea0a04b66beb2c0", + "port": 40000, + "reason": "False Positive", + "scope": 1234, + "type": "Global", + "vulnerability": "vulnerability" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| -|resources|[]integer|False|The identifiers of the associated resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|The vulnerability exception that was created|35| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/asset_groups/1/assets", - "rel": "self" - } - ], - "resources": [] + "id": 35, + "links": [] } ``` -#### Get Asset - -This action gets an asset by ID. +#### Create Scan Engine + +Create a new scan engine with console engine connectivity ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_id|integer|None|True|Identifier of asset|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|address|string|None|True|Scan engine address (IP/hostname)|None|10.4.36.120| +|name|string|None|True|Scan engine name|None|example name| +|port|integer|40814|True|Scan engine connectivity port|None|40814| +|sites|[]integer|[]|False|List of site IDs with which to associate the engine|None|[1234, 5678]| + Example input: ``` { - "asset_id": 1234 + "address": "10.4.36.120", + "name": "example name", + "port": 40814, + "sites": [] } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|asset|asset|True|Asset details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|Scan engine ID|12| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "asset": { - "addresses": [ - { - "ip": "10.0.0.1", - "mac": "00:50:56:8A:3D:8C" - } - ], - "assessedForPolicies": false, - "assessedForVulnerabilities": true, - "history": [ - { - "date": "2018-08-28T11:06:47.738Z", - "scanId": 189170, - "type": "SCAN", - "version": 1 - } - ], - "id": 74708, - "ip": "10.0.0.1", - "links": [ - { - "href": "https://insightvm:3780/api/3/assets/74708", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/software", - "rel": "Software" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/files", - "rel": "Files" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/users", - "rel": "Users" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/user_groups", - "rel": "User Groups" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/databases", - "rel": "Databases" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services", - "rel": "Services" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/tags", - "rel": "Tags" - } - ], - "mac": "00:50:56:8A:3D:8C", - "os": "Microsoft Windows Server 2012", - "osFingerprint": { - "cpe": { - "part": "o", - "product": "windows_server_2012", - "update": "gold", - "v2.2": "cpe:/o:microsoft:windows_server_2012:-:gold", - "v2.3": "cpe:2.3:o:microsoft:windows_server_2012:-:gold:*:*:*:*:*:*", - "vendor": "microsoft", - "version": "-" - }, - "description": "Microsoft Windows Server 2012", - "family": "Windows", - "id": 720, - "product": "Windows Server 2012", - "systemName": "Microsoft Windows", - "type": "General", - "vendor": "Microsoft" - }, - "rawRiskScore": 4787.376953125, - "riskScore": 4787.376953125, - "services": [ - { - "configurations": [ - { - "name": "ssl", - "value": "true" - }, - { - "name": "ssl.cert.chainerror", - "value": "[Path does not chain with any of the trust anchors]" - } - ], - "links": [ - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/configurations", - "rel": "Configurations" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/databases", - "rel": "Databases" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/users", - "rel": "Users" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/user_groups", - "rel": "User Groups" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/web_applications", - "rel": "Web Applications" - } - ], - "port": 3389, - "protocol": "tcp" - } - ], - "vulnerabilities": { - "critical": 0, - "exploits": 1, - "malwareKits": 0, - "moderate": 7, - "severe": 7, - "total": 14 - } - } + "id": 12, + "links": [] } ``` -#### Get Asset Tags - -This action is used to get a listing of all tags for an asset. +#### Create Scan Engine Pool + +Create a new scan engine pool ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_id|integer|None|True|Identifier of asset|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|engines|[]integer|None|False|List of scan engine IDs to associate with the scan engine pool|None|[1234, 5678]| +|name|string|None|True|Scan engine pool name|None|example name| + Example input: ``` { - "asset_id": 1234 + "engines": 1234, + "name": "example name" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|tags|[]tag|True|List of tags| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|Scan engine pool ID|13| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "tags": [ - { - "color": "default", - "created": "2019-02-06T15:07:07.517Z", - "id": 83, - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/83", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/tags/83/assets", - "rel": "Tag Assets" - }, - { - "href": "https://insightvm:3780/api/3/tags/83/asset_groups", - "rel": "Tag Asset Groups" - }, - { - "href": "https://insightvm:3780/api/3/tags/83/sites", - "rel": "Tag Sites" - }, - { - "href": "https://insightvm:3780/api/3/tags/83/search_criteria", - "rel": "Tag Search Criteria" - }, - { - "href": "https://insightvm:3780/api/3/users/2", - "rel": "Tag Creator" - } - ], - "name": "windows", - "source": "custom", - "sources": [ - { - "id": 9, - "links": [ - { - "id": 9, - "href": "https://insightvm:3780/api/3/asset_groups/9", - "rel": "Asset Group" - } - ], - "source": "asset-group" - } - ], - "type": "custom" - }, - { - "color": "default", - "created": "2019-04-24T17:06:29.296Z", - "id": 168, - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/168", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/tags/168/assets", - "rel": "Tag Assets" - }, - { - "href": "https://insightvm:3780/api/3/tags/168/asset_groups", - "rel": "Tag Asset Groups" - }, - { - "href": "https://insightvm:3780/api/3/tags/168/sites", - "rel": "Tag Sites" - }, - { - "href": "https://insightvm:3780/api/3/tags/168/search_criteria", - "rel": "Tag Search Criteria" - }, - { - "href": "https://insightvm:3780/api/3/users/1", - "rel": "Tag Creator" - } - ], - "name": "Windows Servers", - "source": "custom", - "sources": [ - { - "id": 12, - "links": [ - { - "id": 12, - "href": "https://insightvm:3780/api/3/asset_groups/12", - "rel": "Asset Group" - } - ], - "source": "asset-group" - } - ], - "type": "custom" - } - ] + "id": 13, + "links": [] } ``` -#### Get Asset Vulnerabilities - -This action is used to get vulnerabilities found on an asset. Can only be used if the asset has first been scanned (via Komand or other means). +#### Create Site + +Create a new site ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_id|integer|None|True|ID of the asset for which to find vulnerabilities|None|234| -|get_risk_score|boolean|None|False|Return risk score along with other vulnerability data|None|True| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|description|string|None|False|The site's description|None|example description| +|engine_id|integer|None|False|The identifier of a scan engine. Default scan engine is selected when not specified|None|1234| +|excluded_addresses|[]string|[]|False|List of addresses to exclude in scan scope|None|["1234-abcd", "4567-def"]| +|excluded_asset_groups|[]integer|[]|False|Assets associated with these asset group IDs will be excluded in the site|None|[1234, 5768]| +|importance|string|normal|False|The site importance|['very_low', 'low', 'normal', 'high', 'very_high']|low| +|included_addresses|[]string|[]|False|List of addresses to include in scan scope|None|["1234-abcd", "4567-def"]| +|included_asset_groups|[]integer|[]|False|Assets associated with these asset group IDs will be included in the site|None|[1234, 5768]| +|name|string|None|True|The site name. Name must be unique|None|example name| +|scan_template_id|string|None|False|The identifier of a scan template|None|12345-abcd| + Example input: ``` { - "asset_id": 1234 + "description": "example description", + "engine_id": 1234, + "excluded_addresses": [], + "excluded_asset_groups": [], + "importance": "normal", + "included_addresses": [], + "included_asset_groups": [], + "name": "example name", + "scan_template_id": "12345-abcd" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|vulnerabilities|[]asset_vulnerability|False|Vulnerabilities found on the asset| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|The identifier of the created site|15| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "vulnerabilities": [{ - "id": "tlsv1_1-enabled", - "instances": 2, - "links": [{ - "href": "", - "rel": "self" - }, - { - "id": "tlsv1_1-enabled", - "href": "", - "rel": "Vulnerability" - }, - { - "id": "tlsv1_1-enabled", - "href": "", - "rel": "Vulnerability Validations" - }, - { - "id": "tlsv1_1-enabled", - "href": "", - "rel": "Vulnerability Solutions" - } - ], - "results": [{ - "port": 995, - "proof": "

Successfully connected to 10.4.22.249:995 over TLSv1.1

", - "protocol": "tcp", - "since": "2016-02-23T18:20:33.811Z", - "status": "vulnerable" - }, - { - "port": 110, - "proof": "

Successfully connected to 10.4.22.249:110 over TLSv1.1

", - "protocol": "tcp", - "since": "2016-02-23T18:20:33.811Z", - "status": "vulnerable" - } - ], - "since": "2016-02-23T18:20:33.811Z", - "status": "vulnerable" - }] + "id": 15, + "links": [] } ``` -#### Get Asset Software - -This action is used to get software found on an asset. Can only be used if the asset has first been scanned. +#### Create Tag + +Create a new tag ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_id|integer|None|True|ID of the asset for which to find software|None|234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|color|string|default|False|Tag color (only available for custom tags)|['default', 'blue', 'green', 'orange', 'purple', 'red']|default| +|name|string|None|True|Tag name|None|example name| +|searchCriteria|object|None|False|Tag search Criteria - options documentation https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| +|type|string|None|True|Tag type|['owner', 'location', 'custom']|owner| + Example input: ``` { - "asset_id": 234 + "color": "default", + "name": "example name", + "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}", + "type": "owner" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|software|[]software|False|Software found on the asset| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|ID of the created tag|665| + Example output: ``` { - "software": [ - { - "description": "Apache Struts 1.3.10", - "family": "Struts", - "id": 3910, - "product": "Struts", - "type": "Middleware", - "vendor": "Apache", - "version": "1.3.10" - } - } + "id": 665 } ``` -#### Get Scan - -This action is used to get the status of a scan. +#### Create User + +Create a new user account (limited to external authentication sources) ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|scan_id|string|None|True|ID of the scan to obtain|None|11234abc-65c8-4628-adf4-e27f36ea0e2b| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|access_all_asset_groups|boolean|False|True|Whether to grant the user access to all asset groups|None|False| +|access_all_sites|boolean|False|True|Whether to grant the user access to all sites|None|False| +|authentication_id|integer|None|False|The identifier of the authentication source to use to authenticate the user. The source with the specified identifier must be of the type specified by Authentication Type. If Authentication ID is omitted, then one source of the specified Authentication Type is selected|None|1234| +|authentication_type|string|ldap|True|The type of the authentication source to use to authenticate the user|['kerberos', 'ldap', 'saml']|ldap| +|email|string|None|True|The email address of the user|None|user@example.com| +|enabled|boolean|True|True|Whether the user account is enabled|None|True| +|login|string|None|True|The login name of the user|None|jdoe24| +|name|string|None|True|The full name of the user|None|John Doe| +|role_id|string|None|True|The identifier of the role to which the user should be assigned|None|global-admin| + Example input: ``` { - "scan_id": "11234abc-65c8-4628-adf4-e27f36ea0e2b" + "access_all_asset_groups": false, + "access_all_sites": false, + "authentication_id": 1234, + "authentication_type": "ldap", + "email": "user@example.com", + "enabled": true, + "login": "jdoe24", + "name": "John Doe", + "role_id": "global-admin" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|assets|integer|False|Number of assets within the scan| -|duration|string|False|Duration of the scan in ISO8601 format| -|endTime|string|False|End time of the scan in ISO8601 format| -|engineName|string|False|Name of the engine used for the scan| -|id|integer|False|ID of the scan| -|links|[]link|False|Hypermedia links to corresponding or related resources| -|scanName|string|False|User-driven scan name for the scan| -|scanType|string|False|Scan type (manual, automated, scheduled)| -|startTime|string|False|Start time of the scan in ISO8601 format| -|status|string|False|Scan status (aborted, unknown, running, finished, stopped, error, paused, dispatched or integrating)| -|vulnerabilities|vulnerabilities_count|False|Counts of vulnerabilities found within the scan| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|The identifier of the created user account|83| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` - { - "result": { - "assets": 0, - "engineName": "Local scan engine", - "id": 188934, - "links": [ - { - "href": "https://insightvm:3780/api/3/scans/188934", - "rel": "self" - } - ], - "scanName": "API Scan - 2018-04-23T04:21:05Z", - "scanType": "Manual", - "startTime": "2018-04-23T04:21:05.500Z", - "status": "running", - "vulnerabilities": { - "critical": 0, - "moderate": 0, - "severe": 0, - "total": 0 - } - } + "id": 83, + "links": [] } ``` -#### Get Site Assets - -This action is used to get assets for a site. +#### Delete an Asset + +Delete an Asset ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|site_id|string|None|True|ID of the site to get assets for|None|11234abc-65c8-4628-adf4-e27f36ea0e2b| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Asset ID|None|1234| + Example input: ``` { - "site_id": "11234abc-65c8-4628-adf4-e27f36ea0e2b" + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|assets|[]asset|False|Assets| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|success|boolean|True|Was the operation successful|False| + Example output: ``` - { - "assets": [{ - "addresses": [{ - "ip": "" - }], - "assessedForPolicies": true, - "assessedForVulnerabilities": true, - "history": [{ - "date": "2015-04-08T20:12:24.353Z", - "type": "SCAN", - "version": 1 - }], - "hostName": "", - "hostNames": [{ - "name": "42:878126666232_i-2377d629", - "source": "epsec" - }, - { - "name": "", - "source": "dns" - } - ], - "id": 18086, - "ip": "", - "links": [{ - "href": "", - "rel": "self" - }], - "os": "Asus embedded", - "osFingerprint": { - "description": "Asus embedded", - "family": "embedded", - "id": 13792, - "product": "embedded", - "systemName": "Asus embedded", - "type": "WAP", - "vendor": "Asus" - }, - "rawRiskScore": 0, - "riskScore": 0, - "vulnerabilities": { - "critical": 0, - "exploits": 0, - "malwareKits": 0, - "moderate": 0, - "severe": 0, - "total": 0 - } - }] + "success": false } - ``` -#### Scan - -This action is used to start a scan on a site. +#### Delete Asset Group + +Delete an existing asset group ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|hosts|[]string|None|False|The hosts that should be included in the scan|None|["192.0.2.3", "192.0.2.10-192.0.2.20", "ADSRV.local"]| -|override_blackout|boolean|False|False|Set True to override any scan blackout window|None|False| -|site_id|string|None|True|ID of the site to scan|None|1| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Asset group ID|None|1234| + Example input: ``` { - "hosts": [ - "192.0.2.3", - "192.0.2.10-192.0.2.20", - "ADSRV.local" - ], - "override_blackout": false, - "site_id": 1 + "id": 1234 } ``` ##### Output |Name|Type|Required|Description|Example| -|----|----|--------|-----------|-------| -|id|integer|False|Identifier of the resource created|188935| -|links|[]link|False|Hypermedia links to corresponding or related resources|[]| - +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "result": { - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/44/scans", - "rel": "self" - }, - { - "id": 188935, - "href": "https://insightvm:3780/api/3/scans/188935", - "rel": "Scan" - } - ], - "id": 188935 - } + "links": [] } ``` -#### Generate AdHoc SQL Report - -This action is used to create, generate, download, and cleanup a SQL report based on the provided query. +#### Delete Vulnerability Exception + +Delete an existing vulnerability exception ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|filters|string|{}|False|Filters in JSON format to be applied to the contents of the report; review InsightVM API documentation for filter options|None|{filters}| -|query|string|None|True|Reporting Data Model SQL query|None|select * from dim_asset| -|scope|string|none|True|Scope context for generated report; if set, remediations will be scoped by each in scope ID, e.g Site ID, Tag ID, Asset Group ID; scan scope only supports single scan ID as input|['none', 'assets', 'assetGroups', 'sites', 'tags', 'scan']|none| -|scope_ids|[]integer|[]|False|Scope IDs for which tickets should be generated, by default all are included|None|[1234, 5678]| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|exception_id|integer|None|True|Vulnerability exception ID to delete|None|1234| + Example input: ``` { - "filters": "{filters}", - "query": "select * from dim_asset", - "scope": "none", - "scope_ids": [ - 1234, - 5678 - ] + "exception_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|report|file|True|Base64 encoded file making up the report| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "report": { - "content": "YXNzZXRfaWQsbWFjX2FkZHJlc3MsaXBfYWRkcmVzcyxob3N0X25hbWUsb3BlcmF0aW5nX3N5c3RlbV9pZCxob3N0X3R5cGVfaWQsbWF0Y2hfdmFsdWUsc2l0ZXMsbGFzdF9hc3Nlc3NlZF9mb3JfdnVsbmVyYWJpbGl0aWVzCjE0OCwsMy4xNy4yMTQuNjgsZWMyLTMtMTctMjE0LTY4LnVzLWVhc3QtMi5jb21wdXRlLmFtYXpvbmF3cy5jb20sNjEsLTEsMC4zMjQ5OTk5ODgsVGVzdC1FQzIsMjAxOS0wNC0xNiAyMDoyNzo0Mi4yNTUKMTQ5LCwzLjE5LjEyNC4yNCxlYzItMy0xOS0xMjQtMjQudXMtZWFzdC0yLmNvbXB1dGUuYW1hem9uYXdzLmNvbSwtMSwtMSwwLjMyNDk5OTk4OCxUZXN0LUVDMiwyMDE5LTA0LTE2IDIwOjI3OjU3LjM4OQo=", - "filename": "adhoc_sql_report.csv" - } + "links": [] } ``` -#### Download Report - -This action is used to return the contents of a generated report. +#### Delete Scan Engine + +Delete an existing scan engine from the security console ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Identifier of the report to download|None|1234| -|instance|string|None|True|The identifier of the report instance, 'latest' or ID|None|latest| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Scan engine identifier|None|1234| + Example input: ``` { - "id": 1234, - "instance": "latest" + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|report|bytes|False|Base64 encoded report| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` - { - "report": "" + "links": [] } - ``` -#### List Reports - -This action is used to list reports and return their identifiers. +#### Delete Scan Engine Pool + +Delete an existing scan engine pool from the security console ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|name|string|None|False|Name of report, otherwise all reports by criteria|None|Name| -|sort|string|None|True|Sort order, ascending or descending|['Ascending', 'Descending']|Ascending| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Scan engine pool identifier|None|1234| + Example input: ``` { - "name": "Name", - "sort": "Ascending" + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|found|boolean|False|Whether optional user supplied report name was found| -|list|[]report_id|False|List of report identifiers| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` - { - "found": false, - "list": [ - { - "name": "Host Inventory", - "id": 111 - }, - { - "name": "PCI Host Details - Critical Assets", - "id": 112 - }, - ] + "links": [] } - ``` -#### Get Vulnerability Affected Assets - -This action is used to get the assets affected by the vulnerability. +#### Delete Site + +Delete an existing site ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|vulnerability_id|string|None|True|The identifier of the vulnerability|None|jre-vuln-cve-2013-2471| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Site ID|None|1234| + Example input: ``` { - "vulnerability_id": "jre-vuln-cve-2013-2471" + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| -|resources|[]integer|True|The identifiers of the associated resources| - -Example output: - -``` - -{ - "links": [ - { - "href": "https://insightvm:3780/api/3/vulnerabilities/jre-vuln-cve-2013-2471/assets", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/assets/259", - "rel": "Asset" - }, - { - "href": "https://insightvm:3780/api/3/assets/22754", - "rel": "Asset" - } - ], - "resources": [ - 259, - 22754 - ] -} - -``` - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "vulnerability": { - "added": "2015-08-11", - "exploits": 0, - "pci": { - "adjustedCVSSScore": 10, - "adjustedSeverityScore": 5, - "fail": true, - "status": "Fail" - }, - "cvss": { - "links": [ - { - "href": "https://nvd.nist.gov/vuln-metrics/cvss/v2-calculat...", - "rel": "CVSS v2 Calculator" - } - ], - "v2": { - "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C", - "accessVector": "N", - "authentication": "N", - "availabilityImpact": "C", - "confidentialityImpact": "C", - "exploitScore": 9.9968, - "impactScore": 10.0008, - "integrityImpact": "C", - "accessComplexity": "L", - "score": 10 - } - }, - "denialOfService": false, - "severity": "Critical", - "description": { - "html": "

Adobe Flash Player before 18.0.0.232 on Windows...", - "text": "Adobe Flash Player before 18.0.0.232 on Windows an..." - }, - "links": [ - { - "href": "https://example.com/...", - "rel": "self" - }, - { - "href": "https://example.com/...", - "rel": "Vulnerability Checks" - } - ], - "modified": "2015-10-22", - "published": "2015-08-11", - "riskScore": 815.27, - "severityScore": 10, - "title": "APSB15-19: Security updates available for Adobe Fl...", - "categories": [ - "Adobe", - "Adobe Flash" - ], - "cves": [ - "CVE-2015-5125" - ], - "id": "adobe-flash-apsb15-19-cve-2015-5125", - "malwareKits": 0 - } + "links": [] } ``` -#### Create Tag - -This action is used to create a new tag. +#### Delete Tag + +Delete an existing tag ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|color|string|default|False|Tag color (only available for custom tags)|['default', 'blue', 'green', 'orange', 'purple', 'red']|default| -|name|string|None|True|Tag name|None|example name| -|searchCriteria|object|None|False|Tag search Criteria - options documentation https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| -|type|string|None|True|Tag type|['owner', 'location', 'custom']|owner| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Tag ID|None|1234| + Example input: ``` { - "color": "default", - "name": "example name", - "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}", - "type": "owner" + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|ID of the created tag| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "id": 665 + "links": [] } ``` -#### Delete Tag - -This action is used to delete an existing tag. +#### Delete User + +Delete an user account ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Tag ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|The identifier of the user account|None|1234| + Example input: ``` @@ -1404,221 +757,94 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/20", - "rel": "self" - } - ] + "links": [] } ``` -#### Get Tags - -This action is used to get a listing of all tags and return their details. +#### Disable User + +Disable an user account ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|name|string||False|Tag name regular expression by which to filter|None|example name| -|type|string||False|Type of tag by which to filter, all types are returned if none is specified|['owner', 'location', 'custom', 'criticality', '']|owner| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|The identifier of the user account|None|1234| + Example input: ``` { - "name": "example name", - "type": "owner" + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|tags|[]tag|True|List of tags| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "tags": [ - { - "color": "default", - "created": "2017-11-23T16:11:16.641Z", - "id": 2, - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/2", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/tags/2/assets", - "rel": "Tag Assets" - }, - { - "href": "https://insightvm:3780/api/3/tags/2/asset_groups", - "rel": "Tag Asset Groups" - }, - { - "href": "https://insightvm:3780/api/3/tags/2/sites", - "rel": "Tag Sites" - }, - { - "href": "https://insightvm:3780/api/3/tags/2/search_criteria", - "rel": "Tag Search Criteria" - }, - { - "href": "https://insightvm:3780/api/3/users/0", - "rel": "Tag Creator" - } - ], - "name": "High", - "riskModifier": "1.5", - "source": "built-in", - "type": "criticality" - }, - { - "color": "default", - "created": "2017-11-23T16:11:16.641Z", - "id": 4, - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/4", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/tags/4/assets", - "rel": "Tag Assets" - }, - { - "href": "https://insightvm:3780/api/3/tags/4/asset_groups", - "rel": "Tag Asset Groups" - }, - { - "href": "https://insightvm:3780/api/3/tags/4/sites", - "rel": "Tag Sites" - }, - { - "href": "https://insightvm:3780/api/3/tags/4/search_criteria", - "rel": "Tag Search Criteria" - }, - { - "href": "https://insightvm:3780/api/3/users/0", - "rel": "Tag Creator" - } - ], - "name": "Low", - "riskModifier": "0.75", - "source": "built-in", - "type": "criticality" - } - ] + "links": [] } ``` -#### Get Tag - -This action is used to get tag details by tag ID. +#### Download Report + +Returns the contents of a generated report ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Tag ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Identifier of the report to download|None|1234| +|instance|string|None|True|The identifier of the report instance, 'latest' or ID|None|latest| + Example input: ``` { - "id": 1234 + "id": 1234, + "instance": "latest" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|tag|tag|True|Tag Details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|report|bytes|False|Base64 encoded report|ZXhhbXBsZQ==| + Example output: ``` { - "tag": { - "color": "default", - "created": "2014-03-21T01:45:04.584Z", - "id": 1, - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/1", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/tags/1/assets", - "rel": "Tag Assets" - }, - { - "href": "https://insightvm:3780/api/3/tags/1/asset_groups", - "rel": "Tag Asset Groups" - }, - { - "href": "https://insightvm:3780/api/3/tags/1/sites", - "rel": "Tag Sites" - }, - { - "href": "https://insightvm:3780/api/3/tags/1/search_criteria", - "rel": "Tag Search Criteria" - }, - { - "href": "https://insightvm:3780/api/3/users/0", - "rel": "Tag Creator" - } - ], - "name": "Very High", - "riskModifier": "2", - "searchCriteria": { - "match": "all", - "filters": [ - { - "field": "operating-system", - "operator": "contains", - "value": "windows" - }, - { - "field": "site-id", - "operator": "in", - "values": [ - "1" - ] - } - ] - }, - "source": "built-in", - "type": "criticality" - } + "report": "ZXhhbXBsZQ==" } ``` -#### Get Tag Sites - -This action is used to get site IDs associated with a tag. +#### Enable User + +Enable an user account ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Tag ID for which to retrieve site associations|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|The identifier of the user account|None|1234| + Example input: ``` @@ -1629,150 +855,133 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|site_ids|[]integer|True|Site IDs associated with the tag| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "site_ids": [ - 42 - ] + "links": [] } ``` -#### Get Tag Assets - -This action is used to tag ID for which to retrieve asset associations. +#### Generate AdHoc SQL Report + +Create, generate, download, and cleanup a SQL report based on the provided query ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Tag ID to add to site|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|filters|string|{}|False|Filters in JSON format to be applied to the contents of the report; review InsightVM API documentation for filter options|None|{filters}| +|query|string|None|True|Reporting Data Model SQL query|None|select * from dim_asset| +|scope|string|none|True|Scope context for generated report; if set, remediations will be scoped by each in scope ID, e.g Site ID, Tag ID, Asset Group ID; scan scope only supports single scan ID as input|['none', 'assets', 'assetGroups', 'sites', 'tags', 'scan']|none| +|scope_ids|[]integer|[]|False|Scope IDs for which tickets should be generated, by default all are included|None|[1234, 5678]| + Example input: ``` { - "id": 1234 + "filters": {}, + "query": "select * from dim_asset", + "scope": "none", + "scope_ids": [] } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|assets|[]tag_asset|True|Asset IDs and tag association sources for the tag| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|report|file|True|Base64 encoded file making up the report|{'filename': '', 'content': 'UmFwaWQ3IEluc2lnaHRDb25uZWN0Cg=='}| + Example output: ``` { - "assets": [ - { - "id": 3, - "sources": [ - "asset-group", - "criteria" - ] - }, - { - "id": 18, - "sources": [ - "site" - ] - } - ] + "report": { + "content": "UmFwaWQ3IEluc2lnaHRDb25uZWN0Cg==", + "filename": "" + } } ``` -#### Get Tag Asset Groups - -This action is used to get asset groups associated with a tag. +#### Generate Shared Secret + +Generate a shared secret to pair a scan engine to a security console ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Tag ID for which to retrieve asset group associations|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|time_to_live|integer|3600|True|Time to live in seconds for the shared secret|None|3600| + Example input: ``` { - "id": 1234 + "time_to_live": 3600 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|asset_group_ids|[]integer|True|Asset group IDs associated with the tag| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|shared_secret|string|True|Scan engine pairing shared secret|99DB-B9F0-CD8B-5997-06BF-607B-BA21-0A81| + Example output: ``` { - "asset_group_ids": [ - 15, - 42 - ] + "shared_secret": "99DB-B9F0-CD8B-5997-06BF-607B-BA21-0A81" } ``` -#### Remove Asset Tag - -This action is used to remove a tag from an asset. +#### Get Asset + +Gets an asset by ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_id|integer|None|True|Asset ID from which to remove the tag|None|12345| -|tag_id|integer|None|True|Tag ID to remove from the asset|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_id|integer|None|True|Identifier of asset|None|1234| + Example input: ``` { - "asset_id": 12345, - "tag_id": 1234 + "asset_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|asset|asset|True|Asset details|{}| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/assets/21150/tags/69", - "rel": "self" - } - ] + "asset": {} } ``` -#### Remove Asset Group Tags - -This action is used to remove all tags from an asset group. +#### Get Asset Group + +Get an asset group by ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Asset group ID from which to remove all tags|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Asset group ID|None|1234| + Example input: ``` @@ -1783,33 +992,28 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|asset_group|asset_group|True|Asset group|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/asset_groups/20/tags", - "rel": "self" - } - ] + "asset_group": [] } ``` -#### Remove Tag Asset Groups - -This action is used to remove all asset group associations from a tag. +#### Get Asset Group Assets + +Get asset group assets ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Tag ID from which to remove all asset group associations|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Asset group ID|None|1234| + Example input: ``` @@ -1820,821 +1024,578 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| +|resources|[]integer|False|The identifiers of the associated resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/69/asset_groups", - "rel": "self" - } - ] + "links": [], + "resources": [] } ``` -#### Remove Tag Sites - -This action is used to remove all site associations from a tag. +#### Get Asset Groups + +Get a list of asset groups ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Tag ID from which to remove all site associations|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|name|string||False|Asset group name regular expression by which to filter|None|example name| + Example input: ``` { - "id": 1234 + "name": "" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|asset_groups|[]asset_group|True|List of asset groups|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/69/sites", - "rel": "self" - } - ] + "asset_groups": [] } ``` -#### Remove Tag Search Criteria - -This action is used to remove all search criteria from a tag. +#### Get Asset Software + +Get software found on an asset. Can only be used if the asset has first been scanned ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Tag ID from which to remove all search criteria|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_id|integer|None|True|ID of the asset for which to find software|None|234| + Example input: ``` { - "id": 1234 + "asset_id": 234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|software|[]software|False|Software found on the asset|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/69/search_criteria", - "rel": "self" - } - ] + "software": [] } ``` -#### Tag Asset - -This action is used to add a tag to an asset. +#### Get Asset Tags + +Get a listing of all tags for an asset ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_id|integer|None|True|Asset ID to tag|None|12345| -|tag_id|integer|None|True|Tag ID to add to site|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_id|integer|None|True|Identifier of asset|None|1234| + Example input: ``` { - "asset_id": 12345, - "tag_id": 1234 + "asset_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|tags|[]tag|True|List of tags|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/assets/21150/tags/4", - "rel": "self" - } - ] + "tags": [] } ``` -#### Tag Assets - -This action is used to add a tag to an asset. +#### Get Asset Vulnerabilities + +Get vulnerabilities found on an asset. Can only be used if the asset has first been scanned ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_ids|[]integer|None|True|Asset IDs to tag|None|[1, 2, 3, 4]| -|tag_id|integer|None|True|ID of tag to add to assets|None|12345| -|tag_name|string|None|True|Name of tag to add to assets|None|Very High| -|tag_source|string|None|True|Source of tag to add to assets|None|built-in| -|tag_type|string|None|True|Type of tag to add to assets|None|criticality| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_id|integer|None|True|ID of the asset for which to find vulnerabilities|None|234| +|get_risk_score|boolean|None|False|Return risk score along with other vulnerability data|None|True| + Example input: ``` { - "asset_id": 12345, - "tag_id": 1234 + "asset_id": 234, + "get_risk_score": true } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|success|boolean|True|Was the operation successful| +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|vulnerabilities|[]asset_vulnerability|False|Vulnerabilities found on the asset|[]| + +Example output: + +``` +{ + "vulnerabilities": [] +} +``` + +#### Get Authentication Source + +Get the details for an authentication source + +##### Input +|Name|Type|Default|Required|Description|Enum|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Authentication source ID|None|1234| + Example input: ``` { - "asset_id": 12345, - "tag_id": 1234 + "id": 1234 } ``` ##### Output -| Name | Type | Required |Description| -|-------|-------|----|-----------| -|success|boolean|True|Was the operation successful| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|authentication_source|authentication_source|True|User authentication source|{}| + Example output: ``` { - "success": true, + "authentication_source": {} } ``` -#### Tag Asset Group - -This action is used to add a tag to an asset group. +#### Get Authentication Sources + +List authentication sources available for InsightVM users ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_group_id|integer|None|True|Asset group ID to tag|None|12345| -|tag_id|integer|None|True|Tag ID to add to site|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|name|string|None|False|Authentication source name by which to filter, accepts regular expression patterns|None|example name| +|type|string||False|Authentication source type by which to filter|['', 'admin', 'kerberos', 'ldap', 'normal', 'saml']|admin| + Example input: ``` { - "asset_id": 12345, - "tag_id": 1234 + "name": "example name", + "type": "" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|authentication_sources|[]authentication_source|True|List of authentication sources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/asset_groups/20/tags/69", - "rel": "self" - } - ] + "authentication_sources": [] } ``` -#### Tag Site - -This action is used to add a tag to a site. +#### Get Expiring Vulnerability Exceptions + +Return a list of expiring vulnerability exceptions ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|site_id|integer|None|True|Site ID to tag|None|12345| -|tag_id|integer|None|True|Tag ID to add to site|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|expires_in_less_than|integer|7|True|Number of days left until the exception expires|None|7| + Example input: ``` { - "site_id": 12345, - "tag_id": 1234 + "expires_in_less_than": 7 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|exceptions|[]vulnerability_exception|False|Exceptions about to expire|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/42/tags/69", - "rel": "self" - } - ] + "exceptions": [] } ``` -#### Update Tag Search Criteria - -This action is used to update the search criteria for an existing tag. +#### Get Role + +Get role details by ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Tag ID|None|1234| -|searchCriteria|object|None|True|Tag search criteria - options documentation: https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|string|None|True|Role ID|None|global-admin| + Example input: ``` { - "id": 1234, - "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}" + "id": "global-admin" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|role|role|True|Role details|{}| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/69/search_criteria", - "rel": "self" - } - ] + "role": {} } ``` -#### Asset Search - -This action is used to search for assets using a filtered asset search. +#### Get Roles + +List role details ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|searchCriteria|object|None|True|Tag search criteria - options documentation: https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| -|size|number|0|False|The number of records to retrieve. If blank or '0' all assets that match the search will be returned|None|100| -|sort_criteria|object|None|False|JSON object for sorting by criteria. Multiple criteria can be specified with an order of 'asc' (ascending) or 'desc' (descending)|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|name|string|None|False|Role name by which to filter, accepts regular expression patterns|None|example name| + Example input: ``` { - "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}", - "size": 100, - "sort_criteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}" + "name": "example name" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|assets|[]asset|True|List of asset details returned by the search| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|roles|[]role|True|List of roles|[]| + Example output: ``` { - "assets": [ - { - "addresses": [ - { - "ip": "10.0.0.1", - "mac": "00:50:56:8A:3D:8C" - } - ], - "assessedForPolicies": false, - "assessedForVulnerabilities": true, - "history": [ - { - "date": "2018-08-28T11:06:47.738Z", - "scanId": 189170, - "type": "SCAN", - "version": 1 - } - ], - "id": 74708, - "ip": "10.0.0.1", - "links": [ - { - "href": "https://insightvm:3780/api/3/assets/74708", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/software", - "rel": "Software" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/files", - "rel": "Files" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/users", - "rel": "Users" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/user_groups", - "rel": "User Groups" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/databases", - "rel": "Databases" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services", - "rel": "Services" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/tags", - "rel": "Tags" - } - ], - "mac": "00:50:56:8A:3D:8C", - "os": "Microsoft Windows Server 2012", - "osFingerprint": { - "cpe": { - "part": "o", - "product": "windows_server_2012", - "update": "gold", - "v2.2": "cpe:/o:microsoft:windows_server_2012:-:gold", - "v2.3": "cpe:2.3:o:microsoft:windows_server_2012:-:gold:*:*:*:*:*:*", - "vendor": "microsoft", - "version": "-" - }, - "description": "Microsoft Windows Server 2012", - "family": "Windows", - "id": 720, - "product": "Windows Server 2012", - "systemName": "Microsoft Windows", - "type": "General", - "vendor": "Microsoft" - }, - "rawRiskScore": 4787.376953125, - "riskScore": 4787.376953125, - "services": [ - { - "configurations": [ - { - "name": "ssl", - "value": "true" - }, - { - "name": "ssl.cert.chainerror", - "value": "[Path does not chain with any of the trust anchors]" - } - ], - "links": [ - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/configurations", - "rel": "Configurations" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/databases", - "rel": "Databases" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/users", - "rel": "Users" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/user_groups", - "rel": "User Groups" - }, - { - "href": "https://insightvm:3780/api/3/assets/74708/services/tcp/3389/web_applications", - "rel": "Web Applications" - } - ], - "port": 3389, - "protocol": "tcp" - } - ], - "vulnerabilities": { - "critical": 0, - "exploits": 1, - "malwareKits": 0, - "moderate": 7, - "severe": 7, - "total": 14 - } - } - ] + "roles": [] } ``` -#### Create Asset Group - -This action is used to create an asset group. +#### Get Scan + +Get the status of a scan ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|description|string|None|True|Asset group description|None|example description| -|name|string|None|True|Asset group name|None|example name| -|searchCriteria|object|None|False|Asset group search criteria - options documentation: https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| -|type|string|None|True|Asset group type|['dynamic', 'static']|dynamic| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|scan_id|string|None|True|ID of the scan to obtain|None|11234abc-65c8-4628-adf4-e27f36ea0e2b| + Example input: ``` { - "description": "example description", - "name": "example name", - "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}", - "type": "dynamic" + "scan_id": "11234abc-65c8-4628-adf4-e27f36ea0e2b" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|ID of the created tag| - -Example output: - -``` -{ - "id": 20 +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|assets|integer|False|Number of assets within the scan|0| +|duration|string|False|Duration of the scan in ISO8601 format|2018-04-23 04:21:05.500000+00:00| +|endTime|string|False|End time of the scan in ISO8601 format|2018-04-23 04:21:05.500000+00:00| +|engineName|string|False|Name of the engine used for the scan|Local scan engine| +|id|integer|False|ID of the scan|188934| +|links|[]link|False|Hypermedia links to corresponding or related resources|[{"href": "https://insightvm:3780/api/3/scans/188934", "rel": "self"}]| +|scanName|string|False|User-driven scan name for the scan|API Scan - 2018-04-23T04:21:05Z| +|scanType|string|False|Scan type (manual, automated, scheduled)|Manual| +|startTime|string|False|Start time of the scan in ISO8601 format|2018-04-23 04:21:05.500000+00:00| +|status|string|False|Scan status (aborted, unknown, running, finished, stopped, error, paused, dispatched or integrating)|running| +|vulnerabilities|vulnerabilities_count|False|Counts of vulnerabilities found within the scan|{'critical': 0, 'moderate': 0, 'severe': 0, 'total': 0}| + +Example output: + +``` +{ + "assets": 0, + "duration": "2018-04-23 04:21:05.500000+00:00", + "endTime": "2018-04-23 04:21:05.500000+00:00", + "engineName": "Local scan engine", + "id": 188934, + "links": { + "href": "https://insightvm:3780/api/3/scans/188934", + "rel": "self" + }, + "scanName": "API Scan - 2018-04-23T04:21:05Z", + "scanType": "Manual", + "startTime": "2018-04-23 04:21:05.500000+00:00", + "status": "running", + "vulnerabilities": { + "critical": 0, + "moderate": 0, + "severe": 0, + "total": 0 + } } ``` -#### Create Site - -This action is used to create a new site. +#### Get Scan Assets + +Gets assets for a scan ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|description|string|None|False|The site's description|None|example description| -|engine_id|integer|None|False|The identifier of a scan engine. Default scan engine is selected when not specified|None|1234| -|excluded_addresses|[]string|[]|False|List of addresses to exclude in scan scope|None|["1234-abcd", "4567-def"]| -|excluded_asset_groups|[]integer|[]|False|Assets associated with these asset group IDs will be excluded in the site|None|[1234, 5768]| -|importance|string|normal|False|The site importance|['very_low', 'low', 'normal', 'high', 'very_high']|low| -|included_addresses|[]string|[]|False|List of addresses to include in scan scope|None|["1234-abcd", "4567-def"]| -|included_asset_groups|[]integer|[]|False|Assets associated with these asset group IDs will be included in the site|None|[1234, 5768]| -|name|string|None|True|The site name. Name must be unique|None|example name| -|scan_template_id|string|None|False|The identifier of a scan template|None|12345-abcd| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|scan_id|integer|None|True|ID of the scan to get assets for|None|123456789| + Example input: ``` { - "description": "example description", - "engine_id": 1234, - "excluded_addresses": [ - "1234-abcd", - "4567-def" - ], - "excluded_asset_groups": [ - 1234, - 5768 - ], - "importance": "low", - "included_addresses": [ - "1234-abcd", - "4567-def" - ], - "included_asset_groups": [ - 1234, - 5768 - ], - "name": "example name", - "scan_template_id": "12345-abcd" + "scan_id": 123456789 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|The identifier of the created site| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|assets|[]asset|False|Assets|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/sites", - "rel": "self" - }, - { - "id": 15, - "href": "https://insightvm:3780/api/3/sites/15", - "rel": "Site" - } - ], - "id": 15 + "assets": [] } ``` -#### Update Site - -This action is used to update an existing site. +#### Get Scan Engine + +Get a scan engine by ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|description|string|None|True|The site's description|None|example description| -|engine_id|integer|None|True|The identifier of a scan engine. Default scan engine is selected when not specified|None|1234| -|id|integer|None|True|The identifier of the site|None|1234| -|importance|string|normal|True|The site importance|['very_low', 'low', 'normal', 'high', 'very_high']|low| -|name|string|None|True|The site name. Name must be unique|None|example name| -|scan_template_id|string|None|True|The identifier of a scan template|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Scan engine identifier|None|1234| + Example input: ``` { - "description": "example description", - "engine_id": 1234, - "id": 1234, - "importance": "low", - "name": "example name", - "scan_template_id": 1234 + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|The identifier of the updated site| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|scan_engine|scan_engine|True|Scan engine details|{}| + Example output: ``` { - "id": 332, - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/332", - "rel": "self" - } - ] + "scan_engine": {} } ``` -#### Update Site Included Targets - -This action is used to update an existing site scope of included IP address and hostname targets. +#### Get Scan Engine Pool + +Retrieve scan engine pool details by ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|The identifier of the site|None|1234| -|included_targets|[]string|None|False|List of addresses that represent either a hostname, IPv4 address, IPv4 address range, IPv6 address, or CIDR notation|None|["10.2.144", "10.8.36.144"]| -|overwrite|boolean|True|True|Whether to overwrite the included targets to the current site or append to the previous list of included targets|None|True| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Scan engine pool identifier|None|1234| + Example input: ``` { - "id": 1234, - "included_targets": [ - "10.2.144", - "10.8.36.144" - ], - "overwrite": true + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|The identifier of the updated site| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|scan_engine_pool|scan_engine_pool|True|Scan engine pool details|{}| + Example output: ``` { - "id": 332, - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/332/included_targets", - "rel": "self" - } - ] + "scan_engine_pool": {} } ``` -#### Update Site Excluded Targets - -This action is used to update an existing site scope of excluded IP address and hostname targets. +#### Get Scan Engine Pools + +Retrieve a list of configured scan engine pools ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|excluded_targets|[]string|None|False|List of addresses that represent either a hostname, IPv4 address, IPv4 address range, IPv6 address, or CIDR notation|None|["10.2.144", "10.8.36.144"]| -|id|integer|None|True|The identifier of the site|None|1234| -|overwrite|boolean|True|True|Whether to overwrite the excluded targets to the current site or append to the previous list of excluded targets|None|True| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|name|string|None|False|Scan engine pool name by which to filter, accepts regular expression patterns|None|example name| + Example input: ``` { - "description": "example description", - "engine_id": 1234, - "id": 1234, - "importance": "low", - "name": "example name", - "scan_template_id": 1234 + "name": "example name" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|The identifier of the updated site| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|scan_engine_pools|[]scan_engine_pool|True|List of scan engine pool details|[]| + Example output: ``` { - "id": 332, - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/332/excluded_targets", - "rel": "self" - } - ] + "scan_engine_pools": [] } ``` -#### Update Site Included Asset Groups - -This action is used to update an existing site scope of included asset groups. +#### Get Scan Engines + +List scan engines paired with the security console ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|The identifier of the site|None|1234| -|included_asset_groups|[]integer|None|False|Assets associated with these asset group IDs will be included in the site|None|[1234, 567]| -|overwrite|boolean|True|True|Whether to overwrite the included asset group IDs to the current site or append to the previous list of asset group IDs|None|True| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|address|string|None|False|Optional address (IP/hostname) by which to filter, accepts regular expression patterns|None|10.4.36.120| +|name|string|None|False|Optional engine name by which to filter, accepts regular expression patterns|None|example name| + Example input: ``` { - "description": "example description", - "engine_id": 1234, - "id": 1234, - "importance": "low", - "name": "example name", - "scan_template_id": 1234 + "address": "10.4.36.120", + "name": "example name" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|The identifier of the updated site| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|scan_engines|[]scan_engine|True|List of scan engines details|[]| + Example output: ``` { - "id": 332, - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/332/included_asset_groups", - "rel": "self" - } - ] + "scan_engines": [] } ``` -#### Update Site Excluded Asset Groups - -This action is used to update an existing site scope of excluded asset groups. +#### Get Scans + +Get scans with optional site filter ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|excluded_asset_groups|[]integer|None|False|Assets associated with these asset group IDs will be excluded from the site|None|[1234, 567]| -|id|integer|None|True|The identifier of the site|None|1234| -|overwrite|boolean|True|True|Whether to overwrite the excluded asset group IDs to the current site or append to the previous list of asset group IDs|None|True| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|active|boolean|False|False|Return running scans or past scans|None|False| +|id|integer|None|False|Site ID|None|1234| + Example input: ``` { - "excluded_asset_groups": [ - 1234, - 567 - ], - "id": 1234, - "overwrite": true + "active": false, + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|The identifier of the updated site| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|scans|[]scan|True|List of scan details|[]| + Example output: ``` { - "id": 332, - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/332/excluded_asset_groups", - "rel": "self" - } - ] + "scans": [] } ``` -#### Delete Site - -This action is used to delete an existing site. +#### Get Site + +Get a site by ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | |id|integer|None|True|Site ID|None|1234| - + Example input: ``` @@ -2645,181 +1606,92 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|site|site|True|Site details|{}| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/322", - "rel": "self" - } - ] + "site": {} } ``` -#### Get Asset Groups - -This action is used to get a list of asset groups. +#### Get Site Assets + +Gets assets for a site ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|name|string||False|Asset group name regular expression by which to filter|None|example name| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|site_id|string|None|True|ID of the site to get assets for|None|11234abc-65c8-4628-adf4-e27f36ea0e2b| + Example input: ``` { - "id": 1234 + "site_id": "11234abc-65c8-4628-adf4-e27f36ea0e2b" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|asset_groups|[]asset_group|True|List of asset groups| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|assets|[]asset|False|Assets|[]| + Example output: ``` { - "asset_groups": [ - { - "assets": 5, - "description": "This is a test", - "id": 53, - "links": [ - { - "href": "https://insightvm:3780/api/3/asset_groups/53", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/asset_groups/53/tags", - "rel": "Asset Group Tags" - }, - { - "href": "https://insightvm:3780/api/3/asset_groups/53/assets", - "rel": "Asset Group Assets" - }, - { - "href": "https://insightvm:3780/api/3/asset_groups/53/users", - "rel": "Asset Group Users" - } - ], - "name": "Test Asset Group", - "riskScore": 1305499, - "searchCriteria": { - "match": "all", - "filters": [ - { - "field": "host-name", - "operator": "contains", - "value": "meta" - } - ] - }, - "type": "dynamic", - "vulnerabilities": { - "critical": 449, - "moderate": 150, - "severe": 1101, - "total": 1700 - } - } - ] + "assets": [] } ``` -#### Get Asset Group - -This action is used to get an asset group by ID. +#### Get Sites + +Get a list of sites ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Asset group ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|name|string||False|Site name regular expression by which to filter|None|example name| + Example input: ``` { - "id": 1234 + "name": "" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|asset_group|asset_group|True|Asset group| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|sites|[]site|True|List of sites|[]| + Example output: ``` { - "asset_group": { - "assets": 5, - "description": "This is a test", - "id": 53, - "links": [ - { - "href": "https://insightvm:3780/api/3/asset_groups/53", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/asset_groups/53/tags", - "rel": "Asset Group Tags" - }, - { - "href": "https://insightvm:3780/api/3/asset_groups/53/assets", - "rel": "Asset Group Assets" - }, - { - "href": "https://insightvm:3780/api/3/asset_groups/53/users", - "rel": "Asset Group Users" - } - ], - "name": "Test Asset Group", - "riskScore": 1305499, - "searchCriteria": { - "match": "all", - "filters": [ - { - "field": "host-name", - "operator": "contains", - "value": "meta" - } - ] - }, - "type": "dynamic", - "vulnerabilities": { - "critical": 449, - "moderate": 150, - "severe": 1101, - "total": 1700 - } - } + "sites": [] } ``` -#### Delete Asset Group - -This action is used to delete an existing asset group. +#### Get Tag + +Get tag details by tag ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Asset group ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Tag ID|None|1234| + Example input: ``` @@ -2830,72 +1702,60 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|tag|tag|True|Tag Details|{}| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/asset_groups/20", - "rel": "self" - } - ] + "tag": {} } ``` -#### Update Asset Group Search Criteria - -This action is used to update the search criteria for an existing asset group. +#### Get Tag Asset Groups + +Get asset groups associated with a tag ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Asset group ID|None|1234| -|searchCriteria|object|None|True|Asset group search criteria - options documentation: https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Tag ID for which to retrieve asset group associations|None|1234| + Example input: ``` { - "id": 1234, - "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}" + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|asset_group_ids|[]integer|True|Asset group IDs associated with the tag|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/tags/69/search_criteria", - "rel": "self" - } - ] + "asset_group_ids": [] } ``` -#### Get Sites - -This action is used to get a list of sites. +#### Get Tag Assets + +Get asset IDs associated with a tag ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|name|string||False|Site name regular expression by which to filter|None|example name| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Tag ID to add to site|None|1234| + Example input: ``` @@ -2906,116 +1766,28 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|sites|[]site|True|List of sites| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|assets|[]tag_asset|True|Asset IDs and tag association sources for the tag|[]| + Example output: ``` { - "sites": [ - { - "assets": 13, - "id": 37, - "importance": "normal", - "lastScanTime": "2016-03-26T19:17:30.806Z", - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/37", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/alerts", - "rel": "Alerts" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/scan_engine", - "rel": "Scan Engine" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/scan_schedules", - "rel": "Schedules" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/organization", - "rel": "Organization" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/tags", - "rel": "Tags" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/users", - "rel": "Users" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/scan_template", - "rel": "Template" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/site_credentials", - "rel": "Site Credentials" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/shared_credentials", - "rel": "Assigned Shared Credentials" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/web_authentication/html_forms", - "rel": "Web HTML Forms Authentication" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/web_authentication/http_headers", - "rel": "Web HTTP Headers Authentication" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/assets", - "rel": "Assets" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/included_targets", - "rel": "Included Targets" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/excluded_targets", - "rel": "Excluded Targets" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/included_asset_groups", - "rel": "Included Asset Groups" - }, - { - "href": "https://insightvm:3780/api/3/sites/37/excluded_asset_groups", - "rel": "Excluded Asset Groups" - } - ], - "name": "Toronto - Discovery", - "riskScore": 0, - "scanEngine": 2, - "scanTemplate": "aggressive-discovery", - "type": "static", - "vulnerabilities": { - "critical": 0, - "moderate": 0, - "severe": 0, - "total": 0 - } - } - ] + "assets": [] } ``` -#### Get Site - -This action is used to get a site by ID. +#### Get Tag Sites + +Get site IDs associated with a tag ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Site ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Tag ID for which to retrieve site associations|None|1234| + Example input: ``` @@ -3026,806 +1798,296 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|site|site|True|Site details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|site_ids|[]integer|True|Site IDs associated with the tag|[]| + Example output: ``` { - "site": { - "assets": 10, - "id": 39, - "importance": "normal", - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/39", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/alerts", - "rel": "Alerts" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/scan_engine", - "rel": "Scan Engine" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/scan_schedules", - "rel": "Schedules" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/organization", - "rel": "Organization" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/tags", - "rel": "Tags" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/users", - "rel": "Users" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/scan_template", - "rel": "Template" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/site_credentials", - "rel": "Site Credentials" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/shared_credentials", - "rel": "Assigned Shared Credentials" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/web_authentication/html_forms", - "rel": "Web HTML Forms Authentication" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/web_authentication/http_headers", - "rel": "Web HTTP Headers Authentication" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/assets", - "rel": "Assets" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/included_targets", - "rel": "Included Targets" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/excluded_targets", - "rel": "Excluded Targets" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/included_asset_groups", - "rel": "Included Asset Groups" - }, - { - "href": "https://insightvm:3780/api/3/sites/39/excluded_asset_groups", - "rel": "Excluded Asset Groups" - } - ], - "name": "Toronto - Discovery", - "riskScore": 0, - "scanEngine": 2, - "scanTemplate": "aggressive-discovery", - "type": "static", - "vulnerabilities": { - "critical": 0, - "moderate": 0, - "severe": 0, - "total": 0 - } - } + "site_ids": [] } ``` -#### Get Vulnerabilities by CVE - -This action is used to get vulnerability details associated with a CVE. +#### Get Tags + +Get a listing of all tags and return their details ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|cve_id|string|None|True|Common Vulnerabilities and Exposures ID|None|CVE-2018-12345| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|name|string||False|Tag name regular expression by which to filter|None|example name| +|type|string||False|Type of tag by which to filter, all types are returned if none is specified|['owner', 'location', 'custom', 'criticality', '']|owner| + Example input: ``` { - "cve_id": "CVE-2018-12345" + "name": "", + "type": "" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|vulnerabilities|[]vulnerability|True|Vulnerability details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|tags|[]tag|True|List of tags|[]| + Example output: ``` { - "vulnerabilities": [ - { - "added": "2008-10-23", - "categories": [ - "IAVM", - "Microsoft", - "Microsoft Patch", - "Microsoft Windows", - "RPC", - "Remote Execution" - ], - "cves": [ - "CVE-2008-4250" - ], - "cvss": { - "links": [ - { - "href": "https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator?vector=(AV:N/AC:L/Au:N/C:C/I:C/A:C)", - "rel": "CVSS v2 Calculator" - } - ], - "v2": { - "accessComplexity": "L", - "accessVector": "N", - "authentication": "N", - "availabilityImpact": "C", - "confidentialityImpact": "C", - "exploitScore": 9.9968, - "impactScore": 10.0008, - "integrityImpact": "C", - "score": 10, - "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C" - } - }, - "denialOfService": false, - "description": { - "html": "

This security update resolves a privately reported vulnerability in the Server service. The vulnerability could allow remote code execution if an affected system received a specially crafted RPC request. It is possible that an attacker could exploit this vulnerability without authentication to run arbitrary code. It is possible that this vulnerability could be used in the crafting of a wormable exploit. Firewall best practices and standard default firewall configurations can help protect network resources from attacks that originate outside the enterprise perimeter.

", - "text": "This security update resolves a privately reported vulnerability in the Server service. The vulnerability could allow remote code execution if an affected system received a specially crafted RPC request. It is possible that an attacker could exploit this vulnerability without authentication to run arbitrary code. It is possible that this vulnerability could be used in the crafting of a wormable exploit. Firewall best practices and standard default firewall configurations can help protect network resources from attacks that originate outside the enterprise perimeter." - }, - "exploits": 6, - "id": "windows-hotfix-ms08-067", - "links": [ - { - "href": "https://insightvm:3780/api/3/vulnerabilities/windows-hotfix-ms08-067", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/windows-hotfix-ms08-067/checks", - "rel": "Vulnerability Checks" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/windows-hotfix-ms08-067/references", - "rel": "Vulnerability References" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/windows-hotfix-ms08-067/malware_kits", - "rel": "Vulnerability Malware Kits" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/windows-hotfix-ms08-067/exploits", - "rel": "Vulnerability Exploits" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/windows-hotfix-ms08-067/solutions", - "rel": "Vulnerability Solutions" - } - ], - "malwareKits": 0, - "modified": "2018-03-21", - "pci": { - "adjustedCVSSScore": 10, - "adjustedSeverityScore": 5, - "fail": true, - "status": "Fail" - }, - "published": "2008-10-23", - "riskScore": 902.24, - "severity": "Critical", - "severityScore": 10, - "title": "MS08-067: Vulnerability in Server Service Could Allow Remote Code Execution (958644)" - } - ] + "tags": [] } ``` -#### Get Scan Assets - -This action gets assets for a scan. +#### Get User + +Get user account details by ID ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|scan_id|integer|None|True|ID of the scan to get assets for|None|123456789| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|User account ID|None|1234| + Example input: ``` { - "scan_id": "11234abc-65c8-4628-adf4-e27f36ea0e2b" + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|assets|[]asset|False|Assets| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|user|user_account|True|User account details|{}| + Example output: ``` { - "assets": [ - { - "addresses": [ - { - "ip": "10.0.0.1" - } - ], - "assessedForPolicies": false, - "assessedForVulnerabilities": true, - "history": [ - { - "date": "2019-04-17T00:27:42.255Z", - "scanId": 1235, - "type": "SCAN", - "version": 1 - }, - { - "date": "2019-06-17T17:05:26.236Z", - "scanId": 2160, - "type": "SCAN", - "version": 2 - }, - { - "date": "2019-06-17T18:23:42.565Z", - "scanId": 2161, - "type": "SCAN", - "version": 3 - }, - { - "date": "2019-06-17T18:31:13.270Z", - "scanId": 2162, - "type": "SCAN", - "version": 4 - } - ], - "hostName": "hostname.us-east-2.compute.amazonaws.com", - "hostNames": [ - { - "name": "hostname.us-east-2.compute.amazonaws.com", - "source": "dns" - } - ], - "id": 148, - "ip": "10.0.0.1", - "links": [ - { - "href": "https://insightvm:3780/api/3/assets/148", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/assets/148/software", - "rel": "Software" - }, - { - "href": "https://insightvm:3780/api/3/assets/148/files", - "rel": "Files" - }, - { - "href": "https://insightvm:3780/api/3/assets/148/users", - "rel": "Users" - }, - { - "href": "https://insightvm:3780/api/3/assets/148/user_groups", - "rel": "User Groups" - }, - { - "href": "https://insightvm:3780/api/3/assets/148/databases", - "rel": "Databases" - }, - { - "href": "https://insightvm:3780/api/3/assets/148/services", - "rel": "Services" - }, - { - "href": "https://insightvm:3780/api/3/assets/148/tags", - "rel": "Tags" - } - ], - "rawRiskScore": 0, - "riskScore": 0, - "vulnerabilities": { - "critical": 0, - "exploits": 0, - "malwareKits": 0, - "moderate": 0, - "severe": 0, - "total": 0 - } - } - ] + "user": {} } ``` -#### Get Scans - -This action is used to get scans with optional site filter. +#### Get Users + +List user accounts ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|active|boolean|False|False|Return running scans or past scans|None|False| -|id|integer|None|False|Site ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|login|string|None|False|User account login name by which to filter, accepts regular expression patterns|None|account| +|name|string|None|False|User account name by which to filter, accepts regular expression patterns|None|example name| + Example input: ``` { - "scan_id": "11234abc-65c8-4628-adf4-e27f36ea0e2b" + "login": "account", + "name": "example name" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|scans|[]scan|True|List of scan details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|users|[]user_account|True|List of user account details|[]| + Example output: ``` { - "scans": [ - { - "assets": 2, - "duration": "PT2M24.049S", - "endTime": "2018-10-28T16:03:24.173Z", - "engineId": 2, - "engineName": "Local scan engine", - "id": 189739, - "links": [ - { - "href": "https://insightvm:3780/api/3/scans/189739", - "rel": "self" - }, - { - "id": 2, - "href": "https://insightvm:3780/api/3/scan_engines/2", - "rel": "Scan Engine" - } - ], - "scanName": "Sun 28 Oct 2018 09:01 AM", - "scanType": "Scheduled", - "startTime": "2018-10-28T16:01:00.124Z", - "status": "finished", - "vulnerabilities": { - "critical": 0, - "moderate": 0, - "severe": 0, - "total": 0 - }, - "siteId": 41, - "siteName": "AWS" - } - ] + "users": [] } ``` -#### Update Scan Status - -This action is used to update the status of a scan (pause, resume, stop). +#### Get Vulnerabilities by CVE + +Get vulnerability details associated with a CVE ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Scan ID|None|1234| -|status|string|stop|True|Status to which the scan should be set (stop, resume, pause)|['stop', 'resume', 'pause']|stop| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|cve_id|string|None|True|Common Vulnerabilities and Exposures ID|None|CVE-2018-12345| + Example input: ``` { - "id": 1234, - "status": "stop" + "cve_id": "CVE-2018-12345" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|vulnerabilities|[]vulnerability|True|Vulnerability details|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/scans/1026/stop", - "rel": "self" - } - ] + "vulnerabilities": [] } ``` -#### Generate Shared Secret - -This action is used to generate a shared secret for use with pairing a scan engine using the engine -> console communication direction. +#### Get Vulnerability Details + +Get the details of a specific vulnerability by id ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|time_to_live|integer|3600|True|Time to live in seconds for the shared secret|None|3600| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|string|None|True|The identifier of the vulnerability to retrieve from InsightVM|None|1234-abcd| + Example input: ``` { - "time_to_live": 3600 + "id": "1234-abcd" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|shared_secret|string|True|Scan engine pairing shared secret| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|vulnerability|vulnerability|True|The details of the vulnerability requested|{}| + Example output: ``` { - "shared_secret": "99DB-B9F0-CD8B-5997-06BF-607B-BA21-0A81" + "vulnerability": {} } ``` -#### Get Scan Engines - -This action is used to list scan engines paired with the security console. +#### Get Vulnerability Affected Assets + +Get the assets affected by the vulnerability ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|address|string|None|False|Optional address (IP/hostname) by which to filter, accepts regular expression patterns|None|10.4.36.120| -|name|string|None|False|Optional engine name by which to filter, accepts regular expression patterns|None|example name| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|vulnerability_id|string|None|True|The identifier of the vulnerability|None|jre-vuln-cve-2013-2471| + Example input: ``` { - "address": "10.4.36.120", - "name": "example name" + "vulnerability_id": "jre-vuln-cve-2013-2471" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|scan_engines|[]scan_engine|True|List of scan engines details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| +|resources|[]integer|True|The identifiers of the associated resources|[]| + Example output: ``` { - "scan_engines": [ - { - "address": "10.0.0.24", - "contentVersion": "1327036290 (2018-10-24)", - "id": 4, - "lastRefreshedDate": "2018-10-29T14:43:31.201Z", - "lastUpdatedDate": "2018-10-24T15:10:10.291Z", - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/4", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/4/sites", - "rel": "Sites" - }, - { - "id": 4, - "href": "https://insightvm:3780/api/3/scan_engines/4/scan_engine_pools", - "rel": "Associated Engine Pools" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/4/scans", - "rel": "Scans" - } - ], - "name": "AWS", - "port": 40814, - "productVersion": "2445745114 (2018-10-22)", - "sites": [ - 193, - 194, - 195, - 196, - 197, - 198, - 199 - ], - "enginePools": [ - 6 - ] - }, - { - "address": "10.0.0.23", - "contentVersion": "1327036290 (2018-10-24)", - "id": 5, - "lastRefreshedDate": "2018-10-29T14:43:33.036Z", - "lastUpdatedDate": "2018-10-24T15:10:10.291Z", - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/5", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/5/sites", - "rel": "Sites" - }, - { - "id": 5, - "href": "https://insightvm:3780/api/3/scan_engines/5/scan_engine_pools", - "rel": "Associated Engine Pools" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/5/scans", - "rel": "Scans" - } - ], - "name": "Azure", - "port": 40814, - "productVersion": "2445745114 (2018-10-22)", - "sites": [ - 207 - ], - "enginePools": [ - 6 - ] - }, - { - "address": "test", - "id": 6, - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/6", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/6/sites", - "rel": "Sites" - }, - { - "id": 6, - "href": "https://insightvm:3780/api/3/scan_engines/6/scan_engine_pools", - "rel": "Associated Engine Pools" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/6/scans", - "rel": "Scans" - } - ], - "name": "test", - "port": -1, - "enginePools": [] - }, - { - "address": "nse.extranet.rapid7.com", - "id": 1, - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/1", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/1/sites", - "rel": "Sites" - }, - { - "id": 1, - "href": "https://insightvm:3780/api/3/scan_engines/1/scan_engine_pools", - "rel": "Associated Engine Pools" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/1/scans", - "rel": "Scans" - } - ], - "name": "Rapid7 Hosted Scan Engine", - "port": 40814, - "sites": [ - 5 - ], - "enginePools": [] - }, - { - "address": "127.0.0.1", - "contentVersion": "801603722 (2018-07-11)", - "id": 3, - "lastUpdatedDate": "2018-07-11T09:13:04.639Z", - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/3", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/3/sites", - "rel": "Sites" - }, - { - "id": 3, - "href": "https://insightvm:3780/api/3/scan_engines/3/scan_engine_pools", - "rel": "Associated Engine Pools" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/3/scans", - "rel": "Scans" - } - ], - "name": "Local scan engine", - "port": 40814, - "productVersion": "1267385905 (2018-07-11)", - "sites": [ - 256, - 1, - 257, - 258, - 259, - 260 - ], - "enginePools": [] - } - ] + "links": [], + "resources": [] } ``` -#### Get Scan Engine - -This action is used to get a scan engine by ID. +#### List Inactive Assets + +Returns a list of inactive assets (limit 1000) determined by how many days ago they were scanned ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Scan engine identifier|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|days_ago|integer|14|True|How many days ago should an asset be considered still active|None|14| +|size|number|500|False|The number of assets to retrieve. If blank then 500 inactive assets will be returned, the maximum limit is 1000 assets|None|100| + Example input: ``` { - "scan_id": "11234abc-65c8-4628-adf4-e27f36ea0e2b" + "days_ago": 14, + "size": 500 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|scan_engine|scan_engine|True|Scan engine details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|assets|[]asset|True|A list of inactive assets|[]| + Example output: ``` { - "scan_engine": { - "address": "10.0.0.26", - "contentVersion": "1327036290 (2018-10-24)", - "id": 4, - "lastRefreshedDate": "2018-10-29T14:05:15.268Z", - "lastUpdatedDate": "2018-10-24T15:10:10.291Z", - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/4", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/4/sites", - "rel": "Sites" - }, - { - "id": 4, - "href": "https://insightvm:3780/api/3/scan_engines/4/scan_engine_pools", - "rel": "Associated Engine Pools" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/4/scans", - "rel": "Scans" - } - ], - "name": "master-vm-engine-1", - "port": 40814, - "productVersion": "2445745114 (2018-10-21)", - "sites": [ - 1, - 2 - ], - "enginePools": [ - 5 - ] - } + "assets": [] } ``` -#### Create Scan Engine - -This action is used to create a new scan engine with console -> engine connectivity. +#### List Reports + +List reports and return their identifiers ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|address|string|None|True|Scan engine address (IP/hostname)|None|10.4.36.120| -|name|string|None|True|Scan engine name|None|example name| -|port|integer|40814|True|Scan engine connectivity port|None|40814| -|sites|[]integer|[]|False|List of site IDs with which to associate the engine|None|[1234, 5678]| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|name|string|None|False|Name of report, otherwise all reports by criteria|None|Name| +|sort|string|None|True|Sort order, ascending or descending|['Ascending', 'Descending']|Ascending| + Example input: ``` { - "address": "10.4.36.120", - "name": "example name", - "port": 40814, - "sites": [ - 1234, - 5678 - ] + "name": "Name", + "sort": "Ascending" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|Scan engine ID| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|found|boolean|False|Whether optional user supplied report name was found|False| +|list|[]report_id|False|List of report identifiers|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines", - "rel": "self" - }, - { - "id": 12, - "href": "https://insightvm:3780/api/3/scan_engines/12", - "rel": "Scan Engine" - } - ], - "id": 12 + "found": false, + "list": [] } ``` -#### Delete Scan Engine - -This action is used to delete an existing scan engine from the security console. +#### Remove Asset Group Tags + +Remove all tags from an asset group ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Scan engine identifier|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Asset group ID from which to remove all tags|None|1234| + Example input: ``` @@ -3836,292 +2098,160 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - -Example output: - -``` -{ - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/12", - "rel": "self" - } - ] -} -``` - -#### Get Scan Engine Pools - -This action is used to retrieve a list of configured scan engine pools. - -##### Input - -|Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|name|string|None|False|Scan engine pool name by which to filter, accepts regular expression patterns|None|example name| - -Example input: - -``` -{ - "scan_id": "11234abc-65c8-4628-adf4-e27f36ea0e2b" -} -``` - -##### Output - -|Name|Type|Required|Description| -|----|----|--------|-----------| -|scan_engine_pools|[]scan_engine_pool|True|List of scan engine pool details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "scan_engine_pools": [ - { - "engines": [ - 5, - 4 - ], - "id": 6, - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/6", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/6/sites", - "rel": "Sites" - }, - { - "id": 6, - "href": "https://insightvm:3780/api/3/scan_engine_pools/6/engines", - "rel": "Engine Pool Engines" - } - ], - "name": "test" - }, - { - "id": 2, - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/2", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/2/sites", - "rel": "Sites" - }, - { - "id": 2, - "href": "https://insightvm:3780/api/3/scan_engine_pools/2/engines", - "rel": "Engine Pool Engines" - } - ], - "name": "Default Engine Pool", - "engines": [] - } - ] + "links": [] } ``` -#### Get Scan Engine Pool - -This action is used to retrieve scan engine pool details by ID. +#### Remove Asset Tag + +Remove a tag from an asset ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Scan engine pool identifier|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_id|integer|None|True|Asset ID from which to remove the tag|None|12345| +|tag_id|integer|None|True|Tag ID to remove from the asset|None|1234| + Example input: ``` { - "scan_id": "11234abc-65c8-4628-adf4-e27f36ea0e2b" + "asset_id": 12345, + "tag_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|scan_engine_pool|scan_engine_pool|True|Scan engine pool details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "scan_engine_pool": { - "engines": [ - 5, - 4 - ], - "id": 6, - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engines/6", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/scan_engines/6/sites", - "rel": "Sites" - }, - { - "id": 6, - "href": "https://insightvm:3780/api/3/scan_engine_pools/6/engines", - "rel": "Engine Pool Engines" - } - ], - "name": "test" - } + "links": [] } ``` -#### Create Scan Engine Pool - -This action is used to create a new scan engine pool. NOTE: If you are using output from a prior step to configure -the engines assigned to the pool and that output is NOT an array, you will need to use a separate plugin -(e.g Python script) to convert the data to an array. +#### Remove Scan Engine Pool Engine + +Remove a scan engine from a scan engine pool ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|engines|[]integer|None|False|List of scan engine IDs to associate with the scan engine pool|None|[1234, 5678]| -|name|string|None|True|Scan engine pool name|None|example name| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|engine_id|integer|None|True|Scan engine ID|None|5678| +|pool_id|integer|None|True|Scan engine pool ID|None|1234| + Example input: ``` { - "engines": [ - 1234, - 5678 - ], - "name": "example name" + "engine_id": 5678, + "pool_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|Scan engine pool ID| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engine_pools", - "rel": "self" - }, - { - "id": 13, - "href": "https://insightvm:3780/api/3/scan_engine_pools/13", - "rel": "Scan Engine Pool" - } - ], - "id": 13 + "links": [] } ``` -#### Add Scan Engine Pool Engine - -This action is used to add a scan engine to a scan engine pool (AWS pre-authorized engine AMI engines cannot be pooled). +#### Remove Tag Asset Groups + +Remove all asset group associations from a tag ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|engine_id|integer|None|True|Scan engine ID|None|1234567| -|pool_id|integer|None|True|Scan engine pool ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Tag ID from which to remove all asset group associations|None|1234| + Example input: ``` { - "engine_id": 1234567, - "pool_id": 1234 + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engine_pools/6/engines/5", - "rel": "self" - } - ] + "links": [] } ``` -#### Remove Scan Engine Pool Engine - -This action is used to remove a scan engine from a scan engine pool. +#### Remove Tag Search Criteria + +Remove all search criteria from a tag ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|engine_id|integer|None|True|Scan engine ID|None|5678| -|pool_id|integer|None|True|Scan engine pool ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Tag ID from which to remove all search criteria|None|1234| + Example input: ``` { - "engine_id": 5678, - "pool_id": 1234 + "id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engine_pools/6/engines/5", - "rel": "self" - } - ] + "links": [] } ``` -#### Delete Scan Engine Pool - -This action is used to delete an existing scan engine pool from the security console. +#### Remove Tag Sites + +Remove all site associations from a tag ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Scan engine pool identifier|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Tag ID from which to remove all site associations|None|1234| + Example input: ``` @@ -4132,1439 +2262,942 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/scan_engine_pools/13", - "rel": "self" - } - ] + "links": [] } ``` -#### Update Site Scan Engine - -This action is used to update the scan engine/scan engine pool associated with a site. +#### Remove User Asset Group Access + +Remove asset group access from an user account ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|engine_id|integer|None|True|Identifier of the scan engine/scan engine pool to associate with the site|None|5678| -|site_id|integer|None|True|Identifier of the site to update|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_group_id|integer|None|True|The identifier of the asset group|None|4567| +|user_id|integer|None|True|The identifier of the user account|None|1234| + Example input: ``` { - "description": "example description", - "engine_id": 1234, - "id": 1234, - "importance": "low", - "name": "example name", - "scan_template_id": 1234 + "asset_group_id": 4567, + "user_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/sites/272/scan_engine", - "rel": "self" - } - ] + "links": [] } ``` -#### Create Vulnerability Exception Submission - -This action is used to create a vulnerability exception submission. +#### Remove User Site Access + +Remove site access from an user account ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|comment|string|Exception created with InsightConnect|True|Comment to include in the vulnerability exception submission|None|example comment| -|expiration|date|None|False|The date the vulnerability exception expires|None|2021-12-30 00:00:00| -|key|string|None|False|The key to identify a specific instance if the type is Instance|None|9de5069c5afe602b2ea0a04b66beb2c0| -|port|integer|None|False|The port the vulnerability appears on if the type is Instance|None|40000| -|reason|string|None|True|Reason for the exception|['False Positive', 'Compensating Control', 'Acceptable Use', 'Acceptable Risk', 'Other']|False Positive| -|scope|integer|None|False|The ID of the scope the vulnerability exception applies to. May be empty if type is Global|None|1234| -|type|string|None|True|The type of vulnerability exception to create|['Global', 'Site', 'Asset', 'Asset Group', 'Instance']|Global| -|vulnerability|string|None|True|The vulnerability this exception applies to|None|vulnerability| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|site_id|integer|None|True|The identifier of the site|None|4567| +|user_id|integer|None|True|The identifier of the user account|None|1234| + Example input: ``` { - "comment": "example comment", - "expiration": "2021-12-30 00:00:00", - "key": "9de5069c5afe602b2ea0a04b66beb2c0", - "port": 40000, - "reason": "False Positive", - "scope": 1234, - "type": "Global", - "vulnerability": "vulnerability" + "site_id": 4567, + "user_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|The vulnerability exception that was created| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "id": 35, - "links": [ - { - "href": "https://insightvm:3780/api/3/vulnerability_exceptions", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/vulnerability_exceptions/35", - "id": 35, - "rel": "Vulenrability Exception" - } - ] + "links": [] } ``` -#### Delete Vulnerability Exception - -This action is used to delete an existing vulnerability exception. +#### Review Vulnerability Exception + +Approve or Reject a Vulnerability Exception ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|exception_id|integer|None|True|Vulnerability exception ID to delete|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|comment|string|None|False|Comment to include in the review|None|example comment| +|exception|integer|None|True|The vulnerability exception ID to approve or reject|None|1234| +|review|string|None|True|Approval or rejection of the exception|['Approved', 'Rejected']|Approved| + Example input: ``` { - "exception_id": 1234 + "comment": "example comment", + "exception": 1234, + "review": "Approved" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/vulnerability_exceptions/32", - "rel": "self" - } - ] + "links": [] } ``` -#### Get Vulnerability Details - -This action is used to get the details of a specific vulnerability by ID. +#### Scan + +Start a scan on a site ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|string|None|True|The identifier of the vulnerability to retrieve from InsightVM|None|1234-abcd| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|hosts|[]string|None|False|The hosts that should be included in the scan|None|["192.0.2.3", "192.0.2.10-192.0.2.20", "ADSRV.local"]| +|override_blackout|boolean|False|False|Set True to override any scan blackout window|None|False| +|site_id|string|None|True|ID of the site to scan|None|1| + Example input: ``` { - "id": "1234-abcd" + "hosts": "192.0.2.3", + "override_blackout": false, + "site_id": 1 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|vulnerability|vulnerability|True|The details of the vulnerability requested| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|False|Identifier of the resource created|188935| +|links|[]link|False|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "vulnerability": { - "added": "2012-02-06", - "categories": [ - "Apple", - "Apple iTunes", - "Obsolete Software" - ], - "cvss": { - "links": [ - { - "href": "https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator?vector=(AV:N/AC:L/Au:N/C:C/I:C/A:C)", - "rel": "CVSS v2 Calculator" - } - ], - "v2": { - "accessComplexity": "L", - "accessVector": "N", - "authentication": "N", - "availabilityImpact": "C", - "confidentialityImpact": "C", - "exploitScore": 9.9968, - "impactScore": 10.0008, - "integrityImpact": "C", - "score": 10, - "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C" - } - }, - "denialOfService": false, - "description": { - "html": "\u003cp\u003e\n Apple only maintains one major version of iTunes. Versions prior to\n this are not supported. Unsupported versions of iTunes may contain\n unpatched security flaws. It is recommended to upgrade to the latest\n version.\n \u003c/p\u003e", - "text": "Apple only maintains one major version of iTunes. Versions prior to this are not supported. Unsupported versions of iTunes may contain unpatched security flaws. It is recommended to upgrade to the latest version." - }, - "exploits": 0, - "id": "apple-itunes-obsolete", - "links": [ - { - "href": "https://insightvm:3780/api/3/vulnerabilities/apple-itunes-obsolete", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/apple-itunes-obsolete/checks", - "rel": "Vulnerability Checks" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/apple-itunes-obsolete/references", - "rel": "Vulnerability References" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/apple-itunes-obsolete/malware_kits", - "rel": "Vulnerability Malware Kits" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/apple-itunes-obsolete/exploits", - "rel": "Vulnerability Exploits" - }, - { - "href": "https://insightvm:3780/api/3/vulnerabilities/apple-itunes-obsolete/solutions", - "rel": "Vulnerability Solutions" - } - ], - "malwareKits": 0, - "modified": "2013-05-03", - "pci": { - "adjustedCVSSScore": 10, - "adjustedSeverityScore": 5, - "fail": true, - "status": "Fail" - }, - "published": "2001-01-09", - "riskScore": 911.25, - "severity": "Critical", - "severityScore": 10, - "title": "Obsolete version of Apple iTunes" - } + "id": 188935, + "links": [] } ``` -#### Review Vulnerability Exception - -This action is used to approve or reject a vulnerability exception. +#### Tag Asset + +Add a tag to an asset ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|comment|string|None|False|Comment to include in the review|None|example comment| -|exception|integer|None|True|The vulnerability exception ID to approve or reject|None|1234| -|review|string|None|True|Approval or rejection of the exception|['Approved', 'Rejected']|Approved| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_id|integer|None|True|Asset ID to tag|None|12345| +|tag_id|integer|None|True|Tag ID to add to site|None|1234| + Example input: ``` { - "comment": "example comment", - "exception": 1234, - "review": "Approved" + "asset_id": 12345, + "tag_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/vulnerability_exceptions/35/approve", - "rel": "self" - } - ] + "links": [] } ``` -#### Get Authentication Sources - -This action is used to list authentication sources available for InsightVM users. +#### Tag Asset Group + +Add a tag to an asset group ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|name|string|None|False|Authentication source name by which to filter, accepts regular expression patterns|None|example name| -|type|string||False|Authentication source type by which to filter|['', 'admin', 'kerberos', 'ldap', 'normal', 'saml']|admin| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_group_id|integer|None|True|Asset group ID to tag|None|12345| +|tag_id|integer|None|True|Tag ID to add to site|None|1234| + Example input: ``` { - "name": "example name", - "type": "admin" + "asset_group_id": 12345, + "tag_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|authentication_sources|[]authentication_source|True|List of authentication sources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "authentication_sources": [ - { - "external": true, - "id": 5, - "links": [ - { - "href": "https://insightvm:3780/api/3/authentication_sources/5", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/authentication_sources/5/users", - "rel": "Authentication Source Users" - } - ], - "name": "OpenLDAP", - "type": "ldap" - } - ] + "links": [] } ``` -#### Get Authentication Source - -This action is used to get the details for an authentication source. +#### Tag Assets + +Add a tag to multiple assets in bulk ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|Authentication source ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_ids|[]integer|None|True|Asset IDs to tag|None|[1, 2, 3, 4]| +|tag_id|integer|None|True|ID of tag to add to assets|None|12345| +|tag_name|string|None|True|Name of tag to add to assets|None|Very High| +|tag_source|string|None|True|Source of tag to add to assets|None|built-in| +|tag_type|string|None|True|Type of tag to add to assets|None|criticality| + Example input: ``` { - "id": 1234 + "asset_ids": 1, + "tag_id": 12345, + "tag_name": "Very High", + "tag_source": "built-in", + "tag_type": "criticality" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|authentication_source|authentication_source|True|User authentication source| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|success|boolean|True|Was the operation successful|True| + Example output: ``` { - "authentication_source": { - "external": false, - "id": 1, - "links": [ - { - "href": "https://insightvm:3780/api/3/authentication_sources/1", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/authentication_sources/1/users", - "rel": "Authentication Source Users" - } - ], - "name": "Builtin Administrators", - "type": "admin" - } + "success": true } ``` -#### Get Roles - -This action is used to list role details. +#### Tag Site + +Add a tag to a site ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|name|string|None|False|Role name by which to filter, accepts regular expression patterns|None|example name| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|site_id|integer|None|True|Site ID to tag|None|12345| +|tag_id|integer|None|True|Tag ID to add to site|None|1234| + Example input: ``` { - "name": "example name" + "site_id": 12345, + "tag_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|roles|[]role|True|List of roles| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "roles": [ - { - "description": "Custom defined role.", - "id": "custom", - "links": [ - { - "href": "https://insightvm:3780/api/3/roles/custom", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/roles/custom/users", - "rel": "Users" - } - ], - "name": "Custom", - "privileges": [] - }, - { - "description": "site-admin-custom", - "id": "Site Admin Custom", - "links": [ - { - "href": "https://insightvm:3780/api/3/roles/Site%20Admin%20Custom", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/roles/Site%20Admin%20Custom/users", - "rel": "Users" - } - ], - "name": "Site Admin Custom", - "privileges": [ - "approve-vulnerability-exceptions", - "assign-scan-engine", - "assign-scan-template", - "assign-ticket-assignee", - "close-tickets", - "configure-global-settings", - "create-reports", - "create-tickets", - "delete-vulnerability-exceptions", - "manage-asset-group-access", - "manage-asset-group-assets", - "manage-dynamic-asset-groups", - "manage-policies", - "manage-report-access", - "manage-report-templates", - "manage-scan-alerts", - "manage-scan-engines", - "manage-scan-templates", - "manage-site-access", - "manage-site-credentials", - "manage-sites", - "manage-static-asset-groups", - "manage-tags", - "purge-site-asset-data", - "schedule-automatic-scans", - "specify-scan-targets", - "specify-site-metadata", - "start-unscheduled-scans", - "submit-vulnerability-exceptions", - "use-restricted-report-sections", - "view-asset-group-asset-data", - "view-site-asset-data" - ] - } - ] + "links": [] } ``` -#### Get Role - -This action is used to get role details by ID. +#### Top Remediations + +Generate results for the top remediations based on a defined scope ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|string|None|True|Role ID|None|global-admin| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_limit|integer|None|False|The amount of assets to be returned with each top remediation; this can be used to reduce message size and processing time|None|4| +|limit|integer|25|True|Number of remediations for which tickets should be generated|[10, 25, 50, 100]|10| +|scope|string|none|True|Scope context for generated report; if set remediations will be scoped by each in scope ID|['none', 'assets', 'assetGroups', 'sites', 'tags', 'scan']|none| +|scope_ids|[]integer|[]|False|Scope IDs for which tickets should be generated, by default all are included|None|[1234, 45]| +|vulnerability_limit|integer|None|False|The amount of vulnerabilities to be returned with each top remediation; this can be used to reduce message size and processing time|None|2| + Example input: ``` { - "id": "global-admin" + "asset_limit": 4, + "limit": 25, + "scope": "none", + "scope_ids": [], + "vulnerability_limit": 2 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|role|role|True|Role details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|remediations|[]remediation|True|List of top remediations|[]| + Example output: ``` { - "role": { - "description": "Manage configuration, maintenance, and diagnostic operations for the Security Console. Manage site, scan, and report operations, manage shared scan credentials, create tickets, and view asset data in accessible sites and asset groups. Manage vConnections.", - "id": "global-admin", - "links": [ - { - "href": "https://insightvm:3780/api/3/roles/global-admin", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/roles/global-admin/users", - "rel": "Users" - } - ], - "name": "Global Administrator", - "privileges": [ - "all-permissions", - "approve-vulnerability-exceptions", - "assign-scan-engine", - "assign-scan-template", - "assign-ticket-assignee", - "close-tickets", - "configure-global-settings", - "create-reports", - "create-tickets", - "delete-vulnerability-exceptions", - "manage-asset-group-access", - "manage-asset-group-assets", - "manage-dynamic-asset-groups", - "manage-policies", - "manage-report-access", - "manage-report-templates", - "manage-scan-alerts", - "manage-scan-engines", - "manage-scan-templates", - "manage-site-access", - "manage-site-credentials", - "manage-sites", - "manage-static-asset-groups", - "manage-tags", - "purge-site-asset-data", - "schedule-automatic-scans", - "specify-scan-targets", - "specify-site-metadata", - "start-unscheduled-scans", - "submit-vulnerability-exceptions", - "use-restricted-report-sections", - "view-asset-group-asset-data", - "view-site-asset-data" - ] - } + "remediations": [] } ``` -#### Get Users - -This action is used to list user accounts. +#### Update Asset Group Search Criteria + +Update the search criteria for an existing asset group ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|login|string|None|False|User account login name by which to filter, accepts regular expression patterns|None|account| -|name|string|None|False|User account name by which to filter, accepts regular expression patterns|None|example name| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Asset group ID|None|1234| +|searchCriteria|object|None|True|Asset group search criteria - options documentation: https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| + Example input: ``` { - "login": "account", - "name": "example name" + "id": 1234, + "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|users|[]user_account|True|List of user account details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "users": [ - { - "authentication": { - "external": false, - "id": 1, - "links": [ - { - "href": "https://insightvm:3780/api/3/authentication_sources/1", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/authentication_sources/1/users", - "rel": "Authentication Source Users" - } - ], - "name": "Builtin Administrators", - "type": "admin" - }, - "email": "user@example.com", - "enabled": true, - "id": 1, - "links": [ - { - "href": "https://insightvm:3780/api/3/users/1", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/authentication_sources/1", - "rel": "Authentication Source" - }, - { - "href": "https://insightvm:3780/api/3/users/1/asset_groups", - "rel": "Asset Groups" - }, - { - "href": "https://insightvm:3780/api/3/users/1/sites", - "rel": "Sites" - }, - { - "href": "https://insightvm:3780/api/3/users/1/privileges", - "rel": "Privileges" - }, - { - "href": "https://insightvm:3780/api/3/roles/global-admin", - "rel": "Role" - } - ], - "locale": { - "default": "en-US", - "reports": "en-US" - }, - "locked": false, - "login": "blaah", - "name": "blaah", - "role": { - "allAssetGroups": true, - "allSites": true, - "id": "global-admin", - "name": "Global Administrator", - "privileges": [ - "all-permissions", - "approve-vulnerability-exceptions", - "assign-scan-engine", - "assign-scan-template", - "assign-ticket-assignee", - "close-tickets", - "configure-global-settings", - "create-reports", - "create-tickets", - "delete-vulnerability-exceptions", - "manage-asset-group-access", - "manage-asset-group-assets", - "manage-dynamic-asset-groups", - "manage-policies", - "manage-report-access", - "manage-report-templates", - "manage-scan-alerts", - "manage-scan-engines", - "manage-scan-templates", - "manage-site-access", - "manage-site-credentials", - "manage-sites", - "manage-static-asset-groups", - "manage-tags", - "purge-site-asset-data", - "schedule-automatic-scans", - "specify-scan-targets", - "specify-site-metadata", - "start-unscheduled-scans", - "submit-vulnerability-exceptions", - "use-restricted-report-sections", - "view-asset-group-asset-data", - "view-site-asset-data" - ], - "superuser": true - } - } - ] + "links": [] } ``` -#### Get User - -This action is used to get user account details by ID. +#### Update Scan Status + +Update the status of a scan ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|User account ID|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Scan ID|None|1234| +|status|string|stop|True|Status to which the scan should be set (stop, resume, pause)|['stop', 'resume', 'pause']|stop| + Example input: ``` { - "id": 1234 + "id": 1234, + "status": "stop" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|user|user_account|True|User account details| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "user": { - "authentication": { - "external": false, - "id": 1, - "links": [ - { - "href": "https://insightvm:3780/api/3/authentication_sources/1", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/authentication_sources/1/users", - "rel": "Authentication Source Users" - } - ], - "name": "Builtin Administrators", - "type": "admin" - }, - "email": "user@example.com", - "enabled": true, - "id": 1, - "links": [ - { - "href": "https://insightvm:3780/api/3/users/1", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/authentication_sources/1", - "rel": "Authentication Source" - }, - { - "href": "https://insightvm:3780/api/3/users/1/asset_groups", - "rel": "Asset Groups" - }, - { - "href": "https://insightvm:3780/api/3/users/1/sites", - "rel": "Sites" - }, - { - "href": "https://insightvm:3780/api/3/users/1/privileges", - "rel": "Privileges" - }, - { - "href": "https://insightvm:3780/api/3/roles/global-admin", - "rel": "Role" - } - ], - "locale": { - "default": "en-US", - "reports": "en-US" - }, - "locked": false, - "login": "blaah", - "name": "blaah", - "role": { - "allAssetGroups": true, - "allSites": true, - "id": "global-admin", - "name": "Global Administrator", - "privileges": [ - "all-permissions", - "approve-vulnerability-exceptions", - "assign-scan-engine", - "assign-scan-template", - "assign-ticket-assignee", - "close-tickets", - "configure-global-settings", - "create-reports", - "create-tickets", - "delete-vulnerability-exceptions", - "manage-asset-group-access", - "manage-asset-group-assets", - "manage-dynamic-asset-groups", - "manage-policies", - "manage-report-access", - "manage-report-templates", - "manage-scan-alerts", - "manage-scan-engines", - "manage-scan-templates", - "manage-site-access", - "manage-site-credentials", - "manage-sites", - "manage-static-asset-groups", - "manage-tags", - "purge-site-asset-data", - "schedule-automatic-scans", - "specify-scan-targets", - "specify-site-metadata", - "start-unscheduled-scans", - "submit-vulnerability-exceptions", - "use-restricted-report-sections", - "view-asset-group-asset-data", - "view-site-asset-data" - ], - "superuser": true - } - } + "links": [] } ``` -#### Create User - -This action is used to create a new user account (limited to external authentication sources). +#### Update Shared Credentials + +Update shared credentials ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|access_all_asset_groups|boolean|False|True|Whether to grant the user access to all asset groups|None|False| -|access_all_sites|boolean|False|True|Whether to grant the user access to all sites|None|False| -|authentication_id|integer|None|False|The identifier of the authentication source to use to authenticate the user. The source with the specified identifier must be of the type specified by Authentication Type. If Authentication ID is omitted, then one source of the specified Authentication Type is selected|None|1234| -|authentication_type|string|ldap|True|The type of the authentication source to use to authenticate the user|['kerberos', 'ldap', 'saml']|ldap| -|email|string|None|True|The email address of the user|None|user@example.com| -|enabled|boolean|True|True|Whether the user account is enabled|None|True| -|login|string|None|True|The login name of the user|None|jdoe24| -|name|string|None|True|The full name of the user|None|John Doe| -|role_id|string|None|True|The identifier of the role to which the user should be assigned|None|global-admin| - -Example input: - -``` -{ - "access_all_asset_groups": false, - "access_all_sites": false, - "authentication_id": 1234, - "authentication_type": "ldap", - "email": "user@example.com", - "enabled": true, - "login": "jdoe24", - "name": "John Doe", - "role_id": "global-admin" +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|account|account|None|True|Specify the type of service to authenticate as well as all of the information required by that service|None|{'authentication_type': 'no-authentication', 'community_name': 'rapid community', 'database': 'rapid7_database', 'domain': 'rapid7.com', 'enumerate_sids': False, 'notes_id_password': 'notes_id_password', 'ntlm_hash': '86956E15C7F452086BEEB6BB005E0388', 'oracle_listener_password': 'oracle_listener_password', 'password': 'password', 'pem_key': '-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEA3Tz2mr7SZiAMfQyuvBj...', 'permission_elevation': 'sudo', 'permission_elevation_password': 'permission_elevation_password', 'permission_elevation_username': 'permission_elevation_username', 'privacy_password': 'privacy_password', 'privacy_type': 'no-privacy', 'private_key_password': 'private_key_password', 'realm': 'realm0', 'service': 'telnet', 'sid': 'rapid7_database2', 'use_windows_authentication': False, 'username': 'username'}| +|description|string|None|False|The description of the credential|None|example input with every field filled. Note real input will only have specific fields filled| +|host_restriction|string|None|False|The host name or IP address that you want to restrict the credentials to|None|my-macbook-name| +|id|integer|None|False|The identifier of the credential|None|123| +|name|string|None|True|The name of the credential|None|my-AS400-credentials| +|port_restriction|string|None|False|Further restricts the credential to attempt to authenticate on a specific port. The port can only be restricted if the property hostRestriction is specified|None|8888| +|site_assignment|string|None|True|Assigns the shared scan credential either to be available to all sites or to a specific list of sites. All sites - The shared scan credential is assigned to all current and future sites. specific-sites - The shared scan credential is assigned to zero sites by default. Administrators must explicitly assign sites to the shared credential. Shared scan credentials assigned to a site can disabled within the site configuration, if needed|['all-sites', 'specific-sites']|all-sites| +|sites|[]integer|None|False|List of site identifiers. These sites are explicitly assigned access to the shared scan credential, allowing the site to use the credential for authentication during a scan. This property can only be set if the value of property siteAssignment is set to "specific-sites". When the property siteAssignment is set to "all-sites", this property will be null|None|[]| + +Example input: + +``` +{ + "account": { + "authentication_type": "no-authentication", + "community_name": "rapid community", + "database": "rapid7_database", + "domain": "rapid7.com", + "enumerate_sids": false, + "notes_id_password": "notes_id_password", + "ntlm_hash": "86956E15C7F452086BEEB6BB005E0388", + "oracle_listener_password": "oracle_listener_password", + "password": "password", + "pem_key": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEA3Tz2mr7SZiAMfQyuvBj...", + "permission_elevation": "sudo", + "permission_elevation_password": "permission_elevation_password", + "permission_elevation_username": "permission_elevation_username", + "privacy_password": "privacy_password", + "privacy_type": "no-privacy", + "private_key_password": "private_key_password", + "realm": "realm0", + "service": "telnet", + "sid": "rapid7_database2", + "use_windows_authentication": false, + "username": "username" + }, + "description": "example input with every field filled. Note real input will only have specific fields filled", + "host_restriction": "my-macbook-name", + "id": 123, + "name": "my-AS400-credentials", + "port_restriction": 8888, + "site_assignment": "all-sites", + "sites": [] } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|id|integer|True|The identifier of the created user account| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users", - "rel": "self" - }, - { - "href": "https://insightvm:3780/api/3/users/83", - "rel": "self" - } - ], - "id": 83 + "links": [] } ``` -#### Update User - -This action is used to update the configuration of an existing user account. +#### Update Site + +Update an existing site ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|access_all_asset_groups|boolean|False|True|Whether to grant the user access to all asset groups|None|False| -|access_all_sites|boolean|False|True|Whether to grant the user access to all sites|None|False| -|authentication_id|integer|None|False|The identifier of the authentication source to use to authenticate the user. The source with the specified identifier must be of the type specified by Authentication Type. If Authentication ID is omitted, then one source of the specified Authentication Type is selected|None|567| -|authentication_type|string|ldap|True|The type of the authentication source to use to authenticate the user|['normal', 'admin', 'kerberos', 'ldap', 'saml']|ldap| -|email|string|None|True|The email address of the user|None|user@example.com| -|enabled|boolean|True|True|Whether the user account is enabled|None|True| -|id|integer|None|True|The identifier of the user|None|1234| -|login|string|None|True|The login name of the user|None|jdoe24| -|name|string|None|True|The full name of the user|None|John Doe| -|role_id|string|None|True|The identifier of the role to which the user should be assigned|None|global-admin| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|description|string|None|True|The site's description|None|example description| +|engine_id|integer|None|True|The identifier of a scan engine. Default scan engine is selected when not specified|None|1234| +|id|integer|None|True|The identifier of the site|None|1234| +|importance|string|normal|True|The site importance|['very_low', 'low', 'normal', 'high', 'very_high']|low| +|name|string|None|True|The site name. Name must be unique|None|example name| +|scan_template_id|string|None|True|The identifier of a scan template|None|1234| + Example input: ``` { - "access_all_asset_groups": false, - "access_all_sites": false, - "authentication_id": 567, - "authentication_type": "ldap", - "email": "user@example.com", - "enabled": true, + "description": "example description", + "engine_id": 1234, "id": 1234, - "login": "jdoe24", - "name": "John Doe", - "role_id": "global-admin" + "importance": "normal", + "name": "example name", + "scan_template_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|The identifier of the updated site|332| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83", - "rel": "self" - } - ] + "id": 332, + "links": [] } ``` -#### Delete User - -This action is used to delete an user account. +#### Update Site Excluded Asset Groups + +Update an existing site scope of excluded asset groups ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|The identifier of the user account|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|excluded_asset_groups|[]integer|None|False|Assets associated with these asset group IDs will be excluded from the site|None|[1234, 567]| +|id|integer|None|True|The identifier of the site|None|1234| +|overwrite|boolean|True|True|Whether to overwrite the excluded asset group IDs to the current site or append to the previous list of asset group IDs|None|True| + Example input: ``` { - "id": 1234 + "excluded_asset_groups": 1234, + "id": 1234, + "overwrite": true } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|The identifier of the updated site|332| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83", - "rel": "self" - } - ] + "id": 332, + "links": [] } ``` -#### Disable User - -This action is used to disable an user account. +#### Update Site Excluded Targets + +Update an existing site scope of excluded IP address and hostname targets ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|The identifier of the user account|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|excluded_targets|[]string|None|False|List of addresses that represent either a hostname, IPv4 address, IPv4 address range, IPv6 address, or CIDR notation|None|["10.2.144", "10.8.36.144"]| +|id|integer|None|True|The identifier of the site|None|1234| +|overwrite|boolean|True|True|Whether to overwrite the excluded targets to the current site or append to the previous list of excluded targets|None|True| + Example input: ``` { - "id": 1234 + "excluded_targets": "10.2.144", + "id": 1234, + "overwrite": true } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|The identifier of the updated site|1234| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83", - "rel": "self" - } - ] + "id": 1234, + "links": [] } ``` -#### Enable User - -This action is used to enable an user account. +#### Update Site Included Asset Groups + +Update an existing site scope of included asset groups ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|id|integer|None|True|The identifier of the user account|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|The identifier of the site|None|1234| +|included_asset_groups|[]integer|None|False|Assets associated with these asset group IDs will be included in the site|None|[1234, 567]| +|overwrite|boolean|True|True|Whether to overwrite the included asset group IDs to the current site or append to the previous list of asset group IDs|None|True| + Example input: ``` { - "id": 1234 + "id": 1234, + "included_asset_groups": 1234, + "overwrite": true } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|The identifier of the updated site|332| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83", - "rel": "self" - } - ] + "id": 332, + "links": [] } ``` -#### Update User Role - -This action is used to update the role associated with an user account. +#### Update Site Included Targets + +Update an existing site scope of included IP address and hostname targets ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|access_all_asset_groups|boolean|False|True|Whether to grant the user access to all asset groups|None|False| -|access_all_sites|boolean|False|True|Whether to grant the user access to all sites|None|False| -|role_id|string|None|True|The identifier of the role to which the user should be assigned|None|global-admin| -|user_id|integer|None|True|The identifier of the user account|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|The identifier of the site|None|1234| +|included_targets|[]string|None|False|List of addresses that represent either a hostname, IPv4 address, IPv4 address range, IPv6 address, or CIDR notation|None|["10.2.144", "10.8.36.144"]| +|overwrite|boolean|True|True|Whether to overwrite the included targets to the current site or append to the previous list of included targets|None|True| + Example input: ``` { - "access_all_asset_groups": false, - "access_all_sites": false, - "role_id": "global-admin", - "user_id": 1234 + "id": 1234, + "included_targets": "10.2.144", + "overwrite": true } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|id|integer|True|The identifier of the updated site|1234| +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83", - "rel": "self" - } - ] + "id": 1234, + "links": [] } ``` -#### Update User Asset Group Access - -This action is used to update the asset groups to which a user has access in bulk. It can be used to remove asset group access as well. +#### Update Site Scan Engine + +Update the scan engine/scan engine pool associated with a site ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_group_ids|[]integer|None|True|The identifiers of the asset groups to which the user account should be granted access, ignored if the user has access to all asset groups|None|[1234, 5678]| -|user_id|integer|None|True|The identifier of the user account|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|engine_id|integer|None|True|Identifier of the scan engine/scan engine pool to associate with the site|None|5678| +|site_id|integer|None|True|Identifier of the site to update|None|1234| + Example input: ``` { - "asset_group_ids": [ - 1234, - 5678 - ], - "user_id": 1234 + "engine_id": 5678, + "site_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83/sites", - "rel": "User Asset Groups" - } - ] + "links": [] } ``` -#### Add User Asset Group Access - -This action is used to grant an user account access to an asset group by id. +#### Update Tag Search Criteria + +Update the search criteria for an existing tag ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_group_id|integer|None|True|The identifier of the asset group|None|5678| -|user_id|integer|None|True|The identifier of the user account|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|id|integer|None|True|Tag ID|None|1234| +|searchCriteria|object|None|True|Tag search criteria - options documentation: https://help.rapid7.com/insightvm/en-us/api/#section/Responses/SearchCriteria|None|{'risk-score': 'asc', 'criticality-tag': 'desc'}| + Example input: ``` { - "asset_group_id": 5678, - "user_id": 1234 + "id": 1234, + "searchCriteria": "{'risk-score': 'asc', 'criticality-tag': 'desc'}" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83/sites", - "rel": "User Asset Groups" - } - ] + "links": [] } ``` -#### Remove User Asset Group Access - -This action is used to remove asset group access from an user account. +#### Update User + +Update the configuration of an existing user account ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_group_id|integer|None|True|The identifier of the asset group|None|4567| -|user_id|integer|None|True|The identifier of the user account|None|1234| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|access_all_asset_groups|boolean|False|True|Whether to grant the user access to all asset groups|None|False| +|access_all_sites|boolean|False|True|Whether to grant the user access to all sites|None|False| +|authentication_id|integer|None|False|The identifier of the authentication source to use to authenticate the user. The source with the specified identifier must be of the type specified by Authentication Type. If Authentication ID is omitted, then one source of the specified Authentication Type is selected|None|567| +|authentication_type|string|ldap|True|The type of the authentication source to use to authenticate the user|['normal', 'admin', 'kerberos', 'ldap', 'saml']|ldap| +|email|string|None|True|The email address of the user|None|user@example.com| +|enabled|boolean|True|True|Whether the user account is enabled|None|True| +|id|integer|None|True|The identifier of the user|None|1234| +|login|string|None|True|The login name of the user|None|jdoe24| +|name|string|None|True|The full name of the user|None|John Doe| +|role_id|string|None|True|The identifier of the role to which the user should be assigned|None|global-admin| + Example input: ``` { - "asset_group_id": 4567, - "user_id": 1234 + "access_all_asset_groups": false, + "access_all_sites": false, + "authentication_id": 567, + "authentication_type": "ldap", + "email": "user@example.com", + "enabled": true, + "id": 1234, + "login": "jdoe24", + "name": "John Doe", + "role_id": "global-admin" } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83/sites", - "rel": "User Asset Groups" - } - ] + "links": [] } ``` -#### Update User Site Access - -This action is used to update the sites to which a user has access in bulk. It can be used to remove sites as well. +#### Update User Asset Group Access + +Update the asset groups to which a user has access in bulk. It can be used to remove asset group access as well ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|site_ids|[]integer|None|True|The identifiers of the sites to which the user account should be granted access, ignored if the user has access to all sites|None|[1234, 567]| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|asset_group_ids|[]integer|None|True|The identifiers of the asset groups to which the user account should be granted access, ignored if the user has access to all asset groups|None|[1234, 5678]| |user_id|integer|None|True|The identifier of the user account|None|1234| - + Example input: ``` { - "access_all_asset_groups": false, - "access_all_sites": false, - "authentication_id": 567, - "authentication_type": "ldap", - "email": "user@example.com", - "enabled": true, - "id": 1234, - "login": "jdoe24", - "name": "John Doe", - "role_id": "global-admin" + "asset_group_ids": 1234, + "user_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83/sites", - "rel": "User Sites" - } - ] + "links": [] } ``` -#### Add User Site Access - -This action is used to grant an user account access to a site by id. +#### Update User Role + +Update the role associated with an user account ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|site_id|integer|None|True|The identifier of the site|None|4567| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|access_all_asset_groups|boolean|False|True|Whether to grant the user access to all asset groups|None|False| +|access_all_sites|boolean|False|True|Whether to grant the user access to all sites|None|False| +|role_id|string|None|True|The identifier of the role to which the user should be assigned|None|global-admin| |user_id|integer|None|True|The identifier of the user account|None|1234| - + Example input: ``` { - "site_id": 4567, + "access_all_asset_groups": false, + "access_all_sites": false, + "role_id": "global-admin", "user_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83/sites", - "rel": "User Sites" - } - ] + "links": [] } ``` -#### Remove User Site Access - -This action is used to remove site access from an user account. +#### Update User Site Access + +Update the sites to which a user has access in bulk. It can be used to remove sites as well ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|site_id|integer|None|True|The identifier of the site|None|4567| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|site_ids|[]integer|None|True|The identifiers of the sites to which the user account should be granted access, ignored if the user has access to all sites|None|[1234, 567]| |user_id|integer|None|True|The identifier of the user account|None|1234| - + Example input: ``` { - "site_id": 4567, + "site_ids": 1234, "user_id": 1234 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|links|[]link|True|Hypermedia links to corresponding or related resources| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|links|[]link|True|Hypermedia links to corresponding or related resources|[]| + Example output: ``` { - "links": [ - { - "href": "https://insightvm:3780/api/3/users/83/sites", - "rel": "User Sites" - } - ] + "links": [] } ``` -#### Top Remediations - -This action is used to generate results for the top remediations based on a defined scope. +#### Update Vulnerability Exception Expiration Date + +Update vulnerability exception expiration date ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| -|asset_limit|integer|None|False|The amount of assets to be returned with each top remediation; this can be used to reduce message size and processing time|None|4| -|limit|integer|25|True|Number of remediations for which tickets should be generated|[10, 25, 50, 100]|10| -|scope|string|none|True|Scope context for generated report; if set remediations will be scoped by each in scope ID|['none', 'assets', 'assetGroups', 'sites', 'tags', 'scan']|none| -|scope_ids|[]integer|[]|False|Scope IDs for which tickets should be generated, by default all are included|None|[1234, 45]| -|vulnerability_limit|integer|None|False|The amount of vulnerabilities to be returned with each top remediation; this can be used to reduce message size and processing time|None|2| - +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | +|date|string|None|True|Expiration date|None|2020-02-24T06:59:59.999Z| +|id|integer|None|True|Asset ID|None|42| + Example input: ``` { - "asset_limit": 4, - "limit": 10, - "scope": "none", - "scope_ids": [ - 1234, - 45 - ], - "vulnerability_limit": 2 + "date": "2020-02-24T06:59:59.999Z", + "id": 42 } ``` ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|remediations|[]remediation|True|List of top remediations| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|success|boolean|True|Was operation successful|True| + Example output: ``` { - "remediations": [ - { - "solutionId": 50460, - "nexposeId": "mozilla-firefox-upgrade-latest", - "summary": "Upgrade to the latest version of Mozilla Firefox", - "fix": "Install the latest version of Mozilla Firefox from the Mozilla Products (http://www.mozilla.org/products/firefox/) page.", - "assetCount": 1, - "vulnerabilityCount": 689, - "riskScore": 595588, - "assets": [ - { - "id": 44, - "hostName": "hostname", - "ip": "10.0.0.1", - "mac": "00:00:00:00:00:00", - "os": "Windows Server 2012 R2 Standard Edition", - "riskScore": 2116158, - "criticalityTag": "Very High" - } - ], - "vulnerabilities": [ - { - "id": 73213, - "title": "Obsolete Version of Mozilla Firefox", - "description": "\n \n

\n Versions of Mozilla Firefox prior to 57.0.x are no longer supported. Unsupported\n versions of Firefox may contain unpatched security flaws. It is recommended to \n upgrade to the latest version.\n

\n ", - "cvssScore": "10", - "severity": 10, - "riskScore": 871 - } - ] - } - ] + "success": true } ``` - ### Triggers -#### New Vulnerability Exception -This trigger is used to check for new InsightVM vulnerability exceptions. +#### New Vulnerability Exception + +Check for new InsightVM vulnerability exceptions ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | |frequency|integer|5|True|How often the trigger should check for new vulnerability exception requests|None|5| |status_filter|[]string|["Under Review"]|False|List of vulnerability statuses to match against. Options include: Under Review and Approved|None|["Under Review"]| @@ -5581,65 +3214,26 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|exception|vulnerability_exception|False|InsightVM vulnerability exception| - +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|exception|vulnerability_exception|False|InsightVM vulnerability exception|{}| + Example output: ``` { - "expires": "2019-10-31T00:00:00Z", - "id": 31, - "links": [ - { - "href": "https://insightvm:3780/api/3/vulnerability_exceptions/31", - "rel": "self" - } - ], - "scope": { - "id": 80, - "links": [ - { - "id": "apple-itunes-obsolete", - "href": "https://insightvm:3780/api/3/vulnerabilities/apple-itunes-obsolete", - "rel": "Vulnerability" - }, - { - "id": 80, - "href": "https://insightvm:3780/api/3/assets/80", - "rel": "Asset" - } - ], - "type": "asset", - "vulnerability": "apple-itunes-obsolete" - }, - "state": "under review", - "submit": { - "comment": "ICON Test Exception", - "date": "2019-10-27T14:59:31.449114Z", - "links": [ - { - "id": 5, - "href": "https://insightvm:3780/api/3/users/5", - "rel": "Submitter" - } - ], - "name": "blaah", - "reason": "acceptable use", - "user": 5 - } + "exception": {} } ``` #### New Scans - -This trigger is used to check for new InsightVM scans by site and scan status. + +Check for new InsightVM scans by site and scan status ##### Input |Name|Type|Default|Required|Description|Enum|Example| -|----|----|-------|--------|-----------|----|-------| +| :--- | :--- | :--- | :--- | :--- | :--- | :--- | |frequency|integer|5|True|How often the trigger should check for new scans in minutes|None|5| |most_recent_scan|boolean|True|True|Only process the most recent scan for a site since the last time the trigger was run|None|True| |site_name_filter|string|.*|True|Regular expression to match sites where new scans should be triggered|None|example name| @@ -5651,7 +3245,7 @@ Example input: { "frequency": 5, "most_recent_scan": true, - "site_name_filter": "example name", + "site_name_filter": ".*", "status_filter": [ "Successful" ] @@ -5660,52 +3254,663 @@ Example input: ##### Output -|Name|Type|Required|Description| -|----|----|--------|-----------| -|scan|scan|False|InsightVM Scan| - -Example output: - -``` -{ - "scan": { - "assets": 2, - "duration": "PT1M30.77S", - "endTime": "2019-06-17T19:23:50.927Z", - "engineName": "Local scan engine", - "id": 2163, - "links": [ - { - "href": "https://insightvm:3780/api/3/scans/2163", - "rel": "self" - } - ], - "scanName": "Mon 17 Jun 2019 03:22 PM", - "scanType": "Manual", - "startTime": "2019-06-17T19:22:20.157Z", - "status": "finished", - "vulnerabilities": { - "critical": 0, - "moderate": 0, - "severe": 0, - "total": 0 - }, - "siteId": 31, - "siteName": "Test-Site" - } -} -``` - -### Custom Output Types +|Name|Type|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | +|scan|scan|False|InsightVM Scan|{}| + +Example output: + +``` +{ + "scan": {} +} +``` +### Tasks + +*This plugin does not contain any tasks.* + +### Custom Types + +**report_id** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Report ID|integer|None|False|Identifer|None| +|Report Name|string|None|False|Name of report|None| + +**link** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|URL|string|None|False|A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)|None| +|Rel|string|None|False|Link relation type following RFC 5988|None| + +**fingerprint** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Description|string|None|False|None|None| +|Family|string|None|False|None|None| +|Product|string|None|False|None|None| +|Vendor|string|None|False|None|None| +|Version|string|None|False|None|None| + +**match** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Confidence|string|None|False|None|None| +|Fingerprint|fingerprint|None|False|None|None| + +**step** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|HTML|string|None|False|None|None| +|text|string|None|False|None|None| + +**summary** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|HTML|string|None|False|None|None| +|text|string|None|False|None|None| + +**resources** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Applies To|string|None|False|None|None| +|Confidence|string|None|False|None|None| +|Estimate|string|None|False|None|None| +|ID|string|None|False|None|None| +|links|[]link|None|False|None|None| +|Matches|[]match|None|False|None|None| +|Steps|step|None|False|None|None| +|Summary|summary|None|False|None|None| +|Type|string|None|False|None|None| + +**address** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|IP|string|None|False|IPv4 or IPv6 address|None| +|MAC|string|None|False|Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48|None| + +**configuration** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Name|string|None|False|Name of the configuration value|None| +|Value|string|None|False|Configuration value|None| + +**database** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Description|string|None|False|Description of the database instance|None| +|ID|integer|None|False|Identifier of the database|None| +|Name|string|None|False|Name of the database instance|None| + +**insightvm_file** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Attributes|[]configuration|None|False|Attributes detected on the file|None| +|Contents|bytes|None|False|Contents of the file|None| +|Name|string|None|False|Name of the file|None| +|Size|integer|None|False|Size of the regular file (in bytes). If the file is a directory, no value is returned|None| +|Type|string|None|False|Type of the file, e.g. file or directory|None| + +**history** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Date|string|None|False|Date the asset information was collected or changed|None| +|Description|string|None|False|Additional information describing the change|None| +|Scan ID|integer|None|False|If a scan-oriented change, the identifier of the corresponding scan the asset was scanned in|None| +|Type|string|None|False|Type, for additional information see the help section of this plugin|None| +|User|string|None|False|User|None| +|Version|integer|None|False|Version|None| +|Vulnerability Exception ID|integer|None|False|Vulnerability exception ID|None| + +**hostName** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Name|string|None|False|Name|None| +|Source|string|None|False|Source|None| + +**id** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|string|None|False|ID|None| +|Source|string|None|False|Source|None| + +**cpe** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Edition|string|None|False|Edition-related terms applied by the vendor to the product|None| +|Language|string|None|False|Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646|None| +|Other|string|None|False|Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value|None| +|Part|string|None|False|A single letter code that designates the particular platform part that is being identified|None| +|Product|string|None|False|Most common and recognizable title or name of the product|None| +|Software Edition|string|None|False|Characterizes how the product is tailored to a particular market or class of end users|None| +|Target Hardware|string|None|False|Characterize the instruction set architecture on which the product operates|None| +|Target Software|string|None|False|Characterizes the software computing environment within which the product operates|None| +|Update|string|None|False|Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product|None| +|Version 2.2|string|None|False|The full CPE string in the CPE 2.2 format|None| +|Version 2.3|string|None|False|The full CPE string in the CPE 2.3 format|None| +|Vendor|string|None|False|The person or organization that manufactured or created the product|None| +|Version|string|None|False|Vendor-specific alphanumeric strings characterizing the particular release version of the product|None| + +**osFingerprint** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Architecture|string|None|False|The architecture of the operating system|None| +|Configuration|[]configuration|None|False|Configuration key-values pairs enumerated on the operating system|None| +|CPE|cpe|None|False|Common Platform Enumeration|None| +|Description|string|None|False|The description of the operating system (containing vendor, family, product, version and architecture in a single string)|None| +|Family|string|None|False|Family of the operating system|None| +|ID|integer|None|False|Identifier of the operating system|None| +|Product|string|None|False|Name of the operating system|None| +|System Name|string|None|False|A combination of vendor and family (with redundancies removed), suitable for grouping|None| +|Type|string|None|False|Type of operating system|None| +|Vendor|string|None|False|Vendor of the operating system|None| +|Version|string|None|False|Version of the operating system|None| + +**userGroup** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Identifier of the user group|None| +|Name|string|None|False|Name of the user group|None| + +**user** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Full Name|string|None|False|Full name of the user account|None| +|ID|integer|None|False|Identifier of the user account|None| +|Name|string|None|False|Name of the user account|None| + +**page** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Link Type|string|None|False|Type of link used to traverse or detect the page|None| +|Path|string|None|False|Path to the page (URI)|None| +|Response|integer|None|False|HTTP response code observed with retrieving the page|None| + +**webApplication** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|False|Identifier of the web application|None| +|Pages|[]page|None|False|Pages|None| +|Root|string|None|False|Web root of the web application|None| +|Virtual Host|string|None|False|Virtual host of the web application|None| + +**service** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Configurations|[]configuration|None|False|Configuration key-values pairs enumerated on the service|None| +|Databases|[]database|None|False|Databases enumerated on the service|None| +|Family|string|None|False|Family of the service|None| +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|Name|string|None|False|Name of the service|None| +|Port|integer|None|False|Port of the service|None| +|Product|string|None|False|Product running the service|None| +|Protocol|string|None|False|Protocol of the service|None| +|User Groups|[]userGroup|None|False|User groups|None| +|Users|[]user|None|False|Users|None| +|Vendor|string|None|False|Vendor of the service|None| +|Version|string|None|False|Version of the service|None| +|Web Applications|[]webApplication|None|False|Web applications found on the service|None| + +**software** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Configurations|[]configuration|None|False|Configurations|None| +|CPE|cpe|None|False|CPE|None| +|Description|string|None|False|Description of the software|None| +|Family|string|None|False|Family of the software|None| +|ID|integer|None|False|ID|None| +|Product|string|None|False|Product of the software|None| +|Type|string|None|False|Type of the software|None| +|Vendor|string|None|False|Vendor of the software|None| +|Version|string|None|False|Version of the software|None| + +**vulnerabilities** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Critical|integer|None|False|Number of critical vulnerabilities|None| +|Exploits|integer|None|False|Number of distinct exploits that can exploit any of the vulnerabilities on the asset|None| +|Malware Kits|integer|None|False|Number of distinct malware kits that vulnerabilities on the asset are susceptible to|None| +|Moderate|integer|None|False|Number of moderate vulnerabilities|None| +|Severe|integer|None|False|Number of severe vulnerabilities|None| +|Total|integer|None|False|Total number of vulnerabilities|None| + +**vulnerabilities_count** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Critical|integer|None|False|Number of critical vulnerabilities|None| +|Moderate|integer|None|False|Number of moderate vulnerabilities|None| +|Severe|integer|None|False|Number of severe vulnerabilities|None| +|Total number of vulnerabilities|integer|None|False|Total|None| + +**vulnerability_exception** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Expires|date|None|False|The date and time the vulnerability exception is set to expire|None| +|Vulnerability Exception ID|integer|None|True|The ID uniquely identifying the vulnerability exception|None| +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|Review Details|object|None|False|Details of the exception review|None| +|Exception Scope|object|None|True|Details of the scope of the exception|None| +|State|string|None|True|The state of the vulnerability exception|None| +|Submission Details|object|None|True|Details of the exception submission|None| + +**exception_review** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Review Comment|string|None|False|The comment from the reviewer detailing the review|None| +|Review Date|date|None|False|The date and time the review took place|None| +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|Reviewer Name|string|None|False|The login name of the user that reviewed the vulnerability exception|None| +|Reviewer ID|integer|None|False|The identifier of the user that reviewed the vulnerability exception|None| + +**exception_submit** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Submit Comment|string|None|False|The comment from the submit detailing the exception|None| +|Submit Date|date|None|False|The date and time the exception request took place|None| +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|Submitter Name|string|None|False|The login name of the user that submitted the vulnerability exception|None| +|Submitter ID|integer|None|False|The identifier of the user that submitted the vulnerability exception|None| + +**exception_scope** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Vulnerability Scope ID|integer|None|True|The identifer of the scope (asset, group, site) the vulnerability exception applies to|None| +|Exception Scope Key|string|None|False|Optional key to discriminate the instance when the scope type is Instance|None| +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|Port|integer|None|False|If the scope type is Instance, the port the exception applies to|None| +|Exception Scope Type|string|None|True|The type of vulnerability exception - Global, Site, Asset, Asset Group, Instance|None| +|Vulnerability|string|None|True|The vulnerability the exception applies to|None| + +**asset** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Addresses|[]address|None|False|All addresses discovered on the asset|None| +|Assessed for Policies|boolean|None|False|Whether the asset has been assessed for policies at least once|None| +|Assessed for Vulnerabilities|boolean|None|False|Whether the asset has been assessed for vulnerabilities at least once|None| +|Configurations|[]configuration|None|False|Configuration key-values pairs enumerated on the asset|None| +|Databases|[]database|None|False|Databases enumerated on the asset|None| +|Files|[]insightvm_file|None|False|Files discovered with searching on the asset|None| +|History|[]history|None|False|History of changes to the asset over time|None| +|Hostname|string|None|False|Primary host name (local or FQDN) of the asset|None| +|Hostnames|[]hostName|None|False|All hostnames or aliases discovered on the asset|None| +|ID|integer|None|False|Identifier of the asset|None| +|IDs|[]id|None|False|Unique identifiers found on the asset, such as hardware or operating system identifiers|None| +|IP|string|None|False|Primary IPv4 or IPv6 address of the asset|None| +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|MAC|string|None|False|Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48|None| +|OS|string|None|False|Full description of the operating system of the asset|None| +|OS Fingerprint|osFingerprint|None|False|Details of the operating system of the asset|None| +|Raw Risk Score|float|None|False|Base risk score of the asset|None| +|Risk Score|float|None|False|Risk score (with criticality adjustments) of the asset|None| +|Services|[]service|None|False|Services discovered on the asset|None| +|Software|[]software|None|False|Software discovered on the asset|None| +|Type|string|None|False|Type of asset e.g. unknown, guest, hypervisor, physical, mobile|None| +|User Groups|[]userGroup|None|False|User group accounts enumerated on the asset|None| +|Users|[]user|None|False|User accounts enumerated on the asset|None| +|Vulnerabilities|vulnerabilities|None|False| Summary information for vulnerabilities on the asset|None| + +**asset_vulnerability_result** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Check ID|string|None|False|Check ID, ie. ssh-openssh-x11uselocalhost-x11-forwarding-session-hijack|None| +|Exceptions|[]integer|None|False|If the result is vulnerable with exceptions applied, the identifier(s) of the exceptions actively applied to the result|None| +|Key|string|None|False|An additional discriminating key used to uniquely identify between multiple instances of results on the same finding|None| +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|Port|integer|None|False|Port of the service the result was discovered on e.g. 22|None| +|Proof|string|None|False|Proof of the vulnerability, ie.

OpenBSD OpenSSH 4.3 on Linux

|None| +|Protocol|string|None|False|Protocol of the service the result was discovered on, ie. TCP|None| +|Status|string|None|False|Status of the vulnerability check result, ie. vulnerable-version|None| + +**asset_vulnerability** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|string|None|False|Vulnerability ID, ie. ssh-openssh-x11uselocalhost-x11-forwarding-session-hijack|None| +|Instances|integer|None|False|Identifier of the report instance|None| +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|Results|[]asset_vulnerability_result|None|False|The vulnerability check results for the finding. Multiple instances may be present if one or more checks fired, or a check has multiple independent results|None| +|Risk Score|float|None|False|The risk score for the vulnerability|None| +|Since|string|None|False|The date when this vulnerability was first detected|None| +|Status|string|None|False|Status, ie. vulnerable|None| + +**site** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Assets|integer|None|True|Site asset count|None| +|Connection Type|string|None|False|Site discovery connection type (if applicable)|None| +|Description|string|None|False|Site description|None| +|ID|integer|None|True|Identifier of the site|None| +|Importance|string|None|True|Site importance, used with the 'weighted' risk scoring strategy|None| +|Last Scan Time|date|None|False|Site last scan time|None| +|Links|[]link|None|True|Hypermedia links to corresponding or related resources|None| +|Name|string|None|True|Site name|None| +|Risk Score|float|None|True|Site risk score|None| +|Scan Engine|integer|None|True|Site default scan engine ID|None| +|Scan Template|string|None|True|Site default scan template|None| +|Type|string|None|True|Site type|None| +|Vulnerabilities|vulnerabilities_count|None|True|Site vulnerability counts|None| + +**asset_group** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Assets|integer|None|True|Site asset count|None| +|Description|string|None|False|Asset group description|None| +|ID|integer|None|True|Site ID|None| +|Links|[]link|None|True|Hypermedia links to corresponding or related resources|None| +|Name|string|None|True|Asset group name|None| +|Risk Score|float|None|True|Site risk score|None| +|Search Criteria|object|None|False|Asset group search criteria|None| +|Type|string|None|True|Asset group type|None| +|Vulnerabilities|vulnerabilities_count|None|True|Asset group vulnerability counts|None| + +**vulnerability_description** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|HTML|string|None|None|Vulnerability description HTML|None| +|Text|string|None|None|Vulnerability description raw text|None| + +**pci** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Adjusted CVSS score|integer|None|None|PCI adjusted CVSS score|None| +|Adjusted severity score|integer|None|None|PCI adjusted severity score|None| +|Fail|boolean|None|None|Whether this vulnerability results in a PCI assessment failure|None| +|Special Notes|string|None|None|PCI special notes|None| +|Status|string|None|None|PCI status|None| + +**cvss_v2** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Access Complexity|string|None|None|CVSSv2 access complexity metric|None| +|Access Vector|string|None|None|CVSSv2 access vector metric|None| +|Authentication|string|None|None|CVSSv2 authentication metric|None| +|Availability Impact|string|None|None|CVSSv2 availability impact metric|None| +|Confidentiality Impact|string|None|None|CVSSv2 confidentiality impact metric|None| +|Exploit Score|float|None|None|CVSSv2 combined exploit metric score (Access Complexity/Access Vector/Authentication)|None| +|Impact Score|float|None|None|CVSSv2 combined impact metric score (Confidentiality/Integrity/Availability)|None| +|Integrity Impact|string|None|None|CVSSv2 integrity impact metric|None| +|Score|float|None|None|CVSSv2 score|None| +|Vector|string|None|None|CVSSv2 combined vector string|None| + +**cvss_v3** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Attack Complexity|string|None|None|CVSSv3 attack complexity metric|None| +|Attack Vector|string|None|None|CVSSv3 attack vector metric|None| +|Availability Impact|string|None|None|CVSSv3 availability impact metric|None| +|Confidentiality Impact|string|None|None|CVSSv3 confidentiality impact metric|None| +|Exploit Score|float|None|None|CVSSv3 combined exploit metric score (Attack Complexity/Attack Vector/Privilege Required/Scope/User Interaction)|None| +|Impact Score|float|None|None|CVSSv3 combined impact metric score (Confidentiality/Integrity/Availability)|None| +|Integrity Impact|string|None|None|CVSSv3 integrity impact metric|None| +|Privilege Required|string|None|None|CVSSv3 privilege required metric|None| +|Scope|string|None|None|CVSSv3 scope metric|None| +|Score|float|None|None|CVSSv3 score|None| +|User Interaction|string|None|None|CVSSv3 user interaction metric|None| +|Vector|string|None|None|CVSSv3 combined vector string|None| + +**cvss** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Links|[]link|None|None|List of hypermedia links to corresponding resources|None| +|V2|cvss_v2|None|None|CVSSv2 details|None| +|V3|cvss_v3|None|None|CVSSv3 details|None| + +**vulnerability** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Added|date|None|None|Date that the vulnerability was added to InsightVM|None| +|Categories|[]string|None|None|List of vulnerabilities categories with which this vulnerability is affiliated|None| +|CVEs|[]string|None|None|List of CVE identifiers associated with this vulnerability|None| +|CVSS|cvss|None|None|Vulnerability CVSS details|None| +|Denial of Service|boolean|None|None|Whether the vulnerability is a denial of service vulnerability|None| +|Description|vulnerability_description|None|None|Vulnerability description|None| +|Exploits|integer|None|None|Exploit count|None| +|ID|string|None|None|Vulnerability ID|None| +|Links|[]link|None|None|List of hypermedia links to corresponding resources|None| +|Malware Kits|integer|None|None|Malware kit count|None| +|Modified|date|None|None|Date the vulnerability was last modified in InsightVM|None| +|PCI|pci|None|None|Vulnerability PCI details|None| +|Published|date|None|None|Date the vulnerability was published|None| +|Risk Score|float|None|None|Vulnerability risk score using the configured risk scoring strategy (RealRisk by default)|None| +|Severity|string|None|None|Vulnerability severity string (Moderate/Severe/Critical)|None| +|Severity Score|integer|None|None|Vulnerability severity score|None| +|Title|string|None|None|Vulnerability title|None| + +**tag** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Color|string|None|False|Tag color|None| +|Created|date|None|None|Tag creation date|None| +|ID|integer|None|True|Tag ID|None| +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|Name|string|None|True|Tag name|None| +|Risk Modifier|string|None|False|Tag risk score modifier|None| +|Search Criteria|object|None|False|Tag search criteria|None| +|Source|string|None|False|Tag source|None| +|Type|string|None|True|Tag type|None| + +**tag_asset** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|ID|integer|None|True|Asset ID|None| +|Sources|[]string|None|True|Tag association sources|None| + +**scan** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Assets|integer|None|None|Count of assets identified during the scan|None| +|Duration|date|None|None|Duration of the scan|None| +|End Time|date|None|None|End time of the scan|None| +|Engine ID|integer|None|None|ID for the scan engine/scan engine pool used for the scan|None| +|Engine Name|string|None|None|Name of the scan engine/scan engine pool used for the scan|None| +|ID|integer|None|None|ID of the scan|None| +|Links|[]link|None|None|List of hypermedia links to corresponding resources|None| +|Message|string|None|None|Scan status message|None| +|Scan Name|string|None|None|Name of the scan|None| +|Scan Type|string|None|None|Type of scan (automated, manual, scheduled)|None| +|Site ID|integer|None|None|ID of the site scanned|None| +|Site Name|string|None|None|Name of the site scanned|None| +|Start Time|date|None|None|Start time for the scan|None| +|Started By|string|None|None|User that started the scan|None| +|Status|string|None|None|Scan status (aborted, unknown, running, finished, stopped, error, paused, dispatched, integrating)|None| +|Vulnerabilities|vulnerabilities_count|None|None|Counts of vulnerabilities identified during the scan|None| + +**scan_engine** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Address|string|None|True|Scan engine address (IP/hostname)|None| +|Content Version|string|None|False|Scan engine content version|None| +|Engine Pools|[]integer|None|True|Engine pool IDs with which the scan engine is associated|None| +|ID|integer|None|True|Scan engine identifier|None| +|Last Refreshed Date|date|None|False|Date and time when the engine last communicated with the console|None| +|Last Updated Date|date|None|False|Date and time when the engine was last updated|None| +|Links|[]link|None|True|List of hypermedia links to corresponding resources|None| +|Name|string|None|True|Scan engine name|None| +|Port|integer|None|True|Scan engine communication port|None| +|Product Version|string|None|False|Scan engine product version|None| +|Sites|[]integer|None|False|Sites with which the scan engine is associated|None| + +**scan_engine_pool** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Engines|[]integer|None|True|List of scan engine IDs associated with the scan engine pool|None| +|ID|integer|None|True|Scan engine pool identifier|None| +|Links|[]link|None|True|List of hypermedia links to corresponding resources|None| +|Name|string|None|True|Scan engine pool name|None| + +**authentication_source** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|External|boolean|None|True|Whether the authentication source is external (true) or internal (false)|None| +|ID|integer|None|True|Authentication source identifier|None| +|Links|[]link|None|True|List of hypermedia links to corresponding or related resources|None| +|Name|string|None|True|Authentication source name|None| +|Type|string|None|True|Authentication source type|None| + +**role** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Description|string|None|True|The description of the role|None| +|id|string|None|True|ID of the role, e.g 'global-admin'|None| +|Links|[]link|None|True|List of hypermedia links to corresponding or related resources|None| +|Name|string|None|True|Name of the role|None| +|Privileges|[]string|None|True|List of privileges assigned to the role|None| + +**user_account_role** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|All Asset Groups|boolean|None|False|Whether the user has access to all asset groups|None| +|All Sites|boolean|None|False|Whether the user has access to all sites|None| +|ID|string|None|False|The identifier of the role the user is assigned to|None| +|Privileges|[]string|None|False|None|None| +|Superuser|boolean|None|False|Whether the user is a superuser|None| + +**user_account_locale** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Default|string|None|True|Default locale|None| +|Reports|string|None|True|Reports locale|None| + +**user_account** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Authentication|authentication_source|None|False|The authentication source used to authenticate the user|None| +|Email|string|None|False|The email address of the user|None| +|Enabled|boolean|None|False|Whether the user account is enabled|None| +|ID|integer|None|False|The identifier of the user|None| +|Links|[]link|None|False|List of hypermedia links to corresponding or related resources|None| +|Locale|user_account_locale|None|False|The locale and language preferences for the user|None| +|Locked|boolean|None|True|Whether the user account is locked (exceeded maximum password retry attempts)|None| +|Login|string|None|True|The login name of the user|None| +|Name|string|None|True|The full name of the user|None| +|Role|user_account_role|None|False|The privileges and role the user is assigned|None| + +**remediation_asset** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Criticality Tag|string|None|False|The criticality tag assigned to the asset|None| +|Hostname|string|None|False|Primary host name (local or FQDN) of the asset|None| +|ID|integer|None|True|Identifier of the asset|None| +|IP|string|None|True|Primary IPv4 or IPv6 address of the asset|None| +|MAC|string|None|False|Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48|None| +|OS|string|None|False|Full description of the operating system of the asset|None| +|Risk Score|float|None|False|Risk score (with criticality adjustments) of the asset|None| + +**remediation_vulnerability** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|CVSS Score|string|None|True|The CVSS score of the vulnerability|None| +|Description|string|None|True|The description of the vulnerability|None| +|ID|integer|None|True|Identifier of the vulnerability|None| +|Risk Score|integer|None|True|The risk score of the vulnerability|None| +|Severity|integer|None|True|The severity of the vulnerability|None| +|Title|string|None|True|The title of the vulnerability|None| + +**remediation** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Asset Count|integer|None|True|The number of assets that require the solution to be applied|None| +|Assets|[]remediation_asset|None|True|The assets that require the solution to be applied|None| +|Fix|string|None|False|The steps that are part of the fix this solution prescribes|None| +|Rapid7 Solution ID|string|None|True|The identifier of the solution within InsightVM/Nexpose|None| +|Risk Score|integer|None|True|The risk score that is reduced by performing the solution|None| +|Solution ID|integer|None|True|The identifier of the solution|None| +|Summary|string|None|True|Remediation summary|None| +|Vulnerabilities|[]remediation_vulnerability|None|True|The vulnerabilities that would be remediated|None| +|Vulnerability Count|integer|None|True|The number of vulnerabilities that would be remediated|None| + +**vulnerability_solution** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Links|[]link|None|False|Hypermedia links to corresponding or related resources|None| +|Solutions|[]resources|None|False|Solutions to vulnerabilities|None| + +**account** + +|Name|Type|Default|Required|Description|Example| +| :--- | :--- | :--- | :--- | :--- | :--- | +|Authentication Type|string|no-authentication|False|The authentication protocols available to use in SNMP v3|None| +|Community Name|string|None|False|The community name that will be used for authenticating|None| +|Database|string|None|False|The name of the database. If not specified, a default database name will be used during authentication|None| +|Domain|string|None|False|The address of the domain. This property cannot be specified unless property useWindowsAuthentication is set to true|None| +|Enumerate SIDs|string|None|False|Boolean flag instructing the scan engine to attempt to enumerate SIDs from your environment. If set to true, set the Oracle Net Listener password in property oracleListenerPassword|None| +|Notes ID Password|string|None|False|The password for the account that will be used for authenticating|None| +|NTLM Hash|string|None|False|The NTLM password hash|None| +|Oracle Listener Password|string|None|False|The Oracle Net Listener password. Used to enumerate SIDs from your environment|None| +|Password|string|None|False|The password for the account that will be used for authenticating|None| +|PEM Key|string|None|False|The PEM-format private key|None| +|Permission Evaluation|string|none|False|Elevate scan engine permissions to administrative or root access, which is necessary to obtain certain data during the scan. Defaults to "none" if not specified|None| +|Permission Elevation Password|string|None|False|The password for the account with elevated permissions. This property must not be specified when the property permissionElevation is set to either "none" or "pbrun"; otherwise the property is required|None| +|Permission Elevation Username|string|None|False|The user name for the account with elevated permissions. This property must not be specified when the property permissionElevation is set to either "none" or "pbrun"; otherwise the property is required.|None| +|Privacy Password|string|None|False|The privacy password for the account that will be used for authenticating. Is required when the property authenticationType is set to valid value other than "no-authentication" and when the privacyType is set to a valid value other than code>"no-privacy"|None| +|Privacy Type|string|no-privacy|False|The privacy protocols available to use in SNMP v3|None| +|Private Pey Password|string|None|False|The password for private key|None| +|Realm|string|None|False|The realm|None| +|Service|string|None|True|Specify the type of service to authenticate|None| +|SID|string|None|False|The name of the database. If not specified, a default database name will be used during authentication|None| +|Use Windows Authentication|boolean|None|False|Boolean flag signaling whether to connect to the database using Windows authentication. When set to true, Windows authentication is attempted; when set to false, SQL authentication is attempted|None| +|Username|string|None|False|The user name for the account that will be used for authenticating|None| -_This plugin does not contain any custom output types._ ## Troubleshooting - -This plugin does not contain any troubleshooting information. + +*There is no troubleshooting for this plugin.* # Version History +* 6.1.1 - Update actions `Update Site Excluded Targets` and `Update Site Included Targets` to prevent error on empty addresses * 6.1.0 - Add new optional input `override_blackout` in `Scan` action * 6.0.0 - Fix file output type for `Generate Adhoc SQL Report` | Replace custom output type `file` with `insightvm_file` for each item in the `asset` `files` output in multiple actions * 5.1.0 - Add new action update shared credential @@ -5751,7 +3956,8 @@ This plugin does not contain any troubleshooting information. # Links +* [InsightVM](https://www.rapid7.com/products/insightvm/) + ## References -* [InsightVM](https://www.rapid7.com/products/insightvm/) * [InsightVM API 3](https://help.rapid7.com/insightvm/en-us/api/index.html) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/__init__.py index 3bb1b62b77..80ea80d888 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/__init__.py @@ -1,90 +1,180 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT -from .add_scan_engine_pool_engine.action import AddScanEnginePoolEngine -from .add_user_asset_group_access.action import AddUserAssetGroupAccess -from .add_user_site_access.action import AddUserSiteAccess -from .asset_search.action import AssetSearch -from .asset_vulnerability_solution.action import AssetVulnerabilitySolution -from .create_asset_group.action import CreateAssetGroup -from .create_exception.action import CreateException -from .create_scan_engine.action import CreateScanEngine -from .create_scan_engine_pool.action import CreateScanEnginePool -from .create_site.action import CreateSite -from .create_tag.action import CreateTag -from .create_user.action import CreateUser -from .delete_asset.action import DeleteAsset -from .delete_asset_group.action import DeleteAssetGroup -from .delete_exception.action import DeleteException -from .delete_scan_engine.action import DeleteScanEngine -from .delete_scan_engine_pool.action import DeleteScanEnginePool -from .delete_site.action import DeleteSite -from .delete_tag.action import DeleteTag -from .delete_user.action import DeleteUser -from .disable_user.action import DisableUser -from .download_report.action import DownloadReport -from .enable_user.action import EnableUser -from .generate_adhoc_sql_report.action import GenerateAdhocSqlReport -from .generate_shared_secret.action import GenerateSharedSecret -from .get_asset.action import GetAsset -from .get_asset_group.action import GetAssetGroup -from .get_asset_group_assets.action import GetAssetGroupAssets -from .get_asset_groups.action import GetAssetGroups -from .get_asset_software.action import GetAssetSoftware -from .get_asset_tags.action import GetAssetTags -from .get_asset_vulnerabilities.action import GetAssetVulnerabilities -from .get_authentication_source.action import GetAuthenticationSource -from .get_authentication_sources.action import GetAuthenticationSources -from .get_expiring_vulnerability_exceptions.action import GetExpiringVulnerabilityExceptions -from .get_role.action import GetRole -from .get_roles.action import GetRoles +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT + +from .scan.action import Scan + from .get_scan.action import GetScan -from .get_scan_assets.action import GetScanAssets -from .get_scan_engine.action import GetScanEngine -from .get_scan_engine_pool.action import GetScanEnginePool -from .get_scan_engine_pools.action import GetScanEnginePools -from .get_scan_engines.action import GetScanEngines -from .get_scans.action import GetScans -from .get_site.action import GetSite + from .get_site_assets.action import GetSiteAssets -from .get_sites.action import GetSites + +from .get_scan_assets.action import GetScanAssets + +from .get_asset_vulnerabilities.action import GetAssetVulnerabilities + +from .get_asset_software.action import GetAssetSoftware + +from .download_report.action import DownloadReport + +from .list_reports.action import ListReports + +from .get_vulnerability_affected_assets.action import GetVulnerabilityAffectedAssets + +from .create_tag.action import CreateTag + +from .delete_tag.action import DeleteTag + +from .get_tags.action import GetTags + from .get_tag.action import GetTag -from .get_tag_asset_groups.action import GetTagAssetGroups -from .get_tag_assets.action import GetTagAssets + from .get_tag_sites.action import GetTagSites -from .get_tags.action import GetTags -from .get_user.action import GetUser -from .get_users.action import GetUsers -from .get_vulnerabilities_by_cve.action import GetVulnerabilitiesByCve -from .get_vulnerability.action import GetVulnerability -from .get_vulnerability_affected_assets.action import GetVulnerabilityAffectedAssets -from .list_inactive_assets.action import ListInactiveAssets -from .list_reports.action import ListReports -from .remove_asset_group_tags.action import RemoveAssetGroupTags + +from .get_tag_assets.action import GetTagAssets + +from .get_tag_asset_groups.action import GetTagAssetGroups + from .remove_asset_tag.action import RemoveAssetTag -from .remove_scan_engine_pool_engine.action import RemoveScanEnginePoolEngine + +from .remove_asset_group_tags.action import RemoveAssetGroupTags + from .remove_tag_asset_groups.action import RemoveTagAssetGroups -from .remove_tag_search_criteria.action import RemoveTagSearchCriteria + from .remove_tag_sites.action import RemoveTagSites -from .remove_user_asset_group_access.action import RemoveUserAssetGroupAccess -from .remove_user_site_access.action import RemoveUserSiteAccess -from .review_exception.action import ReviewException -from .scan.action import Scan + +from .remove_tag_search_criteria.action import RemoveTagSearchCriteria + +from .tag_site.action import TagSite + from .tag_asset.action import TagAsset -from .tag_asset_group.action import TagAssetGroup + from .tag_assets.action import TagAssets -from .tag_site.action import TagSite -from .top_remediations.action import TopRemediations -from .update_asset_group_search_criteria.action import UpdateAssetGroupSearchCriteria -from .update_scan_status.action import UpdateScanStatus -from .update_shared_credential.action import UpdateSharedCredential + +from .tag_asset_group.action import TagAssetGroup + +from .update_tag_search_criteria.action import UpdateTagSearchCriteria + +from .asset_search.action import AssetSearch + +from .get_asset.action import GetAsset + +from .get_asset_tags.action import GetAssetTags + +from .get_sites.action import GetSites + +from .get_site.action import GetSite + +from .create_site.action import CreateSite + from .update_site.action import UpdateSite -from .update_site_excluded_asset_groups.action import UpdateSiteExcludedAssetGroups + +from .update_site_included_targets.action import UpdateSiteIncludedTargets + from .update_site_excluded_targets.action import UpdateSiteExcludedTargets + from .update_site_included_asset_groups.action import UpdateSiteIncludedAssetGroups -from .update_site_included_targets.action import UpdateSiteIncludedTargets + +from .update_site_excluded_asset_groups.action import UpdateSiteExcludedAssetGroups + +from .delete_site.action import DeleteSite + +from .get_asset_groups.action import GetAssetGroups + +from .get_asset_group.action import GetAssetGroup + +from .create_asset_group.action import CreateAssetGroup + +from .delete_asset_group.action import DeleteAssetGroup + +from .update_asset_group_search_criteria.action import UpdateAssetGroupSearchCriteria + +from .get_vulnerabilities_by_cve.action import GetVulnerabilitiesByCve + +from .get_scans.action import GetScans + +from .update_scan_status.action import UpdateScanStatus + +from .generate_shared_secret.action import GenerateSharedSecret + +from .get_scan_engines.action import GetScanEngines + +from .get_scan_engine.action import GetScanEngine + +from .create_scan_engine.action import CreateScanEngine + +from .delete_scan_engine.action import DeleteScanEngine + +from .get_scan_engine_pools.action import GetScanEnginePools + +from .get_scan_engine_pool.action import GetScanEnginePool + +from .create_scan_engine_pool.action import CreateScanEnginePool + +from .add_scan_engine_pool_engine.action import AddScanEnginePoolEngine + +from .remove_scan_engine_pool_engine.action import RemoveScanEnginePoolEngine + +from .delete_scan_engine_pool.action import DeleteScanEnginePool + from .update_site_scan_engine.action import UpdateSiteScanEngine -from .update_tag_search_criteria.action import UpdateTagSearchCriteria + +from .get_authentication_sources.action import GetAuthenticationSources + +from .get_authentication_source.action import GetAuthenticationSource + +from .get_roles.action import GetRoles + +from .get_role.action import GetRole + +from .get_users.action import GetUsers + +from .get_user.action import GetUser + +from .create_user.action import CreateUser + from .update_user.action import UpdateUser -from .update_user_asset_group_access.action import UpdateUserAssetGroupAccess + +from .delete_user.action import DeleteUser + +from .disable_user.action import DisableUser + +from .enable_user.action import EnableUser + from .update_user_role.action import UpdateUserRole + +from .update_user_asset_group_access.action import UpdateUserAssetGroupAccess + +from .add_user_asset_group_access.action import AddUserAssetGroupAccess + +from .remove_user_asset_group_access.action import RemoveUserAssetGroupAccess + from .update_user_site_access.action import UpdateUserSiteAccess + +from .add_user_site_access.action import AddUserSiteAccess + +from .remove_user_site_access.action import RemoveUserSiteAccess + +from .top_remediations.action import TopRemediations + +from .generate_adhoc_sql_report.action import GenerateAdhocSqlReport + +from .review_exception.action import ReviewException + +from .delete_exception.action import DeleteException + +from .create_exception.action import CreateException + +from .get_vulnerability.action import GetVulnerability + +from .get_asset_group_assets.action import GetAssetGroupAssets + +from .delete_asset.action import DeleteAsset + +from .list_inactive_assets.action import ListInactiveAssets + +from .get_expiring_vulnerability_exceptions.action import GetExpiringVulnerabilityExceptions + from .update_vulnerability_exception_expiration_date.action import UpdateVulnerabilityExceptionExpirationDate + +from .asset_vulnerability_solution.action import AssetVulnerabilitySolution + +from .update_shared_credential.action import UpdateSharedCredential + diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_scan_engine_pool_engine/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_scan_engine_pool_engine/__init__.py index 363cc37fcc..9e8b358767 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_scan_engine_pool_engine/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_scan_engine_pool_engine/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import AddScanEnginePoolEngine diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_scan_engine_pool_engine/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_scan_engine_pool_engine/schema.py index 4b09e1a303..c975977079 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_scan_engine_pool_engine/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_scan_engine_pool_engine/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ENGINE_ID = "engine_id" POOL_ID = "pool_id" - + class Output: LINKS = "links" - + class AddScanEnginePoolEngineInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class AddScanEnginePoolEngineInput(insightconnect_plugin_runtime.Input): "required": [ "engine_id", "pool_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class AddScanEnginePoolEngineOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_asset_group_access/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_asset_group_access/__init__.py index 06b7bc183c..f95bf743b6 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_asset_group_access/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_asset_group_access/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import AddUserAssetGroupAccess diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_asset_group_access/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_asset_group_access/schema.py index 39ad75d117..5706d6ebb2 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_asset_group_access/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_asset_group_access/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ASSET_GROUP_ID = "asset_group_id" USER_ID = "user_id" - + class Output: LINKS = "links" - + class AddUserAssetGroupAccessInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class AddUserAssetGroupAccessInput(insightconnect_plugin_runtime.Input): "required": [ "asset_group_id", "user_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class AddUserAssetGroupAccessOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_site_access/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_site_access/__init__.py index 4589de608f..511c7e68da 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_site_access/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_site_access/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import AddUserSiteAccess diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_site_access/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_site_access/schema.py index b16b91bee3..c55baf1440 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_site_access/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/add_user_site_access/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: SITE_ID = "site_id" USER_ID = "user_id" - + class Output: LINKS = "links" - + class AddUserSiteAccessInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class AddUserSiteAccessInput(insightconnect_plugin_runtime.Input): "required": [ "site_id", "user_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class AddUserSiteAccessOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_search/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_search/__init__.py index f16996f6c6..21cb5323e7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_search/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_search/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import AssetSearch diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_search/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_search/schema.py index 4dd39f7dc1..73f0121ddb 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_search/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_search/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -11,14 +11,14 @@ class Input: SEARCHCRITERIA = "searchCriteria" SIZE = "size" SORT_CRITERIA = "sort_criteria" - + class Output: ASSETS = "assets" - + class AssetSearchInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -45,7 +45,8 @@ class AssetSearchInput(insightconnect_plugin_runtime.Input): }, "required": [ "searchCriteria" - ] + ], + "definitions": {} } """) @@ -54,7 +55,7 @@ def __init__(self): class AssetSearchOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -73,24 +74,6 @@ class AssetSearchOutput(insightconnect_plugin_runtime.Output): "assets" ], "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, "asset": { "type": "object", "title": "asset", @@ -275,1116 +258,23 @@ class AssetSearchOutput(insightconnect_plugin_runtime.Output): "description": " Summary information for vulnerabilities on the asset", "order": 24 } - }, - "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "history": { - "type": "object", - "title": "history", - "properties": { - "date": { - "type": "string", - "title": "Date", - "description": "Date the asset information was collected or changed", - "order": 1 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Additional information describing the change", - "order": 2 - }, - "scanId": { - "type": "integer", - "title": "Scan ID", - "description": "If a scan-oriented change, the identifier of the corresponding scan the asset was scanned in", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type, for additional information see the help section of this plugin", - "order": 4 - }, - "user": { - "type": "string", - "title": "User", - "description": "User", - "order": 5 - }, - "version": { - "type": "integer", - "title": "Version", - "description": "Version", - "order": 6 - }, - "vulnerabilityExceptionId": { - "type": "integer", - "title": "Vulnerability Exception ID", - "description": "Vulnerability exception ID", - "order": 7 - } - } - }, - "hostName": { - "type": "object", - "title": "hostName", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "id": { - "type": "object", - "title": "id", - "properties": { - "id": { - "type": "string", - "title": "ID", - "description": "ID", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "osFingerprint": { - "type": "object", - "title": "osFingerprint", - "properties": { - "architecture": { - "type": "string", - "title": "Architecture", - "description": "The architecture of the operating system", - "order": 1 - }, - "configurations": { - "type": "array", - "title": "Configuration", - "description": "Configuration key-values pairs enumerated on the operating system", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 2 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "Common Platform Enumeration", - "order": 3 - }, - "description": { - "type": "string", - "title": "Description", - "description": "The description of the operating system (containing vendor, family, product, version and architecture in a single string)", - "order": 4 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the operating system", - "order": 5 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the operating system", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Name of the operating system", - "order": 7 - }, - "systemName": { - "type": "string", - "title": "System Name", - "description": "A combination of vendor and family (with redundancies removed), suitable for grouping", - "order": 8 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of operating system", - "order": 9 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the operating system", - "order": 10 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the operating system", - "order": 11 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "service": { - "type": "object", - "title": "service", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configuration key-values pairs enumerated on the service", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "databases": { - "type": "array", - "title": "Databases", - "description": "Databases enumerated on the service", - "items": { - "$ref": "#/definitions/database" - }, - "order": 2 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the service", - "order": 3 - }, - "links": { - "type": "array", - "title": "Links", - "description": "Hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 4 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the service", - "order": 5 - }, - "port": { - "type": "integer", - "title": "Port", - "description": "Port of the service", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product running the service", - "order": 7 - }, - "protocol": { - "type": "string", - "title": "Protocol", - "description": "Protocol of the service", - "order": 8 - }, - "userGroups": { - "type": "array", - "title": "User Groups", - "description": "User groups", - "items": { - "$ref": "#/definitions/userGroup" - }, - "order": 9 - }, - "users": { - "type": "array", - "title": "Users", - "description": "Users", - "items": { - "$ref": "#/definitions/user" - }, - "order": 10 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the service", - "order": 11 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the service", - "order": 12 - }, - "webApplications": { - "type": "array", - "title": "Web Applications", - "description": "Web applications found on the service", - "items": { - "$ref": "#/definitions/webApplication" - }, - "order": 13 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } - } - } - }, - "software": { - "type": "object", - "title": "software", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configurations", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "CPE", - "order": 2 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Description of the software", - "order": 3 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the software", - "order": 4 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "ID", - "order": 5 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product of the software", - "order": 6 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the software", - "order": 7 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the software", - "order": 8 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the software", - "order": 9 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } + } + }, + "address": { + "type": "object", + "title": "address", + "properties": { + "ip": { + "type": "string", + "title": "IP", + "description": "IPv4 or IPv6 address", + "order": 1 }, - "vulnerabilities": { - "type": "object", - "title": "vulnerabilities", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "exploits": { - "type": "integer", - "title": "Exploits", - "description": "Number of distinct exploits that can exploit any of the vulnerabilities on the asset", - "order": 2 - }, - "malwareKits": { - "type": "integer", - "title": "Malware Kits", - "description": "Number of distinct malware kits that vulnerabilities on the asset are susceptible to", - "order": 3 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 4 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 5 - }, - "total": { - "type": "integer", - "title": "Total", - "description": "Total number of vulnerabilities", - "order": 6 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } + "mac": { + "type": "string", + "title": "MAC", + "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", + "order": 2 } } }, @@ -1406,90 +296,6 @@ class AssetSearchOutput(insightconnect_plugin_runtime.Output): } } }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - }, "database": { "type": "object", "title": "database", @@ -1514,6 +320,47 @@ class AssetSearchOutput(insightconnect_plugin_runtime.Output): } } }, + "insightvm_file": { + "type": "object", + "title": "insightvm_file", + "properties": { + "attributes": { + "type": "array", + "title": "Attributes", + "description": "Attributes detected on the file", + "items": { + "$ref": "#/definitions/configuration" + }, + "order": 1 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the file", + "order": 2 + }, + "size": { + "type": "integer", + "title": "Size", + "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", + "order": 3 + }, + "type": { + "type": "string", + "title": "Type", + "description": "Type of the file, e.g. file or directory", + "order": 4 + }, + "content": { + "type": "string", + "format": "bytes", + "displayType": "bytes", + "title": "Contents", + "description": "Contents of the file", + "order": 5 + } + } + }, "history": { "type": "object", "title": "history", @@ -1598,67 +445,6 @@ class AssetSearchOutput(insightconnect_plugin_runtime.Output): } } }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, "link": { "type": "object", "title": "link", @@ -1750,133 +536,89 @@ class AssetSearchOutput(insightconnect_plugin_runtime.Output): "description": "Version of the operating system", "order": 11 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } } }, - "page": { + "cpe": { "type": "object", - "title": "page", + "title": "cpe", "properties": { - "linkType": { + "edition": { "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", + "title": "Edition", + "description": "Edition-related terms applied by the vendor to the product", "order": 1 }, - "path": { + "language": { "type": "string", - "title": "Path", - "description": "Path to the page (URI)", + "title": "Language", + "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", "order": 2 }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", + "other": { + "type": "string", + "title": "Other", + "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", "order": 3 + }, + "part": { + "type": "string", + "title": "Part", + "description": "A single letter code that designates the particular platform part that is being identified", + "order": 4 + }, + "product": { + "type": "string", + "title": "Product", + "description": "Most common and recognizable title or name of the product", + "order": 5 + }, + "swEdition": { + "type": "string", + "title": "Software Edition", + "description": "Characterizes how the product is tailored to a particular market or class of end users", + "order": 6 + }, + "targetHW": { + "type": "string", + "title": "Target Hardware", + "description": "Characterize the instruction set architecture on which the product operates", + "order": 7 + }, + "targetSW": { + "type": "string", + "title": "Target Software", + "description": "Characterizes the software computing environment within which the product operates", + "order": 8 + }, + "update": { + "type": "string", + "title": "Update", + "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", + "order": 9 + }, + "v2.2": { + "type": "string", + "title": "Version 2.2", + "description": "The full CPE string in the CPE 2.2 format", + "order": 10 + }, + "v2.3": { + "type": "string", + "title": "Version 2.3", + "description": "The full CPE string in the CPE 2.3 format", + "order": 11 + }, + "vendor": { + "type": "string", + "title": "Vendor", + "description": "The person or organization that manufactured or created the product", + "order": 12 + }, + "version": { + "type": "string", + "title": "Version", + "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", + "order": 13 } } }, @@ -1980,192 +722,104 @@ class AssetSearchOutput(insightconnect_plugin_runtime.Output): }, "order": 13 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } + } + }, + "userGroup": { + "type": "object", + "title": "userGroup", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user group", + "order": 1 }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user group", + "order": 2 + } + } + }, + "user": { + "type": "object", + "title": "user", + "properties": { + "fullName": { + "type": "string", + "title": "Full Name", + "description": "Full name of the user account", + "order": 1 + }, + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user account", + "order": 2 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user account", + "order": 3 + } + } + }, + "webApplication": { + "type": "object", + "title": "webApplication", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the web application", + "order": 1 + }, + "pages": { + "type": "array", + "title": "Pages", + "description": "Pages", + "items": { + "$ref": "#/definitions/page" }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } + "order": 2 + }, + "root": { + "type": "string", + "title": "Root", + "description": "Web root of the web application", + "order": 3 + }, + "virtualHost": { + "type": "string", + "title": "Virtual Host", + "description": "Virtual host of the web application", + "order": 4 + } + } + }, + "page": { + "type": "object", + "title": "page", + "properties": { + "linkType": { + "type": "string", + "title": "Link Type", + "description": "Type of link used to traverse or detect the page", + "order": 1 + }, + "path": { + "type": "string", + "title": "Path", + "description": "Path to the page (URI)", + "order": 2 + }, + "response": { + "type": "integer", + "title": "Response", + "description": "HTTP response code observed with retrieving the page", + "order": 3 } } }, @@ -2230,152 +884,6 @@ class AssetSearchOutput(insightconnect_plugin_runtime.Output): "description": "Version of the software", "order": 9 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } } }, "vulnerabilities": { @@ -2419,65 +927,6 @@ class AssetSearchOutput(insightconnect_plugin_runtime.Output): "order": 6 } } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/__init__.py index 7a722b4aa7..fec9b06c5a 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import AssetVulnerabilitySolution diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/schema.py index a265c30607..5bd9326fe3 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/asset_vulnerability_solution/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ASSET_ID = "asset_id" VULNERABILITY_IDS = "vulnerability_ids" - + class Output: VULNERABILITIES_SOLUTION = "vulnerabilities_solution" - + class AssetVulnerabilitySolutionInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -41,7 +41,8 @@ class AssetVulnerabilitySolutionInput(insightconnect_plugin_runtime.Input): "required": [ "asset_id", "vulnerability_ids" - ] + ], + "definitions": {} } """) @@ -50,7 +51,7 @@ def __init__(self): class AssetVulnerabilitySolutionOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -69,34 +70,27 @@ class AssetVulnerabilitySolutionOutput(insightconnect_plugin_runtime.Output): "vulnerabilities_solution" ], "definitions": { - "fingerprint": { + "vulnerability_solution": { "type": "object", - "title": "fingerprint", + "title": "vulnerability_solution", "properties": { - "description": { - "type": "string", - "title": "Description", + "links": { + "type": "array", + "title": "Links", + "description": "Hypermedia links to corresponding or related resources", + "items": { + "$ref": "#/definitions/link" + }, "order": 1 }, - "family": { - "type": "string", - "title": "Family", + "resources": { + "type": "array", + "title": "Solutions", + "description": "Solutions to vulnerabilities", + "items": { + "$ref": "#/definitions/resources" + }, "order": 2 - }, - "product": { - "type": "string", - "title": "Product", - "order": 3 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "order": 4 - }, - "version": { - "type": "string", - "title": "Version", - "order": 5 } } }, @@ -118,55 +112,6 @@ class AssetVulnerabilitySolutionOutput(insightconnect_plugin_runtime.Output): } } }, - "match": { - "type": "object", - "title": "match", - "properties": { - "confidence": { - "type": "string", - "title": "Confidence", - "order": 1 - }, - "fingerprint": { - "$ref": "#/definitions/fingerprint", - "title": "Fingerprint", - "order": 2 - } - }, - "definitions": { - "fingerprint": { - "type": "object", - "title": "fingerprint", - "properties": { - "description": { - "type": "string", - "title": "Description", - "order": 1 - }, - "family": { - "type": "string", - "title": "Family", - "order": 2 - }, - "product": { - "type": "string", - "title": "Product", - "order": 3 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "order": 4 - }, - "version": { - "type": "string", - "title": "Version", - "order": 5 - } - } - } - } - }, "resources": { "type": "object", "title": "resources", @@ -199,6 +144,11 @@ class AssetVulnerabilitySolutionOutput(insightconnect_plugin_runtime.Output): }, "order": 5 }, + "type": { + "type": "string", + "title": "Type", + "order": 6 + }, "matches": { "type": "array", "title": "Matches", @@ -216,143 +166,53 @@ class AssetVulnerabilitySolutionOutput(insightconnect_plugin_runtime.Output): "$ref": "#/definitions/summary", "title": "Summary", "order": 9 - }, - "type": { - "type": "string", - "title": "Type", - "order": 6 } - }, - "definitions": { + } + }, + "match": { + "type": "object", + "title": "match", + "properties": { + "confidence": { + "type": "string", + "title": "Confidence", + "order": 1 + }, "fingerprint": { - "type": "object", - "title": "fingerprint", - "properties": { - "description": { - "type": "string", - "title": "Description", - "order": 1 - }, - "family": { - "type": "string", - "title": "Family", - "order": 2 - }, - "product": { - "type": "string", - "title": "Product", - "order": 3 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "order": 4 - }, - "version": { - "type": "string", - "title": "Version", - "order": 5 - } - } + "$ref": "#/definitions/fingerprint", + "title": "Fingerprint", + "order": 2 + } + } + }, + "fingerprint": { + "type": "object", + "title": "fingerprint", + "properties": { + "description": { + "type": "string", + "title": "Description", + "order": 1 }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + "family": { + "type": "string", + "title": "Family", + "order": 2 }, - "match": { - "type": "object", - "title": "match", - "properties": { - "confidence": { - "type": "string", - "title": "Confidence", - "order": 1 - }, - "fingerprint": { - "$ref": "#/definitions/fingerprint", - "title": "Fingerprint", - "order": 2 - } - }, - "definitions": { - "fingerprint": { - "type": "object", - "title": "fingerprint", - "properties": { - "description": { - "type": "string", - "title": "Description", - "order": 1 - }, - "family": { - "type": "string", - "title": "Family", - "order": 2 - }, - "product": { - "type": "string", - "title": "Product", - "order": 3 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "order": 4 - }, - "version": { - "type": "string", - "title": "Version", - "order": 5 - } - } - } - } + "product": { + "type": "string", + "title": "Product", + "order": 3 }, - "step": { - "type": "object", - "title": "step", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "text", - "order": 2 - } - } + "vendor": { + "type": "string", + "title": "Vendor", + "order": 4 }, - "summary": { - "type": "object", - "title": "summary", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "text", - "order": 2 - } - } + "version": { + "type": "string", + "title": "Version", + "order": 5 } } }, @@ -387,351 +247,6 @@ class AssetVulnerabilitySolutionOutput(insightconnect_plugin_runtime.Output): "order": 2 } } - }, - "vulnerability_solution": { - "type": "object", - "title": "vulnerability_solution", - "properties": { - "links": { - "type": "array", - "title": "Links", - "description": "Hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 1 - }, - "resources": { - "type": "array", - "title": "Solutions", - "description": "Solutions to vulnerabilities", - "items": { - "$ref": "#/definitions/resources" - }, - "order": 2 - } - }, - "definitions": { - "fingerprint": { - "type": "object", - "title": "fingerprint", - "properties": { - "description": { - "type": "string", - "title": "Description", - "order": 1 - }, - "family": { - "type": "string", - "title": "Family", - "order": 2 - }, - "product": { - "type": "string", - "title": "Product", - "order": 3 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "order": 4 - }, - "version": { - "type": "string", - "title": "Version", - "order": 5 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "match": { - "type": "object", - "title": "match", - "properties": { - "confidence": { - "type": "string", - "title": "Confidence", - "order": 1 - }, - "fingerprint": { - "$ref": "#/definitions/fingerprint", - "title": "Fingerprint", - "order": 2 - } - }, - "definitions": { - "fingerprint": { - "type": "object", - "title": "fingerprint", - "properties": { - "description": { - "type": "string", - "title": "Description", - "order": 1 - }, - "family": { - "type": "string", - "title": "Family", - "order": 2 - }, - "product": { - "type": "string", - "title": "Product", - "order": 3 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "order": 4 - }, - "version": { - "type": "string", - "title": "Version", - "order": 5 - } - } - } - } - }, - "resources": { - "type": "object", - "title": "resources", - "properties": { - "appliesTo": { - "type": "string", - "title": "Applies To", - "order": 1 - }, - "confidence": { - "type": "string", - "title": "Confidence", - "order": 2 - }, - "estimate": { - "type": "string", - "title": "Estimate", - "order": 3 - }, - "id": { - "type": "string", - "title": "ID", - "order": 4 - }, - "links": { - "type": "array", - "title": "links", - "items": { - "$ref": "#/definitions/link" - }, - "order": 5 - }, - "matches": { - "type": "array", - "title": "Matches", - "items": { - "$ref": "#/definitions/match" - }, - "order": 7 - }, - "steps": { - "$ref": "#/definitions/step", - "title": "Steps", - "order": 8 - }, - "summary": { - "$ref": "#/definitions/summary", - "title": "Summary", - "order": 9 - }, - "type": { - "type": "string", - "title": "Type", - "order": 6 - } - }, - "definitions": { - "fingerprint": { - "type": "object", - "title": "fingerprint", - "properties": { - "description": { - "type": "string", - "title": "Description", - "order": 1 - }, - "family": { - "type": "string", - "title": "Family", - "order": 2 - }, - "product": { - "type": "string", - "title": "Product", - "order": 3 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "order": 4 - }, - "version": { - "type": "string", - "title": "Version", - "order": 5 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "match": { - "type": "object", - "title": "match", - "properties": { - "confidence": { - "type": "string", - "title": "Confidence", - "order": 1 - }, - "fingerprint": { - "$ref": "#/definitions/fingerprint", - "title": "Fingerprint", - "order": 2 - } - }, - "definitions": { - "fingerprint": { - "type": "object", - "title": "fingerprint", - "properties": { - "description": { - "type": "string", - "title": "Description", - "order": 1 - }, - "family": { - "type": "string", - "title": "Family", - "order": 2 - }, - "product": { - "type": "string", - "title": "Product", - "order": 3 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "order": 4 - }, - "version": { - "type": "string", - "title": "Version", - "order": 5 - } - } - } - } - }, - "step": { - "type": "object", - "title": "step", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "text", - "order": 2 - } - } - }, - "summary": { - "type": "object", - "title": "summary", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "text", - "order": 2 - } - } - } - } - }, - "step": { - "type": "object", - "title": "step", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "text", - "order": 2 - } - } - }, - "summary": { - "type": "object", - "title": "summary", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "text", - "order": 2 - } - } - } - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_asset_group/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_asset_group/__init__.py index a80e3d51ba..c05d8681e1 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_asset_group/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_asset_group/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import CreateAssetGroup diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_asset_group/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_asset_group/schema.py index 7664db722b..43489a8f8c 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_asset_group/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_asset_group/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -12,14 +12,14 @@ class Input: NAME = "name" SEARCHCRITERIA = "searchCriteria" TYPE = "type" - + class Output: ID = "id" - + class CreateAssetGroupInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -57,7 +57,8 @@ class CreateAssetGroupInput(insightconnect_plugin_runtime.Input): "description", "name", "type" - ] + ], + "definitions": {} } """) @@ -66,7 +67,7 @@ def __init__(self): class CreateAssetGroupOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -80,7 +81,8 @@ class CreateAssetGroupOutput(insightconnect_plugin_runtime.Output): }, "required": [ "id" - ] + ], + "definitions": {} } """) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_exception/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_exception/__init__.py index c21eef90ed..484aabaffc 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_exception/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_exception/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import CreateException diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_exception/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_exception/schema.py index db8b881c40..a00a95945d 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_exception/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_exception/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -16,15 +16,15 @@ class Input: SCOPE = "scope" TYPE = "type" VULNERABILITY = "vulnerability" - + class Output: ID = "id" LINKS = "links" - + class CreateExceptionInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,10 +38,10 @@ class CreateExceptionInput(insightconnect_plugin_runtime.Input): }, "expiration": { "type": "string", - "title": "Expiration", + "format": "date-time", "displayType": "date", + "title": "Expiration", "description": "The date the vulnerability exception expires", - "format": "date-time", "order": 4 }, "key": { @@ -100,7 +100,8 @@ class CreateExceptionInput(insightconnect_plugin_runtime.Input): "reason", "type", "vulnerability" - ] + ], + "definitions": {} } """) @@ -109,7 +110,7 @@ def __init__(self): class CreateExceptionOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine/__init__.py index f3bcacb45d..4bb22ffc16 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import CreateScanEngine diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine/schema.py index c0079a09e6..7dece862cc 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -12,15 +12,15 @@ class Input: NAME = "name" PORT = "port" SITES = "sites" - + class Output: ID = "id" LINKS = "links" - + class CreateScanEngineInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -48,10 +48,10 @@ class CreateScanEngineInput(insightconnect_plugin_runtime.Input): "type": "array", "title": "Sites", "description": "List of site IDs with which to associate the engine", + "default": [], "items": { "type": "integer" }, - "default": [], "order": 4 } }, @@ -59,7 +59,8 @@ class CreateScanEngineInput(insightconnect_plugin_runtime.Input): "address", "name", "port" - ] + ], + "definitions": {} } """) @@ -68,7 +69,7 @@ def __init__(self): class CreateScanEngineOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine_pool/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine_pool/__init__.py index 8cd733730d..f48f93e0b7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine_pool/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine_pool/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import CreateScanEnginePool diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine_pool/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine_pool/schema.py index 48ca0028d0..3453915964 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine_pool/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_scan_engine_pool/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,15 +10,15 @@ class Component: class Input: ENGINES = "engines" NAME = "name" - + class Output: ID = "id" LINKS = "links" - + class CreateScanEnginePoolInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -41,7 +41,8 @@ class CreateScanEnginePoolInput(insightconnect_plugin_runtime.Input): }, "required": [ "name" - ] + ], + "definitions": {} } """) @@ -50,7 +51,7 @@ def __init__(self): class CreateScanEnginePoolOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_site/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_site/__init__.py index f2323992f5..4936431174 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_site/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_site/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import CreateSite diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_site/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_site/schema.py index 16fb976e20..aa8bc5ece9 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_site/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_site/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -17,15 +17,15 @@ class Input: INCLUDED_ASSET_GROUPS = "included_asset_groups" NAME = "name" SCAN_TEMPLATE_ID = "scan_template_id" - + class Output: ID = "id" LINKS = "links" - + class CreateSiteInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -46,20 +46,20 @@ class CreateSiteInput(insightconnect_plugin_runtime.Input): "type": "array", "title": "Excluded Addresses", "description": "List of addresses to exclude in scan scope", + "default": [], "items": { "type": "string" }, - "default": [], "order": 7 }, "excluded_asset_groups": { "type": "array", "title": "Excluded Asset Groups", "description": "Assets associated with these asset group IDs will be excluded in the site", + "default": [], "items": { "type": "integer" }, - "default": [], "order": 9 }, "importance": { @@ -80,20 +80,20 @@ class CreateSiteInput(insightconnect_plugin_runtime.Input): "type": "array", "title": "Included Addresses", "description": "List of addresses to include in scan scope", + "default": [], "items": { "type": "string" }, - "default": [], "order": 6 }, "included_asset_groups": { "type": "array", "title": "Included Asset Groups", "description": "Assets associated with these asset group IDs will be included in the site", + "default": [], "items": { "type": "integer" }, - "default": [], "order": 8 }, "name": { @@ -111,7 +111,8 @@ class CreateSiteInput(insightconnect_plugin_runtime.Input): }, "required": [ "name" - ] + ], + "definitions": {} } """) @@ -120,7 +121,7 @@ def __init__(self): class CreateSiteOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_tag/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_tag/__init__.py index 05902d4ac8..de66e48df2 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_tag/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_tag/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import CreateTag diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_tag/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_tag/schema.py index d75e30038e..0f848470ab 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_tag/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_tag/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -12,14 +12,14 @@ class Input: NAME = "name" SEARCHCRITERIA = "searchCriteria" TYPE = "type" - + class Output: ID = "id" - + class CreateTagInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -66,7 +66,8 @@ class CreateTagInput(insightconnect_plugin_runtime.Input): "required": [ "name", "type" - ] + ], + "definitions": {} } """) @@ -75,7 +76,7 @@ def __init__(self): class CreateTagOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -89,7 +90,8 @@ class CreateTagOutput(insightconnect_plugin_runtime.Output): }, "required": [ "id" - ] + ], + "definitions": {} } """) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_user/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_user/__init__.py index 3db74725cf..88ac46866a 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_user/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_user/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import CreateUser diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_user/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_user/schema.py index da2d4df7b6..37ac876f57 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_user/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/create_user/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -17,15 +17,15 @@ class Input: LOGIN = "login" NAME = "name" ROLE_ID = "role_id" - + class Output: ID = "id" LINKS = "links" - + class CreateUserInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -103,7 +103,8 @@ class CreateUserInput(insightconnect_plugin_runtime.Input): "login", "name", "role_id" - ] + ], + "definitions": {} } """) @@ -112,7 +113,7 @@ def __init__(self): class CreateUserOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset/__init__.py index 7ec726ff6d..f19beec705 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteAsset diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset/schema.py index 38157e8120..b6259c40de 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: SUCCESS = "success" - + class DeleteAssetInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class DeleteAssetInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class DeleteAssetOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -53,7 +54,8 @@ class DeleteAssetOutput(insightconnect_plugin_runtime.Output): }, "required": [ "success" - ] + ], + "definitions": {} } """) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset_group/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset_group/__init__.py index d7137b153b..f204a0b12c 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset_group/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset_group/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteAssetGroup diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset_group/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset_group/schema.py index 5f644241e8..7641888bc9 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset_group/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_asset_group/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class DeleteAssetGroupInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class DeleteAssetGroupInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class DeleteAssetGroupOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_exception/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_exception/__init__.py index 2d7c760333..614e55cab2 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_exception/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_exception/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteException diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_exception/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_exception/schema.py index 486c0a1aec..8676ee86bf 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_exception/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_exception/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: EXCEPTION_ID = "exception_id" - + class Output: LINKS = "links" - + class DeleteExceptionInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class DeleteExceptionInput(insightconnect_plugin_runtime.Input): }, "required": [ "exception_id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class DeleteExceptionOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine/__init__.py index 3a46fa5ed7..2405501846 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteScanEngine diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine/schema.py index 9206adb293..fc9684411c 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class DeleteScanEngineInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class DeleteScanEngineInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class DeleteScanEngineOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine_pool/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine_pool/__init__.py index 0a97c1cb5d..4b4e449216 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine_pool/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine_pool/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteScanEnginePool diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine_pool/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine_pool/schema.py index ddaee93f4c..e04f746d6e 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine_pool/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_scan_engine_pool/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class DeleteScanEnginePoolInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class DeleteScanEnginePoolInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class DeleteScanEnginePoolOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_site/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_site/__init__.py index 7bf26995b7..2472bc3b9c 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_site/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_site/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteSite diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_site/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_site/schema.py index b922f9a28a..490481df8e 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_site/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_site/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class DeleteSiteInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class DeleteSiteInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class DeleteSiteOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_tag/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_tag/__init__.py index e5960d99fe..10160d1af2 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_tag/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_tag/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteTag diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_tag/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_tag/schema.py index 71abc735f9..b4b8bee8c5 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_tag/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_tag/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class DeleteTagInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class DeleteTagInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class DeleteTagOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_user/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_user/__init__.py index 4ceee31b9a..db51ffe197 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_user/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_user/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DeleteUser diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_user/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_user/schema.py index dd66d64685..36ac05ce32 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_user/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/delete_user/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class DeleteUserInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class DeleteUserInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class DeleteUserOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/disable_user/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/disable_user/__init__.py index d67665a0cd..11a23d70ea 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/disable_user/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/disable_user/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DisableUser diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/disable_user/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/disable_user/schema.py index bb9d5abc85..695f9a135e 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/disable_user/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/disable_user/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class DisableUserInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class DisableUserInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class DisableUserOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/__init__.py index 82830ea332..aba166069d 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import DownloadReport diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/schema.py index e8ea3025be..9e15c77661 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/download_report/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ID = "id" INSTANCE = "instance" - + class Output: REPORT = "report" - + class DownloadReportInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class DownloadReportInput(insightconnect_plugin_runtime.Input): "required": [ "id", "instance" - ] + ], + "definitions": {} } """) @@ -47,20 +48,21 @@ def __init__(self): class DownloadReportOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", "properties": { "report": { "type": "string", - "title": "Report", + "format": "bytes", "displayType": "bytes", + "title": "Report", "description": "Base64 encoded report", - "format": "bytes", "order": 1 } - } + }, + "definitions": {} } """) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/enable_user/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/enable_user/__init__.py index 8362dbda2a..d81d1a4fab 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/enable_user/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/enable_user/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import EnableUser diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/enable_user/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/enable_user/schema.py index f0b9fcbec5..7e18e4aeab 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/enable_user/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/enable_user/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class EnableUserInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class EnableUserInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class EnableUserOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_adhoc_sql_report/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_adhoc_sql_report/__init__.py index 8216648240..d1cbdcf018 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_adhoc_sql_report/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_adhoc_sql_report/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GenerateAdhocSqlReport diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_adhoc_sql_report/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_adhoc_sql_report/schema.py index 97c80461c3..0ca2f1ebd4 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_adhoc_sql_report/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_adhoc_sql_report/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -12,14 +12,14 @@ class Input: QUERY = "query" SCOPE = "scope" SCOPE_IDS = "scope_ids" - + class Output: REPORT = "report" - + class GenerateAdhocSqlReportInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -56,17 +56,18 @@ class GenerateAdhocSqlReportInput(insightconnect_plugin_runtime.Input): "type": "array", "title": "Scope IDs", "description": "Scope IDs for which tickets should be generated, by default all are included", + "default": [], "items": { "type": "integer" }, - "default": [], "order": 3 } }, "required": [ "query", "scope" - ] + ], + "definitions": {} } """) @@ -75,7 +76,7 @@ def __init__(self): class GenerateAdhocSqlReportOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -97,16 +98,16 @@ class GenerateAdhocSqlReportOutput(insightconnect_plugin_runtime.Output): "title": "File", "description": "File Object", "properties": { - "content": { - "type": "string", - "title": "Content", - "description": "File contents", - "format": "bytes" - }, "filename": { "type": "string", "title": "Filename", "description": "Name of file" + }, + "content": { + "type": "string", + "format": "bytes", + "title": "Content", + "description": "File contents" } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_shared_secret/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_shared_secret/__init__.py index eed66b15cc..5e795bd2fb 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_shared_secret/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_shared_secret/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GenerateSharedSecret diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_shared_secret/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_shared_secret/schema.py index 1b47a29744..c904543df8 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_shared_secret/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/generate_shared_secret/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: TIME_TO_LIVE = "time_to_live" - + class Output: SHARED_SECRET = "shared_secret" - + class GenerateSharedSecretInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -31,7 +31,8 @@ class GenerateSharedSecretInput(insightconnect_plugin_runtime.Input): }, "required": [ "time_to_live" - ] + ], + "definitions": {} } """) @@ -40,7 +41,7 @@ def __init__(self): class GenerateSharedSecretOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -54,7 +55,8 @@ class GenerateSharedSecretOutput(insightconnect_plugin_runtime.Output): }, "required": [ "shared_secret" - ] + ], + "definitions": {} } """) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/__init__.py index 8847331b93..edd2ecb236 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetAsset diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/schema.py index e504b2b8cd..3c482299b0 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ASSET_ID = "asset_id" - + class Output: ASSET = "asset" - + class GetAssetInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetAssetInput(insightconnect_plugin_runtime.Input): }, "required": [ "asset_id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetAssetOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,24 +56,6 @@ class GetAssetOutput(insightconnect_plugin_runtime.Output): "asset" ], "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, "asset": { "type": "object", "title": "asset", @@ -257,1218 +240,41 @@ class GetAssetOutput(insightconnect_plugin_runtime.Output): "description": " Summary information for vulnerabilities on the asset", "order": 24 } - }, - "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "history": { - "type": "object", - "title": "history", - "properties": { - "date": { - "type": "string", - "title": "Date", - "description": "Date the asset information was collected or changed", - "order": 1 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Additional information describing the change", - "order": 2 - }, - "scanId": { - "type": "integer", - "title": "Scan ID", - "description": "If a scan-oriented change, the identifier of the corresponding scan the asset was scanned in", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type, for additional information see the help section of this plugin", - "order": 4 - }, - "user": { - "type": "string", - "title": "User", - "description": "User", - "order": 5 - }, - "version": { - "type": "integer", - "title": "Version", - "description": "Version", - "order": 6 - }, - "vulnerabilityExceptionId": { - "type": "integer", - "title": "Vulnerability Exception ID", - "description": "Vulnerability exception ID", - "order": 7 - } - } - }, - "hostName": { - "type": "object", - "title": "hostName", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "id": { - "type": "object", - "title": "id", - "properties": { - "id": { - "type": "string", - "title": "ID", - "description": "ID", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "osFingerprint": { - "type": "object", - "title": "osFingerprint", - "properties": { - "architecture": { - "type": "string", - "title": "Architecture", - "description": "The architecture of the operating system", - "order": 1 - }, - "configurations": { - "type": "array", - "title": "Configuration", - "description": "Configuration key-values pairs enumerated on the operating system", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 2 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "Common Platform Enumeration", - "order": 3 - }, - "description": { - "type": "string", - "title": "Description", - "description": "The description of the operating system (containing vendor, family, product, version and architecture in a single string)", - "order": 4 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the operating system", - "order": 5 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the operating system", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Name of the operating system", - "order": 7 - }, - "systemName": { - "type": "string", - "title": "System Name", - "description": "A combination of vendor and family (with redundancies removed), suitable for grouping", - "order": 8 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of operating system", - "order": 9 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the operating system", - "order": 10 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the operating system", - "order": 11 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "service": { - "type": "object", - "title": "service", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configuration key-values pairs enumerated on the service", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "databases": { - "type": "array", - "title": "Databases", - "description": "Databases enumerated on the service", - "items": { - "$ref": "#/definitions/database" - }, - "order": 2 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the service", - "order": 3 - }, - "links": { - "type": "array", - "title": "Links", - "description": "Hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 4 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the service", - "order": 5 - }, - "port": { - "type": "integer", - "title": "Port", - "description": "Port of the service", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product running the service", - "order": 7 - }, - "protocol": { - "type": "string", - "title": "Protocol", - "description": "Protocol of the service", - "order": 8 - }, - "userGroups": { - "type": "array", - "title": "User Groups", - "description": "User groups", - "items": { - "$ref": "#/definitions/userGroup" - }, - "order": 9 - }, - "users": { - "type": "array", - "title": "Users", - "description": "Users", - "items": { - "$ref": "#/definitions/user" - }, - "order": 10 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the service", - "order": 11 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the service", - "order": 12 - }, - "webApplications": { - "type": "array", - "title": "Web Applications", - "description": "Web applications found on the service", - "items": { - "$ref": "#/definitions/webApplication" - }, - "order": 13 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } - } - } - }, - "software": { - "type": "object", - "title": "software", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configurations", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "CPE", - "order": 2 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Description of the software", - "order": 3 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the software", - "order": 4 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "ID", - "order": 5 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product of the software", - "order": 6 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the software", - "order": 7 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the software", - "order": 8 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the software", - "order": 9 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "vulnerabilities": { - "type": "object", - "title": "vulnerabilities", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "exploits": { - "type": "integer", - "title": "Exploits", - "description": "Number of distinct exploits that can exploit any of the vulnerabilities on the asset", - "order": 2 - }, - "malwareKits": { - "type": "integer", - "title": "Malware Kits", - "description": "Number of distinct malware kits that vulnerabilities on the asset are susceptible to", - "order": 3 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 4 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 5 - }, - "total": { - "type": "integer", - "title": "Total", - "description": "Total number of vulnerabilities", - "order": 6 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } - } } }, - "configuration": { + "address": { "type": "object", - "title": "configuration", + "title": "address", "properties": { - "name": { + "ip": { "type": "string", - "title": "Name", - "description": "Name of the configuration value", + "title": "IP", + "description": "IPv4 or IPv6 address", "order": 1 }, - "value": { + "mac": { "type": "string", - "title": "Value", - "description": "Configuration value", + "title": "MAC", + "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", "order": 2 } } }, - "cpe": { + "configuration": { "type": "object", - "title": "cpe", + "title": "configuration", "properties": { - "edition": { + "name": { "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", + "title": "Name", + "description": "Name of the configuration value", "order": 1 }, - "language": { + "value": { "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", + "title": "Value", + "description": "Configuration value", "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 } } }, @@ -1496,6 +302,47 @@ class GetAssetOutput(insightconnect_plugin_runtime.Output): } } }, + "insightvm_file": { + "type": "object", + "title": "insightvm_file", + "properties": { + "attributes": { + "type": "array", + "title": "Attributes", + "description": "Attributes detected on the file", + "items": { + "$ref": "#/definitions/configuration" + }, + "order": 1 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the file", + "order": 2 + }, + "size": { + "type": "integer", + "title": "Size", + "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", + "order": 3 + }, + "type": { + "type": "string", + "title": "Type", + "description": "Type of the file, e.g. file or directory", + "order": 4 + }, + "content": { + "type": "string", + "format": "bytes", + "displayType": "bytes", + "title": "Contents", + "description": "Contents of the file", + "order": 5 + } + } + }, "history": { "type": "object", "title": "history", @@ -1580,67 +427,6 @@ class GetAssetOutput(insightconnect_plugin_runtime.Output): } } }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, "link": { "type": "object", "title": "link", @@ -1732,133 +518,89 @@ class GetAssetOutput(insightconnect_plugin_runtime.Output): "description": "Version of the operating system", "order": 11 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } } }, - "page": { + "cpe": { "type": "object", - "title": "page", + "title": "cpe", "properties": { - "linkType": { + "edition": { "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", + "title": "Edition", + "description": "Edition-related terms applied by the vendor to the product", "order": 1 }, - "path": { + "language": { "type": "string", - "title": "Path", - "description": "Path to the page (URI)", + "title": "Language", + "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", "order": 2 }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", + "other": { + "type": "string", + "title": "Other", + "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", "order": 3 + }, + "part": { + "type": "string", + "title": "Part", + "description": "A single letter code that designates the particular platform part that is being identified", + "order": 4 + }, + "product": { + "type": "string", + "title": "Product", + "description": "Most common and recognizable title or name of the product", + "order": 5 + }, + "swEdition": { + "type": "string", + "title": "Software Edition", + "description": "Characterizes how the product is tailored to a particular market or class of end users", + "order": 6 + }, + "targetHW": { + "type": "string", + "title": "Target Hardware", + "description": "Characterize the instruction set architecture on which the product operates", + "order": 7 + }, + "targetSW": { + "type": "string", + "title": "Target Software", + "description": "Characterizes the software computing environment within which the product operates", + "order": 8 + }, + "update": { + "type": "string", + "title": "Update", + "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", + "order": 9 + }, + "v2.2": { + "type": "string", + "title": "Version 2.2", + "description": "The full CPE string in the CPE 2.2 format", + "order": 10 + }, + "v2.3": { + "type": "string", + "title": "Version 2.3", + "description": "The full CPE string in the CPE 2.3 format", + "order": 11 + }, + "vendor": { + "type": "string", + "title": "Vendor", + "description": "The person or organization that manufactured or created the product", + "order": 12 + }, + "version": { + "type": "string", + "title": "Version", + "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", + "order": 13 } } }, @@ -1962,192 +704,104 @@ class GetAssetOutput(insightconnect_plugin_runtime.Output): }, "order": 13 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } + } + }, + "userGroup": { + "type": "object", + "title": "userGroup", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user group", + "order": 1 }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user group", + "order": 2 + } + } + }, + "user": { + "type": "object", + "title": "user", + "properties": { + "fullName": { + "type": "string", + "title": "Full Name", + "description": "Full name of the user account", + "order": 1 + }, + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user account", + "order": 2 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user account", + "order": 3 + } + } + }, + "webApplication": { + "type": "object", + "title": "webApplication", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the web application", + "order": 1 + }, + "pages": { + "type": "array", + "title": "Pages", + "description": "Pages", + "items": { + "$ref": "#/definitions/page" }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } + "order": 2 + }, + "root": { + "type": "string", + "title": "Root", + "description": "Web root of the web application", + "order": 3 + }, + "virtualHost": { + "type": "string", + "title": "Virtual Host", + "description": "Virtual host of the web application", + "order": 4 + } + } + }, + "page": { + "type": "object", + "title": "page", + "properties": { + "linkType": { + "type": "string", + "title": "Link Type", + "description": "Type of link used to traverse or detect the page", + "order": 1 + }, + "path": { + "type": "string", + "title": "Path", + "description": "Path to the page (URI)", + "order": 2 + }, + "response": { + "type": "integer", + "title": "Response", + "description": "HTTP response code observed with retrieving the page", + "order": 3 } } }, @@ -2212,152 +866,6 @@ class GetAssetOutput(insightconnect_plugin_runtime.Output): "description": "Version of the software", "order": 9 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } } }, "vulnerabilities": { @@ -2401,65 +909,6 @@ class GetAssetOutput(insightconnect_plugin_runtime.Output): "order": 6 } } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group/__init__.py index ba45e31e7b..d8ef2bd006 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetAssetGroup diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group/schema.py index b4e280e023..28d7ac197e 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: ASSET_GROUP = "asset_group" - + class GetAssetGroupInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetAssetGroupInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetAssetGroupOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -125,57 +126,7 @@ class GetAssetGroupOutput(insightconnect_plugin_runtime.Output): "riskScore", "type", "vulnerabilities" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "vulnerabilities_count": { - "type": "object", - "title": "vulnerabilities_count", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 2 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 3 - }, - "total": { - "type": "integer", - "title": "Total number of vulnerabilities", - "description": "Total", - "order": 4 - } - } - } - } + ] }, "link": { "type": "object", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group_assets/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group_assets/__init__.py index 06ffe569b2..a3f999883b 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group_assets/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group_assets/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetAssetGroupAssets diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group_assets/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group_assets/schema.py index 9f872b8931..e7a5b2a01c 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group_assets/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_group_assets/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,15 +9,15 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" RESOURCES = "resources" - + class GetAssetGroupAssetsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -31,7 +31,8 @@ class GetAssetGroupAssetsInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -40,7 +41,7 @@ def __init__(self): class GetAssetGroupAssetsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_groups/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_groups/__init__.py index 3c59097084..7a95c7e195 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_groups/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_groups/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetAssetGroups diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_groups/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_groups/schema.py index 32aedb5c08..74e407d4f9 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_groups/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_groups/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: NAME = "name" - + class Output: ASSET_GROUPS = "asset_groups" - + class GetAssetGroupsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -28,7 +28,8 @@ class GetAssetGroupsInput(insightconnect_plugin_runtime.Input): "default": "", "order": 1 } - } + }, + "definitions": {} } """) @@ -37,7 +38,7 @@ def __init__(self): class GetAssetGroupsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -126,57 +127,7 @@ class GetAssetGroupsOutput(insightconnect_plugin_runtime.Output): "riskScore", "type", "vulnerabilities" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "vulnerabilities_count": { - "type": "object", - "title": "vulnerabilities_count", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 2 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 3 - }, - "total": { - "type": "integer", - "title": "Total number of vulnerabilities", - "description": "Total", - "order": 4 - } - } - } - } + ] }, "link": { "type": "object", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_software/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_software/__init__.py index cc6c462bd0..b13e474bce 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_software/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_software/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetAssetSoftware diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_software/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_software/schema.py index 47a0815c80..51711385df 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_software/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_software/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ASSET_ID = "asset_id" - + class Output: SOFTWARE = "software" - + class GetAssetSoftwareInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetAssetSoftwareInput(insightconnect_plugin_runtime.Input): }, "required": [ "asset_id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetAssetSoftwareOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,6 +56,69 @@ class GetAssetSoftwareOutput(insightconnect_plugin_runtime.Output): } }, "definitions": { + "software": { + "type": "object", + "title": "software", + "properties": { + "configurations": { + "type": "array", + "title": "Configurations", + "description": "Configurations", + "items": { + "$ref": "#/definitions/configuration" + }, + "order": 1 + }, + "cpe": { + "$ref": "#/definitions/cpe", + "title": "CPE", + "description": "CPE", + "order": 2 + }, + "description": { + "type": "string", + "title": "Description", + "description": "Description of the software", + "order": 3 + }, + "family": { + "type": "string", + "title": "Family", + "description": "Family of the software", + "order": 4 + }, + "id": { + "type": "integer", + "title": "ID", + "description": "ID", + "order": 5 + }, + "product": { + "type": "string", + "title": "Product", + "description": "Product of the software", + "order": 6 + }, + "type": { + "type": "string", + "title": "Type", + "description": "Type of the software", + "order": 7 + }, + "vendor": { + "type": "string", + "title": "Vendor", + "description": "Vendor of the software", + "order": 8 + }, + "version": { + "type": "string", + "title": "Version", + "description": "Version of the software", + "order": 9 + } + } + }, "configuration": { "type": "object", "title": "configuration", @@ -156,173 +220,6 @@ class GetAssetSoftwareOutput(insightconnect_plugin_runtime.Output): "order": 13 } } - }, - "software": { - "type": "object", - "title": "software", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configurations", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "CPE", - "order": 2 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Description of the software", - "order": 3 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the software", - "order": 4 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "ID", - "order": 5 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product of the software", - "order": 6 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the software", - "order": 7 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the software", - "order": 8 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the software", - "order": 9 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_tags/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_tags/__init__.py index 25e8aa0c81..102b93100a 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_tags/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_tags/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetAssetTags diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_tags/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_tags/schema.py index 6650f7d49c..ff6c944bb5 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_tags/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_tags/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ASSET_ID = "asset_id" - + class Output: TAGS = "tags" - + class GetAssetTagsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetAssetTagsInput(insightconnect_plugin_runtime.Input): }, "required": [ "asset_id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetAssetTagsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -58,24 +59,6 @@ class GetAssetTagsOutput(insightconnect_plugin_runtime.Output): "tags" ], "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "tag": { "type": "object", "title": "tag", @@ -88,10 +71,10 @@ class GetAssetTagsOutput(insightconnect_plugin_runtime.Output): }, "created": { "type": "string", - "title": "Created", + "format": "date-time", "displayType": "date", + "title": "Created", "description": "Tag creation date", - "format": "date-time", "order": 2 }, "id": { @@ -144,25 +127,23 @@ class GetAssetTagsOutput(insightconnect_plugin_runtime.Output): "id", "name", "type" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_vulnerabilities/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_vulnerabilities/__init__.py index 758044debe..248a3f9a52 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_vulnerabilities/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_vulnerabilities/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetAssetVulnerabilities diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_vulnerabilities/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_vulnerabilities/schema.py index d1234fe1b7..0c98af3281 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_vulnerabilities/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset_vulnerabilities/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ASSET_ID = "asset_id" GET_RISK_SCORE = "get_risk_score" - + class Output: VULNERABILITIES = "vulnerabilities" - + class GetAssetVulnerabilitiesInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -37,7 +37,8 @@ class GetAssetVulnerabilitiesInput(insightconnect_plugin_runtime.Input): }, "required": [ "asset_id" - ] + ], + "definitions": {} } """) @@ -46,7 +47,7 @@ def __init__(self): class GetAssetVulnerabilitiesOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -96,12 +97,6 @@ class GetAssetVulnerabilitiesOutput(insightconnect_plugin_runtime.Output): }, "order": 4 }, - "risk_score": { - "type": "number", - "title": "Risk Score", - "description": "The risk score for the vulnerability", - "order": 7 - }, "since": { "type": "string", "title": "Since", @@ -113,106 +108,30 @@ class GetAssetVulnerabilitiesOutput(insightconnect_plugin_runtime.Output): "title": "Status", "description": "Status, ie. vulnerable", "order": 6 + }, + "risk_score": { + "type": "number", + "title": "Risk Score", + "description": "The risk score for the vulnerability", + "order": 7 } - }, - "definitions": { - "asset_vulnerability_result": { - "type": "object", - "title": "asset_vulnerability_result", - "properties": { - "checkId": { - "type": "string", - "title": "Check ID", - "description": "Check ID, ie. ssh-openssh-x11uselocalhost-x11-forwarding-session-hijack", - "order": 1 - }, - "exceptions": { - "type": "array", - "title": "Exceptions", - "description": "If the result is vulnerable with exceptions applied, the identifier(s) of the exceptions actively applied to the result", - "items": { - "type": "integer" - }, - "order": 2 - }, - "key": { - "type": "string", - "title": "Key", - "description": "An additional discriminating key used to uniquely identify between multiple instances of results on the same finding", - "order": 3 - }, - "links": { - "type": "array", - "title": "Links", - "description": "Hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 4 - }, - "port": { - "type": "integer", - "title": "Port", - "description": "Port of the service the result was discovered on e.g. 22", - "order": 5 - }, - "proof": { - "type": "string", - "title": "Proof", - "description": "Proof of the vulnerability, ie. \\u003cp\\u003e\\u003cp\\u003eOpenBSD OpenSSH 4.3 on Linux\\u003c/p\\u003e\\u003c/p\\u003e", - "order": 6 - }, - "protocol": { - "type": "string", - "title": "Protocol", - "description": "Protocol of the service the result was discovered on, ie. TCP", - "order": 7 - }, - "status": { - "type": "string", - "title": "Status", - "description": "Status of the vulnerability check result, ie. vulnerable-version", - "order": 8 - } - }, - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } + } + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } }, @@ -259,7 +178,7 @@ class GetAssetVulnerabilitiesOutput(insightconnect_plugin_runtime.Output): "proof": { "type": "string", "title": "Proof", - "description": "Proof of the vulnerability, ie. \\u003cp\\u003e\\u003cp\\u003eOpenBSD OpenSSH 4.3 on Linux\\u003c/p\\u003e\\u003c/p\\u003e", + "description": "Proof of the vulnerability, ie.

OpenBSD OpenSSH 4.3 on Linux

", "order": 6 }, "protocol": { @@ -274,44 +193,6 @@ class GetAssetVulnerabilitiesOutput(insightconnect_plugin_runtime.Output): "description": "Status of the vulnerability check result, ie. vulnerable-version", "order": 8 } - }, - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_source/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_source/__init__.py index 7010025899..14e66299f4 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_source/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_source/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetAuthenticationSource diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_source/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_source/schema.py index b9da671819..ecc7c26481 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_source/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_source/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: AUTHENTICATION_SOURCE = "authentication_source" - + class GetAuthenticationSourceInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetAuthenticationSourceInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetAuthenticationSourceOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -106,27 +107,7 @@ class GetAuthenticationSourceOutput(insightconnect_plugin_runtime.Output): "links", "name", "type" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } + ] }, "link": { "type": "object", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_sources/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_sources/__init__.py index 3e0141673d..6857d97c96 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_sources/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_sources/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetAuthenticationSources diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_sources/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_sources/schema.py index 4f9a985cda..ae0735d6c9 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_sources/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_authentication_sources/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: NAME = "name" TYPE = "type" - + class Output: AUTHENTICATION_SOURCES = "authentication_sources" - + class GetAuthenticationSourcesInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -43,7 +43,8 @@ class GetAuthenticationSourcesInput(insightconnect_plugin_runtime.Input): ], "order": 2 } - } + }, + "definitions": {} } """) @@ -52,7 +53,7 @@ def __init__(self): class GetAuthenticationSourcesOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -122,27 +123,7 @@ class GetAuthenticationSourcesOutput(insightconnect_plugin_runtime.Output): "links", "name", "type" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } + ] }, "link": { "type": "object", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_expiring_vulnerability_exceptions/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_expiring_vulnerability_exceptions/__init__.py index b504130ebc..a90de19d72 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_expiring_vulnerability_exceptions/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_expiring_vulnerability_exceptions/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetExpiringVulnerabilityExceptions diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_expiring_vulnerability_exceptions/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_expiring_vulnerability_exceptions/schema.py index ec02000472..2d11f498d7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_expiring_vulnerability_exceptions/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_expiring_vulnerability_exceptions/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: EXPIRES_IN_LESS_THAN = "expires_in_less_than" - + class Output: EXCEPTIONS = "exceptions" - + class GetExpiringVulnerabilityExceptionsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -31,7 +31,8 @@ class GetExpiringVulnerabilityExceptionsInput(insightconnect_plugin_runtime.Inpu }, "required": [ "expires_in_less_than" - ] + ], + "definitions": {} } """) @@ -40,7 +41,7 @@ def __init__(self): class GetExpiringVulnerabilityExceptionsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -56,63 +57,18 @@ class GetExpiringVulnerabilityExceptionsOutput(insightconnect_plugin_runtime.Out } }, "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "vulnerability_exception": { "type": "object", "title": "vulnerability_exception", "properties": { "expires": { "type": "string", - "title": "Expires", + "format": "date-time", "displayType": "date", + "title": "Expires", "description": "The date and time the vulnerability exception is set to expire", - "format": "date-time", "order": 1 }, - "id": { - "type": "integer", - "title": "Vulnerability Exception ID", - "description": "The ID uniquely identifying the vulnerability exception", - "order": 3 - }, - "links": { - "type": "array", - "title": "Links", - "description": "Hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 7 - }, - "review": { - "type": "object", - "title": "Review Details", - "description": "Details of the exception review", - "order": 6 - }, - "scope": { - "type": "object", - "title": "Exception Scope", - "description": "Details of the scope of the exception", - "order": 4 - }, "state": { "type": "string", "title": "State", @@ -126,11 +82,38 @@ class GetExpiringVulnerabilityExceptionsOutput(insightconnect_plugin_runtime.Out ], "order": 2 }, + "id": { + "type": "integer", + "title": "Vulnerability Exception ID", + "description": "The ID uniquely identifying the vulnerability exception", + "order": 3 + }, + "scope": { + "type": "object", + "title": "Exception Scope", + "description": "Details of the scope of the exception", + "order": 4 + }, "submit": { "type": "object", "title": "Submission Details", "description": "Details of the exception submission", "order": 5 + }, + "review": { + "type": "object", + "title": "Review Details", + "description": "Details of the exception review", + "order": 6 + }, + "links": { + "type": "array", + "title": "Links", + "description": "Hypermedia links to corresponding or related resources", + "items": { + "$ref": "#/definitions/link" + }, + "order": 7 } }, "required": [ @@ -138,25 +121,23 @@ class GetExpiringVulnerabilityExceptionsOutput(insightconnect_plugin_runtime.Out "scope", "state", "submit" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_role/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_role/__init__.py index 4594ec0663..01f38a1076 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_role/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_role/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetRole diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_role/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_role/schema.py index 18df4f733a..9e2b381ef7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_role/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_role/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: ROLE = "role" - + class GetRoleInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetRoleInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetRoleOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,24 +56,6 @@ class GetRoleOutput(insightconnect_plugin_runtime.Output): "role" ], "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "role": { "type": "object", "title": "role", @@ -85,7 +68,6 @@ class GetRoleOutput(insightconnect_plugin_runtime.Output): }, "id": { "type": "string", - "title": "Id", "description": "ID of the role, e.g 'global-admin'", "order": 2 }, @@ -120,25 +102,23 @@ class GetRoleOutput(insightconnect_plugin_runtime.Output): "links", "name", "privileges" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_roles/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_roles/__init__.py index 31df76c888..92f380df48 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_roles/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_roles/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetRoles diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_roles/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_roles/schema.py index 6aca028db7..59a08e6b5f 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_roles/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_roles/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: NAME = "name" - + class Output: ROLES = "roles" - + class GetRolesInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -27,7 +27,8 @@ class GetRolesInput(insightconnect_plugin_runtime.Input): "description": "Role name by which to filter, accepts regular expression patterns", "order": 1 } - } + }, + "definitions": {} } """) @@ -36,7 +37,7 @@ def __init__(self): class GetRolesOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,24 +56,6 @@ class GetRolesOutput(insightconnect_plugin_runtime.Output): "roles" ], "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "role": { "type": "object", "title": "role", @@ -85,7 +68,6 @@ class GetRolesOutput(insightconnect_plugin_runtime.Output): }, "id": { "type": "string", - "title": "Id", "description": "ID of the role, e.g 'global-admin'", "order": 2 }, @@ -120,25 +102,23 @@ class GetRolesOutput(insightconnect_plugin_runtime.Output): "links", "name", "privileges" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan/__init__.py index 514534c165..22ae2edb3f 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetScan diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan/schema.py index ceb4270a77..d2e36971a0 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,7 +9,7 @@ class Component: class Input: SCAN_ID = "scan_id" - + class Output: ASSETS = "assets" @@ -23,10 +23,10 @@ class Output: STARTTIME = "startTime" STATUS = "status" VULNERABILITIES = "vulnerabilities" - + class GetScanInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -40,7 +40,8 @@ class GetScanInput(insightconnect_plugin_runtime.Input): }, "required": [ "scan_id" - ] + ], + "definitions": {} } """) @@ -49,7 +50,7 @@ def __init__(self): class GetScanOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_assets/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_assets/__init__.py index 2c2dac61ab..332e102da5 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_assets/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_assets/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetScanAssets diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_assets/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_assets/schema.py index e81a12cb0f..8f8d3455a1 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_assets/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_assets/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: SCAN_ID = "scan_id" - + class Output: ASSETS = "assets" - + class GetScanAssetsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetScanAssetsInput(insightconnect_plugin_runtime.Input): }, "required": [ "scan_id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetScanAssetsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,24 +56,6 @@ class GetScanAssetsOutput(insightconnect_plugin_runtime.Output): } }, "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, "asset": { "type": "object", "title": "asset", @@ -257,1218 +240,41 @@ class GetScanAssetsOutput(insightconnect_plugin_runtime.Output): "description": " Summary information for vulnerabilities on the asset", "order": 24 } - }, - "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "history": { - "type": "object", - "title": "history", - "properties": { - "date": { - "type": "string", - "title": "Date", - "description": "Date the asset information was collected or changed", - "order": 1 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Additional information describing the change", - "order": 2 - }, - "scanId": { - "type": "integer", - "title": "Scan ID", - "description": "If a scan-oriented change, the identifier of the corresponding scan the asset was scanned in", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type, for additional information see the help section of this plugin", - "order": 4 - }, - "user": { - "type": "string", - "title": "User", - "description": "User", - "order": 5 - }, - "version": { - "type": "integer", - "title": "Version", - "description": "Version", - "order": 6 - }, - "vulnerabilityExceptionId": { - "type": "integer", - "title": "Vulnerability Exception ID", - "description": "Vulnerability exception ID", - "order": 7 - } - } - }, - "hostName": { - "type": "object", - "title": "hostName", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "id": { - "type": "object", - "title": "id", - "properties": { - "id": { - "type": "string", - "title": "ID", - "description": "ID", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "osFingerprint": { - "type": "object", - "title": "osFingerprint", - "properties": { - "architecture": { - "type": "string", - "title": "Architecture", - "description": "The architecture of the operating system", - "order": 1 - }, - "configurations": { - "type": "array", - "title": "Configuration", - "description": "Configuration key-values pairs enumerated on the operating system", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 2 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "Common Platform Enumeration", - "order": 3 - }, - "description": { - "type": "string", - "title": "Description", - "description": "The description of the operating system (containing vendor, family, product, version and architecture in a single string)", - "order": 4 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the operating system", - "order": 5 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the operating system", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Name of the operating system", - "order": 7 - }, - "systemName": { - "type": "string", - "title": "System Name", - "description": "A combination of vendor and family (with redundancies removed), suitable for grouping", - "order": 8 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of operating system", - "order": 9 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the operating system", - "order": 10 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the operating system", - "order": 11 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "service": { - "type": "object", - "title": "service", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configuration key-values pairs enumerated on the service", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "databases": { - "type": "array", - "title": "Databases", - "description": "Databases enumerated on the service", - "items": { - "$ref": "#/definitions/database" - }, - "order": 2 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the service", - "order": 3 - }, - "links": { - "type": "array", - "title": "Links", - "description": "Hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 4 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the service", - "order": 5 - }, - "port": { - "type": "integer", - "title": "Port", - "description": "Port of the service", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product running the service", - "order": 7 - }, - "protocol": { - "type": "string", - "title": "Protocol", - "description": "Protocol of the service", - "order": 8 - }, - "userGroups": { - "type": "array", - "title": "User Groups", - "description": "User groups", - "items": { - "$ref": "#/definitions/userGroup" - }, - "order": 9 - }, - "users": { - "type": "array", - "title": "Users", - "description": "Users", - "items": { - "$ref": "#/definitions/user" - }, - "order": 10 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the service", - "order": 11 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the service", - "order": 12 - }, - "webApplications": { - "type": "array", - "title": "Web Applications", - "description": "Web applications found on the service", - "items": { - "$ref": "#/definitions/webApplication" - }, - "order": 13 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } - } - } - }, - "software": { - "type": "object", - "title": "software", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configurations", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "CPE", - "order": 2 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Description of the software", - "order": 3 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the software", - "order": 4 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "ID", - "order": 5 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product of the software", - "order": 6 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the software", - "order": 7 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the software", - "order": 8 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the software", - "order": 9 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "vulnerabilities": { - "type": "object", - "title": "vulnerabilities", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "exploits": { - "type": "integer", - "title": "Exploits", - "description": "Number of distinct exploits that can exploit any of the vulnerabilities on the asset", - "order": 2 - }, - "malwareKits": { - "type": "integer", - "title": "Malware Kits", - "description": "Number of distinct malware kits that vulnerabilities on the asset are susceptible to", - "order": 3 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 4 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 5 - }, - "total": { - "type": "integer", - "title": "Total", - "description": "Total number of vulnerabilities", - "order": 6 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } - } } }, - "configuration": { + "address": { "type": "object", - "title": "configuration", + "title": "address", "properties": { - "name": { + "ip": { "type": "string", - "title": "Name", - "description": "Name of the configuration value", + "title": "IP", + "description": "IPv4 or IPv6 address", "order": 1 }, - "value": { + "mac": { "type": "string", - "title": "Value", - "description": "Configuration value", + "title": "MAC", + "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", "order": 2 } } }, - "cpe": { + "configuration": { "type": "object", - "title": "cpe", + "title": "configuration", "properties": { - "edition": { + "name": { "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", + "title": "Name", + "description": "Name of the configuration value", "order": 1 }, - "language": { + "value": { "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", + "title": "Value", + "description": "Configuration value", "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 } } }, @@ -1496,6 +302,47 @@ class GetScanAssetsOutput(insightconnect_plugin_runtime.Output): } } }, + "insightvm_file": { + "type": "object", + "title": "insightvm_file", + "properties": { + "attributes": { + "type": "array", + "title": "Attributes", + "description": "Attributes detected on the file", + "items": { + "$ref": "#/definitions/configuration" + }, + "order": 1 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the file", + "order": 2 + }, + "size": { + "type": "integer", + "title": "Size", + "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", + "order": 3 + }, + "type": { + "type": "string", + "title": "Type", + "description": "Type of the file, e.g. file or directory", + "order": 4 + }, + "content": { + "type": "string", + "format": "bytes", + "displayType": "bytes", + "title": "Contents", + "description": "Contents of the file", + "order": 5 + } + } + }, "history": { "type": "object", "title": "history", @@ -1580,67 +427,6 @@ class GetScanAssetsOutput(insightconnect_plugin_runtime.Output): } } }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, "link": { "type": "object", "title": "link", @@ -1732,133 +518,89 @@ class GetScanAssetsOutput(insightconnect_plugin_runtime.Output): "description": "Version of the operating system", "order": 11 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } } }, - "page": { + "cpe": { "type": "object", - "title": "page", + "title": "cpe", "properties": { - "linkType": { + "edition": { "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", + "title": "Edition", + "description": "Edition-related terms applied by the vendor to the product", "order": 1 }, - "path": { + "language": { "type": "string", - "title": "Path", - "description": "Path to the page (URI)", + "title": "Language", + "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", "order": 2 }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", + "other": { + "type": "string", + "title": "Other", + "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", "order": 3 + }, + "part": { + "type": "string", + "title": "Part", + "description": "A single letter code that designates the particular platform part that is being identified", + "order": 4 + }, + "product": { + "type": "string", + "title": "Product", + "description": "Most common and recognizable title or name of the product", + "order": 5 + }, + "swEdition": { + "type": "string", + "title": "Software Edition", + "description": "Characterizes how the product is tailored to a particular market or class of end users", + "order": 6 + }, + "targetHW": { + "type": "string", + "title": "Target Hardware", + "description": "Characterize the instruction set architecture on which the product operates", + "order": 7 + }, + "targetSW": { + "type": "string", + "title": "Target Software", + "description": "Characterizes the software computing environment within which the product operates", + "order": 8 + }, + "update": { + "type": "string", + "title": "Update", + "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", + "order": 9 + }, + "v2.2": { + "type": "string", + "title": "Version 2.2", + "description": "The full CPE string in the CPE 2.2 format", + "order": 10 + }, + "v2.3": { + "type": "string", + "title": "Version 2.3", + "description": "The full CPE string in the CPE 2.3 format", + "order": 11 + }, + "vendor": { + "type": "string", + "title": "Vendor", + "description": "The person or organization that manufactured or created the product", + "order": 12 + }, + "version": { + "type": "string", + "title": "Version", + "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", + "order": 13 } } }, @@ -1962,192 +704,104 @@ class GetScanAssetsOutput(insightconnect_plugin_runtime.Output): }, "order": 13 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } + } + }, + "userGroup": { + "type": "object", + "title": "userGroup", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user group", + "order": 1 }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user group", + "order": 2 + } + } + }, + "user": { + "type": "object", + "title": "user", + "properties": { + "fullName": { + "type": "string", + "title": "Full Name", + "description": "Full name of the user account", + "order": 1 + }, + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user account", + "order": 2 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user account", + "order": 3 + } + } + }, + "webApplication": { + "type": "object", + "title": "webApplication", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the web application", + "order": 1 + }, + "pages": { + "type": "array", + "title": "Pages", + "description": "Pages", + "items": { + "$ref": "#/definitions/page" }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } + "order": 2 + }, + "root": { + "type": "string", + "title": "Root", + "description": "Web root of the web application", + "order": 3 + }, + "virtualHost": { + "type": "string", + "title": "Virtual Host", + "description": "Virtual host of the web application", + "order": 4 + } + } + }, + "page": { + "type": "object", + "title": "page", + "properties": { + "linkType": { + "type": "string", + "title": "Link Type", + "description": "Type of link used to traverse or detect the page", + "order": 1 + }, + "path": { + "type": "string", + "title": "Path", + "description": "Path to the page (URI)", + "order": 2 + }, + "response": { + "type": "integer", + "title": "Response", + "description": "HTTP response code observed with retrieving the page", + "order": 3 } } }, @@ -2212,152 +866,6 @@ class GetScanAssetsOutput(insightconnect_plugin_runtime.Output): "description": "Version of the software", "order": 9 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } } }, "vulnerabilities": { @@ -2401,65 +909,6 @@ class GetScanAssetsOutput(insightconnect_plugin_runtime.Output): "order": 6 } } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine/__init__.py index 3d579a061c..65cfdb345d 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetScanEngine diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine/schema.py index 54a04e5365..7b27173f8f 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: SCAN_ENGINE = "scan_engine" - + class GetScanEngineInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetScanEngineInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetScanEngineOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,24 +56,6 @@ class GetScanEngineOutput(insightconnect_plugin_runtime.Output): "scan_engine" ], "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "scan_engine": { "type": "object", "title": "scan_engine", @@ -106,18 +89,18 @@ class GetScanEngineOutput(insightconnect_plugin_runtime.Output): }, "lastRefreshedDate": { "type": "string", - "title": "Last Refreshed Date", + "format": "date-time", "displayType": "date", + "title": "Last Refreshed Date", "description": "Date and time when the engine last communicated with the console", - "format": "date-time", "order": 5 }, "lastUpdatedDate": { "type": "string", - "title": "Last Updated Date", + "format": "date-time", "displayType": "date", + "title": "Last Updated Date", "description": "Date and time when the engine was last updated", - "format": "date-time", "order": 6 }, "links": { @@ -164,25 +147,23 @@ class GetScanEngineOutput(insightconnect_plugin_runtime.Output): "links", "name", "port" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pool/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pool/__init__.py index 456b7f3559..1411c6b009 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pool/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pool/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetScanEnginePool diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pool/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pool/schema.py index ce172c1db1..a808c45633 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pool/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pool/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: SCAN_ENGINE_POOL = "scan_engine_pool" - + class GetScanEnginePoolInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetScanEnginePoolInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetScanEnginePoolOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,28 +56,22 @@ class GetScanEnginePoolOutput(insightconnect_plugin_runtime.Output): "scan_engine_pool" ], "definitions": { - "link": { + "scan_engine_pool": { "type": "object", - "title": "link", + "title": "scan_engine_pool", "properties": { - "href": { + "name": { "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "title": "Name", + "description": "Scan engine pool name", "order": 1 }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", + "id": { + "type": "integer", + "title": "ID", + "description": "Scan engine pool identifier", "order": 2 - } - } - }, - "scan_engine_pool": { - "type": "object", - "title": "scan_engine_pool", - "properties": { + }, "engines": { "type": "array", "title": "Engines", @@ -86,12 +81,6 @@ class GetScanEnginePoolOutput(insightconnect_plugin_runtime.Output): }, "order": 3 }, - "id": { - "type": "integer", - "title": "ID", - "description": "Scan engine pool identifier", - "order": 2 - }, "links": { "type": "array", "title": "Links", @@ -100,12 +89,6 @@ class GetScanEnginePoolOutput(insightconnect_plugin_runtime.Output): "$ref": "#/definitions/link" }, "order": 4 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Scan engine pool name", - "order": 1 } }, "required": [ @@ -113,25 +96,23 @@ class GetScanEnginePoolOutput(insightconnect_plugin_runtime.Output): "id", "links", "name" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pools/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pools/__init__.py index 9ddaf87a26..8704eff6bd 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pools/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pools/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetScanEnginePools diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pools/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pools/schema.py index 81a06b1207..f44ab04da7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pools/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engine_pools/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: NAME = "name" - + class Output: SCAN_ENGINE_POOLS = "scan_engine_pools" - + class GetScanEnginePoolsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -27,7 +27,8 @@ class GetScanEnginePoolsInput(insightconnect_plugin_runtime.Input): "description": "Scan engine pool name by which to filter, accepts regular expression patterns", "order": 1 } - } + }, + "definitions": {} } """) @@ -36,7 +37,7 @@ def __init__(self): class GetScanEnginePoolsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,28 +56,22 @@ class GetScanEnginePoolsOutput(insightconnect_plugin_runtime.Output): "scan_engine_pools" ], "definitions": { - "link": { + "scan_engine_pool": { "type": "object", - "title": "link", + "title": "scan_engine_pool", "properties": { - "href": { + "name": { "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "title": "Name", + "description": "Scan engine pool name", "order": 1 }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", + "id": { + "type": "integer", + "title": "ID", + "description": "Scan engine pool identifier", "order": 2 - } - } - }, - "scan_engine_pool": { - "type": "object", - "title": "scan_engine_pool", - "properties": { + }, "engines": { "type": "array", "title": "Engines", @@ -86,12 +81,6 @@ class GetScanEnginePoolsOutput(insightconnect_plugin_runtime.Output): }, "order": 3 }, - "id": { - "type": "integer", - "title": "ID", - "description": "Scan engine pool identifier", - "order": 2 - }, "links": { "type": "array", "title": "Links", @@ -100,12 +89,6 @@ class GetScanEnginePoolsOutput(insightconnect_plugin_runtime.Output): "$ref": "#/definitions/link" }, "order": 4 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Scan engine pool name", - "order": 1 } }, "required": [ @@ -113,25 +96,23 @@ class GetScanEnginePoolsOutput(insightconnect_plugin_runtime.Output): "id", "links", "name" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engines/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engines/__init__.py index 74b2ed72e6..825d350bc8 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engines/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engines/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetScanEngines diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engines/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engines/schema.py index 064b9351a6..de26a5398a 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engines/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scan_engines/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ADDRESS = "address" NAME = "name" - + class Output: SCAN_ENGINES = "scan_engines" - + class GetScanEnginesInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -34,7 +34,8 @@ class GetScanEnginesInput(insightconnect_plugin_runtime.Input): "description": "Optional engine name by which to filter, accepts regular expression patterns", "order": 1 } - } + }, + "definitions": {} } """) @@ -43,7 +44,7 @@ def __init__(self): class GetScanEnginesOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -62,24 +63,6 @@ class GetScanEnginesOutput(insightconnect_plugin_runtime.Output): "scan_engines" ], "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "scan_engine": { "type": "object", "title": "scan_engine", @@ -113,18 +96,18 @@ class GetScanEnginesOutput(insightconnect_plugin_runtime.Output): }, "lastRefreshedDate": { "type": "string", - "title": "Last Refreshed Date", + "format": "date-time", "displayType": "date", + "title": "Last Refreshed Date", "description": "Date and time when the engine last communicated with the console", - "format": "date-time", "order": 5 }, "lastUpdatedDate": { "type": "string", - "title": "Last Updated Date", + "format": "date-time", "displayType": "date", + "title": "Last Updated Date", "description": "Date and time when the engine was last updated", - "format": "date-time", "order": 6 }, "links": { @@ -171,25 +154,23 @@ class GetScanEnginesOutput(insightconnect_plugin_runtime.Output): "links", "name", "port" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scans/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scans/__init__.py index d694c29454..ba3a42eab0 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scans/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scans/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetScans diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scans/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scans/schema.py index ac340c18ac..9201891c5e 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scans/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_scans/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ACTIVE = "active" ID = "id" - + class Output: SCANS = "scans" - + class GetScansInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -35,7 +35,8 @@ class GetScansInput(insightconnect_plugin_runtime.Input): "description": "Site ID", "order": 1 } - } + }, + "definitions": {} } """) @@ -44,7 +45,7 @@ def __init__(self): class GetScansOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -63,68 +64,28 @@ class GetScansOutput(insightconnect_plugin_runtime.Output): "scans" ], "definitions": { - "link": { + "scan": { "type": "object", - "title": "link", + "title": "scan", "properties": { - "href": { + "status": { "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "title": "Status", + "description": "Scan status (aborted, unknown, running, finished, stopped, error, paused, dispatched, integrating)", "order": 1 }, - "rel": { + "scanType": { "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", + "title": "Scan Type", + "description": "Type of scan (automated, manual, scheduled)", "order": 2 - } - } - }, - "scan": { - "type": "object", - "title": "scan", - "properties": { + }, "assets": { "type": "integer", "title": "Assets", "description": "Count of assets identified during the scan", "order": 3 }, - "duration": { - "type": "string", - "title": "Duration", - "displayType": "date", - "description": "Duration of the scan", - "format": "date-time", - "order": 11 - }, - "endTime": { - "type": "string", - "title": "End Time", - "displayType": "date", - "description": "End time of the scan", - "format": "date-time", - "order": 14 - }, - "engineId": { - "type": "integer", - "title": "Engine ID", - "description": "ID for the scan engine/scan engine pool used for the scan", - "order": 8 - }, - "engineName": { - "type": "string", - "title": "Engine Name", - "description": "Name of the scan engine/scan engine pool used for the scan", - "order": 12 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the scan", - "order": 15 - }, "links": { "type": "array", "title": "Links", @@ -134,23 +95,29 @@ class GetScansOutput(insightconnect_plugin_runtime.Output): }, "order": 4 }, - "message": { + "siteName": { "type": "string", - "title": "Message", - "description": "Scan status message", - "order": 13 + "title": "Site Name", + "description": "Name of the site scanned", + "order": 5 }, - "scanName": { - "type": "string", - "title": "Scan Name", - "description": "Name of the scan", - "order": 16 + "vulnerabilities": { + "$ref": "#/definitions/vulnerabilities_count", + "title": "Vulnerabilities", + "description": "Counts of vulnerabilities identified during the scan", + "order": 6 }, - "scanType": { + "startedBy": { "type": "string", - "title": "Scan Type", - "description": "Type of scan (automated, manual, scheduled)", - "order": 2 + "title": "Started By", + "description": "User that started the scan", + "order": 7 + }, + "engineId": { + "type": "integer", + "title": "Engine ID", + "description": "ID for the scan engine/scan engine pool used for the scan", + "order": 8 }, "siteId": { "type": "integer", @@ -158,87 +125,71 @@ class GetScansOutput(insightconnect_plugin_runtime.Output): "description": "ID of the site scanned", "order": 9 }, - "siteName": { - "type": "string", - "title": "Site Name", - "description": "Name of the site scanned", - "order": 5 - }, "startTime": { "type": "string", - "title": "Start Time", + "format": "date-time", "displayType": "date", + "title": "Start Time", "description": "Start time for the scan", - "format": "date-time", "order": 10 }, - "startedBy": { + "duration": { "type": "string", - "title": "Started By", - "description": "User that started the scan", - "order": 7 + "format": "date-time", + "displayType": "date", + "title": "Duration", + "description": "Duration of the scan", + "order": 11 }, - "status": { + "engineName": { "type": "string", - "title": "Status", - "description": "Scan status (aborted, unknown, running, finished, stopped, error, paused, dispatched, integrating)", - "order": 1 + "title": "Engine Name", + "description": "Name of the scan engine/scan engine pool used for the scan", + "order": 12 }, - "vulnerabilities": { - "$ref": "#/definitions/vulnerabilities_count", - "title": "Vulnerabilities", - "description": "Counts of vulnerabilities identified during the scan", - "order": 6 + "message": { + "type": "string", + "title": "Message", + "description": "Scan status message", + "order": 13 + }, + "endTime": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "End Time", + "description": "End time of the scan", + "order": 14 + }, + "id": { + "type": "integer", + "title": "ID", + "description": "ID of the scan", + "order": 15 + }, + "scanName": { + "type": "string", + "title": "Scan Name", + "description": "Name of the scan", + "order": 16 } - }, - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + } + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 }, - "vulnerabilities_count": { - "type": "object", - "title": "vulnerabilities_count", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 2 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 3 - }, - "total": { - "type": "integer", - "title": "Total number of vulnerabilities", - "description": "Total", - "order": 4 - } - } + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } }, diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site/__init__.py index 28eba2b051..5b3e4b3a4e 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetSite diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site/schema.py index 5a6b3b8384..35896175fc 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: SITE = "site" - + class GetSiteInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetSiteInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetSiteOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,24 +56,6 @@ class GetSiteOutput(insightconnect_plugin_runtime.Output): "site" ], "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "site": { "type": "object", "title": "site", @@ -109,10 +92,10 @@ class GetSiteOutput(insightconnect_plugin_runtime.Output): }, "lastScanTime": { "type": "string", - "title": "Last Scan Time", + "format": "date-time", "displayType": "date", + "title": "Last Scan Time", "description": "Site last scan time", - "format": "date-time", "order": 6 }, "links": { @@ -172,55 +155,23 @@ class GetSiteOutput(insightconnect_plugin_runtime.Output): "scanTemplate", "type", "vulnerabilities" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 }, - "vulnerabilities_count": { - "type": "object", - "title": "vulnerabilities_count", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 2 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 3 - }, - "total": { - "type": "integer", - "title": "Total number of vulnerabilities", - "description": "Total", - "order": 4 - } - } + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } }, diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site_assets/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site_assets/__init__.py index 9985bd31f8..93deae75dd 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site_assets/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site_assets/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetSiteAssets diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site_assets/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site_assets/schema.py index ec31a331c6..86085d3c54 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site_assets/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_site_assets/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: SITE_ID = "site_id" - + class Output: ASSETS = "assets" - + class GetSiteAssetsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetSiteAssetsInput(insightconnect_plugin_runtime.Input): }, "required": [ "site_id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetSiteAssetsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,24 +56,6 @@ class GetSiteAssetsOutput(insightconnect_plugin_runtime.Output): } }, "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, "asset": { "type": "object", "title": "asset", @@ -257,1218 +240,41 @@ class GetSiteAssetsOutput(insightconnect_plugin_runtime.Output): "description": " Summary information for vulnerabilities on the asset", "order": 24 } - }, - "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "history": { - "type": "object", - "title": "history", - "properties": { - "date": { - "type": "string", - "title": "Date", - "description": "Date the asset information was collected or changed", - "order": 1 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Additional information describing the change", - "order": 2 - }, - "scanId": { - "type": "integer", - "title": "Scan ID", - "description": "If a scan-oriented change, the identifier of the corresponding scan the asset was scanned in", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type, for additional information see the help section of this plugin", - "order": 4 - }, - "user": { - "type": "string", - "title": "User", - "description": "User", - "order": 5 - }, - "version": { - "type": "integer", - "title": "Version", - "description": "Version", - "order": 6 - }, - "vulnerabilityExceptionId": { - "type": "integer", - "title": "Vulnerability Exception ID", - "description": "Vulnerability exception ID", - "order": 7 - } - } - }, - "hostName": { - "type": "object", - "title": "hostName", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "id": { - "type": "object", - "title": "id", - "properties": { - "id": { - "type": "string", - "title": "ID", - "description": "ID", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "osFingerprint": { - "type": "object", - "title": "osFingerprint", - "properties": { - "architecture": { - "type": "string", - "title": "Architecture", - "description": "The architecture of the operating system", - "order": 1 - }, - "configurations": { - "type": "array", - "title": "Configuration", - "description": "Configuration key-values pairs enumerated on the operating system", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 2 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "Common Platform Enumeration", - "order": 3 - }, - "description": { - "type": "string", - "title": "Description", - "description": "The description of the operating system (containing vendor, family, product, version and architecture in a single string)", - "order": 4 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the operating system", - "order": 5 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the operating system", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Name of the operating system", - "order": 7 - }, - "systemName": { - "type": "string", - "title": "System Name", - "description": "A combination of vendor and family (with redundancies removed), suitable for grouping", - "order": 8 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of operating system", - "order": 9 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the operating system", - "order": 10 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the operating system", - "order": 11 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "service": { - "type": "object", - "title": "service", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configuration key-values pairs enumerated on the service", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "databases": { - "type": "array", - "title": "Databases", - "description": "Databases enumerated on the service", - "items": { - "$ref": "#/definitions/database" - }, - "order": 2 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the service", - "order": 3 - }, - "links": { - "type": "array", - "title": "Links", - "description": "Hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 4 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the service", - "order": 5 - }, - "port": { - "type": "integer", - "title": "Port", - "description": "Port of the service", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product running the service", - "order": 7 - }, - "protocol": { - "type": "string", - "title": "Protocol", - "description": "Protocol of the service", - "order": 8 - }, - "userGroups": { - "type": "array", - "title": "User Groups", - "description": "User groups", - "items": { - "$ref": "#/definitions/userGroup" - }, - "order": 9 - }, - "users": { - "type": "array", - "title": "Users", - "description": "Users", - "items": { - "$ref": "#/definitions/user" - }, - "order": 10 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the service", - "order": 11 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the service", - "order": 12 - }, - "webApplications": { - "type": "array", - "title": "Web Applications", - "description": "Web applications found on the service", - "items": { - "$ref": "#/definitions/webApplication" - }, - "order": 13 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } - } - } - }, - "software": { - "type": "object", - "title": "software", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configurations", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "CPE", - "order": 2 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Description of the software", - "order": 3 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the software", - "order": 4 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "ID", - "order": 5 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product of the software", - "order": 6 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the software", - "order": 7 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the software", - "order": 8 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the software", - "order": 9 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "vulnerabilities": { - "type": "object", - "title": "vulnerabilities", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "exploits": { - "type": "integer", - "title": "Exploits", - "description": "Number of distinct exploits that can exploit any of the vulnerabilities on the asset", - "order": 2 - }, - "malwareKits": { - "type": "integer", - "title": "Malware Kits", - "description": "Number of distinct malware kits that vulnerabilities on the asset are susceptible to", - "order": 3 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 4 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 5 - }, - "total": { - "type": "integer", - "title": "Total", - "description": "Total number of vulnerabilities", - "order": 6 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } - } } }, - "configuration": { + "address": { "type": "object", - "title": "configuration", + "title": "address", "properties": { - "name": { + "ip": { "type": "string", - "title": "Name", - "description": "Name of the configuration value", + "title": "IP", + "description": "IPv4 or IPv6 address", "order": 1 }, - "value": { + "mac": { "type": "string", - "title": "Value", - "description": "Configuration value", + "title": "MAC", + "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", "order": 2 } } }, - "cpe": { + "configuration": { "type": "object", - "title": "cpe", + "title": "configuration", "properties": { - "edition": { + "name": { "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", + "title": "Name", + "description": "Name of the configuration value", "order": 1 }, - "language": { + "value": { "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", + "title": "Value", + "description": "Configuration value", "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 } } }, @@ -1496,6 +302,47 @@ class GetSiteAssetsOutput(insightconnect_plugin_runtime.Output): } } }, + "insightvm_file": { + "type": "object", + "title": "insightvm_file", + "properties": { + "attributes": { + "type": "array", + "title": "Attributes", + "description": "Attributes detected on the file", + "items": { + "$ref": "#/definitions/configuration" + }, + "order": 1 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the file", + "order": 2 + }, + "size": { + "type": "integer", + "title": "Size", + "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", + "order": 3 + }, + "type": { + "type": "string", + "title": "Type", + "description": "Type of the file, e.g. file or directory", + "order": 4 + }, + "content": { + "type": "string", + "format": "bytes", + "displayType": "bytes", + "title": "Contents", + "description": "Contents of the file", + "order": 5 + } + } + }, "history": { "type": "object", "title": "history", @@ -1580,67 +427,6 @@ class GetSiteAssetsOutput(insightconnect_plugin_runtime.Output): } } }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, "link": { "type": "object", "title": "link", @@ -1732,133 +518,89 @@ class GetSiteAssetsOutput(insightconnect_plugin_runtime.Output): "description": "Version of the operating system", "order": 11 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } } }, - "page": { + "cpe": { "type": "object", - "title": "page", + "title": "cpe", "properties": { - "linkType": { + "edition": { "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", + "title": "Edition", + "description": "Edition-related terms applied by the vendor to the product", "order": 1 }, - "path": { + "language": { "type": "string", - "title": "Path", - "description": "Path to the page (URI)", + "title": "Language", + "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", "order": 2 }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", + "other": { + "type": "string", + "title": "Other", + "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", "order": 3 + }, + "part": { + "type": "string", + "title": "Part", + "description": "A single letter code that designates the particular platform part that is being identified", + "order": 4 + }, + "product": { + "type": "string", + "title": "Product", + "description": "Most common and recognizable title or name of the product", + "order": 5 + }, + "swEdition": { + "type": "string", + "title": "Software Edition", + "description": "Characterizes how the product is tailored to a particular market or class of end users", + "order": 6 + }, + "targetHW": { + "type": "string", + "title": "Target Hardware", + "description": "Characterize the instruction set architecture on which the product operates", + "order": 7 + }, + "targetSW": { + "type": "string", + "title": "Target Software", + "description": "Characterizes the software computing environment within which the product operates", + "order": 8 + }, + "update": { + "type": "string", + "title": "Update", + "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", + "order": 9 + }, + "v2.2": { + "type": "string", + "title": "Version 2.2", + "description": "The full CPE string in the CPE 2.2 format", + "order": 10 + }, + "v2.3": { + "type": "string", + "title": "Version 2.3", + "description": "The full CPE string in the CPE 2.3 format", + "order": 11 + }, + "vendor": { + "type": "string", + "title": "Vendor", + "description": "The person or organization that manufactured or created the product", + "order": 12 + }, + "version": { + "type": "string", + "title": "Version", + "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", + "order": 13 } } }, @@ -1962,192 +704,104 @@ class GetSiteAssetsOutput(insightconnect_plugin_runtime.Output): }, "order": 13 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } + } + }, + "userGroup": { + "type": "object", + "title": "userGroup", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user group", + "order": 1 }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user group", + "order": 2 + } + } + }, + "user": { + "type": "object", + "title": "user", + "properties": { + "fullName": { + "type": "string", + "title": "Full Name", + "description": "Full name of the user account", + "order": 1 + }, + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user account", + "order": 2 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user account", + "order": 3 + } + } + }, + "webApplication": { + "type": "object", + "title": "webApplication", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the web application", + "order": 1 + }, + "pages": { + "type": "array", + "title": "Pages", + "description": "Pages", + "items": { + "$ref": "#/definitions/page" }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } + "order": 2 + }, + "root": { + "type": "string", + "title": "Root", + "description": "Web root of the web application", + "order": 3 + }, + "virtualHost": { + "type": "string", + "title": "Virtual Host", + "description": "Virtual host of the web application", + "order": 4 + } + } + }, + "page": { + "type": "object", + "title": "page", + "properties": { + "linkType": { + "type": "string", + "title": "Link Type", + "description": "Type of link used to traverse or detect the page", + "order": 1 + }, + "path": { + "type": "string", + "title": "Path", + "description": "Path to the page (URI)", + "order": 2 + }, + "response": { + "type": "integer", + "title": "Response", + "description": "HTTP response code observed with retrieving the page", + "order": 3 } } }, @@ -2212,152 +866,6 @@ class GetSiteAssetsOutput(insightconnect_plugin_runtime.Output): "description": "Version of the software", "order": 9 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } } }, "vulnerabilities": { @@ -2401,65 +909,6 @@ class GetSiteAssetsOutput(insightconnect_plugin_runtime.Output): "order": 6 } } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_sites/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_sites/__init__.py index 304e9e7417..70562ae785 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_sites/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_sites/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetSites diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_sites/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_sites/schema.py index 98ee10784e..f24d69e3b0 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_sites/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_sites/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: NAME = "name" - + class Output: SITES = "sites" - + class GetSitesInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -28,7 +28,8 @@ class GetSitesInput(insightconnect_plugin_runtime.Input): "default": "", "order": 1 } - } + }, + "definitions": {} } """) @@ -37,7 +38,7 @@ def __init__(self): class GetSitesOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -56,24 +57,6 @@ class GetSitesOutput(insightconnect_plugin_runtime.Output): "sites" ], "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "site": { "type": "object", "title": "site", @@ -110,10 +93,10 @@ class GetSitesOutput(insightconnect_plugin_runtime.Output): }, "lastScanTime": { "type": "string", - "title": "Last Scan Time", + "format": "date-time", "displayType": "date", + "title": "Last Scan Time", "description": "Site last scan time", - "format": "date-time", "order": 6 }, "links": { @@ -173,55 +156,23 @@ class GetSitesOutput(insightconnect_plugin_runtime.Output): "scanTemplate", "type", "vulnerabilities" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 }, - "vulnerabilities_count": { - "type": "object", - "title": "vulnerabilities_count", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 2 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 3 - }, - "total": { - "type": "integer", - "title": "Total number of vulnerabilities", - "description": "Total", - "order": 4 - } - } + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } }, diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag/__init__.py index bc124aafe7..97c4d04f0e 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetTag diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag/schema.py index e99b348878..fc9ecdfe9d 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: TAG = "tag" - + class GetTagInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetTagInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetTagOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,24 +56,6 @@ class GetTagOutput(insightconnect_plugin_runtime.Output): "tag" ], "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "tag": { "type": "object", "title": "tag", @@ -85,10 +68,10 @@ class GetTagOutput(insightconnect_plugin_runtime.Output): }, "created": { "type": "string", - "title": "Created", + "format": "date-time", "displayType": "date", + "title": "Created", "description": "Tag creation date", - "format": "date-time", "order": 2 }, "id": { @@ -141,25 +124,23 @@ class GetTagOutput(insightconnect_plugin_runtime.Output): "id", "name", "type" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_asset_groups/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_asset_groups/__init__.py index 0d26a7987b..6239310c21 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_asset_groups/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_asset_groups/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetTagAssetGroups diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_asset_groups/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_asset_groups/schema.py index a959372955..d79f13cc17 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_asset_groups/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_asset_groups/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: ASSET_GROUP_IDS = "asset_group_ids" - + class GetTagAssetGroupsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetTagAssetGroupsInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetTagAssetGroupsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -56,7 +57,8 @@ class GetTagAssetGroupsOutput(insightconnect_plugin_runtime.Output): }, "required": [ "asset_group_ids" - ] + ], + "definitions": {} } """) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_assets/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_assets/__init__.py index ee6a6f1e89..97c4216523 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_assets/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_assets/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetTagAssets diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_assets/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_assets/schema.py index 8f9342a4e3..0a4080aab1 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_assets/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_assets/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: ASSETS = "assets" - + class GetTagAssetsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetTagAssetsInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetTagAssetsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_sites/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_sites/__init__.py index 8d23bed841..ebe80792b3 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_sites/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_sites/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetTagSites diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_sites/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_sites/schema.py index 3affa3c31c..dd645cd027 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_sites/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tag_sites/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: SITE_IDS = "site_ids" - + class GetTagSitesInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetTagSitesInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetTagSitesOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -56,7 +57,8 @@ class GetTagSitesOutput(insightconnect_plugin_runtime.Output): }, "required": [ "site_ids" - ] + ], + "definitions": {} } """) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tags/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tags/__init__.py index 37c1ef8bde..a0e9945f09 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tags/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tags/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetTags diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tags/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tags/schema.py index 359f32d2cb..31bec38d30 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tags/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_tags/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: NAME = "name" TYPE = "type" - + class Output: TAGS = "tags" - + class GetTagsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -43,7 +43,8 @@ class GetTagsInput(insightconnect_plugin_runtime.Input): ], "order": 2 } - } + }, + "definitions": {} } """) @@ -52,7 +53,7 @@ def __init__(self): class GetTagsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -71,24 +72,6 @@ class GetTagsOutput(insightconnect_plugin_runtime.Output): "tags" ], "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "tag": { "type": "object", "title": "tag", @@ -101,10 +84,10 @@ class GetTagsOutput(insightconnect_plugin_runtime.Output): }, "created": { "type": "string", - "title": "Created", + "format": "date-time", "displayType": "date", + "title": "Created", "description": "Tag creation date", - "format": "date-time", "order": 2 }, "id": { @@ -157,25 +140,23 @@ class GetTagsOutput(insightconnect_plugin_runtime.Output): "id", "name", "type" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_user/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_user/__init__.py index c52fd3524a..ab1056344f 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_user/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_user/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetUser diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_user/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_user/schema.py index e65d58cc42..c864aedd66 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_user/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_user/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: USER = "user" - + class GetUserInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetUserInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetUserOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,97 +56,6 @@ class GetUserOutput(insightconnect_plugin_runtime.Output): "user" ], "definitions": { - "authentication_source": { - "type": "object", - "title": "authentication_source", - "properties": { - "external": { - "type": "boolean", - "title": "External", - "description": "Whether the authentication source is external (true) or internal (false)", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Authentication source identifier", - "order": 2 - }, - "links": { - "type": "array", - "title": "Links", - "description": "List of hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 3 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Authentication source name", - "order": 4 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Authentication source type", - "enum": [ - "normal", - "kerberos", - "ldap", - "saml", - "admin" - ], - "order": 5 - } - }, - "required": [ - "external", - "id", - "links", - "name", - "type" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "user_account": { "type": "object", "title": "user_account", @@ -218,158 +128,76 @@ class GetUserOutput(insightconnect_plugin_runtime.Output): "locked", "login", "name" - ], - "definitions": { - "authentication_source": { - "type": "object", - "title": "authentication_source", - "properties": { - "external": { - "type": "boolean", - "title": "External", - "description": "Whether the authentication source is external (true) or internal (false)", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Authentication source identifier", - "order": 2 - }, - "links": { - "type": "array", - "title": "Links", - "description": "List of hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 3 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Authentication source name", - "order": 4 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Authentication source type", - "enum": [ - "normal", - "kerberos", - "ldap", - "saml", - "admin" - ], - "order": 5 - } - }, - "required": [ - "external", - "id", - "links", - "name", - "type" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } + ] + }, + "authentication_source": { + "type": "object", + "title": "authentication_source", + "properties": { + "external": { + "type": "boolean", + "title": "External", + "description": "Whether the authentication source is external (true) or internal (false)", + "order": 1 }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + "id": { + "type": "integer", + "title": "ID", + "description": "Authentication source identifier", + "order": 2 }, - "user_account_locale": { - "type": "object", - "title": "user_account_locale", - "properties": { - "default": { - "type": "string", - "title": "Default", - "description": "Default locale", - "order": 1 - }, - "reports": { - "type": "string", - "title": "Reports", - "description": "Reports locale", - "order": 2 - } + "links": { + "type": "array", + "title": "Links", + "description": "List of hypermedia links to corresponding or related resources", + "items": { + "$ref": "#/definitions/link" }, - "required": [ - "default", - "reports" - ] + "order": 3 }, - "user_account_role": { - "type": "object", - "title": "user_account_role", - "properties": { - "allAssetGroups": { - "type": "boolean", - "title": "All Asset Groups", - "description": "Whether the user has access to all asset groups", - "order": 1 - }, - "allSites": { - "type": "boolean", - "title": "All Sites", - "description": "Whether the user has access to all sites", - "order": 2 - }, - "id": { - "type": "string", - "title": "ID", - "description": "The identifier of the role the user is assigned to", - "order": 3 - }, - "privileges": { - "type": "array", - "title": "Privileges", - "items": { - "type": "string" - }, - "order": 4 - }, - "superuser": { - "type": "boolean", - "title": "Superuser", - "description": "Whether the user is a superuser", - "order": 5 - } - } + "name": { + "type": "string", + "title": "Name", + "description": "Authentication source name", + "order": 4 + }, + "type": { + "type": "string", + "title": "Type", + "description": "Authentication source type", + "enum": [ + "normal", + "kerberos", + "ldap", + "saml", + "admin" + ], + "order": 5 + } + }, + "required": [ + "external", + "id", + "links", + "name", + "type" + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } }, diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_users/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_users/__init__.py index 6b7bc16ead..979bdfa684 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_users/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_users/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetUsers diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_users/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_users/schema.py index 21f3fed3d0..08e5094b56 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_users/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_users/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: LOGIN = "login" NAME = "name" - + class Output: USERS = "users" - + class GetUsersInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -34,7 +34,8 @@ class GetUsersInput(insightconnect_plugin_runtime.Input): "description": "User account name by which to filter, accepts regular expression patterns", "order": 1 } - } + }, + "definitions": {} } """) @@ -43,7 +44,7 @@ def __init__(self): class GetUsersOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -62,97 +63,6 @@ class GetUsersOutput(insightconnect_plugin_runtime.Output): "users" ], "definitions": { - "authentication_source": { - "type": "object", - "title": "authentication_source", - "properties": { - "external": { - "type": "boolean", - "title": "External", - "description": "Whether the authentication source is external (true) or internal (false)", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Authentication source identifier", - "order": 2 - }, - "links": { - "type": "array", - "title": "Links", - "description": "List of hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 3 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Authentication source name", - "order": 4 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Authentication source type", - "enum": [ - "normal", - "kerberos", - "ldap", - "saml", - "admin" - ], - "order": 5 - } - }, - "required": [ - "external", - "id", - "links", - "name", - "type" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "user_account": { "type": "object", "title": "user_account", @@ -225,158 +135,76 @@ class GetUsersOutput(insightconnect_plugin_runtime.Output): "locked", "login", "name" - ], - "definitions": { - "authentication_source": { - "type": "object", - "title": "authentication_source", - "properties": { - "external": { - "type": "boolean", - "title": "External", - "description": "Whether the authentication source is external (true) or internal (false)", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Authentication source identifier", - "order": 2 - }, - "links": { - "type": "array", - "title": "Links", - "description": "List of hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 3 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Authentication source name", - "order": 4 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Authentication source type", - "enum": [ - "normal", - "kerberos", - "ldap", - "saml", - "admin" - ], - "order": 5 - } - }, - "required": [ - "external", - "id", - "links", - "name", - "type" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } + ] + }, + "authentication_source": { + "type": "object", + "title": "authentication_source", + "properties": { + "external": { + "type": "boolean", + "title": "External", + "description": "Whether the authentication source is external (true) or internal (false)", + "order": 1 }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + "id": { + "type": "integer", + "title": "ID", + "description": "Authentication source identifier", + "order": 2 }, - "user_account_locale": { - "type": "object", - "title": "user_account_locale", - "properties": { - "default": { - "type": "string", - "title": "Default", - "description": "Default locale", - "order": 1 - }, - "reports": { - "type": "string", - "title": "Reports", - "description": "Reports locale", - "order": 2 - } + "links": { + "type": "array", + "title": "Links", + "description": "List of hypermedia links to corresponding or related resources", + "items": { + "$ref": "#/definitions/link" }, - "required": [ - "default", - "reports" - ] + "order": 3 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Authentication source name", + "order": 4 + }, + "type": { + "type": "string", + "title": "Type", + "description": "Authentication source type", + "enum": [ + "normal", + "kerberos", + "ldap", + "saml", + "admin" + ], + "order": 5 + } + }, + "required": [ + "external", + "id", + "links", + "name", + "type" + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 }, - "user_account_role": { - "type": "object", - "title": "user_account_role", - "properties": { - "allAssetGroups": { - "type": "boolean", - "title": "All Asset Groups", - "description": "Whether the user has access to all asset groups", - "order": 1 - }, - "allSites": { - "type": "boolean", - "title": "All Sites", - "description": "Whether the user has access to all sites", - "order": 2 - }, - "id": { - "type": "string", - "title": "ID", - "description": "The identifier of the role the user is assigned to", - "order": 3 - }, - "privileges": { - "type": "array", - "title": "Privileges", - "items": { - "type": "string" - }, - "order": 4 - }, - "superuser": { - "type": "boolean", - "title": "Superuser", - "description": "Whether the user is a superuser", - "order": 5 - } - } + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } }, diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerabilities_by_cve/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerabilities_by_cve/__init__.py index 837ffab3cb..749908356a 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerabilities_by_cve/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerabilities_by_cve/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetVulnerabilitiesByCve diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerabilities_by_cve/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerabilities_by_cve/schema.py index 8bd1d2f010..b9ffaa9ee6 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerabilities_by_cve/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerabilities_by_cve/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: CVE_ID = "cve_id" - + class Output: VULNERABILITIES = "vulnerabilities" - + class GetVulnerabilitiesByCveInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetVulnerabilitiesByCveInput(insightconnect_plugin_runtime.Input): }, "required": [ "cve_id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetVulnerabilitiesByCveOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -58,6 +59,201 @@ class GetVulnerabilitiesByCveOutput(insightconnect_plugin_runtime.Output): "vulnerabilities" ], "definitions": { + "vulnerability": { + "type": "object", + "title": "vulnerability", + "properties": { + "added": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Added", + "description": "Date that the vulnerability was added to InsightVM", + "order": 1 + }, + "exploits": { + "type": "integer", + "title": "Exploits", + "description": "Exploit count", + "order": 2 + }, + "description": { + "$ref": "#/definitions/vulnerability_description", + "title": "Description", + "description": "Vulnerability description", + "order": 3 + }, + "links": { + "type": "array", + "title": "Links", + "description": "List of hypermedia links to corresponding resources", + "items": { + "$ref": "#/definitions/link" + }, + "order": 4 + }, + "title": { + "type": "string", + "title": "Title", + "description": "Vulnerability title", + "order": 5 + }, + "malwareKits": { + "type": "integer", + "title": "Malware Kits", + "description": "Malware kit count", + "order": 6 + }, + "denialOfService": { + "type": "boolean", + "title": "Denial of Service", + "description": "Whether the vulnerability is a denial of service vulnerability", + "order": 7 + }, + "modified": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Modified", + "description": "Date the vulnerability was last modified in InsightVM", + "order": 8 + }, + "id": { + "type": "string", + "title": "ID", + "description": "Vulnerability ID", + "order": 9 + }, + "severityScore": { + "type": "integer", + "title": "Severity Score", + "description": "Vulnerability severity score", + "order": 10 + }, + "pci": { + "$ref": "#/definitions/pci", + "title": "PCI", + "description": "Vulnerability PCI details", + "order": 11 + }, + "published": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Published", + "description": "Date the vulnerability was published", + "order": 12 + }, + "severity": { + "type": "string", + "title": "Severity", + "description": "Vulnerability severity string (Moderate/Severe/Critical)", + "order": 13 + }, + "riskScore": { + "type": "number", + "title": "Risk Score", + "description": "Vulnerability risk score using the configured risk scoring strategy (RealRisk by default)", + "order": 14 + }, + "cvss": { + "$ref": "#/definitions/cvss", + "title": "CVSS", + "description": "Vulnerability CVSS details", + "order": 15 + }, + "categories": { + "type": "array", + "title": "Categories", + "description": "List of vulnerabilities categories with which this vulnerability is affiliated", + "items": { + "type": "string" + }, + "order": 16 + }, + "cves": { + "type": "array", + "title": "CVEs", + "description": "List of CVE identifiers associated with this vulnerability", + "items": { + "type": "string" + }, + "order": 17 + } + } + }, + "vulnerability_description": { + "type": "object", + "title": "vulnerability_description", + "properties": { + "html": { + "type": "string", + "title": "HTML", + "description": "Vulnerability description HTML", + "order": 1 + }, + "text": { + "type": "string", + "title": "Text", + "description": "Vulnerability description raw text", + "order": 2 + } + } + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 + } + } + }, + "pci": { + "type": "object", + "title": "pci", + "properties": { + "adjustedCVSSScore": { + "type": "integer", + "title": "Adjusted CVSS score", + "description": "PCI adjusted CVSS score", + "order": 1 + }, + "adjustedSeverityScore": { + "type": "integer", + "title": "Adjusted severity score", + "description": "PCI adjusted severity score", + "order": 2 + }, + "fail": { + "type": "boolean", + "title": "Fail", + "description": "Whether this vulnerability results in a PCI assessment failure", + "order": 3 + }, + "specialNotes": { + "type": "string", + "title": "Special Notes", + "description": "PCI special notes", + "order": 4 + }, + "status": { + "type": "string", + "title": "Status", + "description": "PCI status", + "order": 5 + } + } + }, "cvss": { "type": "object", "title": "cvss", @@ -83,170 +279,6 @@ class GetVulnerabilitiesByCveOutput(insightconnect_plugin_runtime.Output): "description": "CVSSv3 details", "order": 3 } - }, - "definitions": { - "cvss_v2": { - "type": "object", - "title": "cvss_v2", - "properties": { - "accessComplexity": { - "type": "string", - "title": "Access Complexity", - "description": "CVSSv2 access complexity metric", - "order": 1 - }, - "accessVector": { - "type": "string", - "title": "Access Vector", - "description": "CVSSv2 access vector metric", - "order": 2 - }, - "authentication": { - "type": "string", - "title": "Authentication", - "description": "CVSSv2 authentication metric", - "order": 3 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv2 availability impact metric", - "order": 4 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv2 confidentiality impact metric", - "order": 5 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv2 combined exploit metric score (Access Complexity/Access Vector/Authentication)", - "order": 6 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv2 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 7 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv2 integrity impact metric", - "order": 8 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv2 score", - "order": 9 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv2 combined vector string", - "order": 10 - } - } - }, - "cvss_v3": { - "type": "object", - "title": "cvss_v3", - "properties": { - "attackComplexity": { - "type": "string", - "title": "Attack Complexity", - "description": "CVSSv3 attack complexity metric", - "order": 1 - }, - "attackVector": { - "type": "string", - "title": "Attack Vector", - "description": "CVSSv3 attack vector metric", - "order": 2 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv3 availability impact metric", - "order": 3 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv3 confidentiality impact metric", - "order": 4 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv3 combined exploit metric score (Attack Complexity/Attack Vector/Privilege Required/Scope/User Interaction)", - "order": 5 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv3 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 6 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv3 integrity impact metric", - "order": 7 - }, - "privilegeRequired": { - "type": "string", - "title": "Privilege Required", - "description": "CVSSv3 privilege required metric", - "order": 8 - }, - "scope": { - "type": "string", - "title": "Scope", - "description": "CVSSv3 scope metric", - "order": 9 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv3 score", - "order": 10 - }, - "userInteraction": { - "type": "string", - "title": "User Interaction", - "description": "CVSSv3 user interaction metric", - "order": 11 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv3 combined vector string", - "order": 12 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } } }, "cvss_v2": { @@ -392,610 +424,6 @@ class GetVulnerabilitiesByCveOutput(insightconnect_plugin_runtime.Output): "order": 12 } } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "pci": { - "type": "object", - "title": "pci", - "properties": { - "adjustedCVSSScore": { - "type": "integer", - "title": "Adjusted CVSS score", - "description": "PCI adjusted CVSS score", - "order": 1 - }, - "adjustedSeverityScore": { - "type": "integer", - "title": "Adjusted severity score", - "description": "PCI adjusted severity score", - "order": 2 - }, - "fail": { - "type": "boolean", - "title": "Fail", - "description": "Whether this vulnerability results in a PCI assessment failure", - "order": 3 - }, - "specialNotes": { - "type": "string", - "title": "Special Notes", - "description": "PCI special notes", - "order": 4 - }, - "status": { - "type": "string", - "title": "Status", - "description": "PCI status", - "order": 5 - } - } - }, - "vulnerability": { - "type": "object", - "title": "vulnerability", - "properties": { - "added": { - "type": "string", - "title": "Added", - "displayType": "date", - "description": "Date that the vulnerability was added to InsightVM", - "format": "date-time", - "order": 1 - }, - "categories": { - "type": "array", - "title": "Categories", - "description": "List of vulnerabilities categories with which this vulnerability is affiliated", - "items": { - "type": "string" - }, - "order": 16 - }, - "cves": { - "type": "array", - "title": "CVEs", - "description": "List of CVE identifiers associated with this vulnerability", - "items": { - "type": "string" - }, - "order": 17 - }, - "cvss": { - "$ref": "#/definitions/cvss", - "title": "CVSS", - "description": "Vulnerability CVSS details", - "order": 15 - }, - "denialOfService": { - "type": "boolean", - "title": "Denial of Service", - "description": "Whether the vulnerability is a denial of service vulnerability", - "order": 7 - }, - "description": { - "$ref": "#/definitions/vulnerability_description", - "title": "Description", - "description": "Vulnerability description", - "order": 3 - }, - "exploits": { - "type": "integer", - "title": "Exploits", - "description": "Exploit count", - "order": 2 - }, - "id": { - "type": "string", - "title": "ID", - "description": "Vulnerability ID", - "order": 9 - }, - "links": { - "type": "array", - "title": "Links", - "description": "List of hypermedia links to corresponding resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 4 - }, - "malwareKits": { - "type": "integer", - "title": "Malware Kits", - "description": "Malware kit count", - "order": 6 - }, - "modified": { - "type": "string", - "title": "Modified", - "displayType": "date", - "description": "Date the vulnerability was last modified in InsightVM", - "format": "date-time", - "order": 8 - }, - "pci": { - "$ref": "#/definitions/pci", - "title": "PCI", - "description": "Vulnerability PCI details", - "order": 11 - }, - "published": { - "type": "string", - "title": "Published", - "displayType": "date", - "description": "Date the vulnerability was published", - "format": "date-time", - "order": 12 - }, - "riskScore": { - "type": "number", - "title": "Risk Score", - "description": "Vulnerability risk score using the configured risk scoring strategy (RealRisk by default)", - "order": 14 - }, - "severity": { - "type": "string", - "title": "Severity", - "description": "Vulnerability severity string (Moderate/Severe/Critical)", - "order": 13 - }, - "severityScore": { - "type": "integer", - "title": "Severity Score", - "description": "Vulnerability severity score", - "order": 10 - }, - "title": { - "type": "string", - "title": "Title", - "description": "Vulnerability title", - "order": 5 - } - }, - "definitions": { - "cvss": { - "type": "object", - "title": "cvss", - "properties": { - "links": { - "type": "array", - "title": "Links", - "description": "List of hypermedia links to corresponding resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 1 - }, - "v2": { - "$ref": "#/definitions/cvss_v2", - "title": "V2", - "description": "CVSSv2 details", - "order": 2 - }, - "v3": { - "$ref": "#/definitions/cvss_v3", - "title": "V3", - "description": "CVSSv3 details", - "order": 3 - } - }, - "definitions": { - "cvss_v2": { - "type": "object", - "title": "cvss_v2", - "properties": { - "accessComplexity": { - "type": "string", - "title": "Access Complexity", - "description": "CVSSv2 access complexity metric", - "order": 1 - }, - "accessVector": { - "type": "string", - "title": "Access Vector", - "description": "CVSSv2 access vector metric", - "order": 2 - }, - "authentication": { - "type": "string", - "title": "Authentication", - "description": "CVSSv2 authentication metric", - "order": 3 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv2 availability impact metric", - "order": 4 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv2 confidentiality impact metric", - "order": 5 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv2 combined exploit metric score (Access Complexity/Access Vector/Authentication)", - "order": 6 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv2 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 7 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv2 integrity impact metric", - "order": 8 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv2 score", - "order": 9 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv2 combined vector string", - "order": 10 - } - } - }, - "cvss_v3": { - "type": "object", - "title": "cvss_v3", - "properties": { - "attackComplexity": { - "type": "string", - "title": "Attack Complexity", - "description": "CVSSv3 attack complexity metric", - "order": 1 - }, - "attackVector": { - "type": "string", - "title": "Attack Vector", - "description": "CVSSv3 attack vector metric", - "order": 2 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv3 availability impact metric", - "order": 3 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv3 confidentiality impact metric", - "order": 4 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv3 combined exploit metric score (Attack Complexity/Attack Vector/Privilege Required/Scope/User Interaction)", - "order": 5 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv3 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 6 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv3 integrity impact metric", - "order": 7 - }, - "privilegeRequired": { - "type": "string", - "title": "Privilege Required", - "description": "CVSSv3 privilege required metric", - "order": 8 - }, - "scope": { - "type": "string", - "title": "Scope", - "description": "CVSSv3 scope metric", - "order": 9 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv3 score", - "order": 10 - }, - "userInteraction": { - "type": "string", - "title": "User Interaction", - "description": "CVSSv3 user interaction metric", - "order": 11 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv3 combined vector string", - "order": 12 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } - }, - "cvss_v2": { - "type": "object", - "title": "cvss_v2", - "properties": { - "accessComplexity": { - "type": "string", - "title": "Access Complexity", - "description": "CVSSv2 access complexity metric", - "order": 1 - }, - "accessVector": { - "type": "string", - "title": "Access Vector", - "description": "CVSSv2 access vector metric", - "order": 2 - }, - "authentication": { - "type": "string", - "title": "Authentication", - "description": "CVSSv2 authentication metric", - "order": 3 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv2 availability impact metric", - "order": 4 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv2 confidentiality impact metric", - "order": 5 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv2 combined exploit metric score (Access Complexity/Access Vector/Authentication)", - "order": 6 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv2 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 7 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv2 integrity impact metric", - "order": 8 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv2 score", - "order": 9 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv2 combined vector string", - "order": 10 - } - } - }, - "cvss_v3": { - "type": "object", - "title": "cvss_v3", - "properties": { - "attackComplexity": { - "type": "string", - "title": "Attack Complexity", - "description": "CVSSv3 attack complexity metric", - "order": 1 - }, - "attackVector": { - "type": "string", - "title": "Attack Vector", - "description": "CVSSv3 attack vector metric", - "order": 2 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv3 availability impact metric", - "order": 3 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv3 confidentiality impact metric", - "order": 4 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv3 combined exploit metric score (Attack Complexity/Attack Vector/Privilege Required/Scope/User Interaction)", - "order": 5 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv3 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 6 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv3 integrity impact metric", - "order": 7 - }, - "privilegeRequired": { - "type": "string", - "title": "Privilege Required", - "description": "CVSSv3 privilege required metric", - "order": 8 - }, - "scope": { - "type": "string", - "title": "Scope", - "description": "CVSSv3 scope metric", - "order": 9 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv3 score", - "order": 10 - }, - "userInteraction": { - "type": "string", - "title": "User Interaction", - "description": "CVSSv3 user interaction metric", - "order": 11 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv3 combined vector string", - "order": 12 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "pci": { - "type": "object", - "title": "pci", - "properties": { - "adjustedCVSSScore": { - "type": "integer", - "title": "Adjusted CVSS score", - "description": "PCI adjusted CVSS score", - "order": 1 - }, - "adjustedSeverityScore": { - "type": "integer", - "title": "Adjusted severity score", - "description": "PCI adjusted severity score", - "order": 2 - }, - "fail": { - "type": "boolean", - "title": "Fail", - "description": "Whether this vulnerability results in a PCI assessment failure", - "order": 3 - }, - "specialNotes": { - "type": "string", - "title": "Special Notes", - "description": "PCI special notes", - "order": 4 - }, - "status": { - "type": "string", - "title": "Status", - "description": "PCI status", - "order": 5 - } - } - }, - "vulnerability_description": { - "type": "object", - "title": "vulnerability_description", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "description": "Vulnerability description HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "Text", - "description": "Vulnerability description raw text", - "order": 2 - } - } - } - } - }, - "vulnerability_description": { - "type": "object", - "title": "vulnerability_description", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "description": "Vulnerability description HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "Text", - "description": "Vulnerability description raw text", - "order": 2 - } - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability/__init__.py index 0dc25d2c3f..abe8066d0a 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetVulnerability diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability/schema.py index a6188cb43c..1cdd08a68a 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: VULNERABILITY = "vulnerability" - + class GetVulnerabilityInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class GetVulnerabilityInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class GetVulnerabilityOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -55,6 +56,201 @@ class GetVulnerabilityOutput(insightconnect_plugin_runtime.Output): "vulnerability" ], "definitions": { + "vulnerability": { + "type": "object", + "title": "vulnerability", + "properties": { + "added": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Added", + "description": "Date that the vulnerability was added to InsightVM", + "order": 1 + }, + "exploits": { + "type": "integer", + "title": "Exploits", + "description": "Exploit count", + "order": 2 + }, + "description": { + "$ref": "#/definitions/vulnerability_description", + "title": "Description", + "description": "Vulnerability description", + "order": 3 + }, + "links": { + "type": "array", + "title": "Links", + "description": "List of hypermedia links to corresponding resources", + "items": { + "$ref": "#/definitions/link" + }, + "order": 4 + }, + "title": { + "type": "string", + "title": "Title", + "description": "Vulnerability title", + "order": 5 + }, + "malwareKits": { + "type": "integer", + "title": "Malware Kits", + "description": "Malware kit count", + "order": 6 + }, + "denialOfService": { + "type": "boolean", + "title": "Denial of Service", + "description": "Whether the vulnerability is a denial of service vulnerability", + "order": 7 + }, + "modified": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Modified", + "description": "Date the vulnerability was last modified in InsightVM", + "order": 8 + }, + "id": { + "type": "string", + "title": "ID", + "description": "Vulnerability ID", + "order": 9 + }, + "severityScore": { + "type": "integer", + "title": "Severity Score", + "description": "Vulnerability severity score", + "order": 10 + }, + "pci": { + "$ref": "#/definitions/pci", + "title": "PCI", + "description": "Vulnerability PCI details", + "order": 11 + }, + "published": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "Published", + "description": "Date the vulnerability was published", + "order": 12 + }, + "severity": { + "type": "string", + "title": "Severity", + "description": "Vulnerability severity string (Moderate/Severe/Critical)", + "order": 13 + }, + "riskScore": { + "type": "number", + "title": "Risk Score", + "description": "Vulnerability risk score using the configured risk scoring strategy (RealRisk by default)", + "order": 14 + }, + "cvss": { + "$ref": "#/definitions/cvss", + "title": "CVSS", + "description": "Vulnerability CVSS details", + "order": 15 + }, + "categories": { + "type": "array", + "title": "Categories", + "description": "List of vulnerabilities categories with which this vulnerability is affiliated", + "items": { + "type": "string" + }, + "order": 16 + }, + "cves": { + "type": "array", + "title": "CVEs", + "description": "List of CVE identifiers associated with this vulnerability", + "items": { + "type": "string" + }, + "order": 17 + } + } + }, + "vulnerability_description": { + "type": "object", + "title": "vulnerability_description", + "properties": { + "html": { + "type": "string", + "title": "HTML", + "description": "Vulnerability description HTML", + "order": 1 + }, + "text": { + "type": "string", + "title": "Text", + "description": "Vulnerability description raw text", + "order": 2 + } + } + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 + } + } + }, + "pci": { + "type": "object", + "title": "pci", + "properties": { + "adjustedCVSSScore": { + "type": "integer", + "title": "Adjusted CVSS score", + "description": "PCI adjusted CVSS score", + "order": 1 + }, + "adjustedSeverityScore": { + "type": "integer", + "title": "Adjusted severity score", + "description": "PCI adjusted severity score", + "order": 2 + }, + "fail": { + "type": "boolean", + "title": "Fail", + "description": "Whether this vulnerability results in a PCI assessment failure", + "order": 3 + }, + "specialNotes": { + "type": "string", + "title": "Special Notes", + "description": "PCI special notes", + "order": 4 + }, + "status": { + "type": "string", + "title": "Status", + "description": "PCI status", + "order": 5 + } + } + }, "cvss": { "type": "object", "title": "cvss", @@ -80,170 +276,6 @@ class GetVulnerabilityOutput(insightconnect_plugin_runtime.Output): "description": "CVSSv3 details", "order": 3 } - }, - "definitions": { - "cvss_v2": { - "type": "object", - "title": "cvss_v2", - "properties": { - "accessComplexity": { - "type": "string", - "title": "Access Complexity", - "description": "CVSSv2 access complexity metric", - "order": 1 - }, - "accessVector": { - "type": "string", - "title": "Access Vector", - "description": "CVSSv2 access vector metric", - "order": 2 - }, - "authentication": { - "type": "string", - "title": "Authentication", - "description": "CVSSv2 authentication metric", - "order": 3 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv2 availability impact metric", - "order": 4 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv2 confidentiality impact metric", - "order": 5 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv2 combined exploit metric score (Access Complexity/Access Vector/Authentication)", - "order": 6 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv2 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 7 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv2 integrity impact metric", - "order": 8 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv2 score", - "order": 9 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv2 combined vector string", - "order": 10 - } - } - }, - "cvss_v3": { - "type": "object", - "title": "cvss_v3", - "properties": { - "attackComplexity": { - "type": "string", - "title": "Attack Complexity", - "description": "CVSSv3 attack complexity metric", - "order": 1 - }, - "attackVector": { - "type": "string", - "title": "Attack Vector", - "description": "CVSSv3 attack vector metric", - "order": 2 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv3 availability impact metric", - "order": 3 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv3 confidentiality impact metric", - "order": 4 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv3 combined exploit metric score (Attack Complexity/Attack Vector/Privilege Required/Scope/User Interaction)", - "order": 5 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv3 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 6 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv3 integrity impact metric", - "order": 7 - }, - "privilegeRequired": { - "type": "string", - "title": "Privilege Required", - "description": "CVSSv3 privilege required metric", - "order": 8 - }, - "scope": { - "type": "string", - "title": "Scope", - "description": "CVSSv3 scope metric", - "order": 9 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv3 score", - "order": 10 - }, - "userInteraction": { - "type": "string", - "title": "User Interaction", - "description": "CVSSv3 user interaction metric", - "order": 11 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv3 combined vector string", - "order": 12 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } } }, "cvss_v2": { @@ -389,610 +421,6 @@ class GetVulnerabilityOutput(insightconnect_plugin_runtime.Output): "order": 12 } } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "pci": { - "type": "object", - "title": "pci", - "properties": { - "adjustedCVSSScore": { - "type": "integer", - "title": "Adjusted CVSS score", - "description": "PCI adjusted CVSS score", - "order": 1 - }, - "adjustedSeverityScore": { - "type": "integer", - "title": "Adjusted severity score", - "description": "PCI adjusted severity score", - "order": 2 - }, - "fail": { - "type": "boolean", - "title": "Fail", - "description": "Whether this vulnerability results in a PCI assessment failure", - "order": 3 - }, - "specialNotes": { - "type": "string", - "title": "Special Notes", - "description": "PCI special notes", - "order": 4 - }, - "status": { - "type": "string", - "title": "Status", - "description": "PCI status", - "order": 5 - } - } - }, - "vulnerability": { - "type": "object", - "title": "vulnerability", - "properties": { - "added": { - "type": "string", - "title": "Added", - "displayType": "date", - "description": "Date that the vulnerability was added to InsightVM", - "format": "date-time", - "order": 1 - }, - "categories": { - "type": "array", - "title": "Categories", - "description": "List of vulnerabilities categories with which this vulnerability is affiliated", - "items": { - "type": "string" - }, - "order": 16 - }, - "cves": { - "type": "array", - "title": "CVEs", - "description": "List of CVE identifiers associated with this vulnerability", - "items": { - "type": "string" - }, - "order": 17 - }, - "cvss": { - "$ref": "#/definitions/cvss", - "title": "CVSS", - "description": "Vulnerability CVSS details", - "order": 15 - }, - "denialOfService": { - "type": "boolean", - "title": "Denial of Service", - "description": "Whether the vulnerability is a denial of service vulnerability", - "order": 7 - }, - "description": { - "$ref": "#/definitions/vulnerability_description", - "title": "Description", - "description": "Vulnerability description", - "order": 3 - }, - "exploits": { - "type": "integer", - "title": "Exploits", - "description": "Exploit count", - "order": 2 - }, - "id": { - "type": "string", - "title": "ID", - "description": "Vulnerability ID", - "order": 9 - }, - "links": { - "type": "array", - "title": "Links", - "description": "List of hypermedia links to corresponding resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 4 - }, - "malwareKits": { - "type": "integer", - "title": "Malware Kits", - "description": "Malware kit count", - "order": 6 - }, - "modified": { - "type": "string", - "title": "Modified", - "displayType": "date", - "description": "Date the vulnerability was last modified in InsightVM", - "format": "date-time", - "order": 8 - }, - "pci": { - "$ref": "#/definitions/pci", - "title": "PCI", - "description": "Vulnerability PCI details", - "order": 11 - }, - "published": { - "type": "string", - "title": "Published", - "displayType": "date", - "description": "Date the vulnerability was published", - "format": "date-time", - "order": 12 - }, - "riskScore": { - "type": "number", - "title": "Risk Score", - "description": "Vulnerability risk score using the configured risk scoring strategy (RealRisk by default)", - "order": 14 - }, - "severity": { - "type": "string", - "title": "Severity", - "description": "Vulnerability severity string (Moderate/Severe/Critical)", - "order": 13 - }, - "severityScore": { - "type": "integer", - "title": "Severity Score", - "description": "Vulnerability severity score", - "order": 10 - }, - "title": { - "type": "string", - "title": "Title", - "description": "Vulnerability title", - "order": 5 - } - }, - "definitions": { - "cvss": { - "type": "object", - "title": "cvss", - "properties": { - "links": { - "type": "array", - "title": "Links", - "description": "List of hypermedia links to corresponding resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 1 - }, - "v2": { - "$ref": "#/definitions/cvss_v2", - "title": "V2", - "description": "CVSSv2 details", - "order": 2 - }, - "v3": { - "$ref": "#/definitions/cvss_v3", - "title": "V3", - "description": "CVSSv3 details", - "order": 3 - } - }, - "definitions": { - "cvss_v2": { - "type": "object", - "title": "cvss_v2", - "properties": { - "accessComplexity": { - "type": "string", - "title": "Access Complexity", - "description": "CVSSv2 access complexity metric", - "order": 1 - }, - "accessVector": { - "type": "string", - "title": "Access Vector", - "description": "CVSSv2 access vector metric", - "order": 2 - }, - "authentication": { - "type": "string", - "title": "Authentication", - "description": "CVSSv2 authentication metric", - "order": 3 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv2 availability impact metric", - "order": 4 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv2 confidentiality impact metric", - "order": 5 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv2 combined exploit metric score (Access Complexity/Access Vector/Authentication)", - "order": 6 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv2 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 7 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv2 integrity impact metric", - "order": 8 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv2 score", - "order": 9 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv2 combined vector string", - "order": 10 - } - } - }, - "cvss_v3": { - "type": "object", - "title": "cvss_v3", - "properties": { - "attackComplexity": { - "type": "string", - "title": "Attack Complexity", - "description": "CVSSv3 attack complexity metric", - "order": 1 - }, - "attackVector": { - "type": "string", - "title": "Attack Vector", - "description": "CVSSv3 attack vector metric", - "order": 2 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv3 availability impact metric", - "order": 3 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv3 confidentiality impact metric", - "order": 4 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv3 combined exploit metric score (Attack Complexity/Attack Vector/Privilege Required/Scope/User Interaction)", - "order": 5 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv3 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 6 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv3 integrity impact metric", - "order": 7 - }, - "privilegeRequired": { - "type": "string", - "title": "Privilege Required", - "description": "CVSSv3 privilege required metric", - "order": 8 - }, - "scope": { - "type": "string", - "title": "Scope", - "description": "CVSSv3 scope metric", - "order": 9 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv3 score", - "order": 10 - }, - "userInteraction": { - "type": "string", - "title": "User Interaction", - "description": "CVSSv3 user interaction metric", - "order": 11 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv3 combined vector string", - "order": 12 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - } - } - }, - "cvss_v2": { - "type": "object", - "title": "cvss_v2", - "properties": { - "accessComplexity": { - "type": "string", - "title": "Access Complexity", - "description": "CVSSv2 access complexity metric", - "order": 1 - }, - "accessVector": { - "type": "string", - "title": "Access Vector", - "description": "CVSSv2 access vector metric", - "order": 2 - }, - "authentication": { - "type": "string", - "title": "Authentication", - "description": "CVSSv2 authentication metric", - "order": 3 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv2 availability impact metric", - "order": 4 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv2 confidentiality impact metric", - "order": 5 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv2 combined exploit metric score (Access Complexity/Access Vector/Authentication)", - "order": 6 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv2 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 7 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv2 integrity impact metric", - "order": 8 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv2 score", - "order": 9 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv2 combined vector string", - "order": 10 - } - } - }, - "cvss_v3": { - "type": "object", - "title": "cvss_v3", - "properties": { - "attackComplexity": { - "type": "string", - "title": "Attack Complexity", - "description": "CVSSv3 attack complexity metric", - "order": 1 - }, - "attackVector": { - "type": "string", - "title": "Attack Vector", - "description": "CVSSv3 attack vector metric", - "order": 2 - }, - "availabilityImpact": { - "type": "string", - "title": "Availability Impact", - "description": "CVSSv3 availability impact metric", - "order": 3 - }, - "confidentialityImpact": { - "type": "string", - "title": "Confidentiality Impact", - "description": "CVSSv3 confidentiality impact metric", - "order": 4 - }, - "exploitScore": { - "type": "number", - "title": "Exploit Score", - "description": "CVSSv3 combined exploit metric score (Attack Complexity/Attack Vector/Privilege Required/Scope/User Interaction)", - "order": 5 - }, - "impactScore": { - "type": "number", - "title": "Impact Score", - "description": "CVSSv3 combined impact metric score (Confidentiality/Integrity/Availability)", - "order": 6 - }, - "integrityImpact": { - "type": "string", - "title": "Integrity Impact", - "description": "CVSSv3 integrity impact metric", - "order": 7 - }, - "privilegeRequired": { - "type": "string", - "title": "Privilege Required", - "description": "CVSSv3 privilege required metric", - "order": 8 - }, - "scope": { - "type": "string", - "title": "Scope", - "description": "CVSSv3 scope metric", - "order": 9 - }, - "score": { - "type": "number", - "title": "Score", - "description": "CVSSv3 score", - "order": 10 - }, - "userInteraction": { - "type": "string", - "title": "User Interaction", - "description": "CVSSv3 user interaction metric", - "order": 11 - }, - "vector": { - "type": "string", - "title": "Vector", - "description": "CVSSv3 combined vector string", - "order": 12 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "pci": { - "type": "object", - "title": "pci", - "properties": { - "adjustedCVSSScore": { - "type": "integer", - "title": "Adjusted CVSS score", - "description": "PCI adjusted CVSS score", - "order": 1 - }, - "adjustedSeverityScore": { - "type": "integer", - "title": "Adjusted severity score", - "description": "PCI adjusted severity score", - "order": 2 - }, - "fail": { - "type": "boolean", - "title": "Fail", - "description": "Whether this vulnerability results in a PCI assessment failure", - "order": 3 - }, - "specialNotes": { - "type": "string", - "title": "Special Notes", - "description": "PCI special notes", - "order": 4 - }, - "status": { - "type": "string", - "title": "Status", - "description": "PCI status", - "order": 5 - } - } - }, - "vulnerability_description": { - "type": "object", - "title": "vulnerability_description", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "description": "Vulnerability description HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "Text", - "description": "Vulnerability description raw text", - "order": 2 - } - } - } - } - }, - "vulnerability_description": { - "type": "object", - "title": "vulnerability_description", - "properties": { - "html": { - "type": "string", - "title": "HTML", - "description": "Vulnerability description HTML", - "order": 1 - }, - "text": { - "type": "string", - "title": "Text", - "description": "Vulnerability description raw text", - "order": 2 - } - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability_affected_assets/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability_affected_assets/__init__.py index 792a8411e0..b293c159f7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability_affected_assets/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability_affected_assets/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import GetVulnerabilityAffectedAssets diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability_affected_assets/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability_affected_assets/schema.py index 1c9cdc0536..1b7a0206e0 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability_affected_assets/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_vulnerability_affected_assets/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,15 +9,15 @@ class Component: class Input: VULNERABILITY_ID = "vulnerability_id" - + class Output: LINKS = "links" RESOURCES = "resources" - + class GetVulnerabilityAffectedAssetsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -31,7 +31,8 @@ class GetVulnerabilityAffectedAssetsInput(insightconnect_plugin_runtime.Input): }, "required": [ "vulnerability_id" - ] + ], + "definitions": {} } """) @@ -40,7 +41,7 @@ def __init__(self): class GetVulnerabilityAffectedAssetsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_inactive_assets/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_inactive_assets/__init__.py index 906f3fdbf1..6dfe89f0bd 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_inactive_assets/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_inactive_assets/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import ListInactiveAssets diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_inactive_assets/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_inactive_assets/schema.py index b3aac3a856..4dfedef8b4 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_inactive_assets/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_inactive_assets/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: DAYS_AGO = "days_ago" SIZE = "size" - + class Output: ASSETS = "assets" - + class ListInactiveAssetsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -39,7 +39,8 @@ class ListInactiveAssetsInput(insightconnect_plugin_runtime.Input): }, "required": [ "days_ago" - ] + ], + "definitions": {} } """) @@ -48,7 +49,7 @@ def __init__(self): class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -67,24 +68,6 @@ class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): "assets" ], "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, "asset": { "type": "object", "title": "asset", @@ -269,1116 +252,23 @@ class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): "description": " Summary information for vulnerabilities on the asset", "order": 24 } - }, - "definitions": { - "address": { - "type": "object", - "title": "address", - "properties": { - "ip": { - "type": "string", - "title": "IP", - "description": "IPv4 or IPv6 address", - "order": 1 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 2 - } - } - }, - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "history": { - "type": "object", - "title": "history", - "properties": { - "date": { - "type": "string", - "title": "Date", - "description": "Date the asset information was collected or changed", - "order": 1 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Additional information describing the change", - "order": 2 - }, - "scanId": { - "type": "integer", - "title": "Scan ID", - "description": "If a scan-oriented change, the identifier of the corresponding scan the asset was scanned in", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type, for additional information see the help section of this plugin", - "order": 4 - }, - "user": { - "type": "string", - "title": "User", - "description": "User", - "order": 5 - }, - "version": { - "type": "integer", - "title": "Version", - "description": "Version", - "order": 6 - }, - "vulnerabilityExceptionId": { - "type": "integer", - "title": "Vulnerability Exception ID", - "description": "Vulnerability exception ID", - "order": 7 - } - } - }, - "hostName": { - "type": "object", - "title": "hostName", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "id": { - "type": "object", - "title": "id", - "properties": { - "id": { - "type": "string", - "title": "ID", - "description": "ID", - "order": 1 - }, - "source": { - "type": "string", - "title": "Source", - "description": "Source", - "order": 2 - } - } - }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "osFingerprint": { - "type": "object", - "title": "osFingerprint", - "properties": { - "architecture": { - "type": "string", - "title": "Architecture", - "description": "The architecture of the operating system", - "order": 1 - }, - "configurations": { - "type": "array", - "title": "Configuration", - "description": "Configuration key-values pairs enumerated on the operating system", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 2 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "Common Platform Enumeration", - "order": 3 - }, - "description": { - "type": "string", - "title": "Description", - "description": "The description of the operating system (containing vendor, family, product, version and architecture in a single string)", - "order": 4 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the operating system", - "order": 5 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the operating system", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Name of the operating system", - "order": 7 - }, - "systemName": { - "type": "string", - "title": "System Name", - "description": "A combination of vendor and family (with redundancies removed), suitable for grouping", - "order": 8 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of operating system", - "order": 9 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the operating system", - "order": 10 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the operating system", - "order": 11 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "service": { - "type": "object", - "title": "service", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configuration key-values pairs enumerated on the service", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "databases": { - "type": "array", - "title": "Databases", - "description": "Databases enumerated on the service", - "items": { - "$ref": "#/definitions/database" - }, - "order": 2 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the service", - "order": 3 - }, - "links": { - "type": "array", - "title": "Links", - "description": "Hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 4 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the service", - "order": 5 - }, - "port": { - "type": "integer", - "title": "Port", - "description": "Port of the service", - "order": 6 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product running the service", - "order": 7 - }, - "protocol": { - "type": "string", - "title": "Protocol", - "description": "Protocol of the service", - "order": 8 - }, - "userGroups": { - "type": "array", - "title": "User Groups", - "description": "User groups", - "items": { - "$ref": "#/definitions/userGroup" - }, - "order": 9 - }, - "users": { - "type": "array", - "title": "Users", - "description": "Users", - "items": { - "$ref": "#/definitions/user" - }, - "order": 10 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the service", - "order": 11 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the service", - "order": 12 - }, - "webApplications": { - "type": "array", - "title": "Web Applications", - "description": "Web applications found on the service", - "items": { - "$ref": "#/definitions/webApplication" - }, - "order": 13 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } - } - } - }, - "software": { - "type": "object", - "title": "software", - "properties": { - "configurations": { - "type": "array", - "title": "Configurations", - "description": "Configurations", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "cpe": { - "$ref": "#/definitions/cpe", - "title": "CPE", - "description": "CPE", - "order": 2 - }, - "description": { - "type": "string", - "title": "Description", - "description": "Description of the software", - "order": 3 - }, - "family": { - "type": "string", - "title": "Family", - "description": "Family of the software", - "order": 4 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "ID", - "order": 5 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Product of the software", - "order": 6 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the software", - "order": 7 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "Vendor of the software", - "order": 8 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Version of the software", - "order": 9 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } + } + }, + "address": { + "type": "object", + "title": "address", + "properties": { + "ip": { + "type": "string", + "title": "IP", + "description": "IPv4 or IPv6 address", + "order": 1 }, - "vulnerabilities": { - "type": "object", - "title": "vulnerabilities", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "exploits": { - "type": "integer", - "title": "Exploits", - "description": "Number of distinct exploits that can exploit any of the vulnerabilities on the asset", - "order": 2 - }, - "malwareKits": { - "type": "integer", - "title": "Malware Kits", - "description": "Number of distinct malware kits that vulnerabilities on the asset are susceptible to", - "order": 3 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 4 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 5 - }, - "total": { - "type": "integer", - "title": "Total", - "description": "Total number of vulnerabilities", - "order": 6 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } + "mac": { + "type": "string", + "title": "MAC", + "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", + "order": 2 } } }, @@ -1400,90 +290,6 @@ class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): } } }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - }, "database": { "type": "object", "title": "database", @@ -1508,6 +314,47 @@ class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): } } }, + "insightvm_file": { + "type": "object", + "title": "insightvm_file", + "properties": { + "attributes": { + "type": "array", + "title": "Attributes", + "description": "Attributes detected on the file", + "items": { + "$ref": "#/definitions/configuration" + }, + "order": 1 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the file", + "order": 2 + }, + "size": { + "type": "integer", + "title": "Size", + "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", + "order": 3 + }, + "type": { + "type": "string", + "title": "Type", + "description": "Type of the file, e.g. file or directory", + "order": 4 + }, + "content": { + "type": "string", + "format": "bytes", + "displayType": "bytes", + "title": "Contents", + "description": "Contents of the file", + "order": 5 + } + } + }, "history": { "type": "object", "title": "history", @@ -1592,67 +439,6 @@ class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): } } }, - "insightvm_file": { - "type": "object", - "title": "insightvm_file", - "properties": { - "attributes": { - "type": "array", - "title": "Attributes", - "description": "Attributes detected on the file", - "items": { - "$ref": "#/definitions/configuration" - }, - "order": 1 - }, - "content": { - "type": "string", - "title": "Contents", - "displayType": "bytes", - "description": "Contents of the file", - "format": "bytes", - "order": 5 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the file", - "order": 2 - }, - "size": { - "type": "integer", - "title": "Size", - "description": "Size of the regular file (in bytes). If the file is a directory, no value is returned", - "order": 3 - }, - "type": { - "type": "string", - "title": "Type", - "description": "Type of the file, e.g. file or directory", - "order": 4 - } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - } - } - }, "link": { "type": "object", "title": "link", @@ -1744,133 +530,89 @@ class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): "description": "Version of the operating system", "order": 11 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } } }, - "page": { + "cpe": { "type": "object", - "title": "page", + "title": "cpe", "properties": { - "linkType": { + "edition": { "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", + "title": "Edition", + "description": "Edition-related terms applied by the vendor to the product", "order": 1 }, - "path": { + "language": { "type": "string", - "title": "Path", - "description": "Path to the page (URI)", + "title": "Language", + "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", "order": 2 }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", + "other": { + "type": "string", + "title": "Other", + "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", "order": 3 + }, + "part": { + "type": "string", + "title": "Part", + "description": "A single letter code that designates the particular platform part that is being identified", + "order": 4 + }, + "product": { + "type": "string", + "title": "Product", + "description": "Most common and recognizable title or name of the product", + "order": 5 + }, + "swEdition": { + "type": "string", + "title": "Software Edition", + "description": "Characterizes how the product is tailored to a particular market or class of end users", + "order": 6 + }, + "targetHW": { + "type": "string", + "title": "Target Hardware", + "description": "Characterize the instruction set architecture on which the product operates", + "order": 7 + }, + "targetSW": { + "type": "string", + "title": "Target Software", + "description": "Characterizes the software computing environment within which the product operates", + "order": 8 + }, + "update": { + "type": "string", + "title": "Update", + "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", + "order": 9 + }, + "v2.2": { + "type": "string", + "title": "Version 2.2", + "description": "The full CPE string in the CPE 2.2 format", + "order": 10 + }, + "v2.3": { + "type": "string", + "title": "Version 2.3", + "description": "The full CPE string in the CPE 2.3 format", + "order": 11 + }, + "vendor": { + "type": "string", + "title": "Vendor", + "description": "The person or organization that manufactured or created the product", + "order": 12 + }, + "version": { + "type": "string", + "title": "Version", + "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", + "order": 13 } } }, @@ -1974,192 +716,104 @@ class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): }, "order": 13 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "database": { - "type": "object", - "title": "database", - "properties": { - "description": { - "type": "string", - "title": "Description", - "description": "Description of the database instance", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the database", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the database instance", - "order": 3 - } - } - }, - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } + } + }, + "userGroup": { + "type": "object", + "title": "userGroup", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user group", + "order": 1 }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } - } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user group", + "order": 2 + } + } + }, + "user": { + "type": "object", + "title": "user", + "properties": { + "fullName": { + "type": "string", + "title": "Full Name", + "description": "Full name of the user account", + "order": 1 + }, + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the user account", + "order": 2 + }, + "name": { + "type": "string", + "title": "Name", + "description": "Name of the user account", + "order": 3 + } + } + }, + "webApplication": { + "type": "object", + "title": "webApplication", + "properties": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the web application", + "order": 1 + }, + "pages": { + "type": "array", + "title": "Pages", + "description": "Pages", + "items": { + "$ref": "#/definitions/page" }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } + "order": 2 + }, + "root": { + "type": "string", + "title": "Root", + "description": "Web root of the web application", + "order": 3 + }, + "virtualHost": { + "type": "string", + "title": "Virtual Host", + "description": "Virtual host of the web application", + "order": 4 + } + } + }, + "page": { + "type": "object", + "title": "page", + "properties": { + "linkType": { + "type": "string", + "title": "Link Type", + "description": "Type of link used to traverse or detect the page", + "order": 1 + }, + "path": { + "type": "string", + "title": "Path", + "description": "Path to the page (URI)", + "order": 2 + }, + "response": { + "type": "integer", + "title": "Response", + "description": "HTTP response code observed with retrieving the page", + "order": 3 } } }, @@ -2224,152 +878,6 @@ class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): "description": "Version of the software", "order": 9 } - }, - "definitions": { - "configuration": { - "type": "object", - "title": "configuration", - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "Name of the configuration value", - "order": 1 - }, - "value": { - "type": "string", - "title": "Value", - "description": "Configuration value", - "order": 2 - } - } - }, - "cpe": { - "type": "object", - "title": "cpe", - "properties": { - "edition": { - "type": "string", - "title": "Edition", - "description": "Edition-related terms applied by the vendor to the product", - "order": 1 - }, - "language": { - "type": "string", - "title": "Language", - "description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646", - "order": 2 - }, - "other": { - "type": "string", - "title": "Other", - "description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value", - "order": 3 - }, - "part": { - "type": "string", - "title": "Part", - "description": "A single letter code that designates the particular platform part that is being identified", - "order": 4 - }, - "product": { - "type": "string", - "title": "Product", - "description": "Most common and recognizable title or name of the product", - "order": 5 - }, - "swEdition": { - "type": "string", - "title": "Software Edition", - "description": "Characterizes how the product is tailored to a particular market or class of end users", - "order": 6 - }, - "targetHW": { - "type": "string", - "title": "Target Hardware", - "description": "Characterize the instruction set architecture on which the product operates", - "order": 7 - }, - "targetSW": { - "type": "string", - "title": "Target Software", - "description": "Characterizes the software computing environment within which the product operates", - "order": 8 - }, - "update": { - "type": "string", - "title": "Update", - "description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product", - "order": 9 - }, - "v2.2": { - "type": "string", - "title": "Version 2.2", - "description": "The full CPE string in the CPE 2.2 format", - "order": 10 - }, - "v2.3": { - "type": "string", - "title": "Version 2.3", - "description": "The full CPE string in the CPE 2.3 format", - "order": 11 - }, - "vendor": { - "type": "string", - "title": "Vendor", - "description": "The person or organization that manufactured or created the product", - "order": 12 - }, - "version": { - "type": "string", - "title": "Version", - "description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product", - "order": 13 - } - } - } - } - }, - "user": { - "type": "object", - "title": "user", - "properties": { - "fullName": { - "type": "string", - "title": "Full Name", - "description": "Full name of the user account", - "order": 1 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user account", - "order": 2 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user account", - "order": 3 - } - } - }, - "userGroup": { - "type": "object", - "title": "userGroup", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the user group", - "order": 1 - }, - "name": { - "type": "string", - "title": "Name", - "description": "Name of the user group", - "order": 2 - } } }, "vulnerabilities": { @@ -2413,65 +921,6 @@ class ListInactiveAssetsOutput(insightconnect_plugin_runtime.Output): "order": 6 } } - }, - "webApplication": { - "type": "object", - "title": "webApplication", - "properties": { - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the web application", - "order": 1 - }, - "pages": { - "type": "array", - "title": "Pages", - "description": "Pages", - "items": { - "$ref": "#/definitions/page" - }, - "order": 2 - }, - "root": { - "type": "string", - "title": "Root", - "description": "Web root of the web application", - "order": 3 - }, - "virtualHost": { - "type": "string", - "title": "Virtual Host", - "description": "Virtual host of the web application", - "order": 4 - } - }, - "definitions": { - "page": { - "type": "object", - "title": "page", - "properties": { - "linkType": { - "type": "string", - "title": "Link Type", - "description": "Type of link used to traverse or detect the page", - "order": 1 - }, - "path": { - "type": "string", - "title": "Path", - "description": "Path to the page (URI)", - "order": 2 - }, - "response": { - "type": "integer", - "title": "Response", - "description": "HTTP response code observed with retrieving the page", - "order": 3 - } - } - } - } } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_reports/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_reports/__init__.py index 60709b4692..f25dbefcce 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_reports/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_reports/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import ListReports diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_reports/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_reports/schema.py index dab3ad3c5c..f508b67c67 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_reports/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/list_reports/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,28 +10,26 @@ class Component: class Input: NAME = "name" SORT = "sort" - + class Output: FOUND = "found" LIST = "list" - + class ListReportsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", "properties": { "name": { "type": "string", - "title": "Name", "description": "Name of report, otherwise all reports by criteria", "order": 1 }, "sort": { "type": "string", - "title": "Sort", "description": "Sort order, ascending or descending", "enum": [ "Ascending", @@ -42,7 +40,8 @@ class ListReportsInput(insightconnect_plugin_runtime.Input): }, "required": [ "sort" - ] + ], + "definitions": {} } """) @@ -51,14 +50,13 @@ def __init__(self): class ListReportsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", "properties": { "found": { "type": "boolean", - "title": "Found", "description": "Whether optional user supplied report name was found", "order": 1 }, diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_group_tags/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_group_tags/__init__.py index 31aa3ee28f..6df565c5de 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_group_tags/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_group_tags/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import RemoveAssetGroupTags diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_group_tags/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_group_tags/schema.py index 46d58b0564..0afa74e2ca 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_group_tags/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_group_tags/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class RemoveAssetGroupTagsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class RemoveAssetGroupTagsInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class RemoveAssetGroupTagsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_tag/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_tag/__init__.py index c921103579..0e71efd84c 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_tag/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_tag/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import RemoveAssetTag diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_tag/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_tag/schema.py index bfcd2656d3..ebd37c5b4d 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_tag/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_asset_tag/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ASSET_ID = "asset_id" TAG_ID = "tag_id" - + class Output: LINKS = "links" - + class RemoveAssetTagInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class RemoveAssetTagInput(insightconnect_plugin_runtime.Input): "required": [ "asset_id", "tag_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class RemoveAssetTagOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_scan_engine_pool_engine/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_scan_engine_pool_engine/__init__.py index 698c4c494c..b6d475e55f 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_scan_engine_pool_engine/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_scan_engine_pool_engine/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import RemoveScanEnginePoolEngine diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_scan_engine_pool_engine/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_scan_engine_pool_engine/schema.py index 9786504500..19a9ec9e0c 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_scan_engine_pool_engine/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_scan_engine_pool_engine/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ENGINE_ID = "engine_id" POOL_ID = "pool_id" - + class Output: LINKS = "links" - + class RemoveScanEnginePoolEngineInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class RemoveScanEnginePoolEngineInput(insightconnect_plugin_runtime.Input): "required": [ "engine_id", "pool_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class RemoveScanEnginePoolEngineOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_asset_groups/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_asset_groups/__init__.py index e949172041..b2dff48c7d 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_asset_groups/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_asset_groups/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import RemoveTagAssetGroups diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_asset_groups/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_asset_groups/schema.py index 492994b499..ce5132bae9 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_asset_groups/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_asset_groups/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class RemoveTagAssetGroupsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class RemoveTagAssetGroupsInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class RemoveTagAssetGroupsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_search_criteria/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_search_criteria/__init__.py index 3df101a23c..d68c4bb40d 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_search_criteria/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_search_criteria/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import RemoveTagSearchCriteria diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_search_criteria/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_search_criteria/schema.py index 0c81bced22..4cf01d8a62 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_search_criteria/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_search_criteria/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class RemoveTagSearchCriteriaInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class RemoveTagSearchCriteriaInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class RemoveTagSearchCriteriaOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_sites/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_sites/__init__.py index b6ec3526d6..fc42b5dc7c 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_sites/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_sites/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import RemoveTagSites diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_sites/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_sites/schema.py index 05f537c54b..65285ae279 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_sites/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_tag_sites/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -9,14 +9,14 @@ class Component: class Input: ID = "id" - + class Output: LINKS = "links" - + class RemoveTagSitesInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -30,7 +30,8 @@ class RemoveTagSitesInput(insightconnect_plugin_runtime.Input): }, "required": [ "id" - ] + ], + "definitions": {} } """) @@ -39,7 +40,7 @@ def __init__(self): class RemoveTagSitesOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_asset_group_access/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_asset_group_access/__init__.py index 318add1fa7..c0bf8c04a5 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_asset_group_access/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_asset_group_access/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import RemoveUserAssetGroupAccess diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_asset_group_access/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_asset_group_access/schema.py index 97c1856e80..7ffe09ccc2 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_asset_group_access/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_asset_group_access/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ASSET_GROUP_ID = "asset_group_id" USER_ID = "user_id" - + class Output: LINKS = "links" - + class RemoveUserAssetGroupAccessInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class RemoveUserAssetGroupAccessInput(insightconnect_plugin_runtime.Input): "required": [ "asset_group_id", "user_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class RemoveUserAssetGroupAccessOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_site_access/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_site_access/__init__.py index 147d14ce11..34845aa2bc 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_site_access/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_site_access/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import RemoveUserSiteAccess diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_site_access/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_site_access/schema.py index 91b57fbec9..dce27987cf 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_site_access/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/remove_user_site_access/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: SITE_ID = "site_id" USER_ID = "user_id" - + class Output: LINKS = "links" - + class RemoveUserSiteAccessInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class RemoveUserSiteAccessInput(insightconnect_plugin_runtime.Input): "required": [ "site_id", "user_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class RemoveUserSiteAccessOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/review_exception/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/review_exception/__init__.py index 51b7fef71c..6f3f5e1854 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/review_exception/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/review_exception/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import ReviewException diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/review_exception/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/review_exception/schema.py index b004dcb52b..94f44f3071 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/review_exception/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/review_exception/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -11,14 +11,14 @@ class Input: COMMENT = "comment" EXCEPTION = "exception" REVIEW = "review" - + class Output: LINKS = "links" - + class ReviewExceptionInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -49,7 +49,8 @@ class ReviewExceptionInput(insightconnect_plugin_runtime.Input): "required": [ "exception", "review" - ] + ], + "definitions": {} } """) @@ -58,7 +59,7 @@ def __init__(self): class ReviewExceptionOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/scan/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/scan/__init__.py index 1e73b2979f..2458f05bf1 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/scan/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/scan/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import Scan diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/scan/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/scan/schema.py index 1735ea7f6c..ae2c85c7e7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/scan/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/scan/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -11,15 +11,15 @@ class Input: HOSTS = "hosts" OVERRIDE_BLACKOUT = "override_blackout" SITE_ID = "site_id" - + class Output: ID = "id" LINKS = "links" - + class ScanInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -49,7 +49,8 @@ class ScanInput(insightconnect_plugin_runtime.Input): }, "required": [ "site_id" - ] + ], + "definitions": {} } """) @@ -58,7 +59,7 @@ def __init__(self): class ScanOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset/__init__.py index f338cda1bb..2e92ab4521 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import TagAsset diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset/schema.py index 8689a10d81..9031a65c68 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ASSET_ID = "asset_id" TAG_ID = "tag_id" - + class Output: LINKS = "links" - + class TagAssetInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class TagAssetInput(insightconnect_plugin_runtime.Input): "required": [ "asset_id", "tag_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class TagAssetOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset_group/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset_group/__init__.py index 6f812e6864..c9b4875cef 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset_group/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset_group/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import TagAssetGroup diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset_group/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset_group/schema.py index d269ede264..3d8abe4cd1 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset_group/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_asset_group/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ASSET_GROUP_ID = "asset_group_id" TAG_ID = "tag_id" - + class Output: LINKS = "links" - + class TagAssetGroupInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class TagAssetGroupInput(insightconnect_plugin_runtime.Input): "required": [ "asset_group_id", "tag_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class TagAssetGroupOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_assets/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_assets/__init__.py index 21ae8cc415..397d8a3906 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_assets/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_assets/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import TagAssets diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_assets/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_assets/schema.py index dee33d76df..3df9501200 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_assets/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_assets/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -13,14 +13,14 @@ class Input: TAG_NAME = "tag_name" TAG_SOURCE = "tag_source" TAG_TYPE = "tag_type" - + class Output: SUCCESS = "success" - + class TagAssetsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -65,7 +65,8 @@ class TagAssetsInput(insightconnect_plugin_runtime.Input): "tag_name", "tag_source", "tag_type" - ] + ], + "definitions": {} } """) @@ -74,7 +75,7 @@ def __init__(self): class TagAssetsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -88,7 +89,8 @@ class TagAssetsOutput(insightconnect_plugin_runtime.Output): }, "required": [ "success" - ] + ], + "definitions": {} } """) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_site/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_site/__init__.py index 29da319489..3eca55d651 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_site/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_site/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import TagSite diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_site/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_site/schema.py index ba8501d1cb..98b3bcc533 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_site/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/tag_site/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: SITE_ID = "site_id" TAG_ID = "tag_id" - + class Output: LINKS = "links" - + class TagSiteInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class TagSiteInput(insightconnect_plugin_runtime.Input): "required": [ "site_id", "tag_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class TagSiteOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/top_remediations/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/top_remediations/__init__.py index b5ec55f6e2..2ce704fbfb 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/top_remediations/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/top_remediations/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import TopRemediations diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/top_remediations/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/top_remediations/schema.py index 326acbc903..9bd883b9f0 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/top_remediations/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/top_remediations/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -13,14 +13,14 @@ class Input: SCOPE = "scope" SCOPE_IDS = "scope_ids" VULNERABILITY_LIMIT = "vulnerability_limit" - + class Output: REMEDIATIONS = "remediations" - + class TopRemediationsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -63,10 +63,10 @@ class TopRemediationsInput(insightconnect_plugin_runtime.Input): "type": "array", "title": "Scope IDs", "description": "Scope IDs for which tickets should be generated, by default all are included", + "default": [], "items": { "type": "integer" }, - "default": [], "order": 3 }, "vulnerability_limit": { @@ -79,7 +79,8 @@ class TopRemediationsInput(insightconnect_plugin_runtime.Input): "required": [ "limit", "scope" - ] + ], + "definitions": {} } """) @@ -88,7 +89,7 @@ def __init__(self): class TopRemediationsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -111,20 +112,23 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "type": "object", "title": "remediation", "properties": { - "assetCount": { + "solutionId": { "type": "integer", - "title": "Asset Count", - "description": "The number of assets that require the solution to be applied", - "order": 5 + "title": "Solution ID", + "description": "The identifier of the solution", + "order": 1 }, - "assets": { - "type": "array", - "title": "Assets", - "description": "The assets that require the solution to be applied", - "items": { - "$ref": "#/definitions/remediation_asset" - }, - "order": 8 + "nexposeId": { + "type": "string", + "title": "Rapid7 Solution ID", + "description": "The identifier of the solution within InsightVM/Nexpose", + "order": 2 + }, + "summary": { + "type": "string", + "title": "Summary", + "description": "Remediation summary", + "order": 3 }, "fix": { "type": "string", @@ -132,11 +136,17 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "description": "The steps that are part of the fix this solution prescribes", "order": 4 }, - "nexposeId": { - "type": "string", - "title": "Rapid7 Solution ID", - "description": "The identifier of the solution within InsightVM/Nexpose", - "order": 2 + "assetCount": { + "type": "integer", + "title": "Asset Count", + "description": "The number of assets that require the solution to be applied", + "order": 5 + }, + "vulnerabilityCount": { + "type": "integer", + "title": "Vulnerability Count", + "description": "The number of vulnerabilities that would be remediated", + "order": 6 }, "riskScore": { "type": "integer", @@ -144,17 +154,14 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "description": "The risk score that is reduced by performing the solution", "order": 7 }, - "solutionId": { - "type": "integer", - "title": "Solution ID", - "description": "The identifier of the solution", - "order": 1 - }, - "summary": { - "type": "string", - "title": "Summary", - "description": "Remediation summary", - "order": 3 + "assets": { + "type": "array", + "title": "Assets", + "description": "The assets that require the solution to be applied", + "items": { + "$ref": "#/definitions/remediation_asset" + }, + "order": 8 }, "vulnerabilities": { "type": "array", @@ -164,12 +171,6 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "$ref": "#/definitions/remediation_vulnerability" }, "order": 9 - }, - "vulnerabilityCount": { - "type": "integer", - "title": "Vulnerability Count", - "description": "The number of vulnerabilities that would be remediated", - "order": 6 } }, "required": [ @@ -181,121 +182,17 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "summary", "vulnerabilities", "vulnerabilityCount" - ], - "definitions": { - "remediation_asset": { - "type": "object", - "title": "remediation_asset", - "properties": { - "criticalityTag": { - "type": "string", - "title": "Criticality Tag", - "description": "The criticality tag assigned to the asset", - "order": 7 - }, - "hostName": { - "type": "string", - "title": "Hostname", - "description": "Primary host name (local or FQDN) of the asset", - "order": 2 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the asset", - "order": 1 - }, - "ip": { - "type": "string", - "title": "IP", - "description": "Primary IPv4 or IPv6 address of the asset", - "order": 3 - }, - "mac": { - "type": "string", - "title": "MAC", - "description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48", - "order": 4 - }, - "os": { - "type": "string", - "title": "OS", - "description": "Full description of the operating system of the asset", - "order": 5 - }, - "riskScore": { - "type": "number", - "title": "Risk Score", - "description": "Risk score (with criticality adjustments) of the asset", - "order": 6 - } - }, - "required": [ - "id", - "ip" - ] - }, - "remediation_vulnerability": { - "type": "object", - "title": "remediation_vulnerability", - "properties": { - "cvssScore": { - "type": "string", - "title": "CVSS Score", - "description": "The CVSS score of the vulnerability", - "order": 4 - }, - "description": { - "type": "string", - "title": "Description", - "description": "The description of the vulnerability", - "order": 3 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the vulnerability", - "order": 1 - }, - "riskScore": { - "type": "integer", - "title": "Risk Score", - "description": "The risk score of the vulnerability", - "order": 6 - }, - "severity": { - "type": "integer", - "title": "Severity", - "description": "The severity of the vulnerability", - "order": 5 - }, - "title": { - "type": "string", - "title": "Title", - "description": "The title of the vulnerability", - "order": 2 - } - }, - "required": [ - "cvssScore", - "description", - "id", - "riskScore", - "severity", - "title" - ] - } - } + ] }, "remediation_asset": { "type": "object", "title": "remediation_asset", "properties": { - "criticalityTag": { - "type": "string", - "title": "Criticality Tag", - "description": "The criticality tag assigned to the asset", - "order": 7 + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the asset", + "order": 1 }, "hostName": { "type": "string", @@ -303,12 +200,6 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "description": "Primary host name (local or FQDN) of the asset", "order": 2 }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the asset", - "order": 1 - }, "ip": { "type": "string", "title": "IP", @@ -332,6 +223,12 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "title": "Risk Score", "description": "Risk score (with criticality adjustments) of the asset", "order": 6 + }, + "criticalityTag": { + "type": "string", + "title": "Criticality Tag", + "description": "The criticality tag assigned to the asset", + "order": 7 } }, "required": [ @@ -343,11 +240,17 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "type": "object", "title": "remediation_vulnerability", "properties": { - "cvssScore": { + "id": { + "type": "integer", + "title": "ID", + "description": "Identifier of the vulnerability", + "order": 1 + }, + "title": { "type": "string", - "title": "CVSS Score", - "description": "The CVSS score of the vulnerability", - "order": 4 + "title": "Title", + "description": "The title of the vulnerability", + "order": 2 }, "description": { "type": "string", @@ -355,17 +258,11 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "description": "The description of the vulnerability", "order": 3 }, - "id": { - "type": "integer", - "title": "ID", - "description": "Identifier of the vulnerability", - "order": 1 - }, - "riskScore": { - "type": "integer", - "title": "Risk Score", - "description": "The risk score of the vulnerability", - "order": 6 + "cvssScore": { + "type": "string", + "title": "CVSS Score", + "description": "The CVSS score of the vulnerability", + "order": 4 }, "severity": { "type": "integer", @@ -373,11 +270,11 @@ class TopRemediationsOutput(insightconnect_plugin_runtime.Output): "description": "The severity of the vulnerability", "order": 5 }, - "title": { - "type": "string", - "title": "Title", - "description": "The title of the vulnerability", - "order": 2 + "riskScore": { + "type": "integer", + "title": "Risk Score", + "description": "The risk score of the vulnerability", + "order": 6 } }, "required": [ diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_asset_group_search_criteria/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_asset_group_search_criteria/__init__.py index 049fbc6d44..b1367a75b9 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_asset_group_search_criteria/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_asset_group_search_criteria/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateAssetGroupSearchCriteria diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_asset_group_search_criteria/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_asset_group_search_criteria/schema.py index bf350b31fe..fdfa04089e 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_asset_group_search_criteria/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_asset_group_search_criteria/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ID = "id" SEARCHCRITERIA = "searchCriteria" - + class Output: LINKS = "links" - + class UpdateAssetGroupSearchCriteriaInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class UpdateAssetGroupSearchCriteriaInput(insightconnect_plugin_runtime.Input): "required": [ "id", "searchCriteria" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class UpdateAssetGroupSearchCriteriaOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_scan_status/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_scan_status/__init__.py index 8f9a6584ad..e5944dd96e 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_scan_status/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_scan_status/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateScanStatus diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_scan_status/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_scan_status/schema.py index 791735a61b..b899bfd1fb 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_scan_status/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_scan_status/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ID = "id" STATUS = "status" - + class Output: LINKS = "links" - + class UpdateScanStatusInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -44,7 +44,8 @@ class UpdateScanStatusInput(insightconnect_plugin_runtime.Input): "required": [ "id", "status" - ] + ], + "definitions": {} } """) @@ -53,7 +54,7 @@ def __init__(self): class UpdateScanStatusOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_shared_credential/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_shared_credential/__init__.py index 5737e63d7c..ca2eaeffca 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_shared_credential/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_shared_credential/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateSharedCredential diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_shared_credential/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_shared_credential/schema.py index 48fed61f2c..ef07ce9053 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_shared_credential/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_shared_credential/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -16,14 +16,14 @@ class Input: PORT_RESTRICTION = "port_restriction" SITE_ASSIGNMENT = "site_assignment" SITES = "sites" - + class Output: LINKS = "links" - + class UpdateSharedCredentialInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -77,7 +77,7 @@ class UpdateSharedCredentialInput(insightconnect_plugin_runtime.Input): "sites": { "type": "array", "title": "Sites", - "description": "List of site identifiers. These sites are explicitly assigned access to the shared scan credential, allowing the site to use the credential for authentication during a scan. This property can only be set if the value of property siteAssignment is set to \\"specific-sites\\". When the property siteAssignment is set to \\"all-sites\\", this property will be null", + "description": "List of site identifiers. These sites are explicitly assigned access to the shared scan credential, allowing the site to use the credential for authentication during a scan. This property can only be set if the value of property siteAssignment is set to \"specific-sites\". When the property siteAssignment is set to \"all-sites\", this property will be null", "items": { "type": "integer" }, @@ -163,7 +163,7 @@ class UpdateSharedCredentialInput(insightconnect_plugin_runtime.Input): "permission_elevation": { "type": "string", "title": "Permission Evaluation", - "description": "Elevate scan engine permissions to administrative or root access, which is necessary to obtain certain data during the scan. Defaults to \\"none\\" if not specified", + "description": "Elevate scan engine permissions to administrative or root access, which is necessary to obtain certain data during the scan. Defaults to \"none\" if not specified", "default": "none", "enum": [ "none", @@ -178,19 +178,19 @@ class UpdateSharedCredentialInput(insightconnect_plugin_runtime.Input): "permission_elevation_password": { "type": "string", "title": "Permission Elevation Password", - "description": "The password for the account with elevated permissions. This property must not be specified when the property permissionElevation is set to either \\"none\\" or \\"pbrun\\"; otherwise the property is required", + "description": "The password for the account with elevated permissions. This property must not be specified when the property permissionElevation is set to either \"none\" or \"pbrun\"; otherwise the property is required", "order": 12 }, "permission_elevation_username": { "type": "string", "title": "Permission Elevation Username", - "description": "The user name for the account with elevated permissions. This property must not be specified when the property permissionElevation is set to either \\"none\\" or \\"pbrun\\"; otherwise the property is required.", + "description": "The user name for the account with elevated permissions. This property must not be specified when the property permissionElevation is set to either \"none\" or \"pbrun\"; otherwise the property is required.", "order": 13 }, "privacy_password": { "type": "string", "title": "Privacy Password", - "description": "The privacy password for the account that will be used for authenticating. Is required when the property authenticationType is set to valid value other than \\"no-authentication\\" and when the privacyType is set to a valid value other than code\\u003e\\"no-privacy\\"", + "description": "The privacy password for the account that will be used for authenticating. Is required when the property authenticationType is set to valid value other than \"no-authentication\" and when the privacyType is set to a valid value other than code>\"no-privacy\"", "order": 14 }, "privacy_type": { @@ -281,7 +281,7 @@ def __init__(self): class UpdateSharedCredentialOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site/__init__.py index 14a8706f68..62e9705ce5 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateSite diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site/schema.py index c7944ae2c6..94320d438a 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -14,15 +14,15 @@ class Input: IMPORTANCE = "importance" NAME = "name" SCAN_TEMPLATE_ID = "scan_template_id" - + class Output: ID = "id" LINKS = "links" - + class UpdateSiteInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -79,7 +79,8 @@ class UpdateSiteInput(insightconnect_plugin_runtime.Input): "importance", "name", "scan_template_id" - ] + ], + "definitions": {} } """) @@ -88,7 +89,7 @@ def __init__(self): class UpdateSiteOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_asset_groups/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_asset_groups/__init__.py index 7ebb1c9962..6b0d068486 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_asset_groups/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_asset_groups/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateSiteExcludedAssetGroups diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_asset_groups/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_asset_groups/schema.py index 89f639d129..29d5664ba7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_asset_groups/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_asset_groups/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -11,15 +11,15 @@ class Input: EXCLUDED_ASSET_GROUPS = "excluded_asset_groups" ID = "id" OVERWRITE = "overwrite" - + class Output: ID = "id" LINKS = "links" - + class UpdateSiteExcludedAssetGroupsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -50,7 +50,8 @@ class UpdateSiteExcludedAssetGroupsInput(insightconnect_plugin_runtime.Input): "required": [ "id", "overwrite" - ] + ], + "definitions": {} } """) @@ -59,7 +60,7 @@ def __init__(self): class UpdateSiteExcludedAssetGroupsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/__init__.py index 86892b9d5d..ec0e57ef74 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateSiteExcludedTargets diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/action.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/action.py index 97f0cab9ac..ba14859999 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/action.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/action.py @@ -24,7 +24,7 @@ def run(self, params={}): if not params.get(Input.OVERWRITE): current_scope = resource_helper.resource_request(endpoint=endpoint, method="get") self.logger.info("Appending to current list of excluded targets") - scope.extend(current_scope["addresses"]) + scope.extend(current_scope.get("addresses", [])) self.logger.info(f"Using {endpoint} ...") payload = {"rawbody": scope} diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/schema.py index 53a0704b4d..a895d29397 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_excluded_targets/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -11,15 +11,15 @@ class Input: EXCLUDED_TARGETS = "excluded_targets" ID = "id" OVERWRITE = "overwrite" - + class Output: ID = "id" LINKS = "links" - + class UpdateSiteExcludedTargetsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -50,7 +50,8 @@ class UpdateSiteExcludedTargetsInput(insightconnect_plugin_runtime.Input): "required": [ "id", "overwrite" - ] + ], + "definitions": {} } """) @@ -59,7 +60,7 @@ def __init__(self): class UpdateSiteExcludedTargetsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_asset_groups/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_asset_groups/__init__.py index 9c12424126..002b2e8b4b 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_asset_groups/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_asset_groups/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateSiteIncludedAssetGroups diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_asset_groups/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_asset_groups/schema.py index dee4cc7408..99a885a966 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_asset_groups/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_asset_groups/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -11,15 +11,15 @@ class Input: ID = "id" INCLUDED_ASSET_GROUPS = "included_asset_groups" OVERWRITE = "overwrite" - + class Output: ID = "id" LINKS = "links" - + class UpdateSiteIncludedAssetGroupsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -50,7 +50,8 @@ class UpdateSiteIncludedAssetGroupsInput(insightconnect_plugin_runtime.Input): "required": [ "id", "overwrite" - ] + ], + "definitions": {} } """) @@ -59,7 +60,7 @@ def __init__(self): class UpdateSiteIncludedAssetGroupsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/__init__.py index b618178ca2..633c0a9619 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateSiteIncludedTargets diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/action.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/action.py index 03dfd208e5..8abcc3deff 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/action.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/action.py @@ -24,7 +24,7 @@ def run(self, params={}): if not params.get(Input.OVERWRITE): current_scope = resource_helper.resource_request(endpoint=endpoint, method="get") self.logger.info("Appending to current list of included targets") - scope.extend(current_scope["addresses"]) + scope.extend(current_scope.get("addresses", [])) self.logger.info(f"Using {endpoint} ...") payload = {"rawbody": scope} diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/schema.py index ce1602d7ab..dab62d0331 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_included_targets/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -11,15 +11,15 @@ class Input: ID = "id" INCLUDED_TARGETS = "included_targets" OVERWRITE = "overwrite" - + class Output: ID = "id" LINKS = "links" - + class UpdateSiteIncludedTargetsInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -50,7 +50,8 @@ class UpdateSiteIncludedTargetsInput(insightconnect_plugin_runtime.Input): "required": [ "id", "overwrite" - ] + ], + "definitions": {} } """) @@ -59,7 +60,7 @@ def __init__(self): class UpdateSiteIncludedTargetsOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_scan_engine/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_scan_engine/__init__.py index 51ccec324d..d75ae0e26b 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_scan_engine/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_scan_engine/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateSiteScanEngine diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_scan_engine/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_scan_engine/schema.py index 9c4cffc939..699b3e1a61 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_scan_engine/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_site_scan_engine/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ENGINE_ID = "engine_id" SITE_ID = "site_id" - + class Output: LINKS = "links" - + class UpdateSiteScanEngineInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class UpdateSiteScanEngineInput(insightconnect_plugin_runtime.Input): "required": [ "engine_id", "site_id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class UpdateSiteScanEngineOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_tag_search_criteria/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_tag_search_criteria/__init__.py index 019ac596b8..c393294355 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_tag_search_criteria/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_tag_search_criteria/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateTagSearchCriteria diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_tag_search_criteria/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_tag_search_criteria/schema.py index 5fd576c53a..4868332963 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_tag_search_criteria/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_tag_search_criteria/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ID = "id" SEARCHCRITERIA = "searchCriteria" - + class Output: LINKS = "links" - + class UpdateTagSearchCriteriaInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class UpdateTagSearchCriteriaInput(insightconnect_plugin_runtime.Input): "required": [ "id", "searchCriteria" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class UpdateTagSearchCriteriaOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user/__init__.py index 9f93e12536..689c4404f7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateUser diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user/schema.py index 8e000e48e1..b5efab1f24 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -18,14 +18,14 @@ class Input: LOGIN = "login" NAME = "name" ROLE_ID = "role_id" - + class Output: LINKS = "links" - + class UpdateUserInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -112,7 +112,8 @@ class UpdateUserInput(insightconnect_plugin_runtime.Input): "login", "name", "role_id" - ] + ], + "definitions": {} } """) @@ -121,7 +122,7 @@ def __init__(self): class UpdateUserOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_asset_group_access/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_asset_group_access/__init__.py index a3f9935647..5e8b42298b 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_asset_group_access/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_asset_group_access/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateUserAssetGroupAccess diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_asset_group_access/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_asset_group_access/schema.py index 3f472a8a8d..3dda9643ab 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_asset_group_access/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_asset_group_access/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: ASSET_GROUP_IDS = "asset_group_ids" USER_ID = "user_id" - + class Output: LINKS = "links" - + class UpdateUserAssetGroupAccessInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -41,7 +41,8 @@ class UpdateUserAssetGroupAccessInput(insightconnect_plugin_runtime.Input): "required": [ "asset_group_ids", "user_id" - ] + ], + "definitions": {} } """) @@ -50,7 +51,7 @@ def __init__(self): class UpdateUserAssetGroupAccessOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_role/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_role/__init__.py index 2b055d74b7..901015e221 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_role/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_role/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateUserRole diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_role/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_role/schema.py index 8857719b7b..6c4462cac4 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_role/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_role/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -12,14 +12,14 @@ class Input: ACCESS_ALL_SITES = "access_all_sites" ROLE_ID = "role_id" USER_ID = "user_id" - + class Output: LINKS = "links" - + class UpdateUserRoleInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -56,7 +56,8 @@ class UpdateUserRoleInput(insightconnect_plugin_runtime.Input): "access_all_sites", "role_id", "user_id" - ] + ], + "definitions": {} } """) @@ -65,7 +66,7 @@ def __init__(self): class UpdateUserRoleOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_site_access/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_site_access/__init__.py index f1c7c9512c..5fc8370b24 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_site_access/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_site_access/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateUserSiteAccess diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_site_access/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_site_access/schema.py index b822d4be33..e80654901a 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_site_access/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_user_site_access/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: SITE_IDS = "site_ids" USER_ID = "user_id" - + class Output: LINKS = "links" - + class UpdateUserSiteAccessInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -41,7 +41,8 @@ class UpdateUserSiteAccessInput(insightconnect_plugin_runtime.Input): "required": [ "site_ids", "user_id" - ] + ], + "definitions": {} } """) @@ -50,7 +51,7 @@ def __init__(self): class UpdateUserSiteAccessOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_vulnerability_exception_expiration_date/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_vulnerability_exception_expiration_date/__init__.py index cc0e6a49d0..4efb1cf8a7 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_vulnerability_exception_expiration_date/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_vulnerability_exception_expiration_date/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .action import UpdateVulnerabilityExceptionExpirationDate diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_vulnerability_exception_expiration_date/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_vulnerability_exception_expiration_date/schema.py index aaf9a2eeb0..2241620aa1 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_vulnerability_exception_expiration_date/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/update_vulnerability_exception_expiration_date/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -10,14 +10,14 @@ class Component: class Input: DATE = "date" ID = "id" - + class Output: SUCCESS = "success" - + class UpdateVulnerabilityExceptionExpirationDateInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -38,7 +38,8 @@ class UpdateVulnerabilityExceptionExpirationDateInput(insightconnect_plugin_runt "required": [ "date", "id" - ] + ], + "definitions": {} } """) @@ -47,7 +48,7 @@ def __init__(self): class UpdateVulnerabilityExceptionExpirationDateOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -61,7 +62,8 @@ class UpdateVulnerabilityExceptionExpirationDateOutput(insightconnect_plugin_run }, "required": [ "success" - ] + ], + "definitions": {} } """) diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/connection/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/connection/__init__.py index a515dcf6b0..c78d3356be 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/connection/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/connection/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .connection import Connection diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/connection/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/connection/schema.py index 87d5979ea0..a9bdb1437c 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/connection/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/connection/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -6,10 +6,10 @@ class Input: CREDENTIALS = "credentials" URL = "url" - + class ConnectionSchema(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -34,23 +34,23 @@ class ConnectionSchema(insightconnect_plugin_runtime.Input): "definitions": { "credential_username_password": { "id": "credential_username_password", - "type": "object", "title": "Credential: Username and Password", "description": "A username and password combination", + "type": "object", "properties": { + "username": { + "type": "string", + "title": "Username", + "description": "The username to log in with", + "order": 1 + }, "password": { "type": "string", "title": "Password", - "displayType": "password", "description": "The password", "format": "password", + "displayType": "password", "order": 2 - }, - "username": { - "type": "string", - "title": "Username", - "description": "The username to log in with", - "order": 1 } }, "required": [ diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/tasks/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/tasks/__init__.py new file mode 100644 index 0000000000..7020c9a4ad --- /dev/null +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/tasks/__init__.py @@ -0,0 +1,2 @@ +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT + diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/__init__.py index d45d78c03a..8540e7c7ae 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/__init__.py @@ -1,3 +1,6 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT -from .new_exception_request.trigger import NewExceptionRequest +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT + from .new_scans.trigger import NewScans + +from .new_exception_request.trigger import NewExceptionRequest + diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_exception_request/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_exception_request/__init__.py index 3dd770427f..ca620b77cf 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_exception_request/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_exception_request/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .trigger import NewExceptionRequest diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_exception_request/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_exception_request/schema.py index dc156f9cf1..f97f03840f 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_exception_request/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_exception_request/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -8,18 +8,16 @@ class Component: class Input: - FREQUENCY = "frequency" STATUS_FILTER = "status_filter" - + class Output: - EXCEPTION = "exception" - + class NewExceptionRequestInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -35,16 +33,17 @@ class NewExceptionRequestInput(insightconnect_plugin_runtime.Input): "type": "array", "title": "Status Filter", "description": "List of vulnerability statuses to match against. Options include: Under Review and Approved", + "default": "[\"Under Review\"]", "items": { "type": "string" }, - "default": "[\\"Under Review\\"]", "order": 2 } }, "required": [ "frequency" - ] + ], + "definitions": {} } """) @@ -53,7 +52,7 @@ def __init__(self): class NewExceptionRequestOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -66,63 +65,18 @@ class NewExceptionRequestOutput(insightconnect_plugin_runtime.Output): } }, "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } - }, "vulnerability_exception": { "type": "object", "title": "vulnerability_exception", "properties": { "expires": { "type": "string", - "title": "Expires", + "format": "date-time", "displayType": "date", + "title": "Expires", "description": "The date and time the vulnerability exception is set to expire", - "format": "date-time", "order": 1 }, - "id": { - "type": "integer", - "title": "Vulnerability Exception ID", - "description": "The ID uniquely identifying the vulnerability exception", - "order": 3 - }, - "links": { - "type": "array", - "title": "Links", - "description": "Hypermedia links to corresponding or related resources", - "items": { - "$ref": "#/definitions/link" - }, - "order": 7 - }, - "review": { - "type": "object", - "title": "Review Details", - "description": "Details of the exception review", - "order": 6 - }, - "scope": { - "type": "object", - "title": "Exception Scope", - "description": "Details of the scope of the exception", - "order": 4 - }, "state": { "type": "string", "title": "State", @@ -136,11 +90,38 @@ class NewExceptionRequestOutput(insightconnect_plugin_runtime.Output): ], "order": 2 }, + "id": { + "type": "integer", + "title": "Vulnerability Exception ID", + "description": "The ID uniquely identifying the vulnerability exception", + "order": 3 + }, + "scope": { + "type": "object", + "title": "Exception Scope", + "description": "Details of the scope of the exception", + "order": 4 + }, "submit": { "type": "object", "title": "Submission Details", "description": "Details of the exception submission", "order": 5 + }, + "review": { + "type": "object", + "title": "Review Details", + "description": "Details of the exception review", + "order": 6 + }, + "links": { + "type": "array", + "title": "Links", + "description": "Hypermedia links to corresponding or related resources", + "items": { + "$ref": "#/definitions/link" + }, + "order": 7 } }, "required": [ @@ -148,25 +129,23 @@ class NewExceptionRequestOutput(insightconnect_plugin_runtime.Output): "scope", "state", "submit" - ], - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + ] + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 + }, + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } } diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_scans/__init__.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_scans/__init__.py index 502da0a580..9832523859 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_scans/__init__.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_scans/__init__.py @@ -1,2 +1,2 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from .trigger import NewScans diff --git a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_scans/schema.py b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_scans/schema.py index fcf33144fa..6e43a3ba6b 100755 --- a/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_scans/schema.py +++ b/plugins/rapid7_insightvm/komand_rapid7_insightvm/triggers/new_scans/schema.py @@ -1,4 +1,4 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT import insightconnect_plugin_runtime import json @@ -8,20 +8,18 @@ class Component: class Input: - FREQUENCY = "frequency" MOST_RECENT_SCAN = "most_recent_scan" SITE_NAME_FILTER = "site_name_filter" STATUS_FILTER = "status_filter" - + class Output: - SCAN = "scan" - + class NewScansInput(insightconnect_plugin_runtime.Input): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -51,10 +49,10 @@ class NewScansInput(insightconnect_plugin_runtime.Input): "type": "array", "title": "Status Filter", "description": "List of scan statuses to match for trigger; options include: Aborted, Successful, Running, Stopped, Failed, Paused, Unknown", + "default": "[\"Successful\"]", "items": { "type": "string" }, - "default": "[\\"Successful\\"]", "order": 4 } }, @@ -62,7 +60,8 @@ class NewScansInput(insightconnect_plugin_runtime.Input): "frequency", "most_recent_scan", "site_name_filter" - ] + ], + "definitions": {} } """) @@ -71,7 +70,7 @@ def __init__(self): class NewScansOutput(insightconnect_plugin_runtime.Output): - schema = json.loads(""" + schema = json.loads(r""" { "type": "object", "title": "Variables", @@ -84,68 +83,28 @@ class NewScansOutput(insightconnect_plugin_runtime.Output): } }, "definitions": { - "link": { + "scan": { "type": "object", - "title": "link", + "title": "scan", "properties": { - "href": { + "status": { "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "title": "Status", + "description": "Scan status (aborted, unknown, running, finished, stopped, error, paused, dispatched, integrating)", "order": 1 }, - "rel": { + "scanType": { "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", + "title": "Scan Type", + "description": "Type of scan (automated, manual, scheduled)", "order": 2 - } - } - }, - "scan": { - "type": "object", - "title": "scan", - "properties": { + }, "assets": { "type": "integer", "title": "Assets", "description": "Count of assets identified during the scan", "order": 3 }, - "duration": { - "type": "string", - "title": "Duration", - "displayType": "date", - "description": "Duration of the scan", - "format": "date-time", - "order": 11 - }, - "endTime": { - "type": "string", - "title": "End Time", - "displayType": "date", - "description": "End time of the scan", - "format": "date-time", - "order": 14 - }, - "engineId": { - "type": "integer", - "title": "Engine ID", - "description": "ID for the scan engine/scan engine pool used for the scan", - "order": 8 - }, - "engineName": { - "type": "string", - "title": "Engine Name", - "description": "Name of the scan engine/scan engine pool used for the scan", - "order": 12 - }, - "id": { - "type": "integer", - "title": "ID", - "description": "ID of the scan", - "order": 15 - }, "links": { "type": "array", "title": "Links", @@ -155,23 +114,29 @@ class NewScansOutput(insightconnect_plugin_runtime.Output): }, "order": 4 }, - "message": { + "siteName": { "type": "string", - "title": "Message", - "description": "Scan status message", - "order": 13 + "title": "Site Name", + "description": "Name of the site scanned", + "order": 5 }, - "scanName": { - "type": "string", - "title": "Scan Name", - "description": "Name of the scan", - "order": 16 + "vulnerabilities": { + "$ref": "#/definitions/vulnerabilities_count", + "title": "Vulnerabilities", + "description": "Counts of vulnerabilities identified during the scan", + "order": 6 }, - "scanType": { + "startedBy": { "type": "string", - "title": "Scan Type", - "description": "Type of scan (automated, manual, scheduled)", - "order": 2 + "title": "Started By", + "description": "User that started the scan", + "order": 7 + }, + "engineId": { + "type": "integer", + "title": "Engine ID", + "description": "ID for the scan engine/scan engine pool used for the scan", + "order": 8 }, "siteId": { "type": "integer", @@ -179,87 +144,71 @@ class NewScansOutput(insightconnect_plugin_runtime.Output): "description": "ID of the site scanned", "order": 9 }, - "siteName": { - "type": "string", - "title": "Site Name", - "description": "Name of the site scanned", - "order": 5 - }, "startTime": { "type": "string", - "title": "Start Time", + "format": "date-time", "displayType": "date", + "title": "Start Time", "description": "Start time for the scan", - "format": "date-time", "order": 10 }, - "startedBy": { + "duration": { "type": "string", - "title": "Started By", - "description": "User that started the scan", - "order": 7 + "format": "date-time", + "displayType": "date", + "title": "Duration", + "description": "Duration of the scan", + "order": 11 }, - "status": { + "engineName": { "type": "string", - "title": "Status", - "description": "Scan status (aborted, unknown, running, finished, stopped, error, paused, dispatched, integrating)", - "order": 1 + "title": "Engine Name", + "description": "Name of the scan engine/scan engine pool used for the scan", + "order": 12 }, - "vulnerabilities": { - "$ref": "#/definitions/vulnerabilities_count", - "title": "Vulnerabilities", - "description": "Counts of vulnerabilities identified during the scan", - "order": 6 + "message": { + "type": "string", + "title": "Message", + "description": "Scan status message", + "order": 13 + }, + "endTime": { + "type": "string", + "format": "date-time", + "displayType": "date", + "title": "End Time", + "description": "End time of the scan", + "order": 14 + }, + "id": { + "type": "integer", + "title": "ID", + "description": "ID of the scan", + "order": 15 + }, + "scanName": { + "type": "string", + "title": "Scan Name", + "description": "Name of the scan", + "order": 16 } - }, - "definitions": { - "link": { - "type": "object", - "title": "link", - "properties": { - "href": { - "type": "string", - "title": "URL", - "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", - "order": 1 - }, - "rel": { - "type": "string", - "title": "Rel", - "description": "Link relation type following RFC 5988", - "order": 2 - } - } + } + }, + "link": { + "type": "object", + "title": "link", + "properties": { + "href": { + "type": "string", + "title": "URL", + "description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)", + "order": 1 }, - "vulnerabilities_count": { - "type": "object", - "title": "vulnerabilities_count", - "properties": { - "critical": { - "type": "integer", - "title": "Critical", - "description": "Number of critical vulnerabilities", - "order": 1 - }, - "moderate": { - "type": "integer", - "title": "Moderate", - "description": "Number of moderate vulnerabilities", - "order": 2 - }, - "severe": { - "type": "integer", - "title": "Severe", - "description": "Number of severe vulnerabilities", - "order": 3 - }, - "total": { - "type": "integer", - "title": "Total number of vulnerabilities", - "description": "Total", - "order": 4 - } - } + "rel": { + "type": "string", + "title": "Rel", + "description": "Link relation type following RFC 5988", + "order": 2 } } }, diff --git a/plugins/rapid7_insightvm/plugin.spec.yaml b/plugins/rapid7_insightvm/plugin.spec.yaml index 83ef02843d..2d9aa037c0 100644 --- a/plugins/rapid7_insightvm/plugin.spec.yaml +++ b/plugins/rapid7_insightvm/plugin.spec.yaml @@ -4,11 +4,16 @@ products: [insightconnect] name: rapid7_insightvm title: Rapid7 InsightVM Console description: InsightVM is a powerful vulnerability management tool which finds, prioritizes, and remediates vulnerabilities. This plugin uses an orchestrator to get top remediations, scan results and start scans -version: 6.1.0 +version: 6.1.1 supported_versions: ["Rapid7 InsightVM API v3 2022-05-25"] vendor: rapid7 support: rapid7 status: [] +connection_version: 1 +sdk: + type: slim + version: 5 + user: nobody resources: source_url: https://github.com/rapid7/insightconnect-plugins/tree/master/plugins/rapid7_insightvm license_url: https://github.com/rapid7/insightconnect-plugins/blob/master/LICENSE @@ -1957,56 +1962,67 @@ actions: title: Status type: string required: false + example: running scanType: description: Scan type (manual, automated, scheduled) title: Scan Type type: string required: false + example: Manual assets: description: Number of assets within the scan title: Assets type: integer required: false + example: 0 links: description: Hypermedia links to corresponding or related resources title: Links type: '[]link' required: false + example: [ { "href": "https://insightvm:3780/api/3/scans/188934", "rel": "self" } ] vulnerabilities: description: Counts of vulnerabilities found within the scan title: Vulnerabilities type: vulnerabilities_count required: false + example: { "critical": 0, "moderate": 0, "severe": 0, "total": 0 } startTime: description: Start time of the scan in ISO8601 format title: Start Time type: string required: false + example: 2018-04-23T04:21:05.500Z duration: description: Duration of the scan in ISO8601 format title: Duration type: string required: false + example: 2018-04-23T04:21:05.500Z engineName: description: Name of the engine used for the scan title: Engine Name type: string required: false + example: Local scan engine endTime: description: End time of the scan in ISO8601 format title: End Time type: string required: false + example: 2018-04-23T04:21:05.500Z id: description: ID of the scan title: ID type: integer required: false + example: 188934 scanName: description: User-driven scan name for the scan title: Scan Name type: string required: false + example: API Scan - 2018-04-23T04:21:05Z get_site_assets: title: Get Site Assets description: Gets assets for a site @@ -2023,6 +2039,7 @@ actions: description: Assets type: '[]asset' required: false + example: [] get_scan_assets: title: Get Scan Assets description: Gets assets for a scan @@ -2039,6 +2056,7 @@ actions: description: Assets type: '[]asset' required: false + example: [] get_asset_vulnerabilities: title: Get Asset Vulnerabilities description: Get vulnerabilities found on an asset. Can only be used if the asset @@ -2062,6 +2080,7 @@ actions: description: Vulnerabilities found on the asset type: '[]asset_vulnerability' required: false + example: [] get_asset_software: title: Get Asset Software description: Get software found on an asset. Can only be used if the asset has first been scanned @@ -2078,6 +2097,7 @@ actions: description: Software found on the asset type: '[]software' required: false + example: [] download_report: title: Download Report description: Returns the contents of a generated report @@ -2100,6 +2120,7 @@ actions: description: Base64 encoded report type: bytes required: false + example: ZXhhbXBsZQ== list_reports: title: List Reports description: List reports and return their identifiers @@ -2122,11 +2143,13 @@ actions: description: Whether optional user supplied report name was found type: boolean required: false + example: false list: title: List of Reports description: List of report identifiers type: '[]report_id' required: false + example: [] get_vulnerability_affected_assets: title: Get Vulnerability Affected Assets description: Get the assets affected by the vulnerability @@ -2143,11 +2166,13 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] resources: title: Resources description: The identifiers of the associated resources type: '[]integer' required: true + example: [] create_tag: title: Create Tag description: Create a new tag @@ -2194,6 +2219,7 @@ actions: description: ID of the created tag type: integer required: true + example: 665 delete_tag: title: Delete Tag description: Delete an existing tag @@ -2210,6 +2236,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] get_tags: title: Get Tags description: Get a listing of all tags and return their details @@ -2241,6 +2268,7 @@ actions: description: List of tags type: '[]tag' required: true + example: [] get_tag: title: Get Tag description: Get tag details by tag ID @@ -2257,6 +2285,7 @@ actions: description: Tag Details type: tag required: true + example: {} get_tag_sites: title: Get Tag Sites description: Get site IDs associated with a tag @@ -2273,6 +2302,7 @@ actions: description: Site IDs associated with the tag type: '[]integer' required: true + example: [] get_tag_assets: title: Get Tag Assets description: Get asset IDs associated with a tag @@ -2289,6 +2319,7 @@ actions: description: Asset IDs and tag association sources for the tag type: '[]tag_asset' required: true + example: [] get_tag_asset_groups: title: Get Tag Asset Groups description: Get asset groups associated with a tag @@ -2305,6 +2336,7 @@ actions: description: Asset group IDs associated with the tag type: '[]integer' required: true + example: [] remove_asset_tag: title: Remove Asset Tag description: Remove a tag from an asset @@ -2327,6 +2359,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] remove_asset_group_tags: title: Remove Asset Group Tags description: Remove all tags from an asset group @@ -2343,6 +2376,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] remove_tag_asset_groups: title: Remove Tag Asset Groups description: Remove all asset group associations from a tag @@ -2359,6 +2393,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] remove_tag_sites: title: Remove Tag Sites description: Remove all site associations from a tag @@ -2375,6 +2410,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] remove_tag_search_criteria: title: Remove Tag Search Criteria description: Remove all search criteria from a tag @@ -2391,6 +2427,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] tag_site: title: Tag Site description: Add a tag to a site @@ -2413,6 +2450,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] tag_asset: title: Tag Asset description: Add a tag to an asset @@ -2435,6 +2473,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] tag_assets: title: Tag Assets description: Add a tag to multiple assets in bulk @@ -2475,6 +2514,7 @@ actions: description: Was the operation successful type: boolean required: true + example: true tag_asset_group: title: Tag Asset Group description: Add a tag to an asset group @@ -2497,6 +2537,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_tag_search_criteria: title: Update Tag Search Criteria description: Update the search criteria for an existing tag @@ -2519,6 +2560,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] asset_search: title: Asset Search description: Search for assets using filtered asset search @@ -2548,6 +2590,7 @@ actions: description: List of asset details returned by the search type: '[]asset' required: true + example: [] get_asset: title: Get Asset description: Gets an asset by ID @@ -2564,6 +2607,7 @@ actions: description: Asset details type: asset required: true + example: {} get_asset_tags: title: Get Asset Tags description: Get a listing of all tags for an asset @@ -2580,6 +2624,7 @@ actions: description: List of tags type: '[]tag' required: true + example: [] get_sites: title: Get Sites description: Get a list of sites @@ -2597,6 +2642,7 @@ actions: description: List of sites type: '[]site' required: true + example: [] get_site: title: Get Site description: Get a site by ID @@ -2613,6 +2659,7 @@ actions: description: Site details type: site required: true + example: {} create_site: title: Create Site description: Create a new site @@ -2691,11 +2738,13 @@ actions: description: The identifier of the created site type: integer required: true + example: 15 links: title: Links description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_site: title: Update Site description: Update an existing site @@ -2750,11 +2799,13 @@ actions: description: The identifier of the updated site type: integer required: true + example: 332 links: title: Links description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_site_included_targets: title: Update Site Included Targets description: Update an existing site scope of included IP address and hostname @@ -2793,6 +2844,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_site_excluded_targets: title: Update Site Excluded Targets description: Update an existing site scope of excluded IP address and hostname @@ -2831,6 +2883,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_site_included_asset_groups: title: Update Site Included Asset Groups description: Update an existing site scope of included asset groups @@ -2862,11 +2915,13 @@ actions: description: The identifier of the updated site type: integer required: true + example: 332 links: title: Links description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_site_excluded_asset_groups: title: Update Site Excluded Asset Groups description: Update an existing site scope of excluded asset groups @@ -2898,11 +2953,13 @@ actions: description: The identifier of the updated site type: integer required: true + example: 332 links: title: Links description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] delete_site: title: Delete Site description: Delete an existing site @@ -2919,6 +2976,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] get_asset_groups: title: Get Asset Groups description: Get a list of asset groups @@ -2936,6 +2994,7 @@ actions: description: List of asset groups type: '[]asset_group' required: true + example: [] get_asset_group: title: Get Asset Group description: Get an asset group by ID @@ -2952,6 +3011,7 @@ actions: description: Asset group type: asset_group required: true + example: [] create_asset_group: title: Create Asset Group description: Create an asset group @@ -2989,6 +3049,7 @@ actions: description: ID of the created tag type: integer required: true + example: 20 delete_asset_group: title: Delete Asset Group description: Delete an existing asset group @@ -3005,6 +3066,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_asset_group_search_criteria: title: Update Asset Group Search Criteria description: Update the search criteria for an existing asset group @@ -3027,6 +3089,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] get_vulnerabilities_by_cve: title: Get Vulnerabilities by CVE description: Get vulnerability details associated with a CVE @@ -3043,6 +3106,7 @@ actions: description: Vulnerability details type: '[]vulnerability' required: true + example: [] get_scans: title: Get Scans description: Get scans with optional site filter @@ -3066,6 +3130,7 @@ actions: description: List of scan details type: '[]scan' required: true + example: [] update_scan_status: title: Update Scan Status description: Update the status of a scan @@ -3093,6 +3158,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] generate_shared_secret: title: Generate Shared Secret description: Generate a shared secret to pair a scan engine to a security console @@ -3110,6 +3176,7 @@ actions: description: Scan engine pairing shared secret type: string required: true + example: 99DB-B9F0-CD8B-5997-06BF-607B-BA21-0A81 get_scan_engines: title: Get Scan Engines description: List scan engines paired with the security console @@ -3134,6 +3201,7 @@ actions: description: List of scan engines details type: '[]scan_engine' required: true + example: [] get_scan_engine: title: Get Scan Engine description: Get a scan engine by ID @@ -3150,6 +3218,7 @@ actions: description: Scan engine details type: scan_engine required: true + example: {} create_scan_engine: title: Create Scan Engine description: Create a new scan engine with console engine connectivity @@ -3186,11 +3255,13 @@ actions: description: Scan engine ID type: integer required: true + example: 12 links: title: Links description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] delete_scan_engine: title: Delete Scan Engine description: Delete an existing scan engine from the security console @@ -3207,6 +3278,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] get_scan_engine_pools: title: Get Scan Engine Pools description: Retrieve a list of configured scan engine pools @@ -3224,6 +3296,7 @@ actions: description: List of scan engine pool details type: '[]scan_engine_pool' required: true + example: [] get_scan_engine_pool: title: Get Scan Engine Pool description: Retrieve scan engine pool details by ID @@ -3240,6 +3313,7 @@ actions: description: Scan engine pool details type: scan_engine_pool required: true + example: {} create_scan_engine_pool: title: Create Scan Engine Pool description: Create a new scan engine pool @@ -3262,11 +3336,13 @@ actions: description: Scan engine pool ID type: integer required: true + example: 13 links: title: Links description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] add_scan_engine_pool_engine: title: Add Scan Engine Pool Engine description: Add a scan engine to a scan engine pool (AWS pre-authorized engine @@ -3290,6 +3366,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] remove_scan_engine_pool_engine: title: Remove Scan Engine Pool Engine description: Remove a scan engine from a scan engine pool @@ -3312,6 +3389,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] delete_scan_engine_pool: title: Delete Scan Engine Pool description: Delete an existing scan engine pool from the security console @@ -3328,6 +3406,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_site_scan_engine: title: Update Site Scan Engine description: Update the scan engine/scan engine pool associated with a site @@ -3351,6 +3430,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] get_authentication_sources: title: Get Authentication Sources description: List authentication sources available for InsightVM users @@ -3382,6 +3462,7 @@ actions: description: List of authentication sources type: '[]authentication_source' required: true + example: [] get_authentication_source: title: Get Authentication Source description: Get the details for an authentication source @@ -3398,6 +3479,7 @@ actions: description: User authentication source type: authentication_source required: true + example: {} get_roles: title: Get Roles description: List role details @@ -3414,6 +3496,7 @@ actions: description: List of roles type: '[]role' required: true + example: [] get_role: title: Get Role description: Get role details by ID @@ -3430,6 +3513,7 @@ actions: description: Role details type: role required: true + example: {} get_users: title: Get Users description: List user accounts @@ -3454,6 +3538,7 @@ actions: description: List of user account details type: '[]user_account' required: true + example: [] get_user: title: Get User description: Get user account details by ID @@ -3470,6 +3555,7 @@ actions: description: User account details type: user_account required: true + example: {} create_user: title: Create User description: Create a new user account (limited to external authentication sources) @@ -3546,11 +3632,13 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] id: title: ID description: The identifier of the created user account type: integer required: true + example: 83 update_user: title: Update User description: Update the configuration of an existing user account @@ -3635,6 +3723,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] delete_user: title: Delete User description: Delete an user account @@ -3651,6 +3740,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] disable_user: title: Disable User description: Disable an user account @@ -3667,6 +3757,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] enable_user: title: Enable User description: Enable an user account @@ -3683,6 +3774,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_user_role: title: Update User Role description: Update the role associated with an user account @@ -3719,6 +3811,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_user_asset_group_access: title: Update User Asset Group Access description: Update the asset groups to which a user has access in bulk. It can @@ -3743,6 +3836,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] add_user_asset_group_access: title: Add User Asset Group Access description: Grant an user account access to an asset group by ID @@ -3765,6 +3859,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] remove_user_asset_group_access: title: Remove User Asset Group Access description: Remove asset group access from an user account @@ -3787,6 +3882,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] update_user_site_access: title: Update User Site Access description: Update the sites to which a user has access in bulk. It can be used @@ -3811,6 +3907,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] add_user_site_access: title: Add User Site Access description: Grant an user account access to a site by ID @@ -3833,6 +3930,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] remove_user_site_access: title: Remove User Site Access description: Remove site access from an user account @@ -3855,6 +3953,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] top_remediations: title: Top Remediations description: Generate results for the top remediations based on a defined scope @@ -3910,6 +4009,7 @@ actions: description: List of top remediations type: '[]remediation' required: true + example: [] generate_adhoc_sql_report: title: Generate AdHoc SQL Report description: Create, generate, download, and cleanup a SQL report based on the provided query @@ -3954,6 +4054,7 @@ actions: title: Base64 Encoded Report description: Base64 encoded file making up the report required: true + example: { "filename": "", "content": "UmFwaWQ3IEluc2lnaHRDb25uZWN0Cg==" } review_exception: title: Review Vulnerability Exception description: Approve or Reject a Vulnerability Exception @@ -3985,6 +4086,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] delete_exception: title: Delete Vulnerability Exception description: Delete an existing vulnerability exception @@ -4001,6 +4103,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] create_exception: title: Create Vulnerability Exception Submission description: Create a vulnerability exception submission @@ -4072,11 +4175,13 @@ actions: description: The vulnerability exception that was created type: integer required: true + example: 35 links: title: Links description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] get_vulnerability: title: Get Vulnerability Details description: Get the details of a specific vulnerability by id @@ -4093,6 +4198,7 @@ actions: description: The details of the vulnerability requested type: vulnerability required: true + example: {} get_asset_group_assets: title: Get Asset Group Assets description: Get asset group assets @@ -4109,11 +4215,13 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] resources: title: Resources description: The identifiers of the associated resources type: '[]integer' required: false + example: [] delete_asset: title: Delete an Asset description: Delete an Asset @@ -4130,6 +4238,7 @@ actions: description: Was the operation successful type: boolean required: true + example: false list_inactive_assets: title: List Inactive Assets description: Returns a list of inactive assets (limit 1000) determined by how many days ago they were scanned @@ -4154,6 +4263,7 @@ actions: description: A list of inactive assets type: "[]asset" required: true + example: [] get_expiring_vulnerability_exceptions: title: Get Expiring Vulnerability Exceptions description: Return a list of expiring vulnerability exceptions @@ -4171,6 +4281,7 @@ actions: description: Exceptions about to expire type: "[]vulnerability_exception" required: false + example: [] update_vulnerability_exception_expiration_date: title: Update Vulnerability Exception Expiration Date description: Update vulnerability exception expiration date @@ -4216,6 +4327,7 @@ actions: description: Highest-superceding rollup solutions for a vulnerabilities on an asset type: "[]vulnerability_solution" required: true + example: [] update_shared_credential: title: Update Shared Credentials description: Update shared credentials @@ -4299,6 +4411,7 @@ actions: description: Hypermedia links to corresponding or related resources type: '[]link' required: true + example: [] triggers: new_scans: title: New Scans @@ -4338,6 +4451,7 @@ triggers: description: InsightVM Scan type: scan required: false + example: {} new_exception_request: title: New Vulnerability Exception description: Check for new InsightVM vulnerability exceptions @@ -4362,3 +4476,4 @@ triggers: description: InsightVM vulnerability exception type: vulnerability_exception required: false + example: {} diff --git a/plugins/rapid7_insightvm/requirements.txt b/plugins/rapid7_insightvm/requirements.txt index 317529faff..d2421bfec7 100755 --- a/plugins/rapid7_insightvm/requirements.txt +++ b/plugins/rapid7_insightvm/requirements.txt @@ -1,9 +1,9 @@ # List third-party dependencies here, separated by newlines. # All dependencies must be version-pinned, eg. requests==1.2.0 # See: https://pip.pypa.io/en/stable/user_guide/#requirements-files -aiohttp==3.6.3 +aiohttp==3.9.0 defusedxml==0.5.0 -datetime==4.3.0 +datetime==5.3.0 python-dateutil==2.8.2 parameterized==0.8.1 pytest==7.0.1 diff --git a/plugins/rapid7_insightvm/setup.py b/plugins/rapid7_insightvm/setup.py index 419138235f..973bad6065 100755 --- a/plugins/rapid7_insightvm/setup.py +++ b/plugins/rapid7_insightvm/setup.py @@ -1,9 +1,9 @@ -# GENERATED BY KOMAND SDK - DO NOT EDIT +# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT from setuptools import setup, find_packages setup(name="rapid7_insightvm-rapid7-plugin", - version="6.1.0", + version="6.1.1", description="InsightVM is a powerful vulnerability management tool which finds, prioritizes, and remediates vulnerabilities. This plugin uses an orchestrator to get top remediations, scan results and start scans", author="rapid7", author_email="", diff --git a/plugins/rapid7_insightvm/unit_test/payloads/get_site_excluded_targets_no_addresses.json.resp b/plugins/rapid7_insightvm/unit_test/payloads/get_site_excluded_targets_no_addresses.json.resp new file mode 100644 index 0000000000..c3b27a9784 --- /dev/null +++ b/plugins/rapid7_insightvm/unit_test/payloads/get_site_excluded_targets_no_addresses.json.resp @@ -0,0 +1,8 @@ +{ + "links": [ + { + "href": "https://example.com/api/3/sites/2/excluded_targets", + "rel": "self" + } + ] +} diff --git a/plugins/rapid7_insightvm/unit_test/payloads/get_site_included_targets_no_addresses.json.resp b/plugins/rapid7_insightvm/unit_test/payloads/get_site_included_targets_no_addresses.json.resp new file mode 100644 index 0000000000..add7ca10e0 --- /dev/null +++ b/plugins/rapid7_insightvm/unit_test/payloads/get_site_included_targets_no_addresses.json.resp @@ -0,0 +1,8 @@ +{ + "links": [ + { + "href": "https://example.com/api/3/sites/2/included_targets", + "rel": "self" + } + ] +} diff --git a/plugins/rapid7_insightvm/unit_test/test_asset_vulnerability_solution.py b/plugins/rapid7_insightvm/unit_test/test_asset_vulnerability_solution.py index 71c5e182b1..89699a429d 100644 --- a/plugins/rapid7_insightvm/unit_test/test_asset_vulnerability_solution.py +++ b/plugins/rapid7_insightvm/unit_test/test_asset_vulnerability_solution.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.asset_vulnerability_solution import AssetVulnerabilitySolution from komand_rapid7_insightvm.actions.asset_vulnerability_solution.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_create_exception.py b/plugins/rapid7_insightvm/unit_test/test_create_exception.py index 157dc2e6e9..61af07c427 100644 --- a/plugins/rapid7_insightvm/unit_test/test_create_exception.py +++ b/plugins/rapid7_insightvm/unit_test/test_create_exception.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.create_exception import CreateException from komand_rapid7_insightvm.actions.create_exception.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_delete_asset.py b/plugins/rapid7_insightvm/unit_test/test_delete_asset.py index 264b9ad06b..9d72a38a10 100644 --- a/plugins/rapid7_insightvm/unit_test/test_delete_asset.py +++ b/plugins/rapid7_insightvm/unit_test/test_delete_asset.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.delete_asset import DeleteAsset from komand_rapid7_insightvm.actions.delete_asset.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_generate_adhoc_sql_report.py b/plugins/rapid7_insightvm/unit_test/test_generate_adhoc_sql_report.py index 8b7fd72665..50630bcf52 100644 --- a/plugins/rapid7_insightvm/unit_test/test_generate_adhoc_sql_report.py +++ b/plugins/rapid7_insightvm/unit_test/test_generate_adhoc_sql_report.py @@ -3,7 +3,7 @@ from unittest import TestCase from unittest.mock import patch from unittest.mock import Mock -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.generate_adhoc_sql_report import GenerateAdhocSqlReport from komand_rapid7_insightvm.actions.generate_adhoc_sql_report.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_get_asset.py b/plugins/rapid7_insightvm/unit_test/test_get_asset.py index 1244e5d50d..5e22e605a8 100644 --- a/plugins/rapid7_insightvm/unit_test/test_get_asset.py +++ b/plugins/rapid7_insightvm/unit_test/test_get_asset.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.get_asset import GetAsset from komand_rapid7_insightvm.actions.get_asset.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_get_asset_software.py b/plugins/rapid7_insightvm/unit_test/test_get_asset_software.py index e782d6b573..416f943d12 100644 --- a/plugins/rapid7_insightvm/unit_test/test_get_asset_software.py +++ b/plugins/rapid7_insightvm/unit_test/test_get_asset_software.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.get_asset_software import GetAssetSoftware from komand_rapid7_insightvm.actions.get_asset_software.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_get_asset_vulnerabilities.py b/plugins/rapid7_insightvm/unit_test/test_get_asset_vulnerabilities.py index 4d8b83c513..176e4d9e77 100644 --- a/plugins/rapid7_insightvm/unit_test/test_get_asset_vulnerabilities.py +++ b/plugins/rapid7_insightvm/unit_test/test_get_asset_vulnerabilities.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.get_asset_vulnerabilities import GetAssetVulnerabilities from komand_rapid7_insightvm.actions.get_asset_vulnerabilities.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_get_expiring_vulnerability_exceptions.py b/plugins/rapid7_insightvm/unit_test/test_get_expiring_vulnerability_exceptions.py index 91e9bdd20a..67ea4dd6e0 100644 --- a/plugins/rapid7_insightvm/unit_test/test_get_expiring_vulnerability_exceptions.py +++ b/plugins/rapid7_insightvm/unit_test/test_get_expiring_vulnerability_exceptions.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.get_expiring_vulnerability_exceptions import GetExpiringVulnerabilityExceptions from komand_rapid7_insightvm.actions.get_expiring_vulnerability_exceptions.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_list_inactive_assets.py b/plugins/rapid7_insightvm/unit_test/test_list_inactive_assets.py index 91cca653cd..76f237e626 100644 --- a/plugins/rapid7_insightvm/unit_test/test_list_inactive_assets.py +++ b/plugins/rapid7_insightvm/unit_test/test_list_inactive_assets.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.list_inactive_assets import ListInactiveAssets from komand_rapid7_insightvm.actions.list_inactive_assets.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_list_reports.py b/plugins/rapid7_insightvm/unit_test/test_list_reports.py index 0b711ade96..feaa637ee9 100644 --- a/plugins/rapid7_insightvm/unit_test/test_list_reports.py +++ b/plugins/rapid7_insightvm/unit_test/test_list_reports.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.list_reports import ListReports from komand_rapid7_insightvm.actions.list_reports.schema import Input from parameterized import parameterized diff --git a/plugins/rapid7_insightvm/unit_test/test_new_scans.py b/plugins/rapid7_insightvm/unit_test/test_new_scans.py index c5d94d34c0..62bf881dd5 100644 --- a/plugins/rapid7_insightvm/unit_test/test_new_scans.py +++ b/plugins/rapid7_insightvm/unit_test/test_new_scans.py @@ -6,7 +6,7 @@ from unittest import TestCase from unittest.mock import patch, mock_open from komand_rapid7_insightvm.triggers import NewScans -from unit_test.util import Util +from util import Util class TestNewScans(TestCase): diff --git a/plugins/rapid7_insightvm/unit_test/test_tag_assets.py b/plugins/rapid7_insightvm/unit_test/test_tag_assets.py index 0b628c60b8..a267e46ba9 100644 --- a/plugins/rapid7_insightvm/unit_test/test_tag_assets.py +++ b/plugins/rapid7_insightvm/unit_test/test_tag_assets.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.tag_assets import TagAssets from insightconnect_plugin_runtime.exceptions import PluginException diff --git a/plugins/rapid7_insightvm/unit_test/test_update_shared_credential.py b/plugins/rapid7_insightvm/unit_test/test_update_shared_credential.py index a5dca7e554..7457b53600 100644 --- a/plugins/rapid7_insightvm/unit_test/test_update_shared_credential.py +++ b/plugins/rapid7_insightvm/unit_test/test_update_shared_credential.py @@ -11,7 +11,7 @@ from komand_rapid7_insightvm.actions.update_shared_credential.schema import Input from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util @patch("requests.sessions.Session.put", side_effect=Util.mocked_requests) diff --git a/plugins/rapid7_insightvm/unit_test/test_update_site_excluded_targets.py b/plugins/rapid7_insightvm/unit_test/test_update_site_excluded_targets.py index 78370d4204..efcbbc4335 100644 --- a/plugins/rapid7_insightvm/unit_test/test_update_site_excluded_targets.py +++ b/plugins/rapid7_insightvm/unit_test/test_update_site_excluded_targets.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.update_site_excluded_targets import UpdateSiteExcludedTargets from komand_rapid7_insightvm.actions.update_site_excluded_targets.schema import Input from parameterized import parameterized @@ -41,6 +41,13 @@ def setUpClass(cls) -> None: False, {"id": 1, "links": [{"href": "https://example.com/api/3/sites/1/excluded_targets", "rel": "self"}]}, ], + [ + "add_empty_addresses", + 2, + [], + False, + {"id": 2, "links": [{"href": "https://example.com/api/3/sites/2/excluded_targets", "rel": "self"}]}, + ], [ "overwrite_single_address", 1, diff --git a/plugins/rapid7_insightvm/unit_test/test_update_site_included_targets.py b/plugins/rapid7_insightvm/unit_test/test_update_site_included_targets.py index 341bdfe6b0..a80c475af5 100644 --- a/plugins/rapid7_insightvm/unit_test/test_update_site_included_targets.py +++ b/plugins/rapid7_insightvm/unit_test/test_update_site_included_targets.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.update_site_included_targets import UpdateSiteIncludedTargets from komand_rapid7_insightvm.actions.update_site_included_targets.schema import Input from parameterized import parameterized @@ -41,6 +41,13 @@ def setUpClass(cls) -> None: False, {"id": 1, "links": [{"href": "https://example.com/api/3/sites/1/included_targets", "rel": "self"}]}, ], + [ + "add_empty_addresses", + 2, + [], + False, + {"id": 2, "links": [{"href": "https://example.com/api/3/sites/2/included_targets", "rel": "self"}]}, + ], [ "overwrite_single_address", 1, diff --git a/plugins/rapid7_insightvm/unit_test/test_update_vulnerability_exception_expiration_date.py b/plugins/rapid7_insightvm/unit_test/test_update_vulnerability_exception_expiration_date.py index 4f2350d1fc..67062338dd 100644 --- a/plugins/rapid7_insightvm/unit_test/test_update_vulnerability_exception_expiration_date.py +++ b/plugins/rapid7_insightvm/unit_test/test_update_vulnerability_exception_expiration_date.py @@ -5,7 +5,7 @@ from unittest import TestCase from unittest.mock import patch -from unit_test.util import Util +from util import Util from komand_rapid7_insightvm.actions.update_vulnerability_exception_expiration_date import ( UpdateVulnerabilityExceptionExpirationDate, ) diff --git a/plugins/rapid7_insightvm/unit_test/util.py b/plugins/rapid7_insightvm/unit_test/util.py index df8df64b74..fd7d97284c 100644 --- a/plugins/rapid7_insightvm/unit_test/util.py +++ b/plugins/rapid7_insightvm/unit_test/util.py @@ -19,6 +19,7 @@ def default_connector(action): action.connection = default_connection action.logger = logging.getLogger("action logger") return action + return action @staticmethod def read_file_to_string(filename): @@ -82,8 +83,12 @@ def raise_for_status(self): return MockResponse("get_asset_vulnerabilities_invalid_id", 404) if kwargs.get("url") == "https://example.com/api/3/sites/1/excluded_targets": return MockResponse("get_site_excluded_targets", 200) + if kwargs.get("url") == "https://example.com/api/3/sites/2/excluded_targets": + return MockResponse("get_site_excluded_targets_no_addresses", 200) if kwargs.get("url") == "https://example.com/api/3/sites/1/included_targets": return MockResponse("get_site_included_targets", 200) + if kwargs.get("url") == "https://example.com/api/3/sites/2/included_targets": + return MockResponse("get_site_included_targets_no_addresses", 200) if kwargs.get("url") == "https://example.com/api/2.0/tags/1": if kwargs.get("json") == { "attributes": [{"tag_attribute_name": "SOURCE", "tag_attribute_value": "CUSTOM"}],