@itentialopensource/adapter-zscaler 0.8.3 → 0.10.0

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 (134) hide show
  1. package/AUTH.md +19 -16
  2. package/BROKER.md +31 -19
  3. package/CALLS.md +1173 -20
  4. package/CHANGELOG.md +16 -0
  5. package/PROPERTIES.md +5 -0
  6. package/README.md +60 -63
  7. package/SYSTEMINFO.md +18 -6
  8. package/TAB1.md +8 -0
  9. package/TAB2.md +86 -1495
  10. package/adapter.js +17190 -0
  11. package/entities/AdminRoleManagement/action.json +126 -0
  12. package/entities/AdminRoleManagement/schema.json +24 -0
  13. package/entities/AppViews/action.json +46 -0
  14. package/entities/AppViews/mockdatafiles/getViewApps-default.json +40 -0
  15. package/entities/AppViews/mockdatafiles/getViews-default.json +16 -0
  16. package/entities/AppViews/schema.json +20 -0
  17. package/entities/Applications/action.json +66 -0
  18. package/entities/Applications/mockdatafiles/appsSearchGET-default.json +186 -0
  19. package/entities/Applications/schema.json +21 -0
  20. package/entities/BrowserIsolation/action.json +25 -0
  21. package/entities/BrowserIsolation/mockdatafiles/getCloudBrowserIsolationProfiles-default.json +20 -0
  22. package/entities/BrowserIsolation/schema.json +19 -0
  23. package/entities/DataLossPrevention/action.json +767 -0
  24. package/entities/DataLossPrevention/mockdatafiles/getDLPDictionarySummary-default.json +808 -0
  25. package/entities/DataLossPrevention/mockdatafiles/getDLPEngines-default.json +26 -0
  26. package/entities/DataLossPrevention/mockdatafiles/getDLPEnginesSummary-default.json +18 -0
  27. package/entities/DataLossPrevention/mockdatafiles/getDlpDictionaries-default.json +402 -0
  28. package/entities/DataLossPrevention/mockdatafiles/getICAPServerSummary-default.json +14 -0
  29. package/entities/DataLossPrevention/mockdatafiles/getICAPServers-default.json +20 -0
  30. package/entities/DataLossPrevention/mockdatafiles/getIncidentReceiverServerSummary-default.json +30 -0
  31. package/entities/DataLossPrevention/mockdatafiles/getIncidentReceiverServers-default.json +30 -0
  32. package/entities/DataLossPrevention/mockdatafiles/getPredefinedHierarchicalIdentifiersByDictionaryId-default.json +4 -0
  33. package/entities/DataLossPrevention/mockdatafiles/getProfiles-default.json +94 -0
  34. package/entities/DataLossPrevention/mockdatafiles/getRules-default.json +5556 -0
  35. package/entities/DataLossPrevention/mockdatafiles/getSchemaLite-default.json +52 -0
  36. package/entities/DataLossPrevention/mockdatafiles/getSchemas-default.json +379 -0
  37. package/entities/DataLossPrevention/mockdatafiles/getSummary-default.json +56 -0
  38. package/entities/DataLossPrevention/mockdatafiles/getWebDlpRulesLite-default.json +5758 -0
  39. package/entities/DataLossPrevention/mockdatafiles/gettemplates-default.json +34 -0
  40. package/entities/DataLossPrevention/schema.json +55 -0
  41. package/entities/DeviceGroups/action.json +67 -0
  42. package/entities/DeviceGroups/mockdatafiles/getDeviceGroups-default.json +20 -0
  43. package/entities/DeviceGroups/mockdatafiles/getDevices-default.json +26 -0
  44. package/entities/DeviceGroups/mockdatafiles/getDevicesLite-default.json +38 -0
  45. package/entities/DeviceGroups/schema.json +21 -0
  46. package/entities/EventLogs/action.json +86 -0
  47. package/entities/EventLogs/schema.json +22 -0
  48. package/entities/FirewallPolicies/action.json +889 -0
  49. package/entities/FirewallPolicies/mockdatafiles/getDestinationIpGroups-default.json +130 -0
  50. package/entities/FirewallPolicies/mockdatafiles/getDestinationIpGroupsLite-default.json +94 -0
  51. package/entities/FirewallPolicies/mockdatafiles/getDestinationIpv6Groups-default.json +111 -0
  52. package/entities/FirewallPolicies/mockdatafiles/getDestinationIpv6GroupsLite-default.json +20 -0
  53. package/entities/FirewallPolicies/mockdatafiles/getFirewallFilteringRules-default.json +3884 -0
  54. package/entities/FirewallPolicies/mockdatafiles/getNetowrkApplicationGroups-default.json +21 -0
  55. package/entities/FirewallPolicies/mockdatafiles/getNetowrkApplicationGroupsLite-default.json +49 -0
  56. package/entities/FirewallPolicies/mockdatafiles/getNetworkApplications-default.json +20 -0
  57. package/entities/FirewallPolicies/mockdatafiles/getNetworkServiceGroups-default.json +657 -0
  58. package/entities/FirewallPolicies/mockdatafiles/getNetworkServiceGroupsLite-default.json +361 -0
  59. package/entities/FirewallPolicies/mockdatafiles/getNetworkServices-default.json +206 -0
  60. package/entities/FirewallPolicies/mockdatafiles/getNetworkServicesLite-default.json +322 -0
  61. package/entities/FirewallPolicies/mockdatafiles/getSourceIpGroups-default.json +57 -0
  62. package/entities/FirewallPolicies/mockdatafiles/getSourceIpGroupsLite-default.json +17 -0
  63. package/entities/FirewallPolicies/mockdatafiles/getSourceIpv6Groups-default.json +54 -0
  64. package/entities/FirewallPolicies/mockdatafiles/getSourceIpv6GroupsLite-default.json +15 -0
  65. package/entities/FirewallPolicies/mockdatafiles/getTimeWindowSummary-default.json +42 -0
  66. package/entities/FirewallPolicies/mockdatafiles/getTimeWindows-default.json +32 -0
  67. package/entities/FirewallPolicies/schema.json +61 -0
  68. package/entities/ForwardingControlPolicy/action.json +208 -0
  69. package/entities/ForwardingControlPolicy/mockdatafiles/getForwardingRules-default.json +2183 -0
  70. package/entities/ForwardingControlPolicy/mockdatafiles/getZpaGateways-default.json +60 -0
  71. package/entities/ForwardingControlPolicy/schema.json +28 -0
  72. package/entities/IntermediateCACertificates/action.json +455 -0
  73. package/entities/IntermediateCACertificates/mockdatafiles/getCertificatesInReadyToUseState-default.json +70 -0
  74. package/entities/IntermediateCACertificates/mockdatafiles/getIntermediateCaCertificates-default.json +19 -0
  75. package/entities/IntermediateCACertificates/mockdatafiles/getIntermediateCaCertificatesLite-default.json +53 -0
  76. package/entities/IntermediateCACertificates/schema.json +40 -0
  77. package/entities/IoTReport/action.json +88 -0
  78. package/entities/IoTReport/mockdatafiles/getCategories-default.json +22 -0
  79. package/entities/IoTReport/mockdatafiles/getClassifications-default.json +12 -0
  80. package/entities/IoTReport/mockdatafiles/getDeviceTypes-default.json +7 -0
  81. package/entities/IoTReport/schema.json +22 -0
  82. package/entities/LocationManagement/action.json +130 -0
  83. package/entities/LocationManagement/mockdatafiles/getGroups-default.json +372 -0
  84. package/entities/LocationManagement/mockdatafiles/getGroups__v1-default.json +372 -0
  85. package/entities/LocationManagement/mockdatafiles/getGroups__v2-default.json +372 -0
  86. package/entities/LocationManagement/mockdatafiles/getSubLocations-default.json +465 -0
  87. package/entities/LocationManagement/mockdatafiles/getTopLocations-default.json +191 -0
  88. package/entities/LocationManagement/schema.json +24 -0
  89. package/entities/RuleLabels/action.json +106 -0
  90. package/entities/RuleLabels/mockdatafiles/getRuleLabels-default.json +59 -0
  91. package/entities/RuleLabels/schema.json +23 -0
  92. package/entities/SandboxSettings/action.json +66 -0
  93. package/entities/SandboxSettings/schema.json +21 -0
  94. package/entities/SandboxSubmissionAPI/action.json +44 -0
  95. package/entities/SandboxSubmissionAPI/schema.json +20 -0
  96. package/entities/ShadowITReport/action.json +106 -0
  97. package/entities/ShadowITReport/mockdatafiles/getAllCustomTags-default.json +10 -0
  98. package/entities/ShadowITReport/mockdatafiles/getCloudApplicationsLite-default.json +10 -0
  99. package/entities/ShadowITReport/schema.json +23 -0
  100. package/entities/TrafficForwarding/action.json +459 -0
  101. package/entities/TrafficForwarding/mockdatafiles/getAllGreTunnels-default.json +70 -0
  102. package/entities/TrafficForwarding/mockdatafiles/getAllStaticIPs-default.json +90 -0
  103. package/entities/TrafficForwarding/mockdatafiles/getDns64Prefixes-default.json +34 -0
  104. package/entities/TrafficForwarding/mockdatafiles/getIPGWDetails-default.json +32 -0
  105. package/entities/TrafficForwarding/mockdatafiles/getNat64Prefixes-default.json +18 -0
  106. package/entities/TrafficForwarding/mockdatafiles/getRecommendedGreVips-default.json +20 -0
  107. package/entities/TrafficForwarding/mockdatafiles/getRecommendedVipsGroupedByDC-default.json +82 -0
  108. package/entities/TrafficForwarding/mockdatafiles/getRegionsByPrefix-default.json +26 -0
  109. package/entities/TrafficForwarding/mockdatafiles/getVpnCredentials-default.json +82 -0
  110. package/entities/TrafficForwarding/mockdatafiles/getVpnCredentials__v1-default.json +82 -0
  111. package/entities/TrafficForwarding/mockdatafiles/getVpnCredentials__v2-default.json +82 -0
  112. package/entities/TrafficForwarding/mockdatafiles/getZscalerNodesDetails-default.json +170 -0
  113. package/entities/TrafficForwarding/mockdatafiles/validateAndGetAvailableInternalIpRanges-default.json +18 -0
  114. package/entities/TrafficForwarding/schema.json +40 -0
  115. package/entities/URLFilteringPolicies/action.json +106 -0
  116. package/entities/URLFilteringPolicies/mockdatafiles/getUrlFilteringRules-default.json +2918 -0
  117. package/entities/URLFilteringPolicies/schema.json +23 -0
  118. package/entities/UserAuthenticationSettings/action.json +45 -0
  119. package/entities/UserAuthenticationSettings/schema.json +20 -0
  120. package/entities/WorkloadGroups/action.json +25 -0
  121. package/entities/WorkloadGroups/mockdatafiles/getWorkloadGroups-default.json +396 -0
  122. package/entities/WorkloadGroups/schema.json +19 -0
  123. package/metadata.json +29 -7
  124. package/package.json +5 -7
  125. package/pronghorn.json +17256 -0
  126. package/propertiesSchema.json +5 -0
  127. package/refs?service=git-upload-pack +0 -0
  128. package/report/adapter-openapi.json +17120 -2
  129. package/report/adapter-openapi.yaml +13753 -815
  130. package/report/adapterInfo.json +7 -7
  131. package/report/updateReport1715610332922.json +120 -0
  132. package/sampleProperties.json +40 -28
  133. package/test/integration/adapterTestIntegration.js +4883 -0
  134. package/test/unit/adapterTestUnit.js +3847 -2
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.7.0",
3
- "configLines": 4837,
2
+ "version": "0.9.0",
3
+ "configLines": 22098,
4
4
  "scriptLines": 1783,
5
- "codeLines": 5890,
6
- "testLines": 5930,
7
- "testCases": 279,
8
- "totalCodeLines": 13603,
9
- "wfTasks": 82
5
+ "codeLines": 23080,
6
+ "testLines": 14658,
7
+ "testCases": 746,
8
+ "totalCodeLines": 39521,
9
+ "wfTasks": 268
10
10
  }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 0
8
+ },
9
+ {
10
+ "owner": "errorJson",
11
+ "description": "Adapter errors no longer available for use",
12
+ "value": 0
13
+ },
14
+ {
15
+ "owner": "errorJson",
16
+ "description": "Adapter errors that have been updated (e.g. recommendation changes)",
17
+ "value": 31
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 16
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Number of development dependencies",
27
+ "value": 6
28
+ },
29
+ {
30
+ "owner": "packageJson",
31
+ "description": "Number of npm scripts",
32
+ "value": 21
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.3.10"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 79
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 344
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the SUMMARY.md",
52
+ "value": 9
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the PROPERTIES.md",
57
+ "value": 647
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the ENHANCE.md",
67
+ "value": 70
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the BROKER.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "unitTestJS",
76
+ "description": "Number of lines of code in unit tests",
77
+ "value": 6344
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 424
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 7062
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 252
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1453
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 14859
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 676
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }
@@ -14,7 +14,7 @@
14
14
  "stub": true,
15
15
  "protocol": "https",
16
16
  "authentication": {
17
- "auth_method": "basic user_password",
17
+ "auth_method": "request_token",
18
18
  "username": "exampleUsername",
19
19
  "password": "examplePassword",
20
20
  "apiKey": "exampleApiKey",
@@ -22,8 +22,8 @@
22
22
  "token_timeout": 180000,
23
23
  "token_cache": "local",
24
24
  "invalid_token_error": 401,
25
- "auth_field": "header.headers.Authorization",
26
- "auth_field_format": "Basic {b64}{username}:{password}{/b64}",
25
+ "auth_field": "header.headers.Cookie",
26
+ "auth_field_format": "JSESSIONID={token}",
27
27
  "auth_logging": false,
28
28
  "client_id": "",
29
29
  "client_secret": "",
@@ -115,30 +115,32 @@
115
115
  }
116
116
  },
117
117
  "devicebroker": {
118
+ "enabled": false,
118
119
  "getDevice": [
119
120
  {
120
- "path": "/get/devices/{id}",
121
+ "path": "/not/mapped",
121
122
  "method": "GET",
122
123
  "query": {},
123
124
  "body": {},
124
125
  "headers": {},
125
126
  "handleFailure": "ignore",
126
127
  "requestFields": {
127
- "id": "name"
128
+ "insample": "{port}"
128
129
  },
129
130
  "responseDatakey": "",
130
131
  "responseFields": {
131
- "name": "host",
132
- "ostype": "os",
133
- "ostypePrefix": "system-",
134
- "ipaddress": "attributes.ipaddr",
135
- "port": "443"
132
+ "name": "{this}{||}{that}",
133
+ "ostype": "{osfield}",
134
+ "ostypePrefix": "meraki-",
135
+ "port": "{port}",
136
+ "ipaddress": "{ip_addr}",
137
+ "serial" : "{serial}"
136
138
  }
137
139
  }
138
140
  ],
139
141
  "getDevicesFiltered": [
140
142
  {
141
- "path": "/get/devices",
143
+ "path": "/not/mapped",
142
144
  "method": "GET",
143
145
  "pagination": {
144
146
  "offsetVar": "",
@@ -153,42 +155,44 @@
153
155
  "requestFields": {},
154
156
  "responseDatakey": "",
155
157
  "responseFields": {
156
- "name": "host",
157
- "ostype": "os",
158
- "ostypePrefix": "system-",
159
- "ipaddress": "attributes.ipaddr",
160
- "port": "443"
158
+ "name": "{this}{||}{that}",
159
+ "ostype": "{osfield}",
160
+ "ostypePrefix": "meraki-",
161
+ "port": "{port}",
162
+ "ipaddress": "{ip_addr}",
163
+ "serial" : "{serial}",
164
+ "id": "{myid}"
161
165
  }
162
166
  }
163
167
  ],
164
168
  "isAlive": [
165
169
  {
166
- "path": "/get/devices/{id}/status",
170
+ "path": "/not/mapped/{devID}",
167
171
  "method": "GET",
168
172
  "query": {},
169
173
  "body": {},
170
174
  "headers": {},
171
175
  "handleFailure": "ignore",
172
176
  "requestFields": {
173
- "id": "name"
177
+ "devID": "{id}"
174
178
  },
175
179
  "responseDatakey": "",
176
180
  "responseFields": {
177
- "status": "status",
178
- "statusValue": "online"
181
+ "status": "return2xx",
182
+ "statusValue": "AD.200"
179
183
  }
180
184
  }
181
185
  ],
182
186
  "getConfig": [
183
187
  {
184
- "path": "/get/devices/{id}/configPart1",
188
+ "path": "/not/mapped/{devID}",
185
189
  "method": "GET",
186
190
  "query": {},
187
191
  "body": {},
188
192
  "headers": {},
189
193
  "handleFailure": "ignore",
190
194
  "requestFields": {
191
- "id": "name"
195
+ "devID": "{id}"
192
196
  },
193
197
  "responseDatakey": "",
194
198
  "responseFields": {}
@@ -196,7 +200,7 @@
196
200
  ],
197
201
  "getCount": [
198
202
  {
199
- "path": "/get/devices",
203
+ "path": "/not/mapped",
200
204
  "method": "GET",
201
205
  "query": {},
202
206
  "body": {},
@@ -212,15 +216,15 @@
212
216
  "enabled": false,
213
217
  "entities": [
214
218
  {
215
- "entityType": "",
216
- "frequency": 1440,
219
+ "entityType": "device",
220
+ "frequency": 3600,
217
221
  "flushOnFail": false,
218
- "limit": 1000,
222
+ "limit": 10000,
219
223
  "retryAttempts": 5,
220
224
  "sort": true,
221
225
  "populate": [
222
226
  {
223
- "path": "",
227
+ "path": "/not/mapped",
224
228
  "method": "GET",
225
229
  "pagination": {
226
230
  "offsetVar": "",
@@ -234,7 +238,15 @@
234
238
  "handleFailure": "ignore",
235
239
  "requestFields": {},
236
240
  "responseDatakey": "",
237
- "responseFields": {}
241
+ "responseFields": {
242
+ "name": "{this}{||}{that}",
243
+ "ostype": "{osfield}",
244
+ "ostypePrefix": "meraki-",
245
+ "port": "{port}",
246
+ "ipaddress": "{ip_addr}",
247
+ "serial" : "{serial}",
248
+ "id": "{myid}"
249
+ }
238
250
  }
239
251
  ],
240
252
  "cachedTasks": [