@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,168 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getAlertsViewdetailsbyid",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/get/cm/alert/246213?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "alertsDownloadbycriteria",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/download/cm/alert?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "profilesSearchbycriteria",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/search/cm/profile?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "profilesViewdetailsbyid",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/get/cm/profile/7401?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "sendGetBody": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "rulesetsSearchbycriteria",
87
+ "protocol": "REST",
88
+ "method": "POST",
89
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/search/cm/ruleset?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "rulesetsViewdetailsbyid",
107
+ "protocol": "REST",
108
+ "method": "GET",
109
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/get/cm/ruleset/4001?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "sendGetBody": false,
115
+ "requestDatatype": "JSON",
116
+ "responseDatatype": "JSON",
117
+ "headers": {},
118
+ "responseObjects": [
119
+ {
120
+ "type": "default",
121
+ "key": "",
122
+ "mockFile": ""
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "name": "rulesSearchbycriteria",
128
+ "protocol": "REST",
129
+ "method": "POST",
130
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/search/cm/rule?{query}",
131
+ "requestSchema": "schema.json",
132
+ "responseSchema": "schema.json",
133
+ "timeout": 0,
134
+ "sendEmpty": false,
135
+ "requestDatatype": "JSON",
136
+ "responseDatatype": "JSON",
137
+ "headers": {},
138
+ "responseObjects": [
139
+ {
140
+ "type": "default",
141
+ "key": "",
142
+ "mockFile": ""
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ "name": "rulesViewdetailsbyid",
148
+ "protocol": "REST",
149
+ "method": "GET",
150
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/get/cm/rule/6002?{query}",
151
+ "requestSchema": "schema.json",
152
+ "responseSchema": "schema.json",
153
+ "timeout": 0,
154
+ "sendEmpty": false,
155
+ "sendGetBody": false,
156
+ "requestDatatype": "JSON",
157
+ "responseDatatype": "JSON",
158
+ "headers": {},
159
+ "responseObjects": [
160
+ {
161
+ "type": "default",
162
+ "key": "",
163
+ "mockFile": ""
164
+ }
165
+ ]
166
+ }
167
+ ]
168
+ }
@@ -0,0 +1,26 @@
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": "getAlertsViewdetailsbyid",
12
+ "enum": [
13
+ "getAlertsViewdetailsbyid",
14
+ "alertsDownloadbycriteria",
15
+ "profilesSearchbycriteria",
16
+ "profilesViewdetailsbyid",
17
+ "rulesetsSearchbycriteria",
18
+ "rulesetsViewdetailsbyid",
19
+ "rulesSearchbycriteria",
20
+ "rulesViewdetailsbyid"
21
+ ],
22
+ "external_name": "ph_request_type"
23
+ }
24
+ },
25
+ "definitions": {}
26
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listAlertsbycriteriaFirstbatchexample",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/search/cm/alert?{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": "listAlertsbycriteriaFirstbatchexample",
12
+ "enum": [
13
+ "listAlertsbycriteriaFirstbatchexample"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "downloadallcloudagentactivationkeys",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/search/ca/agentactkey?{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": "downloadallcloudagentactivationkeys",
12
+ "enum": [
13
+ "downloadallcloudagentactivationkeys"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "downloadtheQualysuseractivitylog",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/2.0/fo/activity_log?{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": "downloadtheQualysuseractivitylog",
12
+ "enum": [
13
+ "downloadtheQualysuseractivitylog"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,210 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "aPIstofetchFIMeventdata",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/events?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "geteventcountwithinadaterange",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/events/count?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": ""
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "fetcheventdetails",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/events/{pathv1}?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "sendGetBody": false,
55
+ "requestDatatype": "JSON",
56
+ "responseDatatype": "JSON",
57
+ "headers": {},
58
+ "responseObjects": [
59
+ {
60
+ "type": "default",
61
+ "key": "",
62
+ "mockFile": ""
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "fetcheventsforanincident",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/incidents/{pathv1}/events?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "sendGetBody": false,
76
+ "requestDatatype": "JSON",
77
+ "responseDatatype": "JSON",
78
+ "headers": {},
79
+ "responseObjects": [
80
+ {
81
+ "type": "default",
82
+ "key": "",
83
+ "mockFile": ""
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "geteventcountforanincident",
89
+ "protocol": "REST",
90
+ "method": "GET",
91
+ "entitypath": "{base_path}/{version}/incidents/{pathv1}/events/count?{query}",
92
+ "requestSchema": "schema.json",
93
+ "responseSchema": "schema.json",
94
+ "timeout": 0,
95
+ "sendEmpty": false,
96
+ "sendGetBody": false,
97
+ "requestDatatype": "JSON",
98
+ "responseDatatype": "JSON",
99
+ "headers": {},
100
+ "responseObjects": [
101
+ {
102
+ "type": "default",
103
+ "key": "",
104
+ "mockFile": ""
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "name": "postFetcheventsforanincident",
110
+ "protocol": "REST",
111
+ "method": "POST",
112
+ "entitypath": "{base_path}/{version}/v2/incidents/{pathv1}/events/search'?{query}",
113
+ "requestSchema": "schema.json",
114
+ "responseSchema": "schema.json",
115
+ "timeout": 0,
116
+ "sendEmpty": false,
117
+ "requestDatatype": "URLENCODE",
118
+ "responseDatatype": "JSON",
119
+ "headers": {},
120
+ "responseObjects": [
121
+ {
122
+ "type": "default",
123
+ "key": "",
124
+ "mockFile": ""
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "name": "postGeteventcountforanincident",
130
+ "protocol": "REST",
131
+ "method": "POST",
132
+ "entitypath": "{base_path}/{version}/v2/incidents/{pathv1}/events/count?{query}",
133
+ "requestSchema": "schema.json",
134
+ "responseSchema": "schema.json",
135
+ "timeout": 0,
136
+ "sendEmpty": false,
137
+ "requestDatatype": "URLENCODE",
138
+ "responseDatatype": "JSON",
139
+ "headers": {},
140
+ "responseObjects": [
141
+ {
142
+ "type": "default",
143
+ "key": "",
144
+ "mockFile": ""
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "postAPIstofetchFIMeventdata",
150
+ "protocol": "REST",
151
+ "method": "POST",
152
+ "entitypath": "{base_path}/{version}/v2/events/search?{query}",
153
+ "requestSchema": "schema.json",
154
+ "responseSchema": "schema.json",
155
+ "timeout": 0,
156
+ "sendEmpty": false,
157
+ "requestDatatype": "URLENCODE",
158
+ "responseDatatype": "JSON",
159
+ "headers": {},
160
+ "responseObjects": [
161
+ {
162
+ "type": "default",
163
+ "key": "",
164
+ "mockFile": ""
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "name": "postGeteventcountwithinadaterange",
170
+ "protocol": "REST",
171
+ "method": "POST",
172
+ "entitypath": "{base_path}/{version}/v2/events/count?{query}",
173
+ "requestSchema": "schema.json",
174
+ "responseSchema": "schema.json",
175
+ "timeout": 0,
176
+ "sendEmpty": false,
177
+ "requestDatatype": "URLENCODE",
178
+ "responseDatatype": "JSON",
179
+ "headers": {},
180
+ "responseObjects": [
181
+ {
182
+ "type": "default",
183
+ "key": "",
184
+ "mockFile": ""
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "name": "fetcheventdetails1",
190
+ "protocol": "REST",
191
+ "method": "GET",
192
+ "entitypath": "{base_path}/{version}/v2/events/{pathv1}?{query}",
193
+ "requestSchema": "schema.json",
194
+ "responseSchema": "schema.json",
195
+ "timeout": 0,
196
+ "sendEmpty": false,
197
+ "sendGetBody": false,
198
+ "requestDatatype": "JSON",
199
+ "responseDatatype": "JSON",
200
+ "headers": {},
201
+ "responseObjects": [
202
+ {
203
+ "type": "default",
204
+ "key": "",
205
+ "mockFile": ""
206
+ }
207
+ ]
208
+ }
209
+ ]
210
+ }
@@ -0,0 +1,28 @@
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": "aPIstofetchFIMeventdata",
12
+ "enum": [
13
+ "aPIstofetchFIMeventdata",
14
+ "geteventcountwithinadaterange",
15
+ "fetcheventdetails",
16
+ "fetcheventsforanincident",
17
+ "geteventcountforanincident",
18
+ "postFetcheventsforanincident",
19
+ "postGeteventcountforanincident",
20
+ "postAPIstofetchFIMeventdata",
21
+ "postGeteventcountwithinadaterange",
22
+ "fetcheventdetails1"
23
+ ],
24
+ "external_name": "ph_request_type"
25
+ }
26
+ },
27
+ "definitions": {}
28
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getyourportalversion",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/qps/rest/portal/version?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -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": "getyourportalversion",
12
+ "enum": [
13
+ "getyourportalversion"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "testVMAPIAccess",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/msp/user_list.php?{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
+ "name": "testKnowledgeBaseAccess",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/api/2.0/fo/knowledge_base/vuln?{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
+ }