@itentialopensource/adapter-aruba_central 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 (189) 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 +170 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +23717 -0
  23. package/adapterBase.js +1787 -0
  24. package/adapter_modifications/README.md +59 -0
  25. package/adapter_modifications/specificCallScript.js +97 -0
  26. package/adapter_modifications/update.js +532 -0
  27. package/adapter_modifications/updateFiles/components/adapter.js +164 -0
  28. package/adapter_modifications/updateFiles/components/entities/Installers/action.json +22 -0
  29. package/adapter_modifications/updateFiles/components/entities/Installers/mockdatafiles/mockdata.json +1 -0
  30. package/adapter_modifications/updateFiles/components/entities/Installers/schema.json +20 -0
  31. package/adapter_modifications/updateFiles/components/entities/Sites/action.json +22 -0
  32. package/adapter_modifications/updateFiles/components/entities/Sites/mockdatafiles/mockdata.json +1 -0
  33. package/adapter_modifications/updateFiles/components/entities/Sites/schema.json +20 -0
  34. package/adapter_modifications/updateFiles/components/methods.json +204 -0
  35. package/adapter_modifications/updateFiles/components/pronghorn.json +77 -0
  36. package/adapter_modifications/updateFiles/components/test/integration/adapterTestIntegration.js +76 -0
  37. package/adapter_modifications/updateFiles/components/test/unit/adapterTestUnit.js +58 -0
  38. package/entities/.generic/action.json +214 -0
  39. package/entities/.generic/schema.json +28 -0
  40. package/entities/.system/action.json +50 -0
  41. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  42. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  43. package/entities/.system/schema.json +19 -0
  44. package/entities/.system/schemaTokenReq.json +53 -0
  45. package/entities/.system/schemaTokenResp.json +53 -0
  46. package/entities/AOSS/action.json +168 -0
  47. package/entities/AOSS/mockdatafiles/apiHppcSwitchGetDevicePorts-default.json +17 -0
  48. package/entities/AOSS/mockdatafiles/apiHppcSwitchGetDeviceVlans-default.json +65 -0
  49. package/entities/AOSS/mockdatafiles/apiHppcSwitchGetGroupPorts-default.json +17 -0
  50. package/entities/AOSS/mockdatafiles/apiHppcSwitchGetGroupVlans-default.json +125 -0
  51. package/entities/AOSS/schema.json +26 -0
  52. package/entities/AP/action.json +150 -0
  53. package/entities/AP/schema.json +135 -0
  54. package/entities/APConfiguration/action.json +394 -0
  55. package/entities/APConfiguration/mockdatafiles/apiApClisGetApSettingsClis-default.json +3 -0
  56. package/entities/APConfiguration/mockdatafiles/apiApClisGetConfigurationClis-default.json +3 -0
  57. package/entities/APConfiguration/mockdatafiles/apiApClisGetDirtyDiff-default.json +10 -0
  58. package/entities/APConfiguration/mockdatafiles/apiApClisGetSwarmVariables-default.json +112 -0
  59. package/entities/APConfiguration/mockdatafiles/apiSystemConfigGetSystemConfig-default.json +10 -0
  60. package/entities/APConfiguration/schema.json +37 -0
  61. package/entities/APSettings/action.json +86 -0
  62. package/entities/APSettings/mockdatafiles/apiApSettingsGetApSettings-default.json +4 -0
  63. package/entities/APSettings/mockdatafiles/apiApSettingsGetApSettingsV2-default.json +5 -0
  64. package/entities/APSettings/schema.json +22 -0
  65. package/entities/CXConfiguration/action.json +250 -0
  66. package/entities/CXConfiguration/schema.json +30 -0
  67. package/entities/CaptivePortalLogo/action.json +65 -0
  68. package/entities/CaptivePortalLogo/mockdatafiles/apiCpLogoGetCpLogos-default.json +21 -0
  69. package/entities/CaptivePortalLogo/schema.json +21 -0
  70. package/entities/Certificates/action.json +85 -0
  71. package/entities/Certificates/mockdatafiles/apiCertificatesGetCertificates-default.json +29 -0
  72. package/entities/Certificates/schema.json +22 -0
  73. package/entities/Client/action.json +214 -0
  74. package/entities/Client/schema.json +193 -0
  75. package/entities/ConfigurationBackupAndRestore/action.json +189 -0
  76. package/entities/ConfigurationBackupAndRestore/mockdatafiles/apiGroupsGetBackupLogForSnapshot-default.json +3 -0
  77. package/entities/ConfigurationBackupAndRestore/mockdatafiles/apiGroupsGetBackupStatusForSnapshot-default.json +3 -0
  78. package/entities/ConfigurationBackupAndRestore/mockdatafiles/apiGroupsGetLastRestoreLogsForGroup-default.json +3 -0
  79. package/entities/ConfigurationBackupAndRestore/mockdatafiles/apiGroupsGetRestoreStatusForSnapshot-default.json +3 -0
  80. package/entities/ConfigurationBackupAndRestore/mockdatafiles/apiGroupsGetSnapshotsForGroup-default.json +65 -0
  81. package/entities/ConfigurationBackupAndRestore/schema.json +27 -0
  82. package/entities/ConfigurationMode/action.json +148 -0
  83. package/entities/ConfigurationMode/mockdatafiles/apiConfigModeGetCustConfigMode-default.json +35 -0
  84. package/entities/ConfigurationMode/mockdatafiles/apiConfigModeGetDeviceConfigMode-default.json +21 -0
  85. package/entities/ConfigurationMode/mockdatafiles/apiConfigModeGetDeviceSerialsConfigMode-default.json +13 -0
  86. package/entities/ConfigurationMode/mockdatafiles/apiConfigModeGetGroupConfigMode-default.json +17 -0
  87. package/entities/ConfigurationMode/schema.json +25 -0
  88. package/entities/DenylistClients/action.json +65 -0
  89. package/entities/DenylistClients/mockdatafiles/apiBlacklistClientGetBlacklistClients-default.json +13 -0
  90. package/entities/DenylistClients/schema.json +21 -0
  91. package/entities/Devices/action.json +191 -0
  92. package/entities/Devices/mockdatafiles/apiDevicesGetDevicesTemplateDetails-default.json +13 -0
  93. package/entities/Devices/mockdatafiles/apiDevicesGetGroupsTemplateDetails-default.json +13 -0
  94. package/entities/Devices/mockdatafiles/apiDevicesGetHashTemplateDetails-default.json +13 -0
  95. package/entities/Devices/schema.json +27 -0
  96. package/entities/Events/action.json +46 -0
  97. package/entities/Events/schema.json +130 -0
  98. package/entities/Gateway/action.json +318 -0
  99. package/entities/Gateway/schema.json +99 -0
  100. package/entities/Groups/action.json +290 -0
  101. package/entities/Groups/mockdatafiles/apiGroupsGetGroups-default.json +54 -0
  102. package/entities/Groups/mockdatafiles/apiGroupsGetGroupsProperties-default.json +224 -0
  103. package/entities/Groups/mockdatafiles/apiGroupsGetGroupsTemplateData-default.json +11 -0
  104. package/entities/Groups/mockdatafiles/apiGroupsGetGroupsV2-default.json +11 -0
  105. package/entities/Groups/schema.json +32 -0
  106. package/entities/Installers/action.json +24 -0
  107. package/entities/Installers/schema.json +19 -0
  108. package/entities/Label/action.json +228 -0
  109. package/entities/Label/schema.json +62 -0
  110. package/entities/MMMD/action.json +24 -0
  111. package/entities/MMMD/schema.json +19 -0
  112. package/entities/MSPTemplates/action.json +250 -0
  113. package/entities/MSPTemplates/mockdatafiles/apiTemplatesGetEndCustomerTemplates-default.json +23 -0
  114. package/entities/MSPTemplates/mockdatafiles/apiTemplatesGetMspCustomerTemplates-default.json +65 -0
  115. package/entities/MSPTemplates/mockdatafiles/apiTemplatesGetMspTmplDifferCustsGroups-default.json +110 -0
  116. package/entities/MSPTemplates/mockdatafiles/apiTemplatesGetMspTmplEndCustDifferGroups-default.json +13 -0
  117. package/entities/MSPTemplates/schema.json +30 -0
  118. package/entities/MobilityController/action.json +191 -0
  119. package/entities/MobilityController/schema.json +71 -0
  120. package/entities/NBUIGroupConfiguration/action.json +45 -0
  121. package/entities/NBUIGroupConfiguration/mockdatafiles/apiNbUiGroupConfigGetGroupCountry-default.json +3 -0
  122. package/entities/NBUIGroupConfiguration/schema.json +20 -0
  123. package/entities/Network/action.json +67 -0
  124. package/entities/Network/schema.json +76 -0
  125. package/entities/PreProvisionedGroup/action.json +44 -0
  126. package/entities/PreProvisionedGroup/schema.json +20 -0
  127. package/entities/SaveCommit/action.json +126 -0
  128. package/entities/SaveCommit/mockdatafiles/apiSaveCommitGetDeviceSerialsAutoCommitState-default.json +17 -0
  129. package/entities/SaveCommit/mockdatafiles/apiSaveCommitGetGroupsAutoCommitState-default.json +29 -0
  130. package/entities/SaveCommit/schema.json +24 -0
  131. package/entities/Site/action.json +186 -0
  132. package/entities/Site/schema.json +49 -0
  133. package/entities/Sites/action.json +24 -0
  134. package/entities/Sites/schema.json +19 -0
  135. package/entities/Swarm/action.json +88 -0
  136. package/entities/Swarm/schema.json +88 -0
  137. package/entities/SwarmConfig/action.json +86 -0
  138. package/entities/SwarmConfig/mockdatafiles/apiSwarmConfigGetSwarmConfig-default.json +4 -0
  139. package/entities/SwarmConfig/mockdatafiles/apiSwarmConfigGetSwarmConfigV2-default.json +7 -0
  140. package/entities/SwarmConfig/schema.json +22 -0
  141. package/entities/Switch/action.json +548 -0
  142. package/entities/Switch/schema.json +198 -0
  143. package/entities/Templates/action.json +106 -0
  144. package/entities/Templates/mockdatafiles/apiTemplatesGetTemplates-default.json +37 -0
  145. package/entities/Templates/schema.json +23 -0
  146. package/entities/VPN/action.json +45 -0
  147. package/entities/VPN/schema.json +31 -0
  148. package/entities/Variables/action.json +186 -0
  149. package/entities/Variables/mockdatafiles/apiDevicesGetDeviceTemplateVariables-default.json +10 -0
  150. package/entities/Variables/schema.json +27 -0
  151. package/entities/VariablesFirewall/action.json +126 -0
  152. package/entities/VariablesFirewall/schema.json +24 -0
  153. package/entities/WLANConfiguration/action.json +579 -0
  154. package/entities/WLANConfiguration/schema.json +46 -0
  155. package/error.json +190 -0
  156. package/package.json +86 -0
  157. package/pronghorn.json +20904 -0
  158. package/propertiesDecorators.json +14 -0
  159. package/propertiesSchema.json +1248 -0
  160. package/refs?service=git-upload-pack +0 -0
  161. package/report/aruba_central_monitoring.json +14224 -0
  162. package/report/creationReport.json +850 -0
  163. package/sampleProperties.json +195 -0
  164. package/test/integration/adapterTestBasicGet.js +83 -0
  165. package/test/integration/adapterTestConnectivity.js +93 -0
  166. package/test/integration/adapterTestIntegration.js +7773 -0
  167. package/test/unit/adapterBaseTestUnit.js +949 -0
  168. package/test/unit/adapterTestUnit.js +10516 -0
  169. package/updatePackage.zip +0 -0
  170. package/utils/adapterInfo.js +206 -0
  171. package/utils/addAuth.js +94 -0
  172. package/utils/artifactize.js +146 -0
  173. package/utils/basicGet.js +50 -0
  174. package/utils/checkMigrate.js +63 -0
  175. package/utils/entitiesToDB.js +178 -0
  176. package/utils/findPath.js +74 -0
  177. package/utils/methodDocumentor.js +225 -0
  178. package/utils/modify.js +154 -0
  179. package/utils/packModificationScript.js +35 -0
  180. package/utils/patches2bundledDeps.js +90 -0
  181. package/utils/pre-commit.sh +32 -0
  182. package/utils/removeHooks.js +20 -0
  183. package/utils/setup.js +33 -0
  184. package/utils/tbScript.js +246 -0
  185. package/utils/tbUtils.js +490 -0
  186. package/utils/testRunner.js +298 -0
  187. package/utils/troubleshootingAdapter.js +195 -0
  188. package/versions.json +257 -0
  189. package/workflows/README.md +3 -0
@@ -0,0 +1,46 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "apiExternalControllerGetEvents",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/monitoring/v1/events?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "apiExternalControllerGetEventsV2",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/monitoring/v2/events?{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
+ }
@@ -0,0 +1,130 @@
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": "apiExternalControllerGetEvents",
12
+ "enum": [
13
+ "apiExternalControllerGetEvents",
14
+ "apiExternalControllerGetEventsV2"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ },
18
+ "swarmId": {
19
+ "type": "string",
20
+ "description": "Filter by Swarm ID. Field supported for AP clients only",
21
+ "parse": false,
22
+ "encode": false,
23
+ "encrypt": {
24
+ "type": "AES",
25
+ "key": ""
26
+ },
27
+ "external_name": "swarm_id"
28
+ },
29
+ "fromTimestamp": {
30
+ "type": "number",
31
+ "description": "Need information from this timestamp. Timestamp is epoch in seconds. Default is current timestamp minus 3 hours",
32
+ "parse": false,
33
+ "encode": false,
34
+ "encrypt": {
35
+ "type": "AES",
36
+ "key": ""
37
+ },
38
+ "external_name": "from_timestamp"
39
+ },
40
+ "toTimestamp": {
41
+ "type": "number",
42
+ "description": "Need information to this timestamp. Timestamp is epoch in seconds. Default is current timestamp",
43
+ "parse": false,
44
+ "encode": false,
45
+ "encrypt": {
46
+ "type": "AES",
47
+ "key": ""
48
+ },
49
+ "external_name": "to_timestamp"
50
+ },
51
+ "eventType": {
52
+ "type": "string",
53
+ "description": "Filter by event type",
54
+ "parse": false,
55
+ "encode": false,
56
+ "encrypt": {
57
+ "type": "AES",
58
+ "key": ""
59
+ },
60
+ "external_name": "event_type"
61
+ },
62
+ "eventNumber": {
63
+ "type": "number",
64
+ "description": "Filter by event number",
65
+ "parse": false,
66
+ "encode": false,
67
+ "encrypt": {
68
+ "type": "AES",
69
+ "key": ""
70
+ },
71
+ "external_name": "event_number"
72
+ },
73
+ "eventDescription": {
74
+ "type": "string",
75
+ "description": "Filter by event description",
76
+ "parse": false,
77
+ "encode": false,
78
+ "encrypt": {
79
+ "type": "AES",
80
+ "key": ""
81
+ },
82
+ "external_name": "event_description"
83
+ },
84
+ "eventCategory": {
85
+ "type": "string",
86
+ "description": "Filter by event category",
87
+ "parse": false,
88
+ "encode": false,
89
+ "encrypt": {
90
+ "type": "AES",
91
+ "key": ""
92
+ },
93
+ "external_name": "event_category"
94
+ },
95
+ "calculateTotal": {
96
+ "type": "boolean",
97
+ "description": "Whether to calculate total events",
98
+ "parse": false,
99
+ "encode": false,
100
+ "encrypt": {
101
+ "type": "AES",
102
+ "key": ""
103
+ },
104
+ "external_name": "calculate_total"
105
+ },
106
+ "deviceMac": {
107
+ "type": "string",
108
+ "description": "Filter by device_mac",
109
+ "parse": false,
110
+ "encode": false,
111
+ "encrypt": {
112
+ "type": "AES",
113
+ "key": ""
114
+ },
115
+ "external_name": "device_mac"
116
+ },
117
+ "deviceType": {
118
+ "type": "string",
119
+ "description": "Filter by device type. It is either ACCESS POINT, SWITCH, GATEWAY or CLIENT",
120
+ "parse": false,
121
+ "encode": false,
122
+ "encrypt": {
123
+ "type": "AES",
124
+ "key": ""
125
+ },
126
+ "external_name": "device_type"
127
+ }
128
+ },
129
+ "definitions": {}
130
+ }
@@ -0,0 +1,318 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "apiExternalControllerGetGateways",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways?{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": "apiExternalControllerGetGateway",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}?{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": "apiExternalControllerDeleteGateway",
47
+ "protocol": "REST",
48
+ "method": "DELETE",
49
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": 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": "apiExternalControllerGetGatewayUplinksDetail",
67
+ "protocol": "REST",
68
+ "method": "GET",
69
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/uplinks?{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
+ "name": "apiExternalControllerGetGatewayUplinksBandwidthUsage",
88
+ "protocol": "REST",
89
+ "method": "GET",
90
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/uplinks/bandwidth_usage?{query}",
91
+ "requestSchema": "schema.json",
92
+ "responseSchema": "schema.json",
93
+ "timeout": 0,
94
+ "sendEmpty": false,
95
+ "sendGetBody": false,
96
+ "requestDatatype": "JSON",
97
+ "responseDatatype": "JSON",
98
+ "headers": {},
99
+ "responseObjects": [
100
+ {
101
+ "type": "default",
102
+ "key": "",
103
+ "mockFile": ""
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "name": "apiExternalControllerGetGatewayUplinksTunnelStats",
109
+ "protocol": "REST",
110
+ "method": "GET",
111
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/tunnels/stats?{query}",
112
+ "requestSchema": "schema.json",
113
+ "responseSchema": "schema.json",
114
+ "timeout": 0,
115
+ "sendEmpty": false,
116
+ "sendGetBody": false,
117
+ "requestDatatype": "JSON",
118
+ "responseDatatype": "JSON",
119
+ "headers": {},
120
+ "responseObjects": [
121
+ {
122
+ "type": "default",
123
+ "key": "",
124
+ "mockFile": ""
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "name": "apiExternalControllerGetGatewayUplinksWanCompressionUsage",
130
+ "protocol": "REST",
131
+ "method": "GET",
132
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/uplinks/wan_compression_stats?{query}",
133
+ "requestSchema": "schema.json",
134
+ "responseSchema": "schema.json",
135
+ "timeout": 0,
136
+ "sendEmpty": false,
137
+ "sendGetBody": false,
138
+ "requestDatatype": "JSON",
139
+ "responseDatatype": "JSON",
140
+ "headers": {},
141
+ "responseObjects": [
142
+ {
143
+ "type": "default",
144
+ "key": "",
145
+ "mockFile": ""
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "name": "apiExternalControllerGetGatewayUplinksDistribution",
151
+ "protocol": "REST",
152
+ "method": "GET",
153
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/uplinks/distribution?{query}",
154
+ "requestSchema": "schema.json",
155
+ "responseSchema": "schema.json",
156
+ "timeout": 0,
157
+ "sendEmpty": false,
158
+ "sendGetBody": false,
159
+ "requestDatatype": "JSON",
160
+ "responseDatatype": "JSON",
161
+ "headers": {},
162
+ "responseObjects": [
163
+ {
164
+ "type": "default",
165
+ "key": "",
166
+ "mockFile": ""
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "name": "apiExternalControllerGetGatewayPortsBandwidthUsage",
172
+ "protocol": "REST",
173
+ "method": "GET",
174
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/ports/bandwidth_usage?{query}",
175
+ "requestSchema": "schema.json",
176
+ "responseSchema": "schema.json",
177
+ "timeout": 0,
178
+ "sendEmpty": false,
179
+ "sendGetBody": false,
180
+ "requestDatatype": "JSON",
181
+ "responseDatatype": "JSON",
182
+ "headers": {},
183
+ "responseObjects": [
184
+ {
185
+ "type": "default",
186
+ "key": "",
187
+ "mockFile": ""
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "name": "apiExternalControllerGetGatewayPorts",
193
+ "protocol": "REST",
194
+ "method": "GET",
195
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/ports?{query}",
196
+ "requestSchema": "schema.json",
197
+ "responseSchema": "schema.json",
198
+ "timeout": 0,
199
+ "sendEmpty": false,
200
+ "sendGetBody": false,
201
+ "requestDatatype": "JSON",
202
+ "responseDatatype": "JSON",
203
+ "headers": {},
204
+ "responseObjects": [
205
+ {
206
+ "type": "default",
207
+ "key": "",
208
+ "mockFile": ""
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "name": "apiExternalControllerGetGatewayPortErrors",
214
+ "protocol": "REST",
215
+ "method": "GET",
216
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/ports/errors?{query}",
217
+ "requestSchema": "schema.json",
218
+ "responseSchema": "schema.json",
219
+ "timeout": 0,
220
+ "sendEmpty": false,
221
+ "sendGetBody": false,
222
+ "requestDatatype": "JSON",
223
+ "responseDatatype": "JSON",
224
+ "headers": {},
225
+ "responseObjects": [
226
+ {
227
+ "type": "default",
228
+ "key": "",
229
+ "mockFile": ""
230
+ }
231
+ ]
232
+ },
233
+ {
234
+ "name": "apiExternalControllerGetGatewayTunnels",
235
+ "protocol": "REST",
236
+ "method": "GET",
237
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/tunnels?{query}",
238
+ "requestSchema": "schema.json",
239
+ "responseSchema": "schema.json",
240
+ "timeout": 0,
241
+ "sendEmpty": false,
242
+ "sendGetBody": false,
243
+ "requestDatatype": "JSON",
244
+ "responseDatatype": "JSON",
245
+ "headers": {},
246
+ "responseObjects": [
247
+ {
248
+ "type": "default",
249
+ "key": "",
250
+ "mockFile": ""
251
+ }
252
+ ]
253
+ },
254
+ {
255
+ "name": "apiExternalControllerGetGatewayDhcpClients",
256
+ "protocol": "REST",
257
+ "method": "GET",
258
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/dhcp_clients?{query}",
259
+ "requestSchema": "schema.json",
260
+ "responseSchema": "schema.json",
261
+ "timeout": 0,
262
+ "sendEmpty": false,
263
+ "sendGetBody": false,
264
+ "requestDatatype": "JSON",
265
+ "responseDatatype": "JSON",
266
+ "headers": {},
267
+ "responseObjects": [
268
+ {
269
+ "type": "default",
270
+ "key": "",
271
+ "mockFile": ""
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ "name": "apiExternalControllerGetGatewayDhcpPools",
277
+ "protocol": "REST",
278
+ "method": "GET",
279
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/dhcp_pools?{query}",
280
+ "requestSchema": "schema.json",
281
+ "responseSchema": "schema.json",
282
+ "timeout": 0,
283
+ "sendEmpty": false,
284
+ "sendGetBody": false,
285
+ "requestDatatype": "JSON",
286
+ "responseDatatype": "JSON",
287
+ "headers": {},
288
+ "responseObjects": [
289
+ {
290
+ "type": "default",
291
+ "key": "",
292
+ "mockFile": ""
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "name": "apiExternalControllerGetGatewayVlanInfo",
298
+ "protocol": "REST",
299
+ "method": "GET",
300
+ "entitypath": "{base_path}/{version}/monitoring/v1/gateways/{pathv1}/vlan?{query}",
301
+ "requestSchema": "schema.json",
302
+ "responseSchema": "schema.json",
303
+ "timeout": 0,
304
+ "sendEmpty": false,
305
+ "sendGetBody": false,
306
+ "requestDatatype": "JSON",
307
+ "responseDatatype": "JSON",
308
+ "headers": {},
309
+ "responseObjects": [
310
+ {
311
+ "type": "default",
312
+ "key": "",
313
+ "mockFile": ""
314
+ }
315
+ ]
316
+ }
317
+ ]
318
+ }
@@ -0,0 +1,99 @@
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": "apiExternalControllerGetGateways",
12
+ "enum": [
13
+ "apiExternalControllerGetGateways",
14
+ "apiExternalControllerGetGateway",
15
+ "apiExternalControllerDeleteGateway",
16
+ "apiExternalControllerGetGatewayUplinksDetail",
17
+ "apiExternalControllerGetGatewayUplinksBandwidthUsage",
18
+ "apiExternalControllerGetGatewayUplinksTunnelStats",
19
+ "apiExternalControllerGetGatewayUplinksWanCompressionUsage",
20
+ "apiExternalControllerGetGatewayUplinksDistribution",
21
+ "apiExternalControllerGetGatewayPortsBandwidthUsage",
22
+ "apiExternalControllerGetGatewayPorts",
23
+ "apiExternalControllerGetGatewayPortErrors",
24
+ "apiExternalControllerGetGatewayTunnels",
25
+ "apiExternalControllerGetGatewayDhcpClients",
26
+ "apiExternalControllerGetGatewayDhcpPools",
27
+ "apiExternalControllerGetGatewayVlanInfo"
28
+ ],
29
+ "external_name": "ph_request_type"
30
+ },
31
+ "calculateTotal": {
32
+ "type": "boolean",
33
+ "description": "Whether to calculate total Gateways",
34
+ "parse": false,
35
+ "encode": false,
36
+ "encrypt": {
37
+ "type": "AES",
38
+ "key": ""
39
+ },
40
+ "external_name": "calculate_total"
41
+ },
42
+ "statsMetric": {
43
+ "type": "boolean",
44
+ "description": "If set, gets the uplinks and tunnels count",
45
+ "parse": false,
46
+ "encode": false,
47
+ "encrypt": {
48
+ "type": "AES",
49
+ "key": ""
50
+ },
51
+ "external_name": "stats_metric"
52
+ },
53
+ "uplinkId": {
54
+ "type": "string",
55
+ "description": "Filter by uplink ID.",
56
+ "parse": false,
57
+ "encode": false,
58
+ "encrypt": {
59
+ "type": "AES",
60
+ "key": ""
61
+ },
62
+ "external_name": "uplink_id"
63
+ },
64
+ "fromTimestamp": {
65
+ "type": "number",
66
+ "description": "Need information from this timestamp. Timestamp is epoch in seconds. Default is current timestamp minus 3 hours",
67
+ "parse": false,
68
+ "encode": false,
69
+ "encrypt": {
70
+ "type": "AES",
71
+ "key": ""
72
+ },
73
+ "external_name": "from_timestamp"
74
+ },
75
+ "toTimestamp": {
76
+ "type": "number",
77
+ "description": "Need information to this timestamp. Timestamp is epoch in seconds. Default is current timestamp",
78
+ "parse": false,
79
+ "encode": false,
80
+ "encrypt": {
81
+ "type": "AES",
82
+ "key": ""
83
+ },
84
+ "external_name": "to_timestamp"
85
+ },
86
+ "mapName": {
87
+ "type": "string",
88
+ "description": "Filter by tunnel map name.",
89
+ "parse": false,
90
+ "encode": false,
91
+ "encrypt": {
92
+ "type": "AES",
93
+ "key": ""
94
+ },
95
+ "external_name": "map_name"
96
+ }
97
+ },
98
+ "definitions": {}
99
+ }