@itentialopensource/adapter-algosec_firewall 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 (179) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -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 +15343 -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 +4 -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/AnalyzeTaskExternalController/action.json +46 -0
  28. package/entities/AnalyzeTaskExternalController/mockdatafiles/getCurrentAnalyzeTaskStatusesUsingGET-default.json +10 -0
  29. package/entities/AnalyzeTaskExternalController/schema.json +20 -0
  30. package/entities/AnalyzeTaskExternalControllerCompatible/action.json +45 -0
  31. package/entities/AnalyzeTaskExternalControllerCompatible/schema.json +20 -0
  32. package/entities/ApplicationsExternalController/action.json +145 -0
  33. package/entities/ApplicationsExternalController/mockdatafiles/findByOriginalOrCanonizedNameAndDeviceGroupObjectsUsingPOST-default.json +86 -0
  34. package/entities/ApplicationsExternalController/mockdatafiles/findByOriginalOrCanonizedNameAndDevicesUsingPOST-default.json +23 -0
  35. package/entities/ApplicationsExternalController/mockdatafiles/findByOriginalOrCanonizedNameUsingPOST-default.json +86 -0
  36. package/entities/ApplicationsExternalController/mockdatafiles/getGroupMembersUsingPOST-default.json +23 -0
  37. package/entities/ApplicationsExternalController/schema.json +25 -0
  38. package/entities/BaselineComplianceExternalController/action.json +25 -0
  39. package/entities/BaselineComplianceExternalController/schema.json +19 -0
  40. package/entities/BrandConfigExternalController/action.json +25 -0
  41. package/entities/BrandConfigExternalController/schema.json +19 -0
  42. package/entities/CloudDbExternalController/action.json +214 -0
  43. package/entities/CloudDbExternalController/mockdatafiles/getContainerInstancesUsingGET-default.json +54 -0
  44. package/entities/CloudDbExternalController/mockdatafiles/getContainerSecurityGroupUsingGET-default.json +28 -0
  45. package/entities/CloudDbExternalController/mockdatafiles/getDevicesBySecuritySegmentUsingGET-default.json +454 -0
  46. package/entities/CloudDbExternalController/mockdatafiles/getInstancesBySecurityGroupUsingGET-default.json +41 -0
  47. package/entities/CloudDbExternalController/schema.json +28 -0
  48. package/entities/ConfigExternalController/action.json +107 -0
  49. package/entities/ConfigExternalController/schema.json +23 -0
  50. package/entities/DeviceExternalController/action.json +290 -0
  51. package/entities/DeviceExternalController/mockdatafiles/getSectionHeadersUsingGET-default.json +10 -0
  52. package/entities/DeviceExternalController/mockdatafiles/getSecurityProfileGroupsUsingGET-default.json +3 -0
  53. package/entities/DeviceExternalController/mockdatafiles/searchChildrenDevicesByParentsUsingPOST-default.json +101 -0
  54. package/entities/DeviceExternalController/mockdatafiles/searchDeviceGroupHierarchyTreeUsingPOST-default.json +486 -0
  55. package/entities/DeviceExternalController/mockdatafiles/searchLeafChildrenDevicesByParentsUsingPOST-default.json +89 -0
  56. package/entities/DeviceExternalController/mockdatafiles/searchParentsDevicesByChildrenUsingPOST-default.json +146 -0
  57. package/entities/DeviceExternalController/schema.json +32 -0
  58. package/entities/DeviceExternalControllerCompatible/action.json +86 -0
  59. package/entities/DeviceExternalControllerCompatible/mockdatafiles/getDevicesByPolicyUsingPOST-default.json +306 -0
  60. package/entities/DeviceExternalControllerCompatible/mockdatafiles/getDevicesUsingGET1-default.json +935 -0
  61. package/entities/DeviceExternalControllerCompatible/schema.json +22 -0
  62. package/entities/DeviceRelocationController/action.json +126 -0
  63. package/entities/DeviceRelocationController/schema.json +24 -0
  64. package/entities/DeviceSetupController/action.json +267 -0
  65. package/entities/DeviceSetupController/mockdatafiles/getAllDevicesDetailsUsingGET-default.json +371 -0
  66. package/entities/DeviceSetupController/mockdatafiles/getCmaManagedDevicesInPv1ModeUsingPOST-default.json +11 -0
  67. package/entities/DeviceSetupController/mockdatafiles/getCmaManagedDevicesUsingPOST-default.json +11 -0
  68. package/entities/DeviceSetupController/mockdatafiles/getFortimangerManagedDevicesUsingPOST-default.json +8 -0
  69. package/entities/DeviceSetupController/mockdatafiles/getPv1ManagedDevicesUsingPOST-default.json +5 -0
  70. package/entities/DeviceSetupController/schema.json +31 -0
  71. package/entities/DeviceZonesController/action.json +25 -0
  72. package/entities/DeviceZonesController/schema.json +19 -0
  73. package/entities/DnsLookupExternalController/action.json +25 -0
  74. package/entities/DnsLookupExternalController/schema.json +19 -0
  75. package/entities/ExternalApi/action.json +380 -0
  76. package/entities/ExternalApi/mockdatafiles/getNetworkObjectsUsingGET-default.json +52 -0
  77. package/entities/ExternalApi/mockdatafiles/getReportRisksUsingGET-default.json +47 -0
  78. package/entities/ExternalApi/mockdatafiles/getRulesColumnsUsingGET-default.json +22 -0
  79. package/entities/ExternalApi/mockdatafiles/getServiceObjectsUsingGET-default.json +18 -0
  80. package/entities/ExternalApi/schema.json +36 -0
  81. package/entities/ExternalRiskyRuleController/action.json +46 -0
  82. package/entities/ExternalRiskyRuleController/schema.json +20 -0
  83. package/entities/ExternalRiskyRuleControllerCompatible/action.json +25 -0
  84. package/entities/ExternalRiskyRuleControllerCompatible/schema.json +19 -0
  85. package/entities/FirewallDataExternalController/action.json +127 -0
  86. package/entities/FirewallDataExternalController/mockdatafiles/getAllBrothersDevicesUsingGET-default.json +4 -0
  87. package/entities/FirewallDataExternalController/mockdatafiles/getOriginalNamesUsingPOST-default.json +18 -0
  88. package/entities/FirewallDataExternalController/mockdatafiles/getTreeAndDisplayOfContainingGroupsUsingGET-default.json +6 -0
  89. package/entities/FirewallDataExternalController/schema.json +24 -0
  90. package/entities/IssuesCenterExternalController/action.json +25 -0
  91. package/entities/IssuesCenterExternalController/schema.json +19 -0
  92. package/entities/LicenseController/action.json +129 -0
  93. package/entities/LicenseController/schema.json +24 -0
  94. package/entities/LicensingExternalController/action.json +46 -0
  95. package/entities/LicensingExternalController/schema.json +20 -0
  96. package/entities/NetworkInterfacesExternalController/action.json +45 -0
  97. package/entities/NetworkInterfacesExternalController/mockdatafiles/getInterfacesUsingGET-default.json +4 -0
  98. package/entities/NetworkInterfacesExternalController/schema.json +20 -0
  99. package/entities/NetworkObjectExternalController/action.json +353 -0
  100. package/entities/NetworkObjectExternalController/mockdatafiles/findByContainerNameAndNameUsingGET-default.json +5 -0
  101. package/entities/NetworkObjectExternalController/mockdatafiles/findByNameAndContainerNameUsingGET-default.json +61 -0
  102. package/entities/NetworkObjectExternalController/mockdatafiles/findByOriginalOrCanonizedNameUsingPOST1-default.json +199 -0
  103. package/entities/NetworkObjectExternalController/mockdatafiles/findNetworkObjectsForQueryUsingPOST-default.json +208 -0
  104. package/entities/NetworkObjectExternalController/mockdatafiles/getApplicationProfilesUsingGET-default.json +4 -0
  105. package/entities/NetworkObjectExternalController/mockdatafiles/getObjectsUsingGET-default.json +101 -0
  106. package/entities/NetworkObjectExternalController/schema.json +35 -0
  107. package/entities/NetworkServicesExternalController/action.json +25 -0
  108. package/entities/NetworkServicesExternalController/schema.json +19 -0
  109. package/entities/PolicyOptimizationController/action.json +67 -0
  110. package/entities/PolicyOptimizationController/mockdatafiles/getDisabledRulesUsingGET-default.json +6041 -0
  111. package/entities/PolicyOptimizationController/mockdatafiles/getRulesWithoutCommentsUsingGET-default.json +17588 -0
  112. package/entities/PolicyOptimizationController/mockdatafiles/getRulesWithoutLoggingUsingGET-default.json +9295 -0
  113. package/entities/PolicyOptimizationController/schema.json +21 -0
  114. package/entities/ReportExternalController/action.json +87 -0
  115. package/entities/ReportExternalController/mockdatafiles/getReportIdsUsingGET-default.json +4 -0
  116. package/entities/ReportExternalController/schema.json +22 -0
  117. package/entities/RiskCheckExternalController/action.json +44 -0
  118. package/entities/RiskCheckExternalController/schema.json +20 -0
  119. package/entities/RuleExternalController/action.json +247 -0
  120. package/entities/RuleExternalController/mockdatafiles/findRuleIdByRuleNumberUsingPOST-default.json +5 -0
  121. package/entities/RuleExternalController/mockdatafiles/getAllRulesUsingGET-default.json +2482 -0
  122. package/entities/RuleExternalController/mockdatafiles/getRulesUsingPOST-default.json +2446 -0
  123. package/entities/RuleExternalController/schema.json +30 -0
  124. package/entities/RuleExternalControllerCompatible/action.json +25 -0
  125. package/entities/RuleExternalControllerCompatible/mockdatafiles/getRulesUsingGET-default.json +3 -0
  126. package/entities/RuleExternalControllerCompatible/schema.json +19 -0
  127. package/entities/RuleIdentifierExternalController/action.json +24 -0
  128. package/entities/RuleIdentifierExternalController/schema.json +19 -0
  129. package/entities/SecurityZonesExternalController/action.json +67 -0
  130. package/entities/SecurityZonesExternalController/schema.json +32 -0
  131. package/entities/SupportZipController/action.json +24 -0
  132. package/entities/SupportZipController/schema.json +19 -0
  133. package/entities/TrafficSimulationQueryExternalController/action.json +24 -0
  134. package/entities/TrafficSimulationQueryExternalController/schema.json +19 -0
  135. package/entities/TrustedTrafficDataExternalController/action.json +146 -0
  136. package/entities/TrustedTrafficDataExternalController/mockdatafiles/addTrustedTrafficDataUsingPOST-default.json +3 -0
  137. package/entities/TrustedTrafficDataExternalController/mockdatafiles/editTrustedTrafficDataUsingPUT-default.json +4 -0
  138. package/entities/TrustedTrafficDataExternalController/mockdatafiles/exportTrustedTrafficUsingGET-default.json +6 -0
  139. package/entities/TrustedTrafficDataExternalController/mockdatafiles/importTrustedTrafficFromFileUsingPOST-default.json +6 -0
  140. package/entities/TrustedTrafficDataExternalController/mockdatafiles/trustRiskRuleUsingPOST-default.json +4 -0
  141. package/entities/TrustedTrafficDataExternalController/schema.json +25 -0
  142. package/entities/UrlCategoriesController/action.json +227 -0
  143. package/entities/UrlCategoriesController/mockdatafiles/getUrlIpsUsingGET-default.json +6 -0
  144. package/entities/UrlCategoriesController/schema.json +40 -0
  145. package/entities/UsersExternalController/action.json +46 -0
  146. package/entities/UsersExternalController/schema.json +20 -0
  147. package/error.json +190 -0
  148. package/package.json +86 -0
  149. package/pronghorn.json +16879 -0
  150. package/propertiesDecorators.json +14 -0
  151. package/propertiesSchema.json +1248 -0
  152. package/refs?service=git-upload-pack +0 -0
  153. package/report/algosec_firewall_swagger.json +14731 -0
  154. package/report/creationReport.json +1325 -0
  155. package/sampleProperties.json +195 -0
  156. package/test/integration/adapterTestBasicGet.js +83 -0
  157. package/test/integration/adapterTestConnectivity.js +93 -0
  158. package/test/integration/adapterTestIntegration.js +5196 -0
  159. package/test/unit/adapterBaseTestUnit.js +949 -0
  160. package/test/unit/adapterTestUnit.js +6610 -0
  161. package/utils/adapterInfo.js +206 -0
  162. package/utils/addAuth.js +94 -0
  163. package/utils/artifactize.js +146 -0
  164. package/utils/basicGet.js +50 -0
  165. package/utils/checkMigrate.js +63 -0
  166. package/utils/entitiesToDB.js +178 -0
  167. package/utils/findPath.js +74 -0
  168. package/utils/methodDocumentor.js +225 -0
  169. package/utils/modify.js +154 -0
  170. package/utils/packModificationScript.js +35 -0
  171. package/utils/patches2bundledDeps.js +90 -0
  172. package/utils/pre-commit.sh +32 -0
  173. package/utils/removeHooks.js +20 -0
  174. package/utils/setup.js +33 -0
  175. package/utils/tbScript.js +246 -0
  176. package/utils/tbUtils.js +490 -0
  177. package/utils/testRunner.js +298 -0
  178. package/utils/troubleshootingAdapter.js +195 -0
  179. package/workflows/README.md +3 -0
@@ -0,0 +1,30 @@
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": "getRulesUsingPOST",
12
+ "enum": [
13
+ "getRulesUsingPOST",
14
+ "runAdvancedRuleSearchWithSlimResponseUsingPOST",
15
+ "runAdvancedRuleSearchUsingPOST",
16
+ "saveRuleDocUsingPOST",
17
+ "findByRuleIdAndDeviceUsingGET",
18
+ "findRuleIdByRuleNumberUsingPOST",
19
+ "firstOfGlobalSectionUsingPOST",
20
+ "firstOfSectionUsingPOST",
21
+ "getIntersectingRulesUsingPOST",
22
+ "isGlobalRuleExistUsingPOST",
23
+ "getRuleDocUsingGET",
24
+ "getAllRulesUsingGET"
25
+ ],
26
+ "external_name": "ph_request_type"
27
+ }
28
+ },
29
+ "definitions": {}
30
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getRulesUsingGET",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/rules?{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": "mockdatafiles/getRulesUsingGET-default.json"
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": "getRulesUsingGET",
12
+ "enum": [
13
+ "getRulesUsingGET"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getRulesByContextUsingPOST",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/ruleIdentifier/byContext?{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": "getRulesByContextUsingPOST",
12
+ "enum": [
13
+ "getRulesByContextUsingPOST"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getProfileZonesUsingGET1",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/security_zones?{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": "getProfilesListUsingGET",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/security_zones/get_profiles_list?{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": "getProfileZonesUsingGET",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/security_zones/{pathv1}/get_zones?{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
+ }
@@ -0,0 +1,32 @@
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": "getProfileZonesUsingGET1",
12
+ "enum": [
13
+ "getProfileZonesUsingGET1",
14
+ "getProfilesListUsingGET",
15
+ "getProfileZonesUsingGET"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ },
19
+ "profileName": {
20
+ "type": "string",
21
+ "description": "To get the Profile names, use GET /security_zones/get_profiles_list method from the security-zones-external-controller.",
22
+ "parse": false,
23
+ "encode": false,
24
+ "encrypt": {
25
+ "type": "AES",
26
+ "key": ""
27
+ },
28
+ "external_name": "profile_name"
29
+ }
30
+ },
31
+ "definitions": {}
32
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "downloadSupportZipUsingPOST",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/bridge/download/supportZip?{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": "downloadSupportZipUsingPOST",
12
+ "enum": [
13
+ "downloadSupportZipUsingPOST"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "trafficSimulationQueryUsingPOST",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/query?{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": "trafficSimulationQueryUsingPOST",
12
+ "enum": [
13
+ "trafficSimulationQueryUsingPOST"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "addTrustedTrafficDataUsingPOST",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/trustedTraffic?{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": "mockdatafiles/addTrustedTrafficDataUsingPOST-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getTrustedTrafficDataUsingGET",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/trustedTraffic/firewalls/{pathv1}?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": 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": "exportTrustedTrafficUsingGET",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/trustedTraffic/firewalls/{pathv1}/export?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": "mockdatafiles/exportTrustedTrafficUsingGET-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "trustRiskRuleUsingPOST",
67
+ "protocol": "REST",
68
+ "method": "POST",
69
+ "entitypath": "{base_path}/{version}/trustedTraffic/trustRiskyRule?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": "mockdatafiles/trustRiskRuleUsingPOST-default.json"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "importTrustedTrafficFromFileUsingPOST",
87
+ "protocol": "REST",
88
+ "method": "POST",
89
+ "entitypath": "{base_path}/{version}/trustedTraffic/uploadTrustedTrafficFile?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "FORM",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": "mockdatafiles/importTrustedTrafficFromFileUsingPOST-default.json"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "editTrustedTrafficDataUsingPUT",
107
+ "protocol": "REST",
108
+ "method": "PUT",
109
+ "entitypath": "{base_path}/{version}/trustedTraffic/{pathv1}?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": "mockdatafiles/editTrustedTrafficDataUsingPUT-default.json"
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "deleteTrustedTrafficUsingDELETE",
127
+ "protocol": "REST",
128
+ "method": "DELETE",
129
+ "entitypath": "{base_path}/{version}/trustedTraffic/{pathv1}?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "requestDatatype": "JSON",
135
+ "responseDatatype": "JSON",
136
+ "headers": {},
137
+ "responseObjects": [
138
+ {
139
+ "type": "default",
140
+ "key": "",
141
+ "mockFile": ""
142
+ }
143
+ ]
144
+ }
145
+ ]
146
+ }
@@ -0,0 +1,25 @@
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": "addTrustedTrafficDataUsingPOST",
12
+ "enum": [
13
+ "addTrustedTrafficDataUsingPOST",
14
+ "getTrustedTrafficDataUsingGET",
15
+ "exportTrustedTrafficUsingGET",
16
+ "trustRiskRuleUsingPOST",
17
+ "importTrustedTrafficFromFileUsingPOST",
18
+ "editTrustedTrafficDataUsingPUT",
19
+ "deleteTrustedTrafficUsingDELETE"
20
+ ],
21
+ "external_name": "ph_request_type"
22
+ }
23
+ },
24
+ "definitions": {}
25
+ }