@itentialopensource/adapter-zero_networks 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 (183) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +5576 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +13 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +346 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TAB1.md +5 -0
  22. package/TAB2.md +6798 -0
  23. package/TROUBLESHOOT.md +47 -0
  24. package/adapter.js +78448 -0
  25. package/adapterBase.js +1452 -0
  26. package/entities/.generic/action.json +214 -0
  27. package/entities/.generic/schema.json +28 -0
  28. package/entities/.system/action.json +50 -0
  29. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  30. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  31. package/entities/.system/schema.json +19 -0
  32. package/entities/.system/schemaTokenReq.json +53 -0
  33. package/entities/.system/schemaTokenResp.json +53 -0
  34. package/entities/Activities/action.json +295 -0
  35. package/entities/Activities/mockdatafiles/rPCActivitiesInterfaceCandidatesFiltersList-default.json +126 -0
  36. package/entities/Activities/mockdatafiles/rPCActivitiesOperationFiltersList-default.json +24 -0
  37. package/entities/Activities/schema.json +87 -0
  38. package/entities/Asset/action.json +3528 -0
  39. package/entities/Asset/mockdatafiles/assetRPCActivitiesInterfaceCandidatesFiltersList-default.json +52 -0
  40. package/entities/Asset/mockdatafiles/assetRPCActivitiesOperationFiltersList-default.json +78 -0
  41. package/entities/Asset/schema.json +288 -0
  42. package/entities/AssetOTIoT/action.json +3206 -0
  43. package/entities/AssetOTIoT/mockdatafiles/assetOTRPCActivitiesInterfaceCandidatesFiltersList-default.json +32 -0
  44. package/entities/AssetOTIoT/mockdatafiles/assetOTRPCActivitiesOperationFiltersList-default.json +46 -0
  45. package/entities/AssetOTIoT/schema.json +272 -0
  46. package/entities/Assets/action.json +1336 -0
  47. package/entities/Assets/mockdatafiles/assetsStatisticsGet-default.json +39 -0
  48. package/entities/Assets/schema.json +138 -0
  49. package/entities/AssetsOTIoT/action.json +106 -0
  50. package/entities/AssetsOTIoT/schema.json +78 -0
  51. package/entities/Audit/action.json +87 -0
  52. package/entities/Audit/schema.json +77 -0
  53. package/entities/Auth/action.json +64 -0
  54. package/entities/Auth/schema.json +21 -0
  55. package/entities/Entity/action.json +67 -0
  56. package/entities/Entity/schema.json +21 -0
  57. package/entities/Group/action.json +2565 -0
  58. package/entities/Group/schema.json +241 -0
  59. package/entities/Groups/action.json +378 -0
  60. package/entities/Groups/schema.json +124 -0
  61. package/entities/GroupsActiveDirectory/action.json +66 -0
  62. package/entities/GroupsActiveDirectory/schema.json +21 -0
  63. package/entities/GroupsCustom/action.json +125 -0
  64. package/entities/GroupsCustom/schema.json +68 -0
  65. package/entities/GroupsTags/action.json +24 -0
  66. package/entities/GroupsTags/schema.json +19 -0
  67. package/entities/MFA/action.json +46 -0
  68. package/entities/MFA/schema.json +20 -0
  69. package/entities/MFAInbound/action.json +379 -0
  70. package/entities/MFAInbound/schema.json +113 -0
  71. package/entities/MFAOutbound/action.json +379 -0
  72. package/entities/MFAOutbound/schema.json +102 -0
  73. package/entities/Profile/action.json +46 -0
  74. package/entities/Profile/schema.json +20 -0
  75. package/entities/Rules/action.json +227 -0
  76. package/entities/Rules/schema.json +29 -0
  77. package/entities/RulesIdentity/action.json +273 -0
  78. package/entities/RulesIdentity/schema.json +119 -0
  79. package/entities/RulesInboundAllow/action.json +293 -0
  80. package/entities/RulesInboundAllow/schema.json +120 -0
  81. package/entities/RulesInboundBlock/action.json +293 -0
  82. package/entities/RulesInboundBlock/schema.json +120 -0
  83. package/entities/RulesOutboundAllow/action.json +314 -0
  84. package/entities/RulesOutboundAllow/schema.json +121 -0
  85. package/entities/RulesOutboundBlock/action.json +293 -0
  86. package/entities/RulesOutboundBlock/schema.json +120 -0
  87. package/entities/RulesRPC/action.json +315 -0
  88. package/entities/RulesRPC/schema.json +121 -0
  89. package/entities/Sessions/action.json +66 -0
  90. package/entities/Sessions/schema.json +54 -0
  91. package/entities/Settings/action.json +66 -0
  92. package/entities/Settings/schema.json +21 -0
  93. package/entities/SettingsAI/action.json +189 -0
  94. package/entities/SettingsAI/schema.json +60 -0
  95. package/entities/SettingsAIRulesReview/action.json +45 -0
  96. package/entities/SettingsAIRulesReview/schema.json +20 -0
  97. package/entities/SettingsAccessTokens/action.json +85 -0
  98. package/entities/SettingsAccessTokens/schema.json +22 -0
  99. package/entities/SettingsActivities/action.json +45 -0
  100. package/entities/SettingsActivities/schema.json +20 -0
  101. package/entities/SettingsAssetManagement/action.json +533 -0
  102. package/entities/SettingsAssetManagement/schema.json +88 -0
  103. package/entities/SettingsAssetManagers/action.json +65 -0
  104. package/entities/SettingsAssetManagers/schema.json +43 -0
  105. package/entities/SettingsBreakGlass/action.json +45 -0
  106. package/entities/SettingsBreakGlass/schema.json +20 -0
  107. package/entities/SettingsCloudConnector/action.json +85 -0
  108. package/entities/SettingsCloudConnector/mockdatafiles/cloudConnectorAccessTokensCreate-default.json +9 -0
  109. package/entities/SettingsCloudConnector/mockdatafiles/cloudConnectorAccessTokensRegenerate-default.json +9 -0
  110. package/entities/SettingsCloudConnector/schema.json +22 -0
  111. package/entities/SettingsConnect/action.json +395 -0
  112. package/entities/SettingsConnect/schema.json +81 -0
  113. package/entities/SettingsFirewall/action.json +168 -0
  114. package/entities/SettingsFirewall/schema.json +26 -0
  115. package/entities/SettingsIdentityProviders/action.json +126 -0
  116. package/entities/SettingsIdentityProviders/schema.json +24 -0
  117. package/entities/SettingsInternalSubnets/action.json +86 -0
  118. package/entities/SettingsInternalSubnets/schema.json +22 -0
  119. package/entities/SettingsLearning/action.json +45 -0
  120. package/entities/SettingsLearning/schema.json +20 -0
  121. package/entities/SettingsMFA/action.json +86 -0
  122. package/entities/SettingsMFA/schema.json +22 -0
  123. package/entities/SettingsMailNotifications/action.json +45 -0
  124. package/entities/SettingsMailNotifications/schema.json +20 -0
  125. package/entities/SettingsPortalSecurity/action.json +45 -0
  126. package/entities/SettingsPortalSecurity/schema.json +20 -0
  127. package/entities/SettingsPrivilegedPorts/action.json +25 -0
  128. package/entities/SettingsPrivilegedPorts/schema.json +19 -0
  129. package/entities/SettingsProtectionPolicies/action.json +106 -0
  130. package/entities/SettingsProtectionPolicies/schema.json +56 -0
  131. package/entities/SettingsPushNotifications/action.json +85 -0
  132. package/entities/SettingsPushNotifications/schema.json +22 -0
  133. package/entities/SettingsRoles/action.json +86 -0
  134. package/entities/SettingsRoles/schema.json +55 -0
  135. package/entities/SettingsSegementServers/action.json +25 -0
  136. package/entities/SettingsSegementServers/schema.json +19 -0
  137. package/entities/SettingsServiceNow/action.json +85 -0
  138. package/entities/SettingsServiceNow/mockdatafiles/serviceNowAccessTokensCreate-default.json +9 -0
  139. package/entities/SettingsServiceNow/mockdatafiles/serviceNowAccessTokensRegenerate-default.json +9 -0
  140. package/entities/SettingsServiceNow/schema.json +22 -0
  141. package/entities/SettingsTrustedInternet/action.json +229 -0
  142. package/entities/SettingsTrustedInternet/schema.json +29 -0
  143. package/entities/SettingsZPA/action.json +45 -0
  144. package/entities/SettingsZPA/schema.json +20 -0
  145. package/entities/User/action.json +688 -0
  146. package/entities/User/schema.json +150 -0
  147. package/entities/Users/action.json +479 -0
  148. package/entities/Users/schema.json +107 -0
  149. package/error.json +190 -0
  150. package/metadata.json +56 -0
  151. package/package.json +83 -0
  152. package/pronghorn.json +55566 -0
  153. package/propertiesDecorators.json +14 -0
  154. package/propertiesSchema.json +1569 -0
  155. package/refs?service=git-upload-pack +0 -0
  156. package/report/ZeroNetworks-openapi (1).yaml-OpenApi3Json.json +94523 -0
  157. package/report/adapterInfo.json +10 -0
  158. package/report/creationReport.json +5425 -0
  159. package/sampleProperties.json +256 -0
  160. package/test/integration/adapterTestBasicGet.js +83 -0
  161. package/test/integration/adapterTestConnectivity.js +142 -0
  162. package/test/integration/adapterTestIntegration.js +23777 -0
  163. package/test/unit/adapterBaseTestUnit.js +1024 -0
  164. package/test/unit/adapterTestUnit.js +35451 -0
  165. package/utils/adapterInfo.js +206 -0
  166. package/utils/addAuth.js +94 -0
  167. package/utils/artifactize.js +146 -0
  168. package/utils/basicGet.js +50 -0
  169. package/utils/checkMigrate.js +63 -0
  170. package/utils/entitiesToDB.js +179 -0
  171. package/utils/findPath.js +74 -0
  172. package/utils/methodDocumentor.js +273 -0
  173. package/utils/modify.js +152 -0
  174. package/utils/packModificationScript.js +35 -0
  175. package/utils/patches2bundledDeps.js +90 -0
  176. package/utils/pre-commit.sh +32 -0
  177. package/utils/removeHooks.js +20 -0
  178. package/utils/setup.js +33 -0
  179. package/utils/taskMover.js +309 -0
  180. package/utils/tbScript.js +239 -0
  181. package/utils/tbUtils.js +489 -0
  182. package/utils/testRunner.js +298 -0
  183. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,39 @@
1
+ {
2
+ "item": {
3
+ "totalCount": 5,
4
+ "deletedCount": 4,
5
+ "protectedCount": 2,
6
+ "queuedCount": 7,
7
+ "monitoredCount": 2,
8
+ "protectedDueToProtectionPolicyCount": 1,
9
+ "queuedDueToProtectionPolicyCount": 9,
10
+ "forcedUnprotectedCount": 8,
11
+ "removingProtectionCount": 10,
12
+ "forceRemovingProtectionCount": 8,
13
+ "addingProtectionCount": 1,
14
+ "forceAddingProtectionCount": 5,
15
+ "notProtectedLink": [
16
+ {
17
+ "id": "string",
18
+ "excludeValues": [
19
+ "string",
20
+ "string",
21
+ "string",
22
+ "string",
23
+ "string",
24
+ "string",
25
+ "string",
26
+ "string"
27
+ ],
28
+ "includeValues": [
29
+ "string",
30
+ "string",
31
+ "string",
32
+ "string",
33
+ "string",
34
+ "string"
35
+ ]
36
+ }
37
+ ]
38
+ }
39
+ }
@@ -0,0 +1,138 @@
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": "assetsList",
12
+ "enum": [
13
+ "assetsList",
14
+ "assetsActiveSet",
15
+ "assetsBreakGlassActivate",
16
+ "assetsBreakGlassDeactivate",
17
+ "assetsInactiveSet",
18
+ "assetsNetworkSegmentProtect",
19
+ "assetsNetworkSegmentValidate",
20
+ "assetsNetworkQueue",
21
+ "assetsExtendNetworkQueue",
22
+ "assetsNetworkSegmentUnprotect",
23
+ "assetsNetworkUnprotectValidate",
24
+ "assetsIdentityProtect",
25
+ "assetsIdentityProtectValidate",
26
+ "assetsIdentityUnprotect",
27
+ "assetsIdentityUnprotectValidate",
28
+ "assetsIdentitySegmentedList",
29
+ "assetsIdentityProtectedExport",
30
+ "assetsIdentityProtectedExportGet",
31
+ "assetsIdentitySegmentedFiltersList",
32
+ "assetsInactiveList",
33
+ "assetsInactiveExport",
34
+ "assetsInactiveExportGet",
35
+ "assetsInactiveFiltersList",
36
+ "assetsRpcMonitoringAdd",
37
+ "assetsRpcSegmentAdd",
38
+ "assetsRpcMonitoringDelete",
39
+ "assetsRpcSegmentDelete",
40
+ "assetsExport",
41
+ "assetsExportGet",
42
+ "assetsFiltersList",
43
+ "assetsScriptsFixWmi",
44
+ "assetsScriptsPowerShellTestUdpNetConnectionGet",
45
+ "assetsScriptsPythonTestUdpNetConnectionGet",
46
+ "assetsLinuxCreate",
47
+ "assetBreakGlassActivate",
48
+ "assetBreakGlassDeactivate",
49
+ "assetsMonitoredList",
50
+ "assetsMonitoredExport",
51
+ "assetsMonitoredExportGet",
52
+ "assetsMonitoredFiltersList",
53
+ "assetsOtNetworkQueue",
54
+ "assetsOtExtendNetworkQueue",
55
+ "assetsOTExport",
56
+ "assetsOTExportGet",
57
+ "assetsProtectedList",
58
+ "assetsProtectedExport",
59
+ "assetsProtectedExportGet",
60
+ "assetsProtectedFiltersList",
61
+ "assetsProtectedSearch",
62
+ "assetsNetworkQueuedList",
63
+ "assetsNetworkQueuedExport",
64
+ "assetsNetworkQueuedExportGet",
65
+ "assetsNetworkQueuedFiltersList",
66
+ "assetsRPCMonitoredList",
67
+ "assetsRPCMonitoredExport",
68
+ "assetsRPCMonitoredExportGet",
69
+ "assetsRPCMonitoredFiltersList",
70
+ "assetsRPCSegmentedList",
71
+ "assetsRPCSegmentedExport",
72
+ "assetsRPCSegmentedExportGet",
73
+ "assetsRPCSegmentedFiltersList",
74
+ "assetsSearch",
75
+ "assetsStatesStatisticsGet",
76
+ "assetsStatisticsGet",
77
+ "usersManagedAssetsDelete"
78
+ ],
79
+ "external_name": "ph_request_type"
80
+ },
81
+ "limit": {
82
+ "type": "number",
83
+ "description": "Limit the return results",
84
+ "parse": false,
85
+ "encode": false,
86
+ "encrypt": {
87
+ "type": "AES",
88
+ "key": ""
89
+ },
90
+ "external_name": "_limit"
91
+ },
92
+ "filters": {
93
+ "type": "string",
94
+ "description": "JSON string URI encoded set of fiters",
95
+ "parse": false,
96
+ "encode": false,
97
+ "encrypt": {
98
+ "type": "AES",
99
+ "key": ""
100
+ },
101
+ "external_name": "_filters"
102
+ },
103
+ "offset": {
104
+ "type": "number",
105
+ "description": "Used to page through results",
106
+ "parse": false,
107
+ "encode": false,
108
+ "encrypt": {
109
+ "type": "AES",
110
+ "key": ""
111
+ },
112
+ "external_name": "_offset"
113
+ },
114
+ "withCount": {
115
+ "type": "boolean",
116
+ "description": "return count of objects",
117
+ "parse": false,
118
+ "encode": false,
119
+ "encrypt": {
120
+ "type": "AES",
121
+ "key": ""
122
+ },
123
+ "external_name": "with_count"
124
+ },
125
+ "orderColumns": {
126
+ "type": "string",
127
+ "description": "what column to order on",
128
+ "parse": false,
129
+ "encode": false,
130
+ "encrypt": {
131
+ "type": "AES",
132
+ "key": ""
133
+ },
134
+ "external_name": "orderColumns[]"
135
+ }
136
+ },
137
+ "definitions": {}
138
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "assetsOTList",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/assets/ot?{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": "assetsOTCreate",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/assets/ot?{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": "assetsOTNetworkSegmentProtect",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/assets/ot/actions/protect?{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": "assetsOTNetworkSegmentUnprotect",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/assets/ot/actions/unprotect?{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": "assetsOTFiltersList",
86
+ "protocol": "REST",
87
+ "method": "GET",
88
+ "entitypath": "{base_path}/{version}/assets/ot/filters?{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
+ }
@@ -0,0 +1,78 @@
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": "assetsOTList",
12
+ "enum": [
13
+ "assetsOTList",
14
+ "assetsOTCreate",
15
+ "assetsOTNetworkSegmentProtect",
16
+ "assetsOTNetworkSegmentUnprotect",
17
+ "assetsOTFiltersList"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ },
21
+ "limit": {
22
+ "type": "number",
23
+ "description": "Limit the return results",
24
+ "parse": false,
25
+ "encode": false,
26
+ "encrypt": {
27
+ "type": "AES",
28
+ "key": ""
29
+ },
30
+ "external_name": "_limit"
31
+ },
32
+ "offset": {
33
+ "type": "number",
34
+ "description": "Used to page through results",
35
+ "parse": false,
36
+ "encode": false,
37
+ "encrypt": {
38
+ "type": "AES",
39
+ "key": ""
40
+ },
41
+ "external_name": "_offset"
42
+ },
43
+ "filters": {
44
+ "type": "string",
45
+ "description": "JSON string URI encoded set of fiters",
46
+ "parse": false,
47
+ "encode": false,
48
+ "encrypt": {
49
+ "type": "AES",
50
+ "key": ""
51
+ },
52
+ "external_name": "_filters"
53
+ },
54
+ "withCount": {
55
+ "type": "boolean",
56
+ "description": "return count of objects",
57
+ "parse": false,
58
+ "encode": false,
59
+ "encrypt": {
60
+ "type": "AES",
61
+ "key": ""
62
+ },
63
+ "external_name": "with_count"
64
+ },
65
+ "orderColumns": {
66
+ "type": "string",
67
+ "description": "what column to order on",
68
+ "parse": false,
69
+ "encode": false,
70
+ "encrypt": {
71
+ "type": "AES",
72
+ "key": ""
73
+ },
74
+ "external_name": "orderColumns[]"
75
+ }
76
+ },
77
+ "definitions": {}
78
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "auditsList",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/audit?{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": "auditsExport",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/audit/export?{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": "auditExportGet",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/audit/export/csv/{pathv1}?{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": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "auditsFiltersList",
67
+ "protocol": "REST",
68
+ "method": "GET",
69
+ "entitypath": "{base_path}/{version}/audit/filters?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "sendGetBody": false,
75
+ "requestDatatype": "JSON",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": ""
83
+ }
84
+ ]
85
+ }
86
+ ]
87
+ }
@@ -0,0 +1,77 @@
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": "auditsList",
12
+ "enum": [
13
+ "auditsList",
14
+ "auditsExport",
15
+ "auditExportGet",
16
+ "auditsFiltersList"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ },
20
+ "limit": {
21
+ "type": "number",
22
+ "description": "Limit the return results",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "_limit"
30
+ },
31
+ "cursor": {
32
+ "type": "number",
33
+ "description": "cursor position to start at",
34
+ "parse": false,
35
+ "encode": false,
36
+ "encrypt": {
37
+ "type": "AES",
38
+ "key": ""
39
+ },
40
+ "external_name": "_cursor"
41
+ },
42
+ "search": {
43
+ "type": "string",
44
+ "description": "Test to search for",
45
+ "parse": false,
46
+ "encode": false,
47
+ "encrypt": {
48
+ "type": "AES",
49
+ "key": ""
50
+ },
51
+ "external_name": "_search"
52
+ },
53
+ "entityId": {
54
+ "type": "string",
55
+ "description": "entityId to filter on",
56
+ "parse": false,
57
+ "encode": false,
58
+ "encrypt": {
59
+ "type": "AES",
60
+ "key": ""
61
+ },
62
+ "external_name": "_entityId"
63
+ },
64
+ "filters": {
65
+ "type": "string",
66
+ "description": "JSON string URI encoded set of fiters",
67
+ "parse": false,
68
+ "encode": false,
69
+ "encrypt": {
70
+ "type": "AES",
71
+ "key": ""
72
+ },
73
+ "external_name": "_filters"
74
+ }
75
+ },
76
+ "definitions": {}
77
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "authChallengePOST",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/auth/challenge?{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": "authLoginPOST",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/auth/login?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "authLogoutPOST",
45
+ "protocol": "REST",
46
+ "method": "POST",
47
+ "entitypath": "{base_path}/{version}/auth/logout?{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
+ }
@@ -0,0 +1,21 @@
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": "authChallengePOST",
12
+ "enum": [
13
+ "authChallengePOST",
14
+ "authLoginPOST",
15
+ "authLogoutPOST"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "entityEncodeIP",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/entities/encode-ip?{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": "entityEncodeIPRange",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/entities/encode-ip-range?{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": "entityEncodeSubnet",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/entities/encode-subnet?{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
+ }