@itentialopensource/adapter-viptela 0.9.0 → 0.10.2

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 (145) hide show
  1. package/AUTH.md +39 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +169 -0
  4. package/CHANGELOG.md +74 -29
  5. package/CODE_OF_CONDUCT.md +12 -17
  6. package/CONTRIBUTING.md +88 -74
  7. package/ENHANCE.md +69 -0
  8. package/PROPERTIES.md +641 -0
  9. package/README.md +221 -571
  10. package/SUMMARY.md +9 -0
  11. package/SYSTEMINFO.md +11 -0
  12. package/TROUBLESHOOT.md +47 -0
  13. package/adapter.js +34443 -1655
  14. package/adapterBase.js +1006 -252
  15. package/entities/.generic/action.json +105 -0
  16. package/entities/.generic/schema.json +6 -1
  17. package/entities/AdministrationAuditLog/action.json +252 -0
  18. package/entities/AdministrationAuditLog/schema.json +30 -0
  19. package/entities/AdministrationUserAndGroup/action.json +533 -0
  20. package/entities/AdministrationUserAndGroup/mockdatafiles/findUserGroups-default.json +4 -0
  21. package/entities/AdministrationUserAndGroup/mockdatafiles/findUserGroupsAsKeyValue-default.json +5 -0
  22. package/entities/AdministrationUserAndGroup/mockdatafiles/findUsers-default.json +3 -0
  23. package/entities/AdministrationUserAndGroup/mockdatafiles/getColoGroups-default.json +6 -0
  24. package/entities/AdministrationUserAndGroup/mockdatafiles/getVpnGroups-default.json +5 -0
  25. package/entities/AdministrationUserAndGroup/schema.json +44 -0
  26. package/entities/CertificateManagementDevice/action.json +517 -0
  27. package/entities/CertificateManagementDevice/mockdatafiles/getRootCertChains-default.json +3 -0
  28. package/entities/CertificateManagementDevice/schema.json +43 -0
  29. package/entities/ClusterManagement/action.json +477 -0
  30. package/entities/ClusterManagement/mockdatafiles/getConfiguredIPList-default.json +5 -0
  31. package/entities/ClusterManagement/mockdatafiles/getConnectedDevices-default.json +3 -0
  32. package/entities/ClusterManagement/mockdatafiles/getConnectedDevicesPerTenant-default.json +3 -0
  33. package/entities/ClusterManagement/mockdatafiles/getTenantsList-default.json +4 -0
  34. package/entities/ClusterManagement/mockdatafiles/listVmanages-default.json +4 -0
  35. package/entities/ClusterManagement/schema.json +41 -0
  36. package/entities/ColocationCluster/action.json +229 -0
  37. package/entities/ColocationCluster/schema.json +29 -0
  38. package/entities/ColocationServiceChain/action.json +86 -0
  39. package/entities/ColocationServiceChain/mockdatafiles/getEdgeDevices-default.json +5 -0
  40. package/entities/ColocationServiceChain/mockdatafiles/getpnfDevices-default.json +5 -0
  41. package/entities/ColocationServiceChain/schema.json +22 -0
  42. package/entities/ColocationServiceGroup/action.json +148 -0
  43. package/entities/ColocationServiceGroup/mockdatafiles/getAvailableChains-default.json +6 -0
  44. package/entities/ColocationServiceGroup/schema.json +25 -0
  45. package/entities/ConfigurationDisasterRecovery/action.json +696 -0
  46. package/entities/ConfigurationDisasterRecovery/mockdatafiles/downloadReplicationData-default.json +5 -0
  47. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getDisasterRecoveryStatus-default.json +6 -0
  48. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getLocalDataCenterState-default.json +6 -0
  49. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getReachabilityInfo-default.json +5 -0
  50. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getRemoteDCMembersState-default.json +3 -0
  51. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getRemoteDataCenterState-default.json +6 -0
  52. package/entities/ConfigurationDisasterRecovery/schema.json +52 -0
  53. package/entities/ConfigurationFeatureList/action.json +46 -0
  54. package/entities/ConfigurationFeatureList/schema.json +20 -0
  55. package/entities/CreateABackupSnapshot/action.json +24 -0
  56. package/entities/CreateABackupSnapshot/schema.json +19 -0
  57. package/entities/DataCollectionAgent/action.json +470 -0
  58. package/entities/DataCollectionAgent/mockdatafiles/getTemplatePolicyDefinitionsDCA-default.json +5 -0
  59. package/entities/DataCollectionAgent/mockdatafiles/getVPNListsDCA-default.json +3 -0
  60. package/entities/DataCollectionAgent/mockdatafiles/getVedgeTemplateListDCA-default.json +6 -0
  61. package/entities/DataCollectionAgent/mockdatafiles/getVsmartTemplateListDCA-default.json +5 -0
  62. package/entities/DataCollectionAgent/mockdatafiles/listAllDevicesDCA-default.json +5 -0
  63. package/entities/DataCollectionAgent/schema.json +41 -0
  64. package/entities/DeviceActions/action.json +243 -0
  65. package/entities/DeviceActions/mockdatafiles/generateSecurityDevicesList-default.json +5 -0
  66. package/entities/DeviceActions/schema.json +13 -1
  67. package/entities/DeviceConfigHistory/action.json +294 -0
  68. package/entities/DeviceConfigHistory/schema.json +32 -0
  69. package/entities/MonitoringAlarmsDetails/action.json +684 -0
  70. package/entities/MonitoringAlarmsDetails/mockdatafiles/listDisabledAlarm-default.json +5 -0
  71. package/entities/MonitoringAlarmsDetails/schema.json +51 -0
  72. package/entities/MonitoringColocationCluster/action.json +360 -0
  73. package/entities/MonitoringColocationCluster/mockdatafiles/getClusterConfigByClusterId-default.json +3 -0
  74. package/entities/MonitoringColocationCluster/mockdatafiles/getClusterPortMappingByClusterId-default.json +3 -0
  75. package/entities/MonitoringColocationCluster/mockdatafiles/getPNFConfig-default.json +3 -0
  76. package/entities/MonitoringColocationCluster/mockdatafiles/getServiceGroupByClusterId-default.json +3 -0
  77. package/entities/MonitoringColocationCluster/mockdatafiles/getSystemStatusByDeviceId-default.json +6 -0
  78. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFAlarmCount-default.json +6 -0
  79. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFEventsCountDetail-default.json +4 -0
  80. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFEventsDetail-default.json +3 -0
  81. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFInterfaceDetail-default.json +3 -0
  82. package/entities/MonitoringColocationCluster/mockdatafiles/getpnfDetails-default.json +5 -0
  83. package/entities/MonitoringColocationCluster/mockdatafiles/getvnfByDeviceId-default.json +4 -0
  84. package/entities/MonitoringColocationCluster/mockdatafiles/listNetworkFunctionMap-default.json +3 -0
  85. package/entities/MonitoringColocationCluster/schema.json +35 -0
  86. package/entities/MonitoringDeviceDetails/action.json +40 -0
  87. package/entities/MonitoringDeviceDetails/schema.json +3 -1
  88. package/entities/MonitoringDeviceStatisticsDetails/action.json +109 -0
  89. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/generateDeviceStatisticsData-default.json +3 -0
  90. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getActiveAlarms-default.json +5 -0
  91. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getStatDataFieldsByStateDataType-default.json +6 -0
  92. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getStatisticsType-default.json +4 -0
  93. package/entities/MonitoringDeviceStatisticsDetails/schema.json +23 -0
  94. package/entities/MonitoringEvents/action.json +378 -0
  95. package/entities/MonitoringEvents/mockdatafiles/getComponentsAsKeyValue-default.json +4 -0
  96. package/entities/MonitoringEvents/mockdatafiles/getEventTypesAsKeyValue-default.json +3 -0
  97. package/entities/MonitoringEvents/schema.json +36 -0
  98. package/entities/RealTimeMonitoringAAA/action.json +109 -0
  99. package/entities/RealTimeMonitoringAAA/mockdatafiles/getAllDeviceUsers-default.json +5 -0
  100. package/entities/RealTimeMonitoringAAA/mockdatafiles/getUsersFromDevice-default.json +6 -0
  101. package/entities/RealTimeMonitoringAAA/schema.json +23 -0
  102. package/entities/SSLProxyCertificateManagementDevice/action.json +494 -0
  103. package/entities/SSLProxyCertificateManagementDevice/mockdatafiles/getSslProxyList-default.json +4 -0
  104. package/entities/SSLProxyCertificateManagementDevice/schema.json +42 -0
  105. package/entities/ScheduledBackupRestore/action.json +189 -0
  106. package/entities/ScheduledBackupRestore/schema.json +27 -0
  107. package/entities/SystemCloudService/action.json +313 -0
  108. package/entities/SystemCloudService/schema.json +33 -0
  109. package/entities/SystemContainer/action.json +189 -0
  110. package/entities/SystemContainer/mockdatafiles/getCustomApp-default.json +3 -0
  111. package/entities/SystemContainer/schema.json +27 -0
  112. package/entities/TroubleshootingToolsDashboard/action.json +128 -0
  113. package/entities/TroubleshootingToolsDashboard/schema.json +24 -0
  114. package/entities/TroubleshootingToolsDeviceConnectivity/action.json +288 -0
  115. package/entities/TroubleshootingToolsDeviceConnectivity/schema.json +32 -0
  116. package/entities/TroubleshootingToolsDeviceSoftwarePackage/action.json +85 -0
  117. package/entities/TroubleshootingToolsDeviceSoftwarePackage/schema.json +22 -0
  118. package/entities/TroubleshootingToolsDeviceSoftwareUpdate/action.json +86 -0
  119. package/entities/TroubleshootingToolsDeviceSoftwareUpdate/schema.json +22 -0
  120. package/entities/TroubleshootingToolsDiagnostics/action.json +977 -0
  121. package/entities/TroubleshootingToolsDiagnostics/schema.json +65 -0
  122. package/entities/TroubleshootingToolsSoftwareActions/action.json +232 -0
  123. package/entities/TroubleshootingToolsSoftwareActions/mockdatafiles/findSoftwareImages-default.json +6 -0
  124. package/entities/TroubleshootingToolsSoftwareActions/mockdatafiles/findSoftwareImagesWithFilters-default.json +5 -0
  125. package/entities/TroubleshootingToolsSoftwareActions/schema.json +29 -0
  126. package/error.json +6 -0
  127. package/package.json +7 -5
  128. package/pronghorn.json +15511 -1652
  129. package/propertiesDecorators.json +14 -0
  130. package/propertiesSchema.json +421 -0
  131. package/refs?service=git-upload-pack +0 -0
  132. package/report/adapterInfo.json +10 -0
  133. package/report/updateReport1651360586947.json +114 -0
  134. package/report/updateReport1652490573359.json +120 -0
  135. package/sampleProperties.json +83 -1
  136. package/test/integration/adapterTestBasicGet.js +1 -1
  137. package/test/integration/adapterTestIntegration.js +10668 -107
  138. package/test/unit/adapterBaseTestUnit.js +30 -25
  139. package/test/unit/adapterTestUnit.js +8086 -177
  140. package/utils/adapterInfo.js +206 -0
  141. package/utils/entitiesToDB.js +12 -57
  142. package/utils/pre-commit.sh +3 -0
  143. package/utils/tbScript.js +35 -20
  144. package/utils/tbUtils.js +49 -31
  145. package/utils/testRunner.js +16 -16
@@ -0,0 +1,51 @@
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": "",
12
+ "enum": [
13
+ "getAlarms",
14
+ "getRawAlarmData",
15
+ "getAlarmAggregationData",
16
+ "getPostAlarmAggregationData",
17
+ "clearStaleAlarm",
18
+ "getNonViewedActiveAlarmsCount",
19
+ "listDisabledAlarm",
20
+ "disableEnableAlarm",
21
+ "getCount1",
22
+ "getCountPost1",
23
+ "getStatDataFields1",
24
+ "markAllAlarmsAsViewed",
25
+ "markAlarmsAsViewed",
26
+ "getNonViewedAlarms",
27
+ "getStatBulkAlarmRawData",
28
+ "getPostStatBulkAlarmRawData",
29
+ "setPeriodicPurgeTimer",
30
+ "getStatQueryFields1",
31
+ "createAlarmQueryConfig",
32
+ "correlAntiEntropy",
33
+ "restartCorrelationEngine",
34
+ "getAlarmTypesAsKeyValue",
35
+ "getAlarmsBySeverity",
36
+ "getAlarmSeverityCustomHistogram",
37
+ "getAlarmSeverityMappings",
38
+ "startTracking",
39
+ "getStats",
40
+ "stopTracking",
41
+ "getAlarmDetails",
42
+ "updateNotificationRule",
43
+ "createNotificationRule",
44
+ "getNotificationRule",
45
+ "deleteNotificationRule"
46
+ ],
47
+ "external_name": "ph_request_type"
48
+ }
49
+ },
50
+ "definitions": {}
51
+ }
@@ -0,0 +1,360 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getClusterDetailsByClusterId",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/colocation/monitor/cluster?{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": "getClusterConfigByClusterId",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/colocation/monitor/cluster/config?{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": "mockdatafiles/getClusterConfigByClusterId-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "getClusterPortMappingByClusterId",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/colocation/monitor/cluster/portView?{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": "mockdatafiles/getClusterPortMappingByClusterId-default.json"
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "getDeviceDetailByDeviceId",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/colocation/monitor/device?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "sendGetBody": false,
76
+ "requestDatatype": "JSON",
77
+ "responseDatatype": "JSON",
78
+ "headers": {},
79
+ "responseObjects": [
80
+ {
81
+ "type": "default",
82
+ "key": "",
83
+ "mockFile": ""
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "getSystemStatusByDeviceId",
89
+ "protocol": "REST",
90
+ "method": "GET",
91
+ "entitypath": "{base_path}/{version}/colocation/monitor/device/system?{query}",
92
+ "requestSchema": "schema.json",
93
+ "responseSchema": "schema.json",
94
+ "timeout": 0,
95
+ "sendEmpty": false,
96
+ "sendGetBody": false,
97
+ "requestDatatype": "JSON",
98
+ "responseDatatype": "JSON",
99
+ "headers": {},
100
+ "responseObjects": [
101
+ {
102
+ "type": "default",
103
+ "key": "",
104
+ "mockFile": "mockdatafiles/getSystemStatusByDeviceId-default.json"
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "name": "getvnfByDeviceId",
110
+ "protocol": "REST",
111
+ "method": "GET",
112
+ "entitypath": "{base_path}/{version}/colocation/monitor/device/vnf?{query}",
113
+ "requestSchema": "schema.json",
114
+ "responseSchema": "schema.json",
115
+ "timeout": 0,
116
+ "sendEmpty": false,
117
+ "sendGetBody": false,
118
+ "requestDatatype": "JSON",
119
+ "responseDatatype": "JSON",
120
+ "headers": {},
121
+ "responseObjects": [
122
+ {
123
+ "type": "default",
124
+ "key": "",
125
+ "mockFile": "mockdatafiles/getvnfByDeviceId-default.json"
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "name": "listNetworkFunctionMap",
131
+ "protocol": "REST",
132
+ "method": "GET",
133
+ "entitypath": "{base_path}/{version}/colocation/monitor/networkfunction/listmap?{query}",
134
+ "requestSchema": "schema.json",
135
+ "responseSchema": "schema.json",
136
+ "timeout": 0,
137
+ "sendEmpty": false,
138
+ "sendGetBody": false,
139
+ "requestDatatype": "JSON",
140
+ "responseDatatype": "JSON",
141
+ "headers": {},
142
+ "responseObjects": [
143
+ {
144
+ "type": "default",
145
+ "key": "",
146
+ "mockFile": "mockdatafiles/listNetworkFunctionMap-default.json"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "name": "getpnfDetails",
152
+ "protocol": "REST",
153
+ "method": "GET",
154
+ "entitypath": "{base_path}/{version}/colocation/monitor/pnf?{query}",
155
+ "requestSchema": "schema.json",
156
+ "responseSchema": "schema.json",
157
+ "timeout": 0,
158
+ "sendEmpty": false,
159
+ "sendGetBody": false,
160
+ "requestDatatype": "JSON",
161
+ "responseDatatype": "JSON",
162
+ "headers": {},
163
+ "responseObjects": [
164
+ {
165
+ "type": "default",
166
+ "key": "",
167
+ "mockFile": "mockdatafiles/getpnfDetails-default.json"
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "name": "getPNFConfig",
173
+ "protocol": "REST",
174
+ "method": "GET",
175
+ "entitypath": "{base_path}/{version}/colocation/monitor/pnf/configuration?{query}",
176
+ "requestSchema": "schema.json",
177
+ "responseSchema": "schema.json",
178
+ "timeout": 0,
179
+ "sendEmpty": false,
180
+ "sendGetBody": false,
181
+ "requestDatatype": "JSON",
182
+ "responseDatatype": "JSON",
183
+ "headers": {},
184
+ "responseObjects": [
185
+ {
186
+ "type": "default",
187
+ "key": "",
188
+ "mockFile": "mockdatafiles/getPNFConfig-default.json"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "name": "getServiceChainDetails",
194
+ "protocol": "REST",
195
+ "method": "GET",
196
+ "entitypath": "{base_path}/{version}/colocation/monitor/servicechain?{query}",
197
+ "requestSchema": "schema.json",
198
+ "responseSchema": "schema.json",
199
+ "timeout": 0,
200
+ "sendEmpty": false,
201
+ "sendGetBody": false,
202
+ "requestDatatype": "JSON",
203
+ "responseDatatype": "JSON",
204
+ "headers": {},
205
+ "responseObjects": [
206
+ {
207
+ "type": "default",
208
+ "key": "",
209
+ "mockFile": ""
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "name": "getServiceGroupByClusterId",
215
+ "protocol": "REST",
216
+ "method": "GET",
217
+ "entitypath": "{base_path}/{version}/colocation/monitor/servicegroup?{query}",
218
+ "requestSchema": "schema.json",
219
+ "responseSchema": "schema.json",
220
+ "timeout": 0,
221
+ "sendEmpty": false,
222
+ "sendGetBody": false,
223
+ "requestDatatype": "JSON",
224
+ "responseDatatype": "JSON",
225
+ "headers": {},
226
+ "responseObjects": [
227
+ {
228
+ "type": "default",
229
+ "key": "",
230
+ "mockFile": "mockdatafiles/getServiceGroupByClusterId-default.json"
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "name": "getvnfDetails",
236
+ "protocol": "REST",
237
+ "method": "GET",
238
+ "entitypath": "{base_path}/{version}/colocation/monitor/vnf?{query}",
239
+ "requestSchema": "schema.json",
240
+ "responseSchema": "schema.json",
241
+ "timeout": 0,
242
+ "sendEmpty": false,
243
+ "sendGetBody": false,
244
+ "requestDatatype": "JSON",
245
+ "responseDatatype": "JSON",
246
+ "headers": {},
247
+ "responseObjects": [
248
+ {
249
+ "type": "default",
250
+ "key": "",
251
+ "mockFile": ""
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ "name": "vnfActions",
257
+ "protocol": "REST",
258
+ "method": "POST",
259
+ "entitypath": "{base_path}/{version}/colocation/monitor/vnf/action?{query}",
260
+ "requestSchema": "schema.json",
261
+ "responseSchema": "schema.json",
262
+ "timeout": 0,
263
+ "sendEmpty": 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": "getVNFEventsCountDetail",
277
+ "protocol": "REST",
278
+ "method": "GET",
279
+ "entitypath": "{base_path}/{version}/colocation/monitor/vnf/alarms?{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": "mockdatafiles/getVNFEventsCountDetail-default.json"
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "name": "getVNFAlarmCount",
298
+ "protocol": "REST",
299
+ "method": "GET",
300
+ "entitypath": "{base_path}/{version}/colocation/monitor/vnf/alarms/count?{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": "mockdatafiles/getVNFAlarmCount-default.json"
314
+ }
315
+ ]
316
+ },
317
+ {
318
+ "name": "getVNFEventsDetail",
319
+ "protocol": "REST",
320
+ "method": "GET",
321
+ "entitypath": "{base_path}/{version}/colocation/monitor/vnf/events?{query}",
322
+ "requestSchema": "schema.json",
323
+ "responseSchema": "schema.json",
324
+ "timeout": 0,
325
+ "sendEmpty": false,
326
+ "sendGetBody": false,
327
+ "requestDatatype": "JSON",
328
+ "responseDatatype": "JSON",
329
+ "headers": {},
330
+ "responseObjects": [
331
+ {
332
+ "type": "default",
333
+ "key": "",
334
+ "mockFile": "mockdatafiles/getVNFEventsDetail-default.json"
335
+ }
336
+ ]
337
+ },
338
+ {
339
+ "name": "getVNFInterfaceDetail",
340
+ "protocol": "REST",
341
+ "method": "GET",
342
+ "entitypath": "{base_path}/{version}/colocation/monitor/vnf/interface?{query}",
343
+ "requestSchema": "schema.json",
344
+ "responseSchema": "schema.json",
345
+ "timeout": 0,
346
+ "sendEmpty": false,
347
+ "sendGetBody": false,
348
+ "requestDatatype": "JSON",
349
+ "responseDatatype": "JSON",
350
+ "headers": {},
351
+ "responseObjects": [
352
+ {
353
+ "type": "default",
354
+ "key": "",
355
+ "mockFile": "mockdatafiles/getVNFInterfaceDetail-default.json"
356
+ }
357
+ ]
358
+ }
359
+ ]
360
+ }
@@ -0,0 +1,35 @@
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": "",
12
+ "enum": [
13
+ "getClusterDetailsByClusterId",
14
+ "getClusterConfigByClusterId",
15
+ "getClusterPortMappingByClusterId",
16
+ "getDeviceDetailByDeviceId",
17
+ "getSystemStatusByDeviceId",
18
+ "getvnfByDeviceId",
19
+ "listNetworkFunctionMap",
20
+ "getpnfDetails",
21
+ "getPNFConfig",
22
+ "getServiceChainDetails",
23
+ "getServiceGroupByClusterId",
24
+ "getvnfDetails",
25
+ "vnfActions",
26
+ "getVNFEventsCountDetail",
27
+ "getVNFAlarmCount",
28
+ "getVNFEventsDetail",
29
+ "getVNFInterfaceDetail"
30
+ ],
31
+ "external_name": "ph_request_type"
32
+ }
33
+ },
34
+ "definitions": {}
35
+ }
@@ -589,6 +589,46 @@
589
589
  "mockFile": ""
590
590
  }
591
591
  ]
592
+ },
593
+ {
594
+ "name": "setBlockSync",
595
+ "protocol": "REST",
596
+ "method": "POST",
597
+ "entitypath": "{base_path}/{version}/device/blockSync?{query}",
598
+ "requestSchema": "schema.json",
599
+ "responseSchema": "schema.json",
600
+ "timeout": 0,
601
+ "sendEmpty": false,
602
+ "requestDatatype": "JSON",
603
+ "responseDatatype": "JSON",
604
+ "headers": {},
605
+ "responseObjects": [
606
+ {
607
+ "type": "default",
608
+ "key": "",
609
+ "mockFile": ""
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "name": "enableSDAVCOnDevice",
615
+ "protocol": "REST",
616
+ "method": "POST",
617
+ "entitypath": "{base_path}/{version}/device/enableSDAVC/{pathv1}/{pathv2}?{query}",
618
+ "requestSchema": "schema.json",
619
+ "responseSchema": "schema.json",
620
+ "timeout": 0,
621
+ "sendEmpty": false,
622
+ "requestDatatype": "JSON",
623
+ "responseDatatype": "JSON",
624
+ "headers": {},
625
+ "responseObjects": [
626
+ {
627
+ "type": "default",
628
+ "key": "",
629
+ "mockFile": ""
630
+ }
631
+ ]
592
632
  }
593
633
  ]
594
634
  }
@@ -37,7 +37,9 @@
37
37
  "deleteDeviceunreachabledeviceIP",
38
38
  "getDevicevedgeinventorydetail",
39
39
  "getDevicevedgeinventorysummary",
40
- "getDevicevmanage"
40
+ "getDevicevmanage",
41
+ "setBlockSync",
42
+ "enableSDAVCOnDevice"
41
43
  ],
42
44
  "external_name": "ph_request_type"
43
45
  }
@@ -0,0 +1,109 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getStatisticsType",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/data/device/statistics?{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/getStatisticsType-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getActiveAlarms",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/data/device/statistics/alarm/active?{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": "mockdatafiles/getActiveAlarms-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "generateDeviceStatisticsData",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/data/device/statistics/{pathv1}?{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": "mockdatafiles/generateDeviceStatisticsData-default.json"
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "getCountWithStateDataType",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/data/device/statistics/{pathv1}/doccount?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "sendGetBody": false,
76
+ "requestDatatype": "JSON",
77
+ "responseDatatype": "JSON",
78
+ "headers": {},
79
+ "responseObjects": [
80
+ {
81
+ "type": "default",
82
+ "key": "",
83
+ "mockFile": ""
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "getStatDataFieldsByStateDataType",
89
+ "protocol": "REST",
90
+ "method": "GET",
91
+ "entitypath": "{base_path}/{version}/data/device/statistics/{pathv1}/fields?{query}",
92
+ "requestSchema": "schema.json",
93
+ "responseSchema": "schema.json",
94
+ "timeout": 0,
95
+ "sendEmpty": false,
96
+ "sendGetBody": false,
97
+ "requestDatatype": "JSON",
98
+ "responseDatatype": "JSON",
99
+ "headers": {},
100
+ "responseObjects": [
101
+ {
102
+ "type": "default",
103
+ "key": "",
104
+ "mockFile": "mockdatafiles/getStatDataFieldsByStateDataType-default.json"
105
+ }
106
+ ]
107
+ }
108
+ ]
109
+ }