@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,63 @@
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": "addUsersNotbulk",
12
+ "enum": [
13
+ "addUsersNotbulk"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "sendEmail": {
18
+ "type": "number",
19
+ "description": "(Optional) Specifies whether the new user will receive an email notification with a secure link to their login credentials. This parameter is invalid when the user role ...(description truncated)",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "send_email"
27
+ },
28
+ "userRole": {
29
+ "type": "string",
30
+ "description": "(Required) Specifies the user role. A valid value is: manager, unit_manager, scanner, reader, contact or administrator. The first user added to a new custom business unit...(description truncated)",
31
+ "parse": false,
32
+ "encode": false,
33
+ "encrypt": {
34
+ "type": "AES",
35
+ "key": ""
36
+ },
37
+ "external_name": "user_role"
38
+ },
39
+ "firstName": {
40
+ "type": "string",
41
+ "description": "(Required) Specifies the user's first name. The name may include a maximum of 50 characters.",
42
+ "parse": false,
43
+ "encode": false,
44
+ "encrypt": {
45
+ "type": "AES",
46
+ "key": ""
47
+ },
48
+ "external_name": "first_name"
49
+ },
50
+ "lastName": {
51
+ "type": "string",
52
+ "description": "(Required) Specifies the user's last name. The name may include a maximum of 50 characters.",
53
+ "parse": false,
54
+ "encode": false,
55
+ "encrypt": {
56
+ "type": "AES",
57
+ "key": ""
58
+ },
59
+ "external_name": "last_name"
60
+ }
61
+ },
62
+ "definitions": {}
63
+ }
@@ -0,0 +1,167 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "assetGet",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/get/am/asset/21325?{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": "assetSearchbycriteria",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/search/am/asset?{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": "assetUpdate",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/update/am/asset/32254111?{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": "hostassetSearchbycriteria",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/search/am/hostasset?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "hostassetsGet",
86
+ "protocol": "REST",
87
+ "method": "GET",
88
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/get/am/hostasset/24115?{query}",
89
+ "requestSchema": "schema.json",
90
+ "responseSchema": "schema.json",
91
+ "timeout": 0,
92
+ "sendEmpty": false,
93
+ "sendGetBody": 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": "tagGet",
107
+ "protocol": "REST",
108
+ "method": "GET",
109
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/get/am/tag/7813875?{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": "tagList",
128
+ "protocol": "REST",
129
+ "method": "POST",
130
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/search/am/tag?{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": "tagUpdate",
148
+ "protocol": "REST",
149
+ "method": "POST",
150
+ "entitypath": "{base_path}/{version}/qps/rest/1.0/update/am/tag/7813875?{query}",
151
+ "requestSchema": "schema.json",
152
+ "responseSchema": "schema.json",
153
+ "timeout": 0,
154
+ "sendEmpty": false,
155
+ "requestDatatype": "JSON",
156
+ "responseDatatype": "JSON",
157
+ "headers": {},
158
+ "responseObjects": [
159
+ {
160
+ "type": "default",
161
+ "key": "",
162
+ "mockFile": ""
163
+ }
164
+ ]
165
+ }
166
+ ]
167
+ }
@@ -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": "assetGet",
12
+ "enum": [
13
+ "assetGet",
14
+ "assetSearchbycriteria",
15
+ "assetUpdate",
16
+ "hostassetSearchbycriteria",
17
+ "hostassetsGet",
18
+ "tagGet",
19
+ "tagList",
20
+ "tagUpdate"
21
+ ],
22
+ "external_name": "ph_request_type"
23
+ }
24
+ },
25
+ "definitions": {}
26
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postAssetSearchbycriteria",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/qps/rest/2.0/search/am/asset?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "XML",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "searchtofindtag",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/qps/rest/2.0/search/am/tag?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "XML",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,20 @@
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": "postAssetSearchbycriteria",
12
+ "enum": [
13
+ "postAssetSearchbycriteria",
14
+ "searchtofindtag"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "downloadallScheduledReportInfo",
5
+ "protocol": "REST",
6
+ "method": "GET",
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
+ "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": "downloadallScheduledReportInfo",
12
+ "enum": [
13
+ "downloadallScheduledReportInfo"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,84 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "excludedhostslist",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/2.0/fo/asset/excluded_ip?{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": "vMScannerappliances",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/api/2.0/fo/appliance?{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
+ "name": "excludedvirtualhostslist",
45
+ "protocol": "REST",
46
+ "method": "POST",
47
+ "entitypath": "{base_path}/{version}/api/2.0/fo/asset/excluded_ip/history?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": ""
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "pCComplianceposture",
65
+ "protocol": "REST",
66
+ "method": "POST",
67
+ "entitypath": "{base_path}/{version}/api/2.0/fo/compliance/posture/info?{query}",
68
+ "requestSchema": "schema.json",
69
+ "responseSchema": "schema.json",
70
+ "timeout": 0,
71
+ "sendEmpty": false,
72
+ "requestDatatype": "URLENCODE",
73
+ "responseDatatype": "JSON",
74
+ "headers": {},
75
+ "responseObjects": [
76
+ {
77
+ "type": "default",
78
+ "key": "",
79
+ "mockFile": ""
80
+ }
81
+ ]
82
+ }
83
+ ]
84
+ }
@@ -0,0 +1,33 @@
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": "excludedhostslist",
12
+ "enum": [
13
+ "excludedhostslist",
14
+ "vMScannerappliances",
15
+ "excludedvirtualhostslist",
16
+ "pCComplianceposture"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ },
20
+ "policyIds": {
21
+ "type": "number",
22
+ "description": "",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "policy_ids"
30
+ }
31
+ },
32
+ "definitions": {}
33
+ }
@@ -0,0 +1,167 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "appCount",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/qps/rest/3.0/get/was/webapp/24115?{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": "appList",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/qps/rest/3.0/search/was/webapp?{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": "appUpdate",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/qps/rest/3.0/update/was/webapp/21325?{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": "appScan",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/qps/rest/3.0/launch/was/wasscan?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "reportCreatewebapp",
86
+ "protocol": "REST",
87
+ "method": "POST",
88
+ "entitypath": "{base_path}/{version}/qps/rest/3.0/create/was/report?{query}",
89
+ "requestSchema": "schema.json",
90
+ "responseSchema": "schema.json",
91
+ "timeout": 0,
92
+ "sendEmpty": false,
93
+ "requestDatatype": "JSON",
94
+ "responseDatatype": "JSON",
95
+ "headers": {},
96
+ "responseObjects": [
97
+ {
98
+ "type": "default",
99
+ "key": "",
100
+ "mockFile": ""
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "name": "reportDownload",
106
+ "protocol": "REST",
107
+ "method": "GET",
108
+ "entitypath": "{base_path}/{version}/qps/rest/3.0/download/was/report/123057?{query}",
109
+ "requestSchema": "schema.json",
110
+ "responseSchema": "schema.json",
111
+ "timeout": 0,
112
+ "sendEmpty": false,
113
+ "sendGetBody": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "scanDownload",
127
+ "protocol": "REST",
128
+ "method": "GET",
129
+ "entitypath": "{base_path}/{version}/qps/rest/3.0/download/was/wasscan/4912497?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "sendGetBody": 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": "scanListrunning",
148
+ "protocol": "REST",
149
+ "method": "POST",
150
+ "entitypath": "{base_path}/{version}/qps/rest/3.0/search/was/wasscan?{query}",
151
+ "requestSchema": "schema.json",
152
+ "responseSchema": "schema.json",
153
+ "timeout": 0,
154
+ "sendEmpty": false,
155
+ "requestDatatype": "JSON",
156
+ "responseDatatype": "JSON",
157
+ "headers": {},
158
+ "responseObjects": [
159
+ {
160
+ "type": "default",
161
+ "key": "",
162
+ "mockFile": ""
163
+ }
164
+ ]
165
+ }
166
+ ]
167
+ }
@@ -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": "appCount",
12
+ "enum": [
13
+ "appCount",
14
+ "appList",
15
+ "appUpdate",
16
+ "appScan",
17
+ "reportCreatewebapp",
18
+ "reportDownload",
19
+ "scanDownload",
20
+ "scanListrunning"
21
+ ],
22
+ "external_name": "ph_request_type"
23
+ }
24
+ },
25
+ "definitions": {}
26
+ }