fix oauth code
[ccsdk/features.git] / sdnr / wt / oauth-provider / oauth-core / src / test / resources / mdsalDynAuthData.json
1 {
2         "policies": [
3             {
4                 "resource": "/restconf/**",
5                 "index": 0,
6                 "permissions": [
7                     {
8                         "role": "admin",
9                         "actions": [
10                             "put",
11                             "get",
12                             "patch",
13                             "delete",
14                             "post"
15                         ]
16                     }
17                 ]
18             },
19             {
20                 "resource": "/auth/v1/**",
21                 "index": 1,
22                 "permissions": [
23                     {
24                         "role": "admin",
25                         "actions": [
26                             "put",
27                             "get",
28                             "patch",
29                             "delete",
30                             "post"
31                         ]
32                     }
33                 ]
34             },
35             {
36                 "resource": "/config/aaa*/**",
37                 "index": 2,
38                 "permissions": [
39                     {
40                         "role": "admin",
41                         "actions": [
42                             "put",
43                             "get",
44                             "patch",
45                             "delete",
46                             "post"
47                         ]
48                     }
49                 ]
50             },
51             {
52                 "resource": "/jolokia/**",
53                 "index": 3,
54                 "permissions": [
55                     {
56                         "role": "admin",
57                         "actions": [
58                             "put",
59                             "get",
60                             "patch",
61                             "delete",
62                             "post"
63                         ]
64                     },
65                     {
66                         "role": "monitor",
67                         "actions": [
68                             "get"
69                         ]
70                     },
71                     {
72                         "role": "raftstate",
73                         "actions": [
74                             "get"
75                         ]
76                     }
77                 ]
78             },
79             {
80                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250004/**",
81                 "index": 4,
82                 "permissions": [
83                     {
84                         "role": "admin",
85                         "actions": [
86                             "put",
87                             "get",
88                             "patch",
89                             "delete",
90                             "post"
91                         ]
92                     },
93                     {
94                         "role": "provisioner",
95                         "actions": [
96                             "put",
97                             "get",
98                             "patch",
99                             "delete",
100                             "post"
101                         ]
102                     },
103                     {
104                         "role": "huawei",
105                         "actions": [
106                             "put",
107                             "get",
108                             "patch",
109                             "delete",
110                             "post"
111                         ]
112                     },
113                     {
114                         "role": "planner",
115                         "actions": [
116                             "get"
117                         ]
118                     },
119                     {
120                         "role": "monitor",
121                         "actions": [
122                             "get"
123                         ]
124                     }
125                 ]
126             },
127             {
128                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250005/**",
129                 "index": 5,
130                 "permissions": [
131                     {
132                         "role": "admin",
133                         "actions": [
134                             "put",
135                             "get",
136                             "patch",
137                             "delete",
138                             "post"
139                         ]
140                     },
141                     {
142                         "role": "provisioner",
143                         "actions": [
144                             "put",
145                             "get",
146                             "patch",
147                             "delete",
148                             "post"
149                         ]
150                     },
151                     {
152                         "role": "huawei",
153                         "actions": [
154                             "put",
155                             "get",
156                             "patch",
157                             "delete",
158                             "post"
159                         ]
160                     },
161                     {
162                         "role": "planner",
163                         "actions": [
164                             "get"
165                         ]
166                     },
167                     {
168                         "role": "monitor",
169                         "actions": [
170                             "get"
171                         ]
172                     }
173                 ]
174             },
175             {
176                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250006/**",
177                 "index": 6,
178                 "permissions": [
179                     {
180                         "role": "admin",
181                         "actions": [
182                             "put",
183                             "get",
184                             "patch",
185                             "delete",
186                             "post"
187                         ]
188                     },
189                     {
190                         "role": "provisioner",
191                         "actions": [
192                             "put",
193                             "get",
194                             "patch",
195                             "delete",
196                             "post"
197                         ]
198                     },
199                     {
200                         "role": "siae",
201                         "actions": [
202                             "put",
203                             "get",
204                             "patch",
205                             "delete",
206                             "post"
207                         ]
208                     },
209                     {
210                         "role": "planner",
211                         "actions": [
212                             "get"
213                         ]
214                     },
215                     {
216                         "role": "monitor",
217                         "actions": [
218                             "get"
219                         ]
220                     }
221                 ]
222             },
223             {
224                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250007/**",
225                 "index": 7,
226                 "permissions": [
227                     {
228                         "role": "admin",
229                         "actions": [
230                             "put",
231                             "get",
232                             "patch",
233                             "delete",
234                             "post"
235                         ]
236                     },
237                     {
238                         "role": "provisioner",
239                         "actions": [
240                             "put",
241                             "get",
242                             "patch",
243                             "delete",
244                             "post"
245                         ]
246                     },
247                     {
248                         "role": "siae",
249                         "actions": [
250                             "put",
251                             "get",
252                             "patch",
253                             "delete",
254                             "post"
255                         ]
256                     },
257                     {
258                         "role": "planner",
259                         "actions": [
260                             "get"
261                         ]
262                     },
263                     {
264                         "role": "monitor",
265                         "actions": [
266                             "get"
267                         ]
268                     }
269                 ]
270             },
271             {
272                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250008/**",
273                 "index": 8,
274                 "permissions": [
275                     {
276                         "role": "admin",
277                         "actions": [
278                             "put",
279                             "get",
280                             "patch",
281                             "delete",
282                             "post"
283                         ]
284                     },
285                     {
286                         "role": "provisioner",
287                         "actions": [
288                             "put",
289                             "get",
290                             "patch",
291                             "delete",
292                             "post"
293                         ]
294                     },
295                     {
296                         "role": "siae",
297                         "actions": [
298                             "put",
299                             "get",
300                             "patch",
301                             "delete",
302                             "post"
303                         ]
304                     },
305                     {
306                         "role": "planner",
307                         "actions": [
308                             "get"
309                         ]
310                     },
311                     {
312                         "role": "monitor",
313                         "actions": [
314                             "get"
315                         ]
316                     }
317                 ]
318             },
319             {
320                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250009/**",
321                 "index": 9,
322                 "permissions": [
323                     {
324                         "role": "admin",
325                         "actions": [
326                             "put",
327                             "get",
328                             "patch",
329                             "delete",
330                             "post"
331                         ]
332                     },
333                     {
334                         "role": "provisioner",
335                         "actions": [
336                             "put",
337                             "get",
338                             "patch",
339                             "delete",
340                             "post"
341                         ]
342                     },
343                     {
344                         "role": "siae",
345                         "actions": [
346                             "put",
347                             "get",
348                             "patch",
349                             "delete",
350                             "post"
351                         ]
352                     },
353                     {
354                         "role": "planner",
355                         "actions": [
356                             "get"
357                         ]
358                     },
359                     {
360                         "role": "monitor",
361                         "actions": [
362                             "get"
363                         ]
364                     }
365                 ]
366             },
367             {
368                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250010/**",
369                 "index": 10,
370                 "permissions": [
371                     {
372                         "role": "admin",
373                         "actions": [
374                             "put",
375                             "get",
376                             "patch",
377                             "delete",
378                             "post"
379                         ]
380                     },
381                     {
382                         "role": "provisioner",
383                         "actions": [
384                             "put",
385                             "get",
386                             "patch",
387                             "delete",
388                             "post"
389                         ]
390                     },
391                     {
392                         "role": "ericsson",
393                         "actions": [
394                             "put",
395                             "get",
396                             "patch",
397                             "delete",
398                             "post"
399                         ]
400                     },
401                     {
402                         "role": "planner",
403                         "actions": [
404                             "get"
405                         ]
406                     },
407                     {
408                         "role": "monitor",
409                         "actions": [
410                             "get"
411                         ]
412                     }
413                 ]
414             },
415             {
416                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250011/**",
417                 "index": 11,
418                 "permissions": [
419                     {
420                         "role": "admin",
421                         "actions": [
422                             "put",
423                             "get",
424                             "patch",
425                             "delete",
426                             "post"
427                         ]
428                     },
429                     {
430                         "role": "provisioner",
431                         "actions": [
432                             "put",
433                             "get",
434                             "patch",
435                             "delete",
436                             "post"
437                         ]
438                     },
439                     {
440                         "role": "ericsson",
441                         "actions": [
442                             "put",
443                             "get",
444                             "patch",
445                             "delete",
446                             "post"
447                         ]
448                     },
449                     {
450                         "role": "planner",
451                         "actions": [
452                             "get"
453                         ]
454                     },
455                     {
456                         "role": "monitor",
457                         "actions": [
458                             "get"
459                         ]
460                     }
461                 ]
462             },
463             {
464                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513559991A/**",
465                 "index": 14,
466                 "permissions": [
467                     {
468                         "role": "admin",
469                         "actions": [
470                             "put",
471                             "get",
472                             "patch",
473                             "delete",
474                             "post"
475                         ]
476                     },
477                     {
478                         "role": "provisioner",
479                         "actions": [
480                             "put",
481                             "get",
482                             "patch",
483                             "delete",
484                             "post"
485                         ]
486                     },
487                     {
488                         "role": "ericsson",
489                         "actions": [
490                             "put",
491                             "get",
492                             "patch",
493                             "delete",
494                             "post"
495                         ]
496                     },
497                     {
498                         "role": "planner",
499                         "actions": [
500                             "get"
501                         ]
502                     },
503                     {
504                         "role": "monitor",
505                         "actions": [
506                             "get"
507                         ]
508                     }
509                 ]
510             },
511             {
512                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513559991B/**",
513                 "index": 15,
514                 "permissions": [
515                     {
516                         "role": "admin",
517                         "actions": [
518                             "put",
519                             "get",
520                             "patch",
521                             "delete",
522                             "post"
523                         ]
524                     },
525                     {
526                         "role": "provisioner",
527                         "actions": [
528                             "put",
529                             "get",
530                             "patch",
531                             "delete",
532                             "post"
533                         ]
534                     },
535                     {
536                         "role": "ericsson",
537                         "actions": [
538                             "put",
539                             "get",
540                             "patch",
541                             "delete",
542                             "post"
543                         ]
544                     },
545                     {
546                         "role": "planner",
547                         "actions": [
548                             "get"
549                         ]
550                     },
551                     {
552                         "role": "monitor",
553                         "actions": [
554                             "get"
555                         ]
556                     }
557                 ]
558             },
559             {
560                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250012/**",
561                 "index": 12,
562                 "permissions": [
563                     {
564                         "role": "admin",
565                         "actions": [
566                             "put",
567                             "get",
568                             "patch",
569                             "delete",
570                             "post"
571                         ]
572                     },
573                     {
574                         "role": "provisioner",
575                         "actions": [
576                             "put",
577                             "get",
578                             "patch",
579                             "delete",
580                             "post"
581                         ]
582                     },
583                     {
584                         "role": "zte",
585                         "actions": [
586                             "put",
587                             "get",
588                             "patch",
589                             "delete",
590                             "post"
591                         ]
592                     },
593                     {
594                         "role": "planner",
595                         "actions": [
596                             "get"
597                         ]
598                     },
599                     {
600                         "role": "monitor",
601                         "actions": [
602                             "get"
603                         ]
604                     }
605                 ]
606             },
607             {
608                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/node=513250013/**",
609                 "index": 13,
610                 "permissions": [
611                     {
612                         "role": "admin",
613                         "actions": [
614                             "put",
615                             "get",
616                             "patch",
617                             "delete",
618                             "post"
619                         ]
620                     },
621                     {
622                         "role": "provisioner",
623                         "actions": [
624                             "put",
625                             "get",
626                             "patch",
627                             "delete",
628                             "post"
629                         ]
630                     },
631                     {
632                         "role": "zte",
633                         "actions": [
634                             "put",
635                             "get",
636                             "patch",
637                             "delete",
638                             "post"
639                         ]
640                     },
641                     {
642                         "role": "planner",
643                         "actions": [
644                             "get"
645                         ]
646                     },
647                     {
648                         "role": "monitor",
649                         "actions": [
650                             "get"
651                         ]
652                     }
653                 ]
654             },
655             {
656                 "resource": "/rests/data/network-topology:network-topology/topology=topology-netconf/**",
657                 "index": 16,
658                 "permissions": [
659                     {
660                         "role": "admin",
661                         "actions": [
662                             "put",
663                             "get",
664                             "patch",
665                             "delete",
666                             "post"
667                         ]
668                     },
669                     {
670                         "role": "provisioner",
671                         "actions": [
672                             "put",
673                             "get",
674                             "patch",
675                             "delete",
676                             "post"
677                         ]
678                     },
679                     {
680                         "role": "planner",
681                         "actions": [
682                             "get"
683                         ]
684                     },
685                     {
686                         "role": "monitor",
687                         "actions": [
688                             "get"
689                         ]
690                     }
691                 ]
692             }
693         ]
694     }