@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,189 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "activateContainerOnRemoteHost",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/container-manager/activate/{pathv1}?{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": "deActivateContainer",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/container-manager/deactivate/{pathv1}?{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": "doesValidImageExist",
45
+ "protocol": "REST",
46
+ "method": "GET",
47
+ "entitypath": "{base_path}/{version}/container-manager/doesValidImageExist/{pathv1}?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "sendGetBody": 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": "getContainerInspectData",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/container-manager/inspect/{pathv1}?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "sendGetBody": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "PLAIN",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "getContainerSettings",
87
+ "protocol": "REST",
88
+ "method": "GET",
89
+ "entitypath": "{base_path}/{version}/container-manager/settings/{pathv1}?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "sendGetBody": false,
95
+ "requestDatatype": "JSON",
96
+ "responseDatatype": "JSON",
97
+ "headers": {},
98
+ "responseObjects": [
99
+ {
100
+ "type": "default",
101
+ "key": "",
102
+ "mockFile": ""
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "name": "getChecksum",
108
+ "protocol": "REST",
109
+ "method": "GET",
110
+ "entitypath": "{base_path}/{version}/sdavc/checksum?{query}",
111
+ "requestSchema": "schema.json",
112
+ "responseSchema": "schema.json",
113
+ "timeout": 0,
114
+ "sendEmpty": false,
115
+ "sendGetBody": false,
116
+ "requestDatatype": "JSON",
117
+ "responseDatatype": "JSON",
118
+ "headers": {},
119
+ "responseObjects": [
120
+ {
121
+ "type": "default",
122
+ "key": "",
123
+ "mockFile": ""
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "name": "getCustomApp",
129
+ "protocol": "REST",
130
+ "method": "GET",
131
+ "entitypath": "{base_path}/{version}/sdavc/customapps?{query}",
132
+ "requestSchema": "schema.json",
133
+ "responseSchema": "schema.json",
134
+ "timeout": 0,
135
+ "sendEmpty": false,
136
+ "sendGetBody": false,
137
+ "requestDatatype": "JSON",
138
+ "responseDatatype": "JSON",
139
+ "headers": {},
140
+ "responseObjects": [
141
+ {
142
+ "type": "default",
143
+ "key": "",
144
+ "mockFile": "mockdatafiles/getCustomApp-default.json"
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "activateContainer",
150
+ "protocol": "REST",
151
+ "method": "POST",
152
+ "entitypath": "{base_path}/{version}/sdavc/task/{pathv1}?{query}",
153
+ "requestSchema": "schema.json",
154
+ "responseSchema": "schema.json",
155
+ "timeout": 0,
156
+ "sendEmpty": false,
157
+ "requestDatatype": "JSON",
158
+ "responseDatatype": "JSON",
159
+ "headers": {},
160
+ "responseObjects": [
161
+ {
162
+ "type": "default",
163
+ "key": "",
164
+ "mockFile": ""
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "name": "testLoadBalancer",
170
+ "protocol": "REST",
171
+ "method": "POST",
172
+ "entitypath": "{base_path}/{version}/sdavc/test?{query}",
173
+ "requestSchema": "schema.json",
174
+ "responseSchema": "schema.json",
175
+ "timeout": 0,
176
+ "sendEmpty": false,
177
+ "requestDatatype": "JSON",
178
+ "responseDatatype": "JSON",
179
+ "headers": {},
180
+ "responseObjects": [
181
+ {
182
+ "type": "default",
183
+ "key": "",
184
+ "mockFile": ""
185
+ }
186
+ ]
187
+ }
188
+ ]
189
+ }
@@ -0,0 +1,27 @@
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
+ "activateContainerOnRemoteHost",
14
+ "deActivateContainer",
15
+ "doesValidImageExist",
16
+ "getContainerInspectData",
17
+ "getContainerSettings",
18
+ "getChecksum",
19
+ "getCustomApp",
20
+ "activateContainer",
21
+ "testLoadBalancer"
22
+ ],
23
+ "external_name": "ph_request_type"
24
+ }
25
+ },
26
+ "definitions": {}
27
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "cancelPendingTasks",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/device/action/status/cancel/{pathv1}?{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": "cleanStatus",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/device/action/status/clean?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "deleteStatus",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "{base_path}/{version}/device/action/status/clear?{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": "findRunningTasks",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/device/action/status/tasks?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "sendGetBody": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "getActiveTaskCount",
87
+ "protocol": "REST",
88
+ "method": "GET",
89
+ "entitypath": "{base_path}/{version}/device/action/status/tasks/activeCount?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "sendGetBody": false,
95
+ "requestDatatype": "JSON",
96
+ "responseDatatype": "JSON",
97
+ "headers": {},
98
+ "responseObjects": [
99
+ {
100
+ "type": "default",
101
+ "key": "",
102
+ "mockFile": ""
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "name": "getCleanStatus",
108
+ "protocol": "REST",
109
+ "method": "GET",
110
+ "entitypath": "{base_path}/{version}/device/action/status/tasks/clean?{query}",
111
+ "requestSchema": "schema.json",
112
+ "responseSchema": "schema.json",
113
+ "timeout": 0,
114
+ "sendEmpty": false,
115
+ "sendGetBody": false,
116
+ "requestDatatype": "JSON",
117
+ "responseDatatype": "JSON",
118
+ "headers": {},
119
+ "responseObjects": [
120
+ {
121
+ "type": "default",
122
+ "key": "",
123
+ "mockFile": ""
124
+ }
125
+ ]
126
+ }
127
+ ]
128
+ }
@@ -0,0 +1,24 @@
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
+ "cancelPendingTasks",
14
+ "cleanStatus",
15
+ "deleteStatus",
16
+ "findRunningTasks",
17
+ "getActiveTaskCount",
18
+ "getCleanStatus"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ }
22
+ },
23
+ "definitions": {}
24
+ }
@@ -0,0 +1,288 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "createAdminTech",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/device/tools/admintech?{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": "downloadAdminTechFile",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/device/tools/admintech/download/{pathv1}?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "deleteAdminTechFile",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "{base_path}/{version}/device/tools/admintech/{pathv1}?{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": "listAdminTechs",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/device/tools/admintechs?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "sendGetBody": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "npingDevice",
87
+ "protocol": "REST",
88
+ "method": "POST",
89
+ "entitypath": "{base_path}/{version}/device/tools/nping/{pathv1}?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "pingDevice",
107
+ "protocol": "REST",
108
+ "method": "POST",
109
+ "entitypath": "{base_path}/{version}/device/tools/ping/{pathv1}?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "processPortHopColor",
127
+ "protocol": "REST",
128
+ "method": "POST",
129
+ "entitypath": "{base_path}/{version}/device/tools/porthopcolor/{pathv1}?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "requestDatatype": "JSON",
135
+ "responseDatatype": "JSON",
136
+ "headers": {},
137
+ "responseObjects": [
138
+ {
139
+ "type": "default",
140
+ "key": "",
141
+ "mockFile": ""
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "name": "processInterfaceReset",
147
+ "protocol": "REST",
148
+ "method": "POST",
149
+ "entitypath": "{base_path}/{version}/device/tools/reset/interface/{pathv1}?{query}",
150
+ "requestSchema": "schema.json",
151
+ "responseSchema": "schema.json",
152
+ "timeout": 0,
153
+ "sendEmpty": false,
154
+ "requestDatatype": "JSON",
155
+ "responseDatatype": "JSON",
156
+ "headers": {},
157
+ "responseObjects": [
158
+ {
159
+ "type": "default",
160
+ "key": "",
161
+ "mockFile": ""
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "name": "processResetUser",
167
+ "protocol": "REST",
168
+ "method": "POST",
169
+ "entitypath": "{base_path}/{version}/device/tools/resetuser/{pathv1}?{query}",
170
+ "requestSchema": "schema.json",
171
+ "responseSchema": "schema.json",
172
+ "timeout": 0,
173
+ "sendEmpty": false,
174
+ "requestDatatype": "JSON",
175
+ "responseDatatype": "JSON",
176
+ "headers": {},
177
+ "responseObjects": [
178
+ {
179
+ "type": "default",
180
+ "key": "",
181
+ "mockFile": ""
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "name": "servicePath",
187
+ "protocol": "REST",
188
+ "method": "POST",
189
+ "entitypath": "{base_path}/{version}/device/tools/servicepath/{pathv1}?{query}",
190
+ "requestSchema": "schema.json",
191
+ "responseSchema": "schema.json",
192
+ "timeout": 0,
193
+ "sendEmpty": false,
194
+ "requestDatatype": "JSON",
195
+ "responseDatatype": "JSON",
196
+ "headers": {},
197
+ "responseObjects": [
198
+ {
199
+ "type": "default",
200
+ "key": "",
201
+ "mockFile": ""
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "name": "tracerouteDevice",
207
+ "protocol": "REST",
208
+ "method": "POST",
209
+ "entitypath": "{base_path}/{version}/device/tools/traceroute/{pathv1}?{query}",
210
+ "requestSchema": "schema.json",
211
+ "responseSchema": "schema.json",
212
+ "timeout": 0,
213
+ "sendEmpty": false,
214
+ "requestDatatype": "JSON",
215
+ "responseDatatype": "JSON",
216
+ "headers": {},
217
+ "responseObjects": [
218
+ {
219
+ "type": "default",
220
+ "key": "",
221
+ "mockFile": ""
222
+ }
223
+ ]
224
+ },
225
+ {
226
+ "name": "tunnelPath",
227
+ "protocol": "REST",
228
+ "method": "POST",
229
+ "entitypath": "{base_path}/{version}/device/tools/tunnelpath/{pathv1}?{query}",
230
+ "requestSchema": "schema.json",
231
+ "responseSchema": "schema.json",
232
+ "timeout": 0,
233
+ "sendEmpty": false,
234
+ "requestDatatype": "JSON",
235
+ "responseDatatype": "JSON",
236
+ "headers": {},
237
+ "responseObjects": [
238
+ {
239
+ "type": "default",
240
+ "key": "",
241
+ "mockFile": ""
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "name": "getControlConnections",
247
+ "protocol": "REST",
248
+ "method": "GET",
249
+ "entitypath": "{base_path}/{version}/troubleshooting/control/{pathv1}?{query}",
250
+ "requestSchema": "schema.json",
251
+ "responseSchema": "schema.json",
252
+ "timeout": 0,
253
+ "sendEmpty": false,
254
+ "sendGetBody": false,
255
+ "requestDatatype": "JSON",
256
+ "responseDatatype": "JSON",
257
+ "headers": {},
258
+ "responseObjects": [
259
+ {
260
+ "type": "default",
261
+ "key": "",
262
+ "mockFile": ""
263
+ }
264
+ ]
265
+ },
266
+ {
267
+ "name": "getDeviceConfiguration",
268
+ "protocol": "REST",
269
+ "method": "GET",
270
+ "entitypath": "{base_path}/{version}/troubleshooting/devicebringup?{query}",
271
+ "requestSchema": "schema.json",
272
+ "responseSchema": "schema.json",
273
+ "timeout": 0,
274
+ "sendEmpty": false,
275
+ "sendGetBody": false,
276
+ "requestDatatype": "JSON",
277
+ "responseDatatype": "JSON",
278
+ "headers": {},
279
+ "responseObjects": [
280
+ {
281
+ "type": "default",
282
+ "key": "",
283
+ "mockFile": ""
284
+ }
285
+ ]
286
+ }
287
+ ]
288
+ }
@@ -0,0 +1,32 @@
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
+ "createAdminTech",
14
+ "downloadAdminTechFile",
15
+ "deleteAdminTechFile",
16
+ "listAdminTechs",
17
+ "npingDevice",
18
+ "pingDevice",
19
+ "processPortHopColor",
20
+ "processInterfaceReset",
21
+ "processResetUser",
22
+ "servicePath",
23
+ "tracerouteDevice",
24
+ "tunnelPath",
25
+ "getControlConnections",
26
+ "getDeviceConfiguration"
27
+ ],
28
+ "external_name": "ph_request_type"
29
+ }
30
+ },
31
+ "definitions": {}
32
+ }