@itentialopensource/adapter-drivenets_networkcloud 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 (68) 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 +234 -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 +1722 -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/PointOfPresencePoPServices/action.json +46 -0
  28. package/entities/PointOfPresencePoPServices/schema.json +20 -0
  29. package/entities/ServiceState/action.json +46 -0
  30. package/entities/ServiceState/schema.json +20 -0
  31. package/entities/Services/action.json +85 -0
  32. package/entities/Services/schema.json +22 -0
  33. package/entities/ShowCommand/action.json +24 -0
  34. package/entities/ShowCommand/schema.json +19 -0
  35. package/error.json +190 -0
  36. package/package.json +87 -0
  37. package/pronghorn.json +1346 -0
  38. package/propertiesDecorators.json +14 -0
  39. package/propertiesSchema.json +1248 -0
  40. package/refs?service=git-upload-pack +0 -0
  41. package/report/adapterInfo.json +10 -0
  42. package/report/creationReport.json +300 -0
  43. package/report/openapi (3).json +3111 -0
  44. package/sampleProperties.json +195 -0
  45. package/test/integration/adapterTestBasicGet.js +83 -0
  46. package/test/integration/adapterTestConnectivity.js +93 -0
  47. package/test/integration/adapterTestIntegration.js +635 -0
  48. package/test/unit/adapterBaseTestUnit.js +949 -0
  49. package/test/unit/adapterTestUnit.js +1725 -0
  50. package/utils/adapterInfo.js +206 -0
  51. package/utils/addAuth.js +94 -0
  52. package/utils/artifactize.js +146 -0
  53. package/utils/basicGet.js +50 -0
  54. package/utils/checkMigrate.js +63 -0
  55. package/utils/entitiesToDB.js +178 -0
  56. package/utils/findPath.js +74 -0
  57. package/utils/methodDocumentor.js +225 -0
  58. package/utils/modify.js +154 -0
  59. package/utils/packModificationScript.js +35 -0
  60. package/utils/patches2bundledDeps.js +90 -0
  61. package/utils/pre-commit.sh +32 -0
  62. package/utils/removeHooks.js +20 -0
  63. package/utils/setup.js +33 -0
  64. package/utils/tbScript.js +246 -0
  65. package/utils/tbUtils.js +490 -0
  66. package/utils/testRunner.js +298 -0
  67. package/utils/troubleshootingAdapter.js +195 -0
  68. package/workflows/README.md +3 -0
package/pronghorn.json ADDED
@@ -0,0 +1,1346 @@
1
+ {
2
+ "id": "@itentialopensource/adapter-drivenets_networkcloud",
3
+ "type": "Adapter",
4
+ "export": "DrivenetsNetworkcloud",
5
+ "title": "Drivenets_networkcloud",
6
+ "src": "adapter.js",
7
+ "roles": [
8
+ "admin"
9
+ ],
10
+ "methods": [
11
+ {
12
+ "name": "iapUpdateAdapterConfiguration",
13
+ "summary": "Updates the adapter configuration",
14
+ "description": "Updates the adapter configuration file with the provided changes",
15
+ "input": [
16
+ {
17
+ "name": "configFile",
18
+ "type": "string",
19
+ "info": "The name of the file to change",
20
+ "required": true,
21
+ "schema": {
22
+ "title": "configFile",
23
+ "type": "string"
24
+ }
25
+ },
26
+ {
27
+ "name": "changes",
28
+ "type": "object",
29
+ "info": "JSON object containing the configuration changes",
30
+ "required": true,
31
+ "schema": {
32
+ "title": "changes",
33
+ "type": "object"
34
+ }
35
+ },
36
+ {
37
+ "name": "entity",
38
+ "type": "string",
39
+ "info": "The entity in which the changes are being made",
40
+ "required": false,
41
+ "schema": {
42
+ "title": "entity",
43
+ "type": "string"
44
+ }
45
+ },
46
+ {
47
+ "name": "type",
48
+ "type": "string",
49
+ "info": "The type of file to change - action, schema, or mock",
50
+ "required": false,
51
+ "schema": {
52
+ "title": "type",
53
+ "type": "string"
54
+ }
55
+ },
56
+ {
57
+ "name": "action",
58
+ "type": "string",
59
+ "info": "The action to be changed",
60
+ "required": false,
61
+ "schema": {
62
+ "title": "action",
63
+ "type": "string"
64
+ }
65
+ }
66
+ ],
67
+ "output": {
68
+ "name": "result",
69
+ "type": "object",
70
+ "description": "A JSON Object containing status, code and the result",
71
+ "schema": {
72
+ "title": "result",
73
+ "type": "object"
74
+ }
75
+ },
76
+ "roles": [
77
+ "admin"
78
+ ],
79
+ "route": {
80
+ "verb": "POST",
81
+ "path": "/iapUpdateAdapterConfiguration"
82
+ },
83
+ "task": true
84
+ },
85
+ {
86
+ "name": "iapFindAdapterPath",
87
+ "summary": "Provides the ability to see if a particular API path is supported by the adapter",
88
+ "description": "Provides the ability to see if a particular API path is supported by the adapter",
89
+ "input": [
90
+ {
91
+ "name": "apiPath",
92
+ "type": "string",
93
+ "info": "The API Path you want to check - make sure to not include base path and version",
94
+ "description": "The API Path you want to check - make sure to not include base path and version",
95
+ "schema": {
96
+ "title": "apiPath",
97
+ "type": "string"
98
+ },
99
+ "required": true
100
+ }
101
+ ],
102
+ "output": {
103
+ "name": "result",
104
+ "type": "object",
105
+ "description": "A JSON Object containing the result",
106
+ "schema": {
107
+ "title": "result",
108
+ "type": "object"
109
+ }
110
+ },
111
+ "roles": [
112
+ "admin"
113
+ ],
114
+ "route": {
115
+ "verb": "POST",
116
+ "path": "/iapFindAdapterPath"
117
+ },
118
+ "task": true
119
+ },
120
+ {
121
+ "name": "iapSuspendAdapter",
122
+ "summary": "Suspends the adapter",
123
+ "description": "Suspends the adapter",
124
+ "input": [
125
+ {
126
+ "name": "mode",
127
+ "type": "enum",
128
+ "enumerals": [
129
+ "pause",
130
+ "error"
131
+ ],
132
+ "info": "How incoming requests are handled. Defaults to 'pause'",
133
+ "description": "How incoming requests are handled. Defaults to 'pause'",
134
+ "schema": {
135
+ "title": "mode",
136
+ "type": "string"
137
+ },
138
+ "required": false
139
+ }
140
+ ],
141
+ "output": {
142
+ "name": "result",
143
+ "type": "object",
144
+ "description": "A JSON Object containing the adapter suspended status",
145
+ "schema": {
146
+ "title": "result",
147
+ "type": "object"
148
+ }
149
+ },
150
+ "roles": [
151
+ "admin"
152
+ ],
153
+ "route": {
154
+ "verb": "POST",
155
+ "path": "/iapSuspendAdapter"
156
+ },
157
+ "task": true
158
+ },
159
+ {
160
+ "name": "iapUnsuspendAdapter",
161
+ "summary": "Unsuspends the adapter",
162
+ "description": "Unsuspends the adapter",
163
+ "input": [],
164
+ "output": {
165
+ "name": "result",
166
+ "type": "object",
167
+ "description": "A JSON Object containing the adapter suspended status",
168
+ "schema": {
169
+ "title": "result",
170
+ "type": "object"
171
+ }
172
+ },
173
+ "roles": [
174
+ "admin"
175
+ ],
176
+ "route": {
177
+ "verb": "POST",
178
+ "path": "/iapUnsuspendAdapter"
179
+ },
180
+ "task": true
181
+ },
182
+ {
183
+ "name": "iapGetAdapterQueue",
184
+ "summary": "Return the requests that are waiting in the queue if throttling is enabled",
185
+ "description": "Return the requests that are waiting in the queue if throttling is enabled",
186
+ "input": [],
187
+ "output": {
188
+ "name": "result",
189
+ "type": "object",
190
+ "description": "A JSON Object containing the adapter queue",
191
+ "schema": {
192
+ "title": "result",
193
+ "type": "object"
194
+ }
195
+ },
196
+ "roles": [
197
+ "admin"
198
+ ],
199
+ "route": {
200
+ "verb": "POST",
201
+ "path": "/iapGetAdapterQueue"
202
+ },
203
+ "task": true
204
+ },
205
+ {
206
+ "name": "iapTroubleshootAdapter",
207
+ "summary": "Runs troubleshoot script for adapter",
208
+ "description": "Runs troubleshoot script for adapter",
209
+ "input": [
210
+ {
211
+ "name": "props",
212
+ "type": "object",
213
+ "info": "Object containing configuration, healthcheck and auth properties {'connProps':{'host': 'api.service.com', 'base_path': '/', 'protocol': 'http', 'port': 443, 'version': 'v1'},'healthCheckEndpoint': '/healthcheck', 'auth': {'auth_method': 'no authentication', 'username': 'username', 'password': 'password'}}",
214
+ "required": true,
215
+ "schema": {
216
+ "title": "props",
217
+ "type": "object"
218
+ }
219
+ },
220
+ {
221
+ "name": "persistFlag",
222
+ "type": "boolean",
223
+ "info": "Whether the input properties should be saved",
224
+ "required": true
225
+ }
226
+ ],
227
+ "output": {
228
+ "name": "result",
229
+ "type": "object",
230
+ "description": "A JSON Object containing the test results",
231
+ "schema": {
232
+ "title": "result",
233
+ "type": "object"
234
+ }
235
+ },
236
+ "roles": [
237
+ "admin"
238
+ ],
239
+ "route": {
240
+ "verb": "POST",
241
+ "path": "/iapTroubleshootAdapter"
242
+ },
243
+ "task": true
244
+ },
245
+ {
246
+ "name": "iapRunAdapterHealthcheck",
247
+ "summary": "Runs healthcheck script for adapter",
248
+ "description": "Runs healthcheck script for adapter",
249
+ "input": [],
250
+ "output": {
251
+ "name": "result",
252
+ "type": "boolean",
253
+ "description": "Whether healthcheck passed or failed"
254
+ },
255
+ "roles": [
256
+ "admin"
257
+ ],
258
+ "route": {
259
+ "verb": "POST",
260
+ "path": "/iapRunAdapterHealthcheck"
261
+ },
262
+ "task": true
263
+ },
264
+ {
265
+ "name": "iapRunAdapterConnectivity",
266
+ "summary": "Runs connectivity check script for adapter",
267
+ "description": "Runs connectivity check script for adapter",
268
+ "input": [],
269
+ "output": {
270
+ "name": "result",
271
+ "type": "object",
272
+ "description": "A JSON Object containing the test results",
273
+ "schema": {
274
+ "title": "result",
275
+ "type": "object"
276
+ }
277
+ },
278
+ "roles": [
279
+ "admin"
280
+ ],
281
+ "route": {
282
+ "verb": "POST",
283
+ "path": "/iapRunAdapterConnectivity"
284
+ },
285
+ "task": true
286
+ },
287
+ {
288
+ "name": "iapRunAdapterBasicGet",
289
+ "summary": "Runs basicGet script for adapter",
290
+ "description": "Runs basicGet script for adapter",
291
+ "input": [],
292
+ "output": {
293
+ "name": "result",
294
+ "type": "object",
295
+ "description": "A JSON Object containing the test results",
296
+ "schema": {
297
+ "title": "result",
298
+ "type": "object"
299
+ }
300
+ },
301
+ "roles": [
302
+ "admin"
303
+ ],
304
+ "route": {
305
+ "verb": "POST",
306
+ "path": "/iapRunAdapterBasicGet"
307
+ },
308
+ "task": true
309
+ },
310
+ {
311
+ "name": "iapMoveAdapterEntitiesToDB",
312
+ "summary": "Moves entities from an adapter into the IAP database",
313
+ "description": "Moves entities from an adapter into the IAP database",
314
+ "input": [],
315
+ "output": {
316
+ "name": "res",
317
+ "type": "object",
318
+ "description": "A JSON Object containing status, code and the response from the mongo transaction",
319
+ "schema": {
320
+ "title": "res",
321
+ "type": "object"
322
+ }
323
+ },
324
+ "roles": [
325
+ "admin"
326
+ ],
327
+ "route": {
328
+ "verb": "POST",
329
+ "path": "/iapMoveAdapterEntitiesToDB"
330
+ },
331
+ "task": true
332
+ },
333
+ {
334
+ "name": "genericAdapterRequest",
335
+ "summary": "Makes the requested generic call",
336
+ "description": "Makes the requested generic call",
337
+ "input": [
338
+ {
339
+ "name": "uriPath",
340
+ "type": "string",
341
+ "info": "the path of the api call - do not include the host, port, base path or version",
342
+ "description": "the path of the api call",
343
+ "schema": {
344
+ "title": "uriPath",
345
+ "type": "string"
346
+ },
347
+ "required": true
348
+ },
349
+ {
350
+ "name": "restMethod",
351
+ "type": "string",
352
+ "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
353
+ "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
354
+ "schema": {
355
+ "title": "restMethod",
356
+ "type": "string"
357
+ },
358
+ "required": true
359
+ },
360
+ {
361
+ "name": "queryData",
362
+ "type": "object",
363
+ "info": "the query parameters to be put on the url (optional)",
364
+ "description": "the query parameters to be put on the url (optional)",
365
+ "schema": {
366
+ "title": "queryData",
367
+ "type": "object"
368
+ },
369
+ "required": false
370
+ },
371
+ {
372
+ "name": "requestBody",
373
+ "type": "object",
374
+ "info": "the payload to be sent with the request (optional)",
375
+ "description": "the payload to be sent with the request (optional)",
376
+ "schema": {
377
+ "title": "requestBody",
378
+ "type": "object"
379
+ },
380
+ "required": false
381
+ },
382
+ {
383
+ "name": "addlHeaders",
384
+ "type": "object",
385
+ "info": "additional headers to be put on the call (optional)",
386
+ "description": "additional headers to be put on the call (optional)",
387
+ "schema": {
388
+ "title": "addlHeaders",
389
+ "type": "object"
390
+ },
391
+ "required": false
392
+ }
393
+ ],
394
+ "output": {
395
+ "name": "result",
396
+ "type": "object",
397
+ "description": "A JSON Object containing status, code and the result",
398
+ "schema": {
399
+ "title": "result",
400
+ "type": "object"
401
+ }
402
+ },
403
+ "roles": [
404
+ "admin"
405
+ ],
406
+ "route": {
407
+ "verb": "POST",
408
+ "path": "/genericAdapterRequest"
409
+ },
410
+ "task": true
411
+ },
412
+ {
413
+ "name": "genericAdapterRequestNoBasePath",
414
+ "summary": "Makes the requested generic call",
415
+ "description": "Makes the requested generic call",
416
+ "input": [
417
+ {
418
+ "name": "uriPath",
419
+ "type": "string",
420
+ "info": "the path of the api call - do not include the host, port, base path or version",
421
+ "description": "the path of the api call",
422
+ "schema": {
423
+ "title": "uriPath",
424
+ "type": "string"
425
+ },
426
+ "required": true
427
+ },
428
+ {
429
+ "name": "restMethod",
430
+ "type": "string",
431
+ "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
432
+ "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
433
+ "schema": {
434
+ "title": "restMethod",
435
+ "type": "string"
436
+ },
437
+ "required": true
438
+ },
439
+ {
440
+ "name": "queryData",
441
+ "type": "object",
442
+ "info": "the query parameters to be put on the url (optional)",
443
+ "description": "the query parameters to be put on the url (optional)",
444
+ "schema": {
445
+ "title": "queryData",
446
+ "type": "object"
447
+ },
448
+ "required": false
449
+ },
450
+ {
451
+ "name": "requestBody",
452
+ "type": "object",
453
+ "info": "the payload to be sent with the request (optional)",
454
+ "description": "the payload to be sent with the request (optional)",
455
+ "schema": {
456
+ "title": "requestBody",
457
+ "type": "object"
458
+ },
459
+ "required": false
460
+ },
461
+ {
462
+ "name": "addlHeaders",
463
+ "type": "object",
464
+ "info": "additional headers to be put on the call (optional)",
465
+ "description": "additional headers to be put on the call (optional)",
466
+ "schema": {
467
+ "title": "addlHeaders",
468
+ "type": "object"
469
+ },
470
+ "required": false
471
+ }
472
+ ],
473
+ "output": {
474
+ "name": "result",
475
+ "type": "object",
476
+ "description": "A JSON Object containing status, code and the result",
477
+ "schema": {
478
+ "title": "result",
479
+ "type": "object"
480
+ }
481
+ },
482
+ "roles": [
483
+ "admin"
484
+ ],
485
+ "route": {
486
+ "verb": "POST",
487
+ "path": "/genericAdapterRequestNoBasePath"
488
+ },
489
+ "task": true
490
+ },
491
+ {
492
+ "name": "getDevice",
493
+ "summary": "Get the Appliance",
494
+ "description": "Get the Appliance",
495
+ "input": [
496
+ {
497
+ "name": "deviceName",
498
+ "type": "string",
499
+ "info": "An Appliance Device Name",
500
+ "required": true,
501
+ "schema": {
502
+ "title": "deviceName",
503
+ "type": "string"
504
+ }
505
+ }
506
+ ],
507
+ "output": {
508
+ "name": "result",
509
+ "type": "object",
510
+ "description": "A JSON Object containing status, code and the result",
511
+ "schema": {
512
+ "title": "result",
513
+ "type": "object"
514
+ }
515
+ },
516
+ "roles": [
517
+ "admin"
518
+ ],
519
+ "route": {
520
+ "verb": "POST",
521
+ "path": "/getDevice"
522
+ },
523
+ "task": true
524
+ },
525
+ {
526
+ "name": "getDevicesFiltered",
527
+ "summary": "Get Appliances that match the filter",
528
+ "description": "Get Appliances that match the filter",
529
+ "input": [
530
+ {
531
+ "name": "options",
532
+ "type": "object",
533
+ "info": "options - e.g. { 'start': 1, 'limit': 20, 'filter': { 'name': 'abc123' } }",
534
+ "required": true,
535
+ "schema": {
536
+ "title": "options",
537
+ "type": "object"
538
+ }
539
+ }
540
+ ],
541
+ "output": {
542
+ "name": "result",
543
+ "type": "array",
544
+ "description": "A JSON Object containing status, code and the result",
545
+ "schema": {
546
+ "title": "result",
547
+ "type": "array"
548
+ }
549
+ },
550
+ "roles": [
551
+ "admin"
552
+ ],
553
+ "route": {
554
+ "verb": "POST",
555
+ "path": "/getDevicesFiltered"
556
+ },
557
+ "task": true
558
+ },
559
+ {
560
+ "name": "isAlive",
561
+ "summary": "Checks the status for the provided Appliance",
562
+ "description": "Checks the status for the provided Appliance",
563
+ "input": [
564
+ {
565
+ "name": "deviceName",
566
+ "type": "string",
567
+ "info": "An Appliance Device Name",
568
+ "required": true,
569
+ "schema": {
570
+ "title": "deviceName",
571
+ "type": "string"
572
+ }
573
+ }
574
+ ],
575
+ "output": {
576
+ "name": "result",
577
+ "type": "boolean",
578
+ "description": "A JSON Object containing status, code and the result",
579
+ "schema": {
580
+ "title": "result",
581
+ "type": "boolean"
582
+ }
583
+ },
584
+ "roles": [
585
+ "admin"
586
+ ],
587
+ "route": {
588
+ "verb": "POST",
589
+ "path": "/isAlive"
590
+ },
591
+ "task": true
592
+ },
593
+ {
594
+ "name": "getConfig",
595
+ "summary": "Gets a config for the provided Appliance",
596
+ "description": "Gets a config for the provided Appliance",
597
+ "input": [
598
+ {
599
+ "name": "deviceName",
600
+ "type": "string",
601
+ "info": "An Appliance Device Name",
602
+ "required": true,
603
+ "schema": {
604
+ "title": "deviceName",
605
+ "type": "string"
606
+ }
607
+ },
608
+ {
609
+ "name": "format",
610
+ "type": "string",
611
+ "info": "The format to be returned - this is ignored as we always return json",
612
+ "required": false,
613
+ "schema": {
614
+ "title": "format",
615
+ "type": "string"
616
+ }
617
+ }
618
+ ],
619
+ "output": {
620
+ "name": "result",
621
+ "type": "object",
622
+ "description": "A JSON Object containing status, code and the result",
623
+ "schema": {
624
+ "title": "result",
625
+ "type": "object"
626
+ }
627
+ },
628
+ "roles": [
629
+ "admin"
630
+ ],
631
+ "route": {
632
+ "verb": "POST",
633
+ "path": "/getConfig"
634
+ },
635
+ "task": true
636
+ },
637
+ {
638
+ "name": "iapGetDeviceCount",
639
+ "summary": "Gets a device count from the system",
640
+ "description": "Gets a device count from the system",
641
+ "input": [],
642
+ "output": {
643
+ "name": "result",
644
+ "type": "object",
645
+ "description": "A JSON Object containing status, code and the result",
646
+ "schema": {
647
+ "title": "result",
648
+ "type": "object"
649
+ }
650
+ },
651
+ "roles": [
652
+ "admin"
653
+ ],
654
+ "route": {
655
+ "verb": "POST",
656
+ "path": "/iapGetDeviceCount"
657
+ },
658
+ "task": true
659
+ },
660
+ {
661
+ "name": "getLocations",
662
+ "summary": "Retrieve Services for each PoP Location",
663
+ "description": "Retrieve a list of all PoPs and the services available at each location.",
664
+ "input": [
665
+ {
666
+ "name": "version",
667
+ "type": "string",
668
+ "info": "The API version.: Must be one of [v1, v2, v3, v4]",
669
+ "required": true,
670
+ "schema": {
671
+ "title": "version",
672
+ "type": "string"
673
+ }
674
+ }
675
+ ],
676
+ "output": {
677
+ "name": "result",
678
+ "type": "object",
679
+ "description": "A JSON Object containing status, code and the result",
680
+ "schema": {
681
+ "title": "result",
682
+ "type": "object"
683
+ }
684
+ },
685
+ "roles": [
686
+ "admin"
687
+ ],
688
+ "route": {
689
+ "verb": "POST",
690
+ "path": "/getLocations"
691
+ },
692
+ "task": true
693
+ },
694
+ {
695
+ "name": "getLocation",
696
+ "summary": "Retrieve Services for a Specific PoP",
697
+ "description": "Retrieve a list of the services available at a specific POP location.",
698
+ "input": [
699
+ {
700
+ "name": "location",
701
+ "type": "string",
702
+ "info": ": ",
703
+ "required": true,
704
+ "schema": {
705
+ "title": "location",
706
+ "type": "string"
707
+ }
708
+ },
709
+ {
710
+ "name": "version",
711
+ "type": "string",
712
+ "info": "The API version.: Must be one of [v1, v2, v3, v4]",
713
+ "required": true,
714
+ "schema": {
715
+ "title": "version",
716
+ "type": "string"
717
+ }
718
+ }
719
+ ],
720
+ "output": {
721
+ "name": "result",
722
+ "type": "object",
723
+ "description": "A JSON Object containing status, code and the result",
724
+ "schema": {
725
+ "title": "result",
726
+ "type": "object"
727
+ }
728
+ },
729
+ "roles": [
730
+ "admin"
731
+ ],
732
+ "route": {
733
+ "verb": "POST",
734
+ "path": "/getLocation"
735
+ },
736
+ "task": true
737
+ },
738
+ {
739
+ "name": "postServiceItem",
740
+ "summary": "Add a Service",
741
+ "description": "The services you can add:\n\n- **Equinix Connect** - Creates a connection between Network Cloud+ and the customer's CPE in the Equinix network.\n\n- **Internet Gateway** - Connects a customer to the internet.\n\n- **Internet Service Provider** - Connects the internet gateway to an ISP.\n\nCombining one or more atomic services and then adding a policy create a solution. For example, the four atomic services above and several policies form the Internet Connect solution.\n\nThe response includes a unique ser...(description truncated)",
742
+ "input": [
743
+ {
744
+ "name": "version",
745
+ "type": "string",
746
+ "info": "The API version.: Must be one of [v1, v2, v3, v4]",
747
+ "required": true,
748
+ "schema": {
749
+ "title": "version",
750
+ "type": "string"
751
+ }
752
+ },
753
+ {
754
+ "name": "body",
755
+ "type": "object",
756
+ "info": ": {\"businessSid\": \"string\", \"businessSidDescription\": \"string\", \"atomicServices\": [{\"atomicServiceTransactionTag\": \"string\", \"atomicServiceType\": \"Must be one of [EQUINIX_CONNECT, INTERNET_GATEWAY, INTERNET_SERVICE_PROVIDER, AZURE_CONNECT]\", \"atomicServiceParams\": \"undefined\", \"circuits\": [{\"circuitTransactionTag\": \"string\", \"params\": \"undefined\"}]}], \"policies\": [{\"policyTransactionTag\": \"string\", \"policyParams\": {\"sourceAtomicServiceTransactionTag\": \"string\", \"DestinationAtomicServiceTransactionTag\": \"string\"}, \"functions\": [{\"functionTransactionTag\": \"string\", \"functionType\": \"string\", \"functionParams\": {\"location\": \"string\", \"direction\": {\"internalAtomicService\": \"undefined\", \"externalAtomicService\": \"undefined\"}, \"functionOrder\": 123, \"params\": \"undefined\"}}]}]}",
757
+ "required": true,
758
+ "schema": {
759
+ "type": "object",
760
+ "properties": {
761
+ "businessSid": {
762
+ "type": "string",
763
+ "description": "Unique ID provided by the Service Provider to identify a solution, which is a collection of several atomic services. When forming a solution, use the same BusinessSID.",
764
+ "example": "34314231-3425423-123f23-23a2g42"
765
+ },
766
+ "businessSidDescription": {
767
+ "type": "string",
768
+ "description": "Business id description",
769
+ "example": "vADI service of Pepsi"
770
+ },
771
+ "atomicServices": {
772
+ "type": "array",
773
+ "description": "Entries for atomic services",
774
+ "items": {
775
+ "type": "object",
776
+ "properties": {
777
+ "atomicServiceTransactionTag": {
778
+ "type": "string",
779
+ "description": "Unique TAG of component per transaction",
780
+ "example": "MyEquinixConnect1"
781
+ },
782
+ "atomicServiceType": {
783
+ "type": "string",
784
+ "description": "Type of the atomic service.",
785
+ "enum": [
786
+ "EQUINIX_CONNECT",
787
+ "INTERNET_GATEWAY",
788
+ "INTERNET_SERVICE_PROVIDER",
789
+ "AZURE_CONNECT"
790
+ ]
791
+ },
792
+ "atomicServiceParams": {},
793
+ "circuits": {
794
+ "type": "array",
795
+ "description": "Entries for atomic service circuits",
796
+ "items": {
797
+ "type": "object",
798
+ "properties": {
799
+ "circuitTransactionTag": {
800
+ "type": "string",
801
+ "description": "user provided circuit tag",
802
+ "example": "MyCircuit"
803
+ },
804
+ "params": {}
805
+ }
806
+ }
807
+ }
808
+ },
809
+ "required": [
810
+ "atomicServiceTransactionTag",
811
+ "atomicServiceType"
812
+ ]
813
+ }
814
+ },
815
+ "policies": {
816
+ "type": "array",
817
+ "description": "Entries for policies",
818
+ "items": {
819
+ "type": "object",
820
+ "properties": {
821
+ "policyTransactionTag": {
822
+ "type": "string",
823
+ "description": "user provided policy tag"
824
+ },
825
+ "policyParams": {
826
+ "type": "object",
827
+ "properties": {
828
+ "sourceAtomicServiceTransactionTag": {
829
+ "type": "string",
830
+ "description": "Unique TAG of component per transaction",
831
+ "example": "MyEquinixConnect1"
832
+ },
833
+ "DestinationAtomicServiceTransactionTag": {
834
+ "type": "string",
835
+ "description": "Unique TAG of component per transaction",
836
+ "example": "MyEquinixConnect1"
837
+ }
838
+ },
839
+ "required": [
840
+ "sourceAtomicServiceTransactionTag",
841
+ "DestinationAtomicServiceTransactionTag"
842
+ ]
843
+ },
844
+ "functions": {
845
+ "type": "array",
846
+ "description": "Entries for functions",
847
+ "items": {
848
+ "type": "object",
849
+ "properties": {
850
+ "functionTransactionTag": {
851
+ "type": "string",
852
+ "description": "user provided function tag"
853
+ },
854
+ "functionType": {
855
+ "type": "string",
856
+ "description": "Type of function",
857
+ "example": "NAT"
858
+ },
859
+ "functionParams": {
860
+ "type": "object",
861
+ "properties": {
862
+ "location": {
863
+ "type": "string"
864
+ },
865
+ "direction": {
866
+ "type": "object",
867
+ "properties": {
868
+ "internalAtomicService": {},
869
+ "externalAtomicService": {}
870
+ }
871
+ },
872
+ "functionOrder": {
873
+ "type": "integer",
874
+ "default": 1,
875
+ "minimum": 1,
876
+ "maximum": 1
877
+ },
878
+ "params": {}
879
+ }
880
+ }
881
+ },
882
+ "required": [
883
+ "functionType",
884
+ "functionParams"
885
+ ]
886
+ }
887
+ }
888
+ }
889
+ }
890
+ }
891
+ },
892
+ "required": [
893
+ "businessSid",
894
+ "atomicServices"
895
+ ],
896
+ "definitions": {}
897
+ }
898
+ }
899
+ ],
900
+ "output": {
901
+ "name": "result",
902
+ "type": "object",
903
+ "description": "A JSON Object containing status, code and the result",
904
+ "schema": {
905
+ "title": "result",
906
+ "type": "object"
907
+ }
908
+ },
909
+ "roles": [
910
+ "admin"
911
+ ],
912
+ "route": {
913
+ "verb": "POST",
914
+ "path": "/postServiceItem"
915
+ },
916
+ "task": true
917
+ },
918
+ {
919
+ "name": "putServiceItem",
920
+ "summary": "Update a Service",
921
+ "description": "Update a Service",
922
+ "input": [
923
+ {
924
+ "name": "businessSid",
925
+ "type": "string",
926
+ "info": "Unique ID provided by the Service Provider to identify a solution, which is a collection of several atomic services. When forming a solution, use the same BusinessSID.: ",
927
+ "required": true,
928
+ "schema": {
929
+ "title": "businessSid",
930
+ "type": "string"
931
+ }
932
+ },
933
+ {
934
+ "name": "version",
935
+ "type": "string",
936
+ "info": "The API version.: Must be one of [v1, v2, v3, v4]",
937
+ "required": true,
938
+ "schema": {
939
+ "title": "version",
940
+ "type": "string"
941
+ }
942
+ },
943
+ {
944
+ "name": "body",
945
+ "type": "object",
946
+ "info": ": {\"businessSidDescription\": \"string\", \"atomicServices\": [{\"atomicServiceId\": \"string\", \"atomicServiceTransactionTag\": \"string\", \"atomicServiceType\": \"Must be one of [EQUINIX_CONNECT, INTERNET_GATEWAY, INTERNET_SERVICE_PROVIDER, AZURE_CONNECT]\", \"atomicServiceParams\": \"undefined\", \"circuits\": [{\"circuitId\": \"string\", \"circuitTransactionTag\": \"string\", \"params\": \"undefined\"}]}], \"policies\": [{\"policyId\": \"string\", \"policyTransactionTag\": \"string\", \"policyParams\": {\"sourceAtomicService\": \"undefined\", \"destinationAtomicService\": \"undefined\"}, \"functions\": [{\"functionId\": \"string\", \"functionTransactionTag\": \"string\", \"functionType\": \"string\", \"functionParams\": {\"location\": \"string\", \"direction\": {\"internalAtomicService\": \"undefined\", \"externalAtomicService\": \"undefined\"}, \"functionOrder\": 123, \"params\": \"undefined\"}}]}]}",
947
+ "required": true,
948
+ "schema": {
949
+ "type": "object",
950
+ "properties": {
951
+ "businessSidDescription": {
952
+ "type": "string",
953
+ "description": "Business id description",
954
+ "example": "vADI service of Pepsi"
955
+ },
956
+ "atomicServices": {
957
+ "type": "array",
958
+ "description": "Entries for atomic services",
959
+ "items": {
960
+ "type": "object",
961
+ "properties": {
962
+ "atomicServiceId": {
963
+ "type": "string",
964
+ "description": "Unique UUID of component",
965
+ "example": "12345-12345-abcdef-abcdef"
966
+ },
967
+ "atomicServiceTransactionTag": {
968
+ "type": "string",
969
+ "description": "Unique TAG of component per transaction",
970
+ "example": "MyEquinixConnect1"
971
+ },
972
+ "atomicServiceType": {
973
+ "type": "string",
974
+ "description": "Type of the atomic service.",
975
+ "enum": [
976
+ "EQUINIX_CONNECT",
977
+ "INTERNET_GATEWAY",
978
+ "INTERNET_SERVICE_PROVIDER",
979
+ "AZURE_CONNECT"
980
+ ]
981
+ },
982
+ "atomicServiceParams": {},
983
+ "circuits": {
984
+ "type": "array",
985
+ "description": "Entries for atomic service circuits",
986
+ "items": {
987
+ "type": "object",
988
+ "properties": {
989
+ "circuitId": {
990
+ "type": "string",
991
+ "description": "Unique circuit ID issued by the Network Cloud+ to identify an circuit."
992
+ },
993
+ "circuitTransactionTag": {
994
+ "type": "string",
995
+ "description": "user provided circuit tag",
996
+ "example": "MyCircuit"
997
+ },
998
+ "params": {}
999
+ }
1000
+ }
1001
+ }
1002
+ }
1003
+ }
1004
+ },
1005
+ "policies": {
1006
+ "type": "array",
1007
+ "description": "Entries for policies",
1008
+ "items": {
1009
+ "type": "object",
1010
+ "properties": {
1011
+ "policyId": {
1012
+ "type": "string",
1013
+ "description": "Unique policy ID issued by the Network Cloud+ to identify an policy."
1014
+ },
1015
+ "policyTransactionTag": {
1016
+ "type": "string",
1017
+ "description": "user provided policy tag"
1018
+ },
1019
+ "policyParams": {
1020
+ "type": "object",
1021
+ "properties": {
1022
+ "sourceAtomicService": {},
1023
+ "destinationAtomicService": {}
1024
+ }
1025
+ },
1026
+ "functions": {
1027
+ "type": "array",
1028
+ "description": "Entries for functions",
1029
+ "items": {
1030
+ "type": "object",
1031
+ "properties": {
1032
+ "functionId": {
1033
+ "type": "string",
1034
+ "description": "Unique function ID issued by the Network Cloud+ to identify an function."
1035
+ },
1036
+ "functionTransactionTag": {
1037
+ "type": "string",
1038
+ "description": "user provided function tag."
1039
+ },
1040
+ "functionType": {
1041
+ "type": "string",
1042
+ "description": "Type of function.",
1043
+ "example": "NAT"
1044
+ },
1045
+ "functionParams": {
1046
+ "type": "object",
1047
+ "properties": {
1048
+ "location": {
1049
+ "type": "string"
1050
+ },
1051
+ "direction": {
1052
+ "type": "object",
1053
+ "properties": {
1054
+ "internalAtomicService": {},
1055
+ "externalAtomicService": {}
1056
+ }
1057
+ },
1058
+ "functionOrder": {
1059
+ "type": "integer",
1060
+ "default": 1,
1061
+ "minimum": 1,
1062
+ "maximum": 1
1063
+ },
1064
+ "params": {}
1065
+ }
1066
+ }
1067
+ }
1068
+ }
1069
+ }
1070
+ }
1071
+ }
1072
+ }
1073
+ },
1074
+ "definitions": {}
1075
+ }
1076
+ }
1077
+ ],
1078
+ "output": {
1079
+ "name": "result",
1080
+ "type": "object",
1081
+ "description": "A JSON Object containing status, code and the result",
1082
+ "schema": {
1083
+ "title": "result",
1084
+ "type": "object"
1085
+ }
1086
+ },
1087
+ "roles": [
1088
+ "admin"
1089
+ ],
1090
+ "route": {
1091
+ "verb": "POST",
1092
+ "path": "/putServiceItem"
1093
+ },
1094
+ "task": true
1095
+ },
1096
+ {
1097
+ "name": "deleteServiceItem",
1098
+ "summary": "Delete a Service",
1099
+ "description": "Delete all services that form the business service ID.",
1100
+ "input": [
1101
+ {
1102
+ "name": "businessSid",
1103
+ "type": "string",
1104
+ "info": "Unique ID provided by the Service Provider to identify a solution, which is a collection of several atomic services. When forming a solution, use the same BusinessSID.: ",
1105
+ "required": true,
1106
+ "schema": {
1107
+ "title": "businessSid",
1108
+ "type": "string"
1109
+ }
1110
+ },
1111
+ {
1112
+ "name": "version",
1113
+ "type": "string",
1114
+ "info": "The API version.: Must be one of [v1, v2, v3, v4]",
1115
+ "required": true,
1116
+ "schema": {
1117
+ "title": "version",
1118
+ "type": "string"
1119
+ }
1120
+ }
1121
+ ],
1122
+ "output": {
1123
+ "name": "result",
1124
+ "type": "object",
1125
+ "description": "A JSON Object containing status, code and the result",
1126
+ "schema": {
1127
+ "title": "result",
1128
+ "type": "object"
1129
+ }
1130
+ },
1131
+ "roles": [
1132
+ "admin"
1133
+ ],
1134
+ "route": {
1135
+ "verb": "POST",
1136
+ "path": "/deleteServiceItem"
1137
+ },
1138
+ "task": true
1139
+ },
1140
+ {
1141
+ "name": "getServiceItem",
1142
+ "summary": "Retrieve Service Configuration",
1143
+ "description": "Retrieve Service Configuration",
1144
+ "input": [
1145
+ {
1146
+ "name": "businessSid",
1147
+ "type": "string",
1148
+ "info": "Unique ID provided by the Service Provider to identify a solution, which is a collection of several atomic services. When forming a solution, use the same BusinessSID.: ",
1149
+ "required": true,
1150
+ "schema": {
1151
+ "title": "businessSid",
1152
+ "type": "string"
1153
+ }
1154
+ },
1155
+ {
1156
+ "name": "version",
1157
+ "type": "string",
1158
+ "info": "The API version.: Must be one of [v1, v2, v3, v4]",
1159
+ "required": true,
1160
+ "schema": {
1161
+ "title": "version",
1162
+ "type": "string"
1163
+ }
1164
+ }
1165
+ ],
1166
+ "output": {
1167
+ "name": "result",
1168
+ "type": "object",
1169
+ "description": "A JSON Object containing status, code and the result",
1170
+ "schema": {
1171
+ "title": "result",
1172
+ "type": "object"
1173
+ }
1174
+ },
1175
+ "roles": [
1176
+ "admin"
1177
+ ],
1178
+ "route": {
1179
+ "verb": "POST",
1180
+ "path": "/getServiceItem"
1181
+ },
1182
+ "task": true
1183
+ },
1184
+ {
1185
+ "name": "getServiceItemState",
1186
+ "summary": "Retrieve Service Operational State",
1187
+ "description": "Get the operational state of a particular business service ID.",
1188
+ "input": [
1189
+ {
1190
+ "name": "businessSid",
1191
+ "type": "string",
1192
+ "info": "Unique ID provided by the Service Provider to identify a solution, which is a collection of several atomic services. When forming a solution, use the same BusinessSID.: ",
1193
+ "required": true,
1194
+ "schema": {
1195
+ "title": "businessSid",
1196
+ "type": "string"
1197
+ }
1198
+ },
1199
+ {
1200
+ "name": "version",
1201
+ "type": "string",
1202
+ "info": "The API version.: Must be one of [v1, v2, v3, v4]",
1203
+ "required": true,
1204
+ "schema": {
1205
+ "title": "version",
1206
+ "type": "string"
1207
+ }
1208
+ }
1209
+ ],
1210
+ "output": {
1211
+ "name": "result",
1212
+ "type": "object",
1213
+ "description": "A JSON Object containing status, code and the result",
1214
+ "schema": {
1215
+ "title": "result",
1216
+ "type": "object"
1217
+ }
1218
+ },
1219
+ "roles": [
1220
+ "admin"
1221
+ ],
1222
+ "route": {
1223
+ "verb": "POST",
1224
+ "path": "/getServiceItemState"
1225
+ },
1226
+ "task": true
1227
+ },
1228
+ {
1229
+ "name": "getServiceMonitoring",
1230
+ "summary": "Retrieve Service monitoring data",
1231
+ "description": "Retrieve Service monitoring data",
1232
+ "input": [
1233
+ {
1234
+ "name": "businessSid",
1235
+ "type": "string",
1236
+ "info": "Unique ID provided by the Service Provider to identify a solution, which is a collection of several atomic services. When forming a solution, use the same BusinessSID.: ",
1237
+ "required": true,
1238
+ "schema": {
1239
+ "title": "businessSid",
1240
+ "type": "string"
1241
+ }
1242
+ },
1243
+ {
1244
+ "name": "version",
1245
+ "type": "string",
1246
+ "info": "The API version.: Must be one of [v1, v2, v3, v4]",
1247
+ "required": true,
1248
+ "schema": {
1249
+ "title": "version",
1250
+ "type": "string"
1251
+ }
1252
+ }
1253
+ ],
1254
+ "output": {
1255
+ "name": "result",
1256
+ "type": "object",
1257
+ "description": "A JSON Object containing status, code and the result",
1258
+ "schema": {
1259
+ "title": "result",
1260
+ "type": "object"
1261
+ }
1262
+ },
1263
+ "roles": [
1264
+ "admin"
1265
+ ],
1266
+ "route": {
1267
+ "verb": "POST",
1268
+ "path": "/getServiceMonitoring"
1269
+ },
1270
+ "task": true
1271
+ },
1272
+ {
1273
+ "name": "showCommand",
1274
+ "summary": "Show Command",
1275
+ "description": "Show commands display information about the system and system configuration, useful for troubleshooting. Information about the show commands can be found in DriveNets Documentation portal.",
1276
+ "input": [
1277
+ {
1278
+ "name": "version",
1279
+ "type": "string",
1280
+ "info": "The API version.: Must be one of [v1, v2, v3, v4]",
1281
+ "required": true,
1282
+ "schema": {
1283
+ "title": "version",
1284
+ "type": "string"
1285
+ }
1286
+ },
1287
+ {
1288
+ "name": "body",
1289
+ "type": "object",
1290
+ "info": ": {\"operation\": \"string\", \"snDnId\": \"string\", \"snDnName\": \"string\", \"qualifier\": \"string\"}",
1291
+ "required": true,
1292
+ "schema": {
1293
+ "type": "object",
1294
+ "properties": {
1295
+ "operation": {
1296
+ "type": "string",
1297
+ "description": "Show Commands:\n BGP, BGP_NEIGHBORS, BGP_SUMMARY,\n BGP_ROUTE, BGP_NEXTHOP_REACHABLE,\n BGP_NEXTHOP, BGP_IPV4, BGP_IPV4_PREFIX_LIST\n BGP_IPV6, BGP_IPV6_PREFIX_LIST, INTERFACE\n INTERFACE_COUNTERS, VRF",
1298
+ "example": "INTERFACE"
1299
+ },
1300
+ "snDnId": {
1301
+ "type": "string",
1302
+ "description": "Unique ID of service node",
1303
+ "example": "12345-12345-abcdef-abcdef"
1304
+ },
1305
+ "snDnName": {
1306
+ "type": "string",
1307
+ "description": "Service Node Name",
1308
+ "example": "Dallas324T"
1309
+ },
1310
+ "qualifier": {
1311
+ "type": "string",
1312
+ "description": "Qualifier",
1313
+ "example": "ge100-0/0/0"
1314
+ }
1315
+ },
1316
+ "required": [
1317
+ "operation",
1318
+ "snDnId",
1319
+ "snDnName",
1320
+ "qualifier"
1321
+ ],
1322
+ "definitions": {}
1323
+ }
1324
+ }
1325
+ ],
1326
+ "output": {
1327
+ "name": "result",
1328
+ "type": "object",
1329
+ "description": "A JSON Object containing status, code and the result",
1330
+ "schema": {
1331
+ "title": "result",
1332
+ "type": "object"
1333
+ }
1334
+ },
1335
+ "roles": [
1336
+ "admin"
1337
+ ],
1338
+ "route": {
1339
+ "verb": "POST",
1340
+ "path": "/showCommand"
1341
+ },
1342
+ "task": true
1343
+ }
1344
+ ],
1345
+ "views": []
1346
+ }