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": "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': ' 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. \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 OpenBSD OpenSSH 4.3 on Linux
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": "