@itentialopensource/adapter-algosec_appviz 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 (89) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +39 -0
  5. package/BROKER.md +199 -0
  6. package/CALLS.md +170 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +172 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +641 -0
  13. package/README.md +337 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +11 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +6079 -0
  18. package/adapterBase.js +1787 -0
  19. package/entities/.generic/action.json +214 -0
  20. package/entities/.generic/schema.json +28 -0
  21. package/entities/.system/action.json +50 -0
  22. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  23. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  24. package/entities/.system/schema.json +19 -0
  25. package/entities/.system/schemaTokenReq.json +53 -0
  26. package/entities/.system/schemaTokenResp.json +53 -0
  27. package/entities/ApplicationsApiController/action.json +580 -0
  28. package/entities/ApplicationsApiController/mockdatafiles/getActivitiesForApplicationUsingGET-default.json +9 -0
  29. package/entities/ApplicationsApiController/mockdatafiles/getAllApplicationsActivitiesUsingGET-default.json +23 -0
  30. package/entities/ApplicationsApiController/mockdatafiles/getAllApplicationsUsingGET-default.json +170 -0
  31. package/entities/ApplicationsApiController/mockdatafiles/getApplicationChangeRequestsUsingGET-default.json +94 -0
  32. package/entities/ApplicationsApiController/mockdatafiles/getApplicationContactsUsingGET-default.json +20 -0
  33. package/entities/ApplicationsApiController/mockdatafiles/getApplicationLabelsUsingGET-default.json +14 -0
  34. package/entities/ApplicationsApiController/mockdatafiles/getApplicationLabelsUsingGET1-default.json +14 -0
  35. package/entities/ApplicationsApiController/mockdatafiles/getApplicationRevisionsByAppIdUsingGET-default.json +46 -0
  36. package/entities/ApplicationsApiController/mockdatafiles/getApplicationRevisionsUsingGET-default.json +68 -0
  37. package/entities/ApplicationsApiController/mockdatafiles/getApplicationRisksUsingGET-default.json +9 -0
  38. package/entities/ApplicationsApiController/mockdatafiles/getPciApplicationsVulnerabilitiesUsingGET-default.json +26 -0
  39. package/entities/ApplicationsApiController/schema.json +68 -0
  40. package/entities/FlowsApiController/action.json +147 -0
  41. package/entities/FlowsApiController/mockdatafiles/editApplicationFlowUsingPOST-default.json +2024 -0
  42. package/entities/FlowsApiController/mockdatafiles/getApplicationFlowsUsingGET-default.json +5022 -0
  43. package/entities/FlowsApiController/mockdatafiles/getFlowRisksUsingGET-default.json +23 -0
  44. package/entities/FlowsApiController/schema.json +25 -0
  45. package/entities/NetworkObjectApiController/action.json +271 -0
  46. package/entities/NetworkObjectApiController/mockdatafiles/findNetworkObjectsApplicationsByIpUsingGET-default.json +330 -0
  47. package/entities/NetworkObjectApiController/mockdatafiles/findNetworkObjectsByIpUsingGET-default.json +491 -0
  48. package/entities/NetworkObjectApiController/mockdatafiles/getAllNetworkObjectsUsingGET-default.json +479 -0
  49. package/entities/NetworkObjectApiController/mockdatafiles/getNetworkObjectApplicationsUsingGET-default.json +277 -0
  50. package/entities/NetworkObjectApiController/mockdatafiles/getNetworkObjectsByNameUsingGET-default.json +364 -0
  51. package/entities/NetworkObjectApiController/schema.json +53 -0
  52. package/entities/NetworkServiceApiController/action.json +147 -0
  53. package/entities/NetworkServiceApiController/mockdatafiles/getAllNetworkServicesUsingGET-default.json +81 -0
  54. package/entities/NetworkServiceApiController/schema.json +47 -0
  55. package/entities/PermissionsApiController/action.json +168 -0
  56. package/entities/PermissionsApiController/schema.json +26 -0
  57. package/error.json +190 -0
  58. package/package.json +86 -0
  59. package/pronghorn.json +7756 -0
  60. package/propertiesDecorators.json +14 -0
  61. package/propertiesSchema.json +1248 -0
  62. package/refs?service=git-upload-pack +0 -0
  63. package/report/algosec-AppViz-swagger.json +4453 -0
  64. package/report/creationReport.json +485 -0
  65. package/sampleProperties.json +195 -0
  66. package/test/integration/adapterTestBasicGet.js +83 -0
  67. package/test/integration/adapterTestConnectivity.js +93 -0
  68. package/test/integration/adapterTestIntegration.js +2212 -0
  69. package/test/unit/adapterBaseTestUnit.js +949 -0
  70. package/test/unit/adapterTestUnit.js +3291 -0
  71. package/utils/adapterInfo.js +206 -0
  72. package/utils/addAuth.js +94 -0
  73. package/utils/artifactize.js +146 -0
  74. package/utils/basicGet.js +50 -0
  75. package/utils/checkMigrate.js +63 -0
  76. package/utils/entitiesToDB.js +178 -0
  77. package/utils/findPath.js +74 -0
  78. package/utils/methodDocumentor.js +225 -0
  79. package/utils/modify.js +154 -0
  80. package/utils/packModificationScript.js +35 -0
  81. package/utils/patches2bundledDeps.js +90 -0
  82. package/utils/pre-commit.sh +32 -0
  83. package/utils/removeHooks.js +20 -0
  84. package/utils/setup.js +33 -0
  85. package/utils/tbScript.js +246 -0
  86. package/utils/tbUtils.js +490 -0
  87. package/utils/testRunner.js +298 -0
  88. package/utils/troubleshootingAdapter.js +195 -0
  89. package/workflows/README.md +3 -0
@@ -0,0 +1,485 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "Standard adapter errors available for use",
7
+ "value": 31
8
+ },
9
+ {
10
+ "owner": "packageJson",
11
+ "description": "Number of production dependencies",
12
+ "value": 16
13
+ },
14
+ {
15
+ "owner": "packageJson",
16
+ "description": "Number of development dependencies",
17
+ "value": 7
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of npm scripts",
22
+ "value": 22
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Runtime Library dependency",
27
+ "value": "^4.48.0"
28
+ },
29
+ {
30
+ "owner": "propertiesSchemaJson",
31
+ "description": "Adapter properties defined in the propertiesSchema file",
32
+ "value": 70
33
+ },
34
+ {
35
+ "owner": "adapterJS",
36
+ "description": "Lines of code generated in adapter.js",
37
+ "value": 6080
38
+ },
39
+ {
40
+ "owner": "adapterJS",
41
+ "description": "Number of Functions added to adapter.js",
42
+ "value": 63
43
+ },
44
+ {
45
+ "owner": "pronghornJson",
46
+ "description": "Number of Methods added to pronghorn.json",
47
+ "value": 63
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the README.md",
52
+ "value": 338
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the SUMMARY.md",
57
+ "value": 9
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the PROPERTIES.md",
62
+ "value": 642
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the TROUBLESHOOT.md",
67
+ "value": 48
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the ENHANCE.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "markdown",
76
+ "description": "Number of lines in the BROKER.md",
77
+ "value": 200
78
+ },
79
+ {
80
+ "owner": "markdown",
81
+ "description": "Number of lines in the CALLS.md",
82
+ "value": 171
83
+ },
84
+ {
85
+ "owner": "markdown",
86
+ "description": "Number of lines in the AUTH.md",
87
+ "value": 40
88
+ },
89
+ {
90
+ "owner": "markdown",
91
+ "description": "Number of lines in the SYSTEMINFO.md",
92
+ "value": 11
93
+ },
94
+ {
95
+ "owner": "unitTestJS",
96
+ "description": "Number of lines of code in unit tests",
97
+ "value": 3292
98
+ },
99
+ {
100
+ "owner": "unitTestJS",
101
+ "description": "Number of unit tests",
102
+ "value": 190
103
+ },
104
+ {
105
+ "owner": "integrationTestJS",
106
+ "description": "Number of lines of code in integration tests",
107
+ "value": 2213
108
+ },
109
+ {
110
+ "owner": "integrationTestJS",
111
+ "description": "Number of integration tests",
112
+ "value": 68
113
+ },
114
+ {
115
+ "owner": "actionJson",
116
+ "description": "Number of actions for ApplicationsApiController entity",
117
+ "value": 28
118
+ },
119
+ {
120
+ "owner": "actionJson",
121
+ "description": "Number of actions for FlowsApiController entity",
122
+ "value": 7
123
+ },
124
+ {
125
+ "owner": "actionJson",
126
+ "description": "Number of actions for NetworkObjectApiController entity",
127
+ "value": 13
128
+ },
129
+ {
130
+ "owner": "actionJson",
131
+ "description": "Number of actions for NetworkServiceApiController entity",
132
+ "value": 7
133
+ },
134
+ {
135
+ "owner": "actionJson",
136
+ "description": "Number of actions for PermissionsApiController entity",
137
+ "value": 8
138
+ },
139
+ {
140
+ "owner": "actionJson",
141
+ "description": "Total number of actions",
142
+ "value": 63
143
+ },
144
+ {
145
+ "owner": "actionJson",
146
+ "description": "Total number of entities",
147
+ "value": 5
148
+ },
149
+ {
150
+ "owner": "schemaJson",
151
+ "description": "Number of schemas for ApplicationsApiController entity",
152
+ "value": 1
153
+ },
154
+ {
155
+ "owner": "schemaJson",
156
+ "description": "Number of schemas for FlowsApiController entity",
157
+ "value": 1
158
+ },
159
+ {
160
+ "owner": "schemaJson",
161
+ "description": "Number of schemas for NetworkObjectApiController entity",
162
+ "value": 1
163
+ },
164
+ {
165
+ "owner": "schemaJson",
166
+ "description": "Number of schemas for NetworkServiceApiController entity",
167
+ "value": 1
168
+ },
169
+ {
170
+ "owner": "schemaJson",
171
+ "description": "Number of schemas for PermissionsApiController entity",
172
+ "value": 1
173
+ },
174
+ {
175
+ "owner": "schemaJson",
176
+ "description": "Total number of schemas",
177
+ "value": 5
178
+ },
179
+ {
180
+ "owner": "mockdata",
181
+ "description": "Number of mock data files for ApplicationsApiController entity",
182
+ "value": 11
183
+ },
184
+ {
185
+ "owner": "mockdata",
186
+ "description": "Number of mock data files for FlowsApiController entity",
187
+ "value": 3
188
+ },
189
+ {
190
+ "owner": "mockdata",
191
+ "description": "Number of mock data files for NetworkObjectApiController entity",
192
+ "value": 5
193
+ },
194
+ {
195
+ "owner": "mockdata",
196
+ "description": "Number of mock data files for NetworkServiceApiController entity",
197
+ "value": 1
198
+ },
199
+ {
200
+ "owner": "mockdata",
201
+ "description": "Number of mock data files for PermissionsApiController entity",
202
+ "value": 0
203
+ },
204
+ {
205
+ "owner": "mockdata",
206
+ "description": "Total number of mock data files",
207
+ "value": 20
208
+ },
209
+ {
210
+ "owner": "actionJson",
211
+ "description": "Number of actions for .system entity",
212
+ "value": 2
213
+ },
214
+ {
215
+ "owner": "schemaJson",
216
+ "description": "Number of schemas for .system entity",
217
+ "value": 3
218
+ },
219
+ {
220
+ "owner": "mockdata",
221
+ "description": "Number of mock data files for .system entity",
222
+ "value": 2
223
+ },
224
+ {
225
+ "owner": "System",
226
+ "description": "System entity files",
227
+ "value": 6
228
+ },
229
+ {
230
+ "owner": "usecases",
231
+ "description": "Number of workflows",
232
+ "value": 0
233
+ },
234
+ {
235
+ "owner": "staticFile",
236
+ "description": "Number of lines of code in adapterBase.js",
237
+ "value": 1788
238
+ },
239
+ {
240
+ "owner": "staticFile",
241
+ "description": "Number of static files added",
242
+ "value": 38
243
+ },
244
+ {
245
+ "owner": "Overall",
246
+ "description": "Total lines of Code",
247
+ "value": 13373
248
+ },
249
+ {
250
+ "owner": "Overall",
251
+ "description": "Total Tests",
252
+ "value": 258
253
+ },
254
+ {
255
+ "owner": "Overall",
256
+ "description": "Total Files",
257
+ "value": 82
258
+ }
259
+ ],
260
+ "warnings": [],
261
+ "apiParsingReport": {
262
+ "no_mockdata": [
263
+ {
264
+ "fnName": "getApplicationByAppIdUsingGET",
265
+ "method": "get",
266
+ "path": "/applications/id/{id}"
267
+ },
268
+ {
269
+ "fnName": "getApplicationByNameUsingGET",
270
+ "method": "get",
271
+ "path": "/applications/name/**"
272
+ },
273
+ {
274
+ "fnName": "newApplicationUsingPOST",
275
+ "method": "post",
276
+ "path": "/applications/new"
277
+ },
278
+ {
279
+ "fnName": "getApplicationByIdUsingGET",
280
+ "method": "get",
281
+ "path": "/applications/{id}"
282
+ },
283
+ {
284
+ "fnName": "applyDraftUsingPOST",
285
+ "method": "post",
286
+ "path": "/applications/{id}/apply"
287
+ },
288
+ {
289
+ "fnName": "getApplicationUsersAndRolesUsingGET",
290
+ "method": "get",
291
+ "path": "/applications/{id}/authorized_users_and_roles"
292
+ },
293
+ {
294
+ "fnName": "runCheckConnectivityUsingPOST",
295
+ "method": "post",
296
+ "path": "/applications/{id}/check_connectivity"
297
+ },
298
+ {
299
+ "fnName": "editApplicationContactsUsingPOST",
300
+ "method": "post",
301
+ "path": "/applications/{id}/contacts"
302
+ },
303
+ {
304
+ "fnName": "clearAllApplicationContactsUsingDELETE",
305
+ "method": "delete",
306
+ "path": "/applications/{id}/contacts"
307
+ },
308
+ {
309
+ "fnName": "editCustomFieldsUsingPOST",
310
+ "method": "post",
311
+ "path": "/applications/{id}/custom_fields"
312
+ },
313
+ {
314
+ "fnName": "clearAllApplicationCustomFieldsUsingDELETE",
315
+ "method": "delete",
316
+ "path": "/applications/{id}/custom_fields"
317
+ },
318
+ {
319
+ "fnName": "decomissionApplicationUsingPOST",
320
+ "method": "post",
321
+ "path": "/applications/{id}/decommission"
322
+ },
323
+ {
324
+ "fnName": "discardRevisionUsingPOST",
325
+ "method": "post",
326
+ "path": "/applications/{id}/discard"
327
+ },
328
+ {
329
+ "fnName": "editApplicationLabelsUsingPOST",
330
+ "method": "post",
331
+ "path": "/applications/{id}/labels"
332
+ },
333
+ {
334
+ "fnName": "removeAllApplicationLabelsUsingDELETE",
335
+ "method": "delete",
336
+ "path": "/applications/{id}/labels"
337
+ },
338
+ {
339
+ "fnName": "resolveApplicationUsingPOST",
340
+ "method": "post",
341
+ "path": "/applications/{id}/resolve"
342
+ },
343
+ {
344
+ "fnName": "getApplicationVulnerabilitiesUsingGET",
345
+ "method": "get",
346
+ "path": "/applications/{id}/vulnerabilities"
347
+ },
348
+ {
349
+ "fnName": "createApplicationFlowUsingPOST",
350
+ "method": "post",
351
+ "path": "/applications/{id}/flows/new"
352
+ },
353
+ {
354
+ "fnName": "getFlowUsingGET",
355
+ "method": "get",
356
+ "path": "/applications/{id}/flows/{flowId}"
357
+ },
358
+ {
359
+ "fnName": "deleteFlowByIdUsingDELETE",
360
+ "method": "delete",
361
+ "path": "/applications/{id}/flows/{flowId}"
362
+ },
363
+ {
364
+ "fnName": "runConnectivityOnFlowUsingPOST",
365
+ "method": "post",
366
+ "path": "/applications/{id}/flows/{flowId}/check_connectivity"
367
+ },
368
+ {
369
+ "fnName": "createNewEndpointUsingPOST",
370
+ "method": "post",
371
+ "path": "/network_objects/new"
372
+ },
373
+ {
374
+ "fnName": "getNetworkObjectByIdUsingGET",
375
+ "method": "get",
376
+ "path": "/network_objects/{id}"
377
+ },
378
+ {
379
+ "fnName": "editEndpointUsingPOST",
380
+ "method": "post",
381
+ "path": "/network_objects/{id}"
382
+ },
383
+ {
384
+ "fnName": "deleteNetworkObjectByIdUsingDELETE",
385
+ "method": "delete",
386
+ "path": "/network_objects/{id}"
387
+ },
388
+ {
389
+ "fnName": "replaceAbstractEndpointUsingPOST",
390
+ "method": "post",
391
+ "path": "/network_objects/{id}/replace"
392
+ },
393
+ {
394
+ "fnName": "saveEndpointLabelsUsingPOST",
395
+ "method": "post",
396
+ "path": "/network_objects/{id}/save_labels"
397
+ },
398
+ {
399
+ "fnName": "syncEndpointUsingPOST",
400
+ "method": "post",
401
+ "path": "/network_objects/{id}/sync"
402
+ },
403
+ {
404
+ "fnName": "getNetworkObjectVulnerabilitiesUsingGET",
405
+ "method": "get",
406
+ "path": "/network_objects/{id}/vulnerabilities"
407
+ },
408
+ {
409
+ "fnName": "getNetworkServiceByNameUsingGET",
410
+ "method": "get",
411
+ "path": "/network_services/name/**"
412
+ },
413
+ {
414
+ "fnName": "createNewNetworkServiceUsingPOST",
415
+ "method": "post",
416
+ "path": "/network_services/new"
417
+ },
418
+ {
419
+ "fnName": "getNetworkServiceByIdUsingGET",
420
+ "method": "get",
421
+ "path": "/network_services/{id}"
422
+ },
423
+ {
424
+ "fnName": "editNetworkServiceUsingPOST",
425
+ "method": "post",
426
+ "path": "/network_services/{id}"
427
+ },
428
+ {
429
+ "fnName": "deleteNetworkServiceByIdUsingDELETE",
430
+ "method": "delete",
431
+ "path": "/network_services/{id}"
432
+ },
433
+ {
434
+ "fnName": "syncServiceObjectUsingPOST",
435
+ "method": "post",
436
+ "path": "/network_services/{id}/sync"
437
+ },
438
+ {
439
+ "fnName": "getDefaultPermissionsUsingGET",
440
+ "method": "get",
441
+ "path": "/settings/permissions/default"
442
+ },
443
+ {
444
+ "fnName": "getRoleUsingGET",
445
+ "method": "get",
446
+ "path": "/settings/permissions/role"
447
+ },
448
+ {
449
+ "fnName": "changeRolePermissionsUsingPOST",
450
+ "method": "post",
451
+ "path": "/settings/permissions/role"
452
+ },
453
+ {
454
+ "fnName": "deleteRoleUsingDELETE",
455
+ "method": "delete",
456
+ "path": "/settings/permissions/role"
457
+ },
458
+ {
459
+ "fnName": "createRoleUsingPOST",
460
+ "method": "post",
461
+ "path": "/settings/permissions/role/new"
462
+ },
463
+ {
464
+ "fnName": "getUserPermissionsUsingGET",
465
+ "method": "get",
466
+ "path": "/settings/permissions/user"
467
+ },
468
+ {
469
+ "fnName": "changeUserPermissionsUsingPOST",
470
+ "method": "post",
471
+ "path": "/settings/permissions/user"
472
+ },
473
+ {
474
+ "fnName": "getUserPermittedApplicationsUsingGET",
475
+ "method": "get",
476
+ "path": "/settings/permissions/user/permitted_applications"
477
+ }
478
+ ],
479
+ "errors": [],
480
+ "warnings": [],
481
+ "callsTotal": 63,
482
+ "callsConverted": 63,
483
+ "no_mockdata_num": 43
484
+ }
485
+ }
@@ -0,0 +1,195 @@
1
+ {
2
+ "id": "Adapter-algosec_appviz",
3
+ "type": "AlgosecAppviz",
4
+ "properties": {
5
+ "host": "localhost",
6
+ "port": 443,
7
+ "base_path": "/BusinessFlow/rest",
8
+ "version": "v1",
9
+ "cache_location": "none",
10
+ "encode_pathvars": true,
11
+ "encode_queryvars": true,
12
+ "save_metric": false,
13
+ "stub": true,
14
+ "protocol": "https",
15
+ "authentication": {
16
+ "auth_method": "basic user_password",
17
+ "username": "username",
18
+ "password": "password",
19
+ "token": "token",
20
+ "token_timeout": 600000,
21
+ "token_cache": "local",
22
+ "invalid_token_error": 401,
23
+ "auth_field": "header.headers.Authorization",
24
+ "auth_field_format": "Basic {b64}{username}:{password}{/b64}",
25
+ "auth_logging": false,
26
+ "client_id": "",
27
+ "client_secret": "",
28
+ "grant_type": ""
29
+ },
30
+ "healthcheck": {
31
+ "type": "none",
32
+ "frequency": 60000,
33
+ "query_object": {}
34
+ },
35
+ "throttle": {
36
+ "throttle_enabled": false,
37
+ "number_pronghorns": 1,
38
+ "sync_async": "sync",
39
+ "max_in_queue": 1000,
40
+ "concurrent_max": 1,
41
+ "expire_timeout": 0,
42
+ "avg_runtime": 200,
43
+ "priorities": [
44
+ {
45
+ "value": 0,
46
+ "percent": 100
47
+ }
48
+ ]
49
+ },
50
+ "request": {
51
+ "number_redirects": 0,
52
+ "number_retries": 3,
53
+ "limit_retry_error": [
54
+ 0
55
+ ],
56
+ "failover_codes": [],
57
+ "attempt_timeout": 5000,
58
+ "global_request": {
59
+ "payload": {},
60
+ "uriOptions": {},
61
+ "addlHeaders": {},
62
+ "authData": {}
63
+ },
64
+ "healthcheck_on_timeout": true,
65
+ "return_raw": false,
66
+ "archiving": false,
67
+ "return_request": false
68
+ },
69
+ "proxy": {
70
+ "enabled": false,
71
+ "host": "",
72
+ "port": 1,
73
+ "protocol": "http",
74
+ "username": "",
75
+ "password": ""
76
+ },
77
+ "ssl": {
78
+ "ecdhCurve": "",
79
+ "enabled": false,
80
+ "accept_invalid_cert": false,
81
+ "ca_file": "",
82
+ "key_file": "",
83
+ "cert_file": "",
84
+ "secure_protocol": "",
85
+ "ciphers": ""
86
+ },
87
+ "mongo": {
88
+ "host": "",
89
+ "port": 0,
90
+ "database": "",
91
+ "username": "",
92
+ "password": "",
93
+ "replSet": "",
94
+ "db_ssl": {
95
+ "enabled": false,
96
+ "accept_invalid_cert": false,
97
+ "ca_file": "",
98
+ "key_file": "",
99
+ "cert_file": ""
100
+ }
101
+ },
102
+ "devicebroker": {
103
+ "getDevice": [
104
+ {
105
+ "path": "/get/devices/{id}",
106
+ "method": "GET",
107
+ "query": {},
108
+ "body": {},
109
+ "headers": {},
110
+ "handleFailure": "ignore",
111
+ "requestFields": {
112
+ "id": "name"
113
+ },
114
+ "responseDatakey": "",
115
+ "responseFields": {
116
+ "name": "host",
117
+ "ostype": "os",
118
+ "ostypePrefix": "system-",
119
+ "ipaddress": "attributes.ipaddr",
120
+ "port": "443"
121
+ }
122
+ }
123
+ ],
124
+ "getDevicesFiltered": [
125
+ {
126
+ "path": "/get/devices",
127
+ "method": "GET",
128
+ "query": {},
129
+ "body": {},
130
+ "headers": {},
131
+ "handleFailure": "ignore",
132
+ "requestFields": {},
133
+ "responseDatakey": "",
134
+ "responseFields": {
135
+ "name": "host",
136
+ "ostype": "os",
137
+ "ostypePrefix": "system-",
138
+ "ipaddress": "attributes.ipaddr",
139
+ "port": "443"
140
+ }
141
+ }
142
+ ],
143
+ "isAlive": [
144
+ {
145
+ "path": "/get/devices/{id}/status",
146
+ "method": "GET",
147
+ "query": {},
148
+ "body": {},
149
+ "headers": {},
150
+ "handleFailure": "ignore",
151
+ "requestFields": {
152
+ "id": "name"
153
+ },
154
+ "responseDatakey": "",
155
+ "responseFields": {
156
+ "status": "status",
157
+ "statusValue": "online"
158
+ }
159
+ }
160
+ ],
161
+ "getConfig": [
162
+ {
163
+ "path": "/get/devices/{id}/configPart1",
164
+ "method": "GET",
165
+ "query": {},
166
+ "body": {},
167
+ "headers": {},
168
+ "handleFailure": "ignore",
169
+ "requestFields": {
170
+ "id": "name"
171
+ },
172
+ "responseDatakey": "",
173
+ "responseFields": {}
174
+ }
175
+ ],
176
+ "getCount": [
177
+ {
178
+ "path": "/get/devices",
179
+ "method": "GET",
180
+ "query": {},
181
+ "body": {},
182
+ "headers": {},
183
+ "handleFailure": "ignore",
184
+ "requestFields": {},
185
+ "responseDatakey": "",
186
+ "responseFields": {}
187
+ }
188
+ ]
189
+ }
190
+ },
191
+ "groups": [],
192
+ "brokers": [],
193
+ "logLevel": "none",
194
+ "timeout": 120000
195
+ }