-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOpenDaylight.yaml
More file actions
1033 lines (1022 loc) · 46.2 KB
/
OpenDaylight.yaml
File metadata and controls
1033 lines (1022 loc) · 46.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
title: OpenDaylight
version: 1.0.0
description: MeasurementFunctions and ImplementationFunctions at the OpenDaylight Controller
paths:
########################################################################################################################
# Measurements and Implementations
########################################################################################################################
# Read MountPoints
# Create MountPoint
/rests/data/network-topology:network-topology/topology=topology-netconf:
get:
operationId: getListOfMountPoints
summary: 'Provides a list of the configured MountPoints'
security:
- basicAuth: []
responses:
'200':
description: 'List of configured MountPoints provided'
content:
application/json:
schema:
type: object
properties:
network-topology:topology:
type: array
items:
type: object
properties:
node:
type: array
x-key: node-id
items:
type: object
properties:
node-id:
type: string
description: >
'deviceName defined by Telefonica planing department
Invariant value defined during creation of the MountPoint'
netconf-node-topology:available-capabilities:
type: object
description: >
'Capability
Netconf capabilities as they are advertised by the Netconf server in the mediator/device'
properties:
available-capability:
type: array
items:
type: object
properties:
capability:
type: string
capability-origin:
type: string
netconf-node-topology:unavailable-capabilities:
type: object
description: >
'Capability
Netconf capabilities as they are advertised by the Netconf server in the mediator/device'
properties:
unavailable-capability:
type: array
items:
type: object
properties:
capability:
type: string
failure-reason:
type: string
netconf-node-topology:host:
type: string
description: >
'Configuration
Remote IP address, which is to be used by the NetconfClient to address the MediatorProcess'
netconf-node-topology:port:
type: integer
description: >
'Configuration
Remote TCP port, which is to be used by the NetconfClient to address the MediatorProcess'
netconf-node-optional:notification:
type: object
properties:
subscribe:
type: boolean
description: >
'Configuration
if true, the automated subscribing for notifications while mounting is activated'
stream-name:
type: string
description: >
'Configuration
Name of the stream for clients of ODL to identify it while subscribing'
netconf-node-topology:username:
type: string
description: >
'Configuration
Name of the user applied for authenticating at the MediatorProcess/device while initiating the Netconf connection'
netconf-node-topology:password:
type: string
description: >
'Configuration
Password of the user applied for authenticating at the MediatorProcess/device while initiating the Netconf connection'
netconf-node-topology:sleep-factor:
type: string
description: >
'Configuration
Factor for multiplying the time to wait with every new attempt to connect with the MediatorProcess/device'
netconf-node-topology:max-connection-attempts:
type: integer
description: >
'Configuration
Maximum number of attempts to connect with the MediatorProcess/device'
netconf-node-topology:default-request-timeout-millis:
type: integer
description: >
'Configuration
Time to waiting for the MediatorProcess/device to respond to some request, values are different by vendor'
netconf-node-topology:tcp-only:
type: boolean
description: >
'Configuration
? ; always configured to false'
netconf-node-topology:concurrent-rpc-limit:
type: integer
description: >
'Configuration
? ; always configured to 0'
netconf-node-topology:schema-cache-directory:
type: string
description: >
'Configuration
Location inside the ODL to where the YANG schemas provided by the MediatorProcess/device during advertising its Netconf capabilities are stored; values are different per MediatorVM/device'
netconf-node-topology:between-attempts-timeout-millis:
type: integer
description: >
'Configuration
? ; always configured to 62500'
netconf-node-topology:reconnect-on-changed-schema:
type: boolean
description: >
'Configuration
? ; always configured to false'
netconf-node-topology:keepalive-delay:
type: integer
description: >
'Configuration
Time to wait for the ODL to send another keep alive packet to the MediatorProcess/device'
netconf-node-topology:connection-status:
type: string
description: >
'Status
Changes from connected to connecting whenever some keep alive packet has not been answered by the MediatorProcess/device
Changes from connecting to unable-to-connect whenever the number unanswered keep alive packets is exceeding the max-connection-attempts'
netconf-node-topology:session-id:
type: integer
description: >
'Configuration
Whenever a new Netconf session could be established a new session-id is created'
example:
network-topology:topology:
- node:
- node-id: 'CO02060'
netconf-node-topology:sleep-factor: '2.5'
netconf-node-topology:default-request-timeout-millis: 1800000
netconf-node-topology:port: 17833
netconf-node-topology:tcp-only: false
netconf-node-topology:concurrent-rpc-limit: 0
netconf-node-topology:host: '172.28.127.9'
netconf-node-topology:connection-status: 'connected'
netconf-node-topology:session-id: 82
netconf-node-topology:max-connection-attempts: 8
netconf-node-topology:username: 'admin'
netconf-node-topology:password: 'admin'
netconf-node-topology:schema-cache-directory: 'hua'
netconf-node-topology:between-attempts-timeout-millis: 5000
netconf-node-topology:reconnect-on-changed-schema: false
netconf-node-topology:keepalive-delay: 120
netconf-node-topology:available-capabilities:
available-capability:
- capability: 'urn:ietf:params:xml:ns:yang:ietf-yang-types'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:base:1.0'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:base:1.1'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:capability:candidate:1.0'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:capability:validate:1.1'
capability-origin: 'device-advertised'
netconf-node-optional:notification:
subscribe: true
stream-name: 'NETCONF'
- node-id: '513559991A'
netconf-node-topology:sleep-factor: '2.5'
netconf-node-topology:default-request-timeout-millis: 900000
netconf-node-topology:port: 8303
netconf-node-topology:tcp-only: false
netconf-node-topology:concurrent-rpc-limit: 0
netconf-node-topology:host: '172.28.127.7'
netconf-node-topology:connection-status: 'connected'
netconf-node-topology:session-id: 83
netconf-node-topology:max-connection-attempts: 8
netconf-node-topology:username: 'admin'
netconf-node-topology:password: 'admin'
netconf-node-topology:schema-cache-directory: 'eric'
netconf-node-topology:between-attempts-timeout-millis: 5000
netconf-node-topology:reconnect-on-changed-schema: false
netconf-node-topology:keepalive-delay: 120
netconf-node-topology:unavailable-capabilities:
unavailable-capability:
- failure-reason: 'unable-to-resolve'
capability: '(http://tail-f.com/ns/aaa/1.1?revision=2015-06-16)tailf-aaa'
- failure-reason: 'unable-to-resolve'
capability: >-
(http://tail-f.com/yang/netconf-monitoring?revision=2016-11-24)tailf-netconf-monitoring
- failure-reason: 'unable-to-resolve'
capability: '(http://tail-f.com/ns/kicker?revision=2017-03-16)tailf-kicker'
- failure-reason: 'unable-to-resolve'
capability: '(http://tail-f.com/ns/webui?revision=2013-03-07)tailf-webui'
netconf-node-topology:available-capabilities:
available-capability:
- capability: 'urn:ietf:params:netconf:base:1.0'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:base:1.1'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:capability:xpath:1.0'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:capability:candidate:1.0'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:capability:validate:1.1'
capability-origin: 'device-advertised'
netconf-node-optional:notification:
subscribe: true
stream-name: 'NETCONF'
- node-id: '513559991B'
netconf-node-topology:sleep-factor: '2.5'
netconf-node-topology:default-request-timeout-millis: 900000
netconf-node-topology:port: 8304
netconf-node-topology:tcp-only: false
netconf-node-topology:concurrent-rpc-limit: 0
netconf-node-topology:host: '172.28.127.7'
netconf-node-topology:connection-status: 'connected'
netconf-node-topology:session-id: 133
netconf-node-topology:max-connection-attempts: 8
netconf-node-topology:username: 'admin'
netconf-node-topology:password: 'admin'
netconf-node-topology:schema-cache-directory: 'eric'
netconf-node-topology:between-attempts-timeout-millis: 5000
netconf-node-topology:reconnect-on-changed-schema: false
netconf-node-topology:keepalive-delay: 120
netconf-node-topology:unavailable-capabilities:
unavailable-capability:
- failure-reason: 'unable-to-resolve'
capability: '(http://tail-f.com/ns/aaa/1.1?revision=2015-06-16)tailf-aaa'
- failure-reason: 'unable-to-resolve'
capability: >-
(http://tail-f.com/yang/netconf-monitoring?revision=2016-11-24)tailf-netconf-monitoring
- failure-reason: 'unable-to-resolve'
capability: '(http://tail-f.com/ns/kicker?revision=2017-03-16)tailf-kicker'
- failure-reason: 'unable-to-resolve'
capability: '(http://tail-f.com/ns/webui?revision=2013-03-07)tailf-webui'
netconf-node-topology:available-capabilities:
available-capability:
- capability: 'urn:ietf:params:netconf:base:1.0'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:base:1.1'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:capability:xpath:1.0'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:capability:candidate:1.0'
capability-origin: 'device-advertised'
- capability: 'urn:ietf:params:netconf:capability:validate:1.1'
capability-origin: 'device-advertised'
netconf-node-optional:notification:
subscribe: true
stream-name: 'NETCONF'
post:
operationId: postConstructMountPoint
summary: 'Establishes a new MountPoint'
security:
- basicAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- network-topology:node
properties:
network-topology:node:
type: array
x-key: node-id
items:
type: object
required:
- node-id
properties:
node-id:
type: string
description: >
'deviceName defined by Telefonica planing department
Invariant value defined during creation of the MountPoint
from [p1ConstructMountPoint$request.body#mount-name]'
example:
network-topology:node:
- node-id: '111251111'
responses:
'201':
description: 'MountPoint established'
# Delete MountPoint
# Modify MountPoint
/rests/data/network-topology:network-topology/topology=topology-netconf/node={mount-name}:
delete:
operationId: deleteDestructMountPoint
summary: 'Deletes specified MountPoint'
parameters:
- in: path
name: 'mount-name'
required: true
schema:
type: string
description: >
'from [p1DestructMountPoint$request.body#mount-name]'
security:
- basicAuth: []
responses:
'204':
description: 'MountPoint deleted'
put:
operationId: putReconstructMountPoint
summary: 'Updates specified MountPoint'
parameters:
- in: path
name: 'mount-name'
required: true
schema:
type: string
description: >
'from [p1ReconstructMountPoint$request.body#mount-name]'
security:
- basicAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- network-topology:node
properties:
network-topology:node:
type: array
items:
type: object
required:
- node-id
- netconf-node-topology:host
- netconf-node-topology:port
- netconf-node-optional:notification
- netconf-node-topology:username
- netconf-node-topology:password
- netconf-node-topology:sleep-factor
- netconf-node-topology:max-connection-attempts
- netconf-node-topology:default-request-timeout-millis
- netconf-node-topology:tcp-only
- netconf-node-topology:concurrent-rpc-limit
- netconf-node-topology:schema-cache-directory
- netconf-node-topology:between-attempts-timeout-millis
- netconf-node-topology:reconnect-on-changed-schema
- netconf-node-topology:keepalive-delay
properties:
node-id:
type: string
description: >
'deviceName defined by Telefonica planing department
Invariant value defined during creation of the MountPoint'
netconf-node-topology:host:
type: string
description: >
'Configuration
Remote IP address, which is to be used by the NetconfClient to address the MediatorProcess
from [p1ReconstructMountPoint$request.body#remote-ip-address]'
netconf-node-topology:port:
type: integer
description: >
'Configuration
Remote TCP port, which is to be used by the NetconfClient to address the MediatorProcess
from [p1ReconstructMountPoint$request.body#remote-port]'
netconf-node-optional:notification:
type: object
required:
- subscribe
- stream-name
properties:
subscribe:
type: boolean
description: >
'Configuration
if true, the automated subscribing for notifications while mounting is activated
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/notification-subscribe]'
stream-name:
type: string
description: >
'Configuration
Name of the stream for clients of ODL to identify it while subscribing
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/notification-stream-name]'
netconf-node-topology:username:
type: string
description: >
'Configuration
Name of the user applied for authenticating at the MediatorProcess/device while initiating the Netconf connection
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/netconf-user-name]'
netconf-node-topology:password:
type: string
description: >
'Configuration
Password of the user applied for authenticating at the MediatorProcess/device while initiating the Netconf connection
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/netconf-password]'
netconf-node-topology:sleep-factor:
type: string
description: >
'Configuration
Factor for multiplying the time to wait with every new attempt to connect with the MediatorProcess/device
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/sleep-factor]'
netconf-node-topology:max-connection-attempts:
type: integer
description: >
'Configuration
Maximum number of attempts to connect with the MediatorProcess/device
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/max-connection-attempts]'
netconf-node-topology:default-request-timeout-millis:
type: integer
description: >
'Configuration
Time to waiting for the MediatorProcess/device to respond to some request, values are different by vendor
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/default-request-timeout-millis]'
netconf-node-topology:tcp-only:
type: boolean
description: >
'Configuration
?
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/tcp-only]'
netconf-node-topology:concurrent-rpc-limit:
type: integer
description: >
'Configuration
?
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/concurrent-rpc-limit]'
netconf-node-topology:schema-cache-directory:
type: string
description: >
'Configuration
Location inside the ODL to where the YANG schemas provided by the MediatorProcess/device during advertising its Netconf capabilities are stored; values are different per MediatorVM/device
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/schema-cache-directory]'
netconf-node-topology:between-attempts-timeout-millis:
type: integer
description: >
'Configuration
?
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/between-attempts-timeout-millis]'
netconf-node-topology:reconnect-on-changed-schema:
type: boolean
description: >
'Configuration
?
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/reconnect-on-changed-schema]'
netconf-node-topology:keepalive-delay:
type: integer
description: >
'Configuration
Time to wait for the ODL to send another keep alive packet to the MediatorProcess/device
from [/network-control-domain=running/profile=[p1ReconstructMountPoint$request.body#mount-point-template-name]/keepalive-delay]'
example:
network-topology:node:
- node-id: '111251111'
netconf-node-topology:host: '172.28.127.7'
netconf-node-topology:port: 8301
netconf-node-optional:notification:
subscribe: true
stream-name: 'NETCONF'
netconf-node-topology:username: 'admin'
netconf-node-topology:password: 'admin'
netconf-node-topology:sleep-factor: '2.5'
netconf-node-topology:max-connection-attempts: 8
netconf-node-topology:default-request-timeout-millis: 900000
netconf-node-topology:tcp-only: false
netconf-node-topology:concurrent-rpc-limit: 0
netconf-node-topology:schema-cache-directory: 'eric'
netconf-node-topology:between-attempts-timeout-millis: 5000
netconf-node-topology:reconnect-on-changed-schema: false
netconf-node-topology:keepalive-delay: 120
responses:
'204':
description: 'MountPoint updated'
# Read User Definitions
# Create User Definition
/auth/v1/users:
get:
operationId: getListOfUsers
summary: 'Provides a list of the configured users'
security:
- basicAuth: []
responses:
'200':
description: 'List of configured users provided'
content:
application/json:
schema:
type: object
properties:
users:
type: array
items:
type: object
properties:
userid:
type: string
name:
type: string
description:
type: string
enabled:
type: integer
email:
type: string
format: email
password:
type: string
salt:
type: string
domainid:
type: string
example:
users:
- userid: 'mwdi@sdn'
name: 'mwdi'
description: ''
enabled: 1
email: ''
password: '**********'
salt: '**********'
domainid: 'sdn'
- userid: 'mwdg@sdn'
name: 'mwdg'
description: ''
enabled: 1
email: ''
password: '**********'
salt: '**********'
domainid: 'sdn'
- userid: 'matr@sdn'
name: 'matr'
description: ''
enabled: 1
email: ''
password: '**********'
salt: '**********'
domainid: 'sdn'
post:
operationId: postConstructUser
summary: 'Establishes a new user'
security:
- basicAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- password
- domainid
properties:
name:
type: string
password:
type: string
domainid:
type: string
example:
name: 'user.name'
password: 'geheim'
domainid: 'sdn'
responses:
'201':
description: 'User established'
content:
application/json:
schema:
type: object
properties:
userid:
type: string
name:
type: string
description:
type: string
enabled:
type: integer
email:
type: string
format: email
password:
type: string
salt:
type: string
domainid:
type: string
example:
userid: 'user.name@sdn'
name: 'user.name'
description: ''
enabled: 1
email: ''
password: '**********'
salt: '**********'
domainid: 'sdn'
# Read Role Definitions
# Create Role Definition
/auth/v1/roles:
get:
operationId: getListOfRoles
summary: 'Provides a list of the configured roles'
security:
- basicAuth: []
responses:
'200':
description: 'List of configured roles provided'
content:
application/json:
schema:
type: object
properties:
roles:
type: array
items:
type: object
properties:
roleid:
type: string
name:
type: string
description:
type: string
domainid:
type: string
example:
roles:
- roleid: 'user@sdn'
name: 'user'
description: ''
domainid: 'sdn'
- roleid: 'monitor@sdn'
name: 'monitor'
description: ''
domainid: 'sdn'
- roleid: 'planner@sdn'
name: 'planner'
description: ''
domainid: 'sdn'
- roleid: 'siae@sdn'
name: 'siae'
description: ''
domainid: 'sdn'
post:
operationId: postConstructRole
summary: 'Establishes a new role'
security:
- basicAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- domainid
properties:
name:
type: string
domainid:
type: string
example:
name: 'role.name'
domainid: 'sdn'
responses:
'201':
description: 'Role established'
content:
application/json:
schema:
type: object
properties:
roleid:
type: string
name:
type: string
description:
type: string
domainid:
type: string
example:
roleid: 'role.name@sdn'
name: 'role.name'
description: ''
domainid: 'sdn'
# Read Roles/Groups a User is associated with
# Create User Role association (Grant)
/auth/v1/domains/sdn/users/{userid}/roles:
parameters:
- in: path
name: userid
schema:
type: string
required: true
description: 'user for which associated roles shall be provided'
get:
operationId: getListOfRolesOfaUser
summary: 'Provides the list of roles that are associated with a user'
security:
- basicAuth: []
responses:
'200':
description: 'List of roles provided'
content:
application/json:
schema:
type: object
properties:
roles:
type: array
items:
type: object
properties:
roleid:
type: string
name:
type: string
description:
type: string
domainid:
type: string
example:
roles:
- roleid: 'power-user@sdn'
name: 'power-user'
description: ''
domainid: 'sdn'
- roleid: 'planner@sdn'
name: 'planner'
description: ''
domainid: 'sdn'
post:
operationId: postConstructRoleAssociation
summary: 'Establishes a new role association'
security:
- basicAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- roleid
- domainid
properties:
roleid:
type: string
domainid:
type: string
example:
roleid: 'siae@sdn'
domainid: 'sdn'
responses:
'201':
description: 'Role association established'
content:
application/json:
schema:
type: object
properties:
grantid:
type: string
domainid:
type: string
userid:
type: string
roleid:
type: string
example:
grantid: 'user.name@sdn@siae@sdn@sdn'
domainid: 'sdn'
userid: 'user.name'
roleid: 'siae@sdn'
# Read Resources with associated Role/Group Permissions
/rests/data/aaa:http-authorization:
get:
operationId: getListOfResourcesWithRolePermissions
summary: 'Provides a list of resources with associated role permissions'
security:
- basicAuth: []
responses:
'200':
description: 'List of resources with permissions provided'
content:
application/json:
schema:
type: object
properties:
aaa:http-authorization:
type: object
properties:
policies:
type: object
properties:
policies:
type: array
items:
type: object
properties:
resource:
type: string
example: '/restconf/**'
permissions:
type: array
items:
type: object
properties:
role:
type: string
example: 'admin'
actions:
type: array
items:
type: string
example: 'get'
index:
type: integer
example: 0
example:
aaa:http-authorization:
policies:
policies:
- resource: '/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250006/**'
permissions:
- role: 'power-user@sdn'
actions:
- 'post'
- 'get'
- 'patch'
- 'put'
- 'delete'
- role: 'siae'
actions:
- 'get'
index: 0
- resource: '/rests/data/network-topology:network-topology/topology=topology-netconf/**'
permissions:
- role: 'power-user@sdn'
actions:
- 'post'
- 'get'
- 'patch'
- 'put'
- 'delete'
index: 1
# Read Permissions on ManagementDomain
# Modify Permissions on ManagementDomain
/rests/data/aaa:http-authorization/policies/policies=%2Frests%2Fdata%2Fnetwork-topology:network-topology%2Ftopology%3Dtopology-netconf%2F**:
get:
operationId: getPermissionsOnManagementDomain
summary: 'Provides the list permissions on the ManagementDomain'
security:
- basicAuth: []
responses:
'200':
description: 'List of permissions provided'
content:
application/json:
schema:
type: object
properties:
aaa:policies:
type: array
items:
type: object
properties:
resource:
type: string
permissions:
type: array
items:
type: object
properties:
role:
type: string
actions:
type: array
items:
type: string
enum:
- 'post'
- 'get'
- 'patch'
- 'put'
- 'delete'
index:
type: integer
example:
aaa:policies:
- resource: '/rests/data/network-topology:network-topology/topology=topology-netconf/**'
permissions:
- role: 'admin'
actions:
- 'post'
- 'get'
- 'patch'
- 'put'
- 'delete'
- role: 'provisioner'
actions:
- 'post'
- 'get'
- 'patch'
- 'put'
- 'delete'
- role: 'planner'
actions:
- 'get'
- role: 'monitor'
actions:
- 'get'
index: 16
put:
operationId: putPermission
summary: 'Establishes a new permission on the ManagementDomain'
security:
- basicAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- aaa:policies
properties:
aaa:policies:
type: array
items:
type: object
required:
- resource
- permissions
- index
properties:
resource:
type: string
permissions:
type: array
items:
type: object
required:
- role
- actions
properties:
role:
type: string
actions:
type: array
items:
type: string
enum:
- 'post'
- 'get'
- 'patch'
- 'put'
- 'delete'
index:
type: integer
example:
aaa:policies:
- resource: '/rests/data/network-topology:network-topology/topology=topology-netconf/**'
permissions:
- role: 'admin'