@itentialopensource/adapter-qualys 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +0 -0
  4. package/AUTH.md +39 -0
  5. package/BROKER.md +199 -0
  6. package/CALLS.md +170 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +172 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +641 -0
  13. package/README.md +337 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +11 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +9870 -0
  18. package/adapterBase.js +1787 -0
  19. package/entities/.generic/action.json +214 -0
  20. package/entities/.generic/schema.json +28 -0
  21. package/entities/.system/action.json +50 -0
  22. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  23. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  24. package/entities/.system/schema.json +19 -0
  25. package/entities/.system/schemaTokenReq.json +53 -0
  26. package/entities/.system/schemaTokenResp.json +53 -0
  27. package/entities/AssetTagging/action.json +64 -0
  28. package/entities/AssetTagging/schema.json +21 -0
  29. package/entities/BulkCloudAgentActivation/action.json +24 -0
  30. package/entities/BulkCloudAgentActivation/schema.json +19 -0
  31. package/entities/CertViewAPIV1/action.json +44 -0
  32. package/entities/CertViewAPIV1/schema.json +20 -0
  33. package/entities/ContinuousMonitoringCMAPIV1/action.json +168 -0
  34. package/entities/ContinuousMonitoringCMAPIV1/schema.json +26 -0
  35. package/entities/DownloadAllAlertsFromTheContinuousMonitoringModule/action.json +24 -0
  36. package/entities/DownloadAllAlertsFromTheContinuousMonitoringModule/schema.json +19 -0
  37. package/entities/DownloadAllCloudAgentActivationKeys/action.json +24 -0
  38. package/entities/DownloadAllCloudAgentActivationKeys/schema.json +19 -0
  39. package/entities/DownloadQualysUserActivityLog/action.json +24 -0
  40. package/entities/DownloadQualysUserActivityLog/schema.json +19 -0
  41. package/entities/Events/action.json +210 -0
  42. package/entities/Events/schema.json +28 -0
  43. package/entities/FindPlatformVersions/action.json +25 -0
  44. package/entities/FindPlatformVersions/schema.json +19 -0
  45. package/entities/GettingStartedWithTheQualysAPI/action.json +44 -0
  46. package/entities/GettingStartedWithTheQualysAPI/schema.json +31 -0
  47. package/entities/GlobalITAssetInventoryITAMAIAPIV1/action.json +64 -0
  48. package/entities/GlobalITAssetInventoryITAMAIAPIV1/schema.json +21 -0
  49. package/entities/HLDNewActiveReOpenVulnerabilities/action.json +24 -0
  50. package/entities/HLDNewActiveReOpenVulnerabilities/schema.json +52 -0
  51. package/entities/Ignore/action.json +128 -0
  52. package/entities/Ignore/schema.json +35 -0
  53. package/entities/Incidents/action.json +86 -0
  54. package/entities/Incidents/schema.json +22 -0
  55. package/entities/IndicationOfCompromiseIOCUseCases/action.json +46 -0
  56. package/entities/IndicationOfCompromiseIOCUseCases/schema.json +20 -0
  57. package/entities/MalwareDetectionMDAPIV1/action.json +65 -0
  58. package/entities/MalwareDetectionMDAPIV1/schema.json +21 -0
  59. package/entities/PurgeAssetsIMPORTANTPurgingCannotBeReversed/action.json +24 -0
  60. package/entities/PurgeAssetsIMPORTANTPurgingCannotBeReversed/schema.json +41 -0
  61. package/entities/SendReportResultsToSupport/action.json +24 -0
  62. package/entities/SendReportResultsToSupport/schema.json +52 -0
  63. package/entities/Step1GenerateAPIGatewayTokenForAuth/action.json +24 -0
  64. package/entities/Step1GenerateAPIGatewayTokenForAuth/schema.json +19 -0
  65. package/entities/Step3AddIPToAssetGroup/action.json +24 -0
  66. package/entities/Step3AddIPToAssetGroup/schema.json +41 -0
  67. package/entities/Step3EnableVulnerabilityManagementAndOrPolicyComplianceForTheHostAsset/action.json +24 -0
  68. package/entities/Step3EnableVulnerabilityManagementAndOrPolicyComplianceForTheHostAsset/schema.json +41 -0
  69. package/entities/Step4AddSiteToScheduledScan/action.json +24 -0
  70. package/entities/Step4AddSiteToScheduledScan/schema.json +96 -0
  71. package/entities/Step4AuthenticationRecords/action.json +44 -0
  72. package/entities/Step4AuthenticationRecords/schema.json +31 -0
  73. package/entities/Step5GetCertificateScanResults/action.json +24 -0
  74. package/entities/Step5GetCertificateScanResults/schema.json +19 -0
  75. package/entities/Step5LaunchScans/action.json +44 -0
  76. package/entities/Step5LaunchScans/schema.json +53 -0
  77. package/entities/UserAccountManagement/action.json +24 -0
  78. package/entities/UserAccountManagement/schema.json +63 -0
  79. package/entities/V1Old/action.json +167 -0
  80. package/entities/V1Old/schema.json +26 -0
  81. package/entities/V2NewWIP/action.json +44 -0
  82. package/entities/V2NewWIP/schema.json +20 -0
  83. package/entities/VMReporting/action.json +25 -0
  84. package/entities/VMReporting/schema.json +19 -0
  85. package/entities/VulnerabilityManagementVMPolicyCompliancePCAPIV2/action.json +84 -0
  86. package/entities/VulnerabilityManagementVMPolicyCompliancePCAPIV2/schema.json +33 -0
  87. package/entities/WebApplicationScanningWASAPIV3/action.json +167 -0
  88. package/entities/WebApplicationScanningWASAPIV3/schema.json +26 -0
  89. package/error.json +190 -0
  90. package/package.json +84 -0
  91. package/pronghorn.json +5074 -0
  92. package/propertiesDecorators.json +14 -0
  93. package/propertiesSchema.json +1248 -0
  94. package/refs?service=git-upload-pack +0 -0
  95. package/report/Qualys API Collection v 4.0.postman_collection.json-OpenApi3Json.json +11562 -0
  96. package/report/creationReport.json +1082 -0
  97. package/sampleProperties.json +195 -0
  98. package/test/integration/adapterTestBasicGet.js +85 -0
  99. package/test/integration/adapterTestConnectivity.js +93 -0
  100. package/test/integration/adapterTestIntegration.js +2578 -0
  101. package/test/unit/adapterBaseTestUnit.js +949 -0
  102. package/test/unit/adapterTestUnit.js +5702 -0
  103. package/utils/adapterInfo.js +206 -0
  104. package/utils/addAuth.js +94 -0
  105. package/utils/artifactize.js +146 -0
  106. package/utils/basicGet.js +50 -0
  107. package/utils/checkMigrate.js +63 -0
  108. package/utils/entitiesToDB.js +179 -0
  109. package/utils/findPath.js +74 -0
  110. package/utils/modify.js +154 -0
  111. package/utils/packModificationScript.js +35 -0
  112. package/utils/patches2bundledDeps.js +90 -0
  113. package/utils/pre-commit.sh +30 -0
  114. package/utils/removeHooks.js +20 -0
  115. package/utils/setup.js +33 -0
  116. package/utils/tbScript.js +184 -0
  117. package/utils/tbUtils.js +469 -0
  118. package/utils/testRunner.js +298 -0
  119. package/utils/troubleshootingAdapter.js +190 -0
  120. package/workflows/README.md +3 -0
@@ -0,0 +1,41 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "step1DownloadaListofallHoststobePurgedForyourrecords",
12
+ "enum": [
13
+ "step1DownloadaListofallHoststobePurgedForyourrecords"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "echoRequest": {
18
+ "type": "number",
19
+ "description": "",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "echo_request"
27
+ },
28
+ "noVmScanSince": {
29
+ "type": "string",
30
+ "description": "",
31
+ "parse": false,
32
+ "encode": false,
33
+ "encrypt": {
34
+ "type": "AES",
35
+ "key": ""
36
+ },
37
+ "external_name": "no_vm_scan_since"
38
+ }
39
+ },
40
+ "definitions": {}
41
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "step1LaunchReportthatSupportRequested",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/2.0/fo/report?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "URLENCODE",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "step1LaunchReportthatSupportRequested",
12
+ "enum": [
13
+ "step1LaunchReportthatSupportRequested"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "templateId": {
18
+ "type": "number",
19
+ "description": "(Required) The template ID of the report you want to\nlaunch. Use the /msp/report_template_list.php API to find the template ID you’re interested in",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "template_id"
27
+ },
28
+ "reportTitle": {
29
+ "type": "string",
30
+ "description": "(Optional) A user-defined report title. The title may have a maximum of 128 characters. For a PCI compliance report, the report title is provided by Qualys and cannot be ...(description truncated)",
31
+ "parse": false,
32
+ "encode": false,
33
+ "encrypt": {
34
+ "type": "AES",
35
+ "key": ""
36
+ },
37
+ "external_name": "report_title"
38
+ },
39
+ "outputFormat": {
40
+ "type": "string",
41
+ "description": "(Required) Support requires PDF Format.",
42
+ "parse": false,
43
+ "encode": false,
44
+ "encrypt": {
45
+ "type": "AES",
46
+ "key": ""
47
+ },
48
+ "external_name": "output_format"
49
+ }
50
+ },
51
+ "definitions": {}
52
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "generateAuthenticateGenerateToken",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/auth?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "URLENCODE",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "generateAuthenticateGenerateToken",
12
+ "enum": [
13
+ "generateAuthenticateGenerateToken"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "optionalListallExistingAssetGroups",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/2.0/fo/asset/group?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "URLENCODE",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "optionalListallExistingAssetGroups",
12
+ "enum": [
13
+ "optionalListallExistingAssetGroups"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "outputFormat": {
18
+ "type": "string",
19
+ "description": "(Required) The requested output format: CSV or XML.",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "output_format"
27
+ },
28
+ "truncationLimit": {
29
+ "type": "number",
30
+ "description": "(Optional) Specify the maximum number of asset group records to output. By default this is set to 1000 records. If you specify truncation_limit=0, the output is not pagin...(description truncated)",
31
+ "parse": false,
32
+ "encode": false,
33
+ "encrypt": {
34
+ "type": "AES",
35
+ "key": ""
36
+ },
37
+ "external_name": "truncation_limit"
38
+ }
39
+ },
40
+ "definitions": {}
41
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "enableVulnerabilityManagementandPolicyComplianceHostAssets",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/2.0/fo/asset/ip?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "URLENCODE",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "enableVulnerabilityManagementandPolicyComplianceHostAssets",
12
+ "enum": [
13
+ "enableVulnerabilityManagementandPolicyComplianceHostAssets"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "enableVm": {
18
+ "type": "number",
19
+ "description": "",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "enable_vm"
27
+ },
28
+ "enablePc": {
29
+ "type": "number",
30
+ "description": "",
31
+ "parse": false,
32
+ "encode": false,
33
+ "encrypt": {
34
+ "type": "AES",
35
+ "key": ""
36
+ },
37
+ "external_name": "enable_pc"
38
+ }
39
+ },
40
+ "definitions": {}
41
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "scheduleCertViewScanbyFQDNs",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/2.0/fo/schedule/scan?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "URLENCODE",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,96 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "scheduleCertViewScanbyFQDNs",
12
+ "enum": [
13
+ "scheduleCertViewScanbyFQDNs"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "scanTitle": {
18
+ "type": "string",
19
+ "description": "(Optional) The scan title. This can be a maximum of 2000 characters (ascii).",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "scan_title"
27
+ },
28
+ "optionId": {
29
+ "type": "string",
30
+ "description": "Option Profile option_id or option_profile (one is required)",
31
+ "parse": false,
32
+ "encode": false,
33
+ "encrypt": {
34
+ "type": "AES",
35
+ "key": ""
36
+ },
37
+ "external_name": "option_id"
38
+ },
39
+ "scanType": {
40
+ "type": "string",
41
+ "description": "(Optional) Launch a CertView type scan. This option will be supported when CertView GA is released and enabled for your account.",
42
+ "parse": false,
43
+ "encode": false,
44
+ "encrypt": {
45
+ "type": "AES",
46
+ "key": ""
47
+ },
48
+ "external_name": "scan_type"
49
+ },
50
+ "frequencyWeeks": {
51
+ "type": "number",
52
+ "description": "frequency_days={value} Required for a daily scan. The scan will run every N number of days. Value is an integer from 1 to 365.\n\nfrequency_weeks={value} Required for a wee...(description truncated)",
53
+ "parse": false,
54
+ "encode": false,
55
+ "encrypt": {
56
+ "type": "AES",
57
+ "key": ""
58
+ },
59
+ "external_name": "frequency_weeks"
60
+ },
61
+ "startHour": {
62
+ "type": "number",
63
+ "description": "(Required) The hour when a scan will start. The hour is an integer from 0 to 23, where 0 represents 12 AM, 7 represents 7 AM, and 22 represents 10 PM.",
64
+ "parse": false,
65
+ "encode": false,
66
+ "encrypt": {
67
+ "type": "AES",
68
+ "key": ""
69
+ },
70
+ "external_name": "start_hour"
71
+ },
72
+ "startMinute": {
73
+ "type": "number",
74
+ "description": "(Required) The minute when a scan will start. A valid value is an integer from 0 to 59",
75
+ "parse": false,
76
+ "encode": false,
77
+ "encrypt": {
78
+ "type": "AES",
79
+ "key": ""
80
+ },
81
+ "external_name": "start_minute"
82
+ },
83
+ "observeDst": {
84
+ "type": "string",
85
+ "description": "(Optional) Specify yes to observe Daylight Saving Time (DST). This parameter is valid when the time zone code specified in time_zone_code supports DST.",
86
+ "parse": false,
87
+ "encode": false,
88
+ "encrypt": {
89
+ "type": "AES",
90
+ "key": ""
91
+ },
92
+ "external_name": "observe_dst"
93
+ }
94
+ },
95
+ "definitions": {}
96
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "aPICommandstoaddIPaddressEsWindows",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/2.0/fo/auth/windows?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "URLENCODE",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "aPICommandstoaddIPaddressEsUnixLinux",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/api/2.0/fo/auth/unix?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "URLENCODE",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "aPICommandstoaddIPaddressEsWindows",
12
+ "enum": [
13
+ "aPICommandstoaddIPaddressEsWindows",
14
+ "aPICommandstoaddIPaddressEsUnixLinux"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ },
18
+ "addIps": {
19
+ "type": "string",
20
+ "description": "(Optional to update record) Add IPs and/or ranges to the IPs list for this record. Multiple IPs/ranges are comma separated. This parameter and the ips parameter cannot be...(description truncated)",
21
+ "parse": false,
22
+ "encode": false,
23
+ "encrypt": {
24
+ "type": "AES",
25
+ "key": ""
26
+ },
27
+ "external_name": "add_ips"
28
+ }
29
+ },
30
+ "definitions": {}
31
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "retrievedetailedhostinstanceinformation",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/getEndpointData?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "retrievedetailedhostinstanceinformation",
12
+ "enum": [
13
+ "retrievedetailedhostinstanceinformation"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "launchVulnerabilityScan",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/2.0/fo/scan?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "URLENCODE",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "launchPolicyComplianceScan",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/api/2.0/fo/scan/compliance?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "URLENCODE",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "launchVulnerabilityScan",
12
+ "enum": [
13
+ "launchVulnerabilityScan",
14
+ "launchPolicyComplianceScan"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ },
18
+ "iscannerId": {
19
+ "type": "number",
20
+ "description": "Scanner Appliance: iscanner_id or iscanner_name",
21
+ "parse": false,
22
+ "encode": false,
23
+ "encrypt": {
24
+ "type": "AES",
25
+ "key": ""
26
+ },
27
+ "external_name": "iscanner_id"
28
+ },
29
+ "scanTitle": {
30
+ "type": "string",
31
+ "description": "(Optional) The scan title. This can be a maximum of 2000 characters (ascii).",
32
+ "parse": false,
33
+ "encode": false,
34
+ "encrypt": {
35
+ "type": "AES",
36
+ "key": ""
37
+ },
38
+ "external_name": "scan_title"
39
+ },
40
+ "optionId": {
41
+ "type": "number",
42
+ "description": "Option Profile: option_id or option_title",
43
+ "parse": false,
44
+ "encode": false,
45
+ "encrypt": {
46
+ "type": "AES",
47
+ "key": ""
48
+ },
49
+ "external_name": "option_id"
50
+ }
51
+ },
52
+ "definitions": {}
53
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "addUsersNotbulk",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/msp/user.php?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "URLENCODE",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }