8ec29d1341fd4e1795eafca0e5d27b6e5ded0b94
[juci.git] / backend / juci-core / access.json
1 {
2         "juciguest": {
3                 "description": "Functions allowed for non logged-in users",
4                 "read": {
5                         "ubus": {
6                                 "juci.ui": [
7                                         "themes"
8                                 ]
9                         }
10                 }
11         },
12
13         "core": {
14                 "description": "Core functions for JUCI",
15                 "read": {
16                         "ubus": {
17                                 "juci.system": [
18                                         "events"
19                                 ], 
20                                 "juci.ui": [
21                                         "*"
22                                 ],
23                                 "session": [
24                                         "access",
25                                         "destroy"
26                                 ],
27                                 "uci": [
28                                         "*"
29                                 ]
30                         }
31                 }
32         },
33
34         "status": {
35                 "description": "Status information display",
36                 "read": {
37                         "ubus": {
38                                 "iwinfo": [
39                                         "devices",
40                                         "info",
41                                         "assoclist",
42                                         "phyname"
43                                 ],
44                                 "router": [
45                                         "dslstats", 
46                                         "info", 
47                                         "clients", 
48                                         "igmptable"
49                                 ],
50                                 "system": [
51                                         "info",
52                                         "board"
53                                 ],
54                                 "network.interface": [
55                                         "status"
56                                 ],
57                                 "juci.network": [
58                                         "conntrack_count",
59                                         "dhcp_leases",
60                                         "dhcp6_leases",
61                                         "arp_table",
62                                         "routes",
63                                         "routes6"
64                                 ],
65                                 "juci.system": [
66                                         "diskfree",
67                                         "syslog",
68                                         "dmesg",
69                                         "process_list"
70                                 ],
71                                 "service": [
72                                         "list"
73                                 ]
74                         }
75                 },
76                 "write": {
77                         "ubus": {
78                                 "juci.system": [
79                                         "process_signal"
80                                 ]
81                         }
82                 }
83         },
84
85         "system": {
86                 "description": "General system settings",
87                 "read": {
88                         "ubus": {
89                                 "router": [ 
90                                         "boardinfo"
91                                 ], 
92                                 "system": [
93                                         "info",
94                                         "board"
95                                 ],
96                                 "juci.broadcom.dsl": [
97                                         "status"
98                                 ], 
99                                 "juci.system": [
100                                         "init_list", 
101                                         "diskfree"
102                                 ]
103                         },
104                         "uci": [
105                                 "juci",
106                                 "minidlna", 
107                                 "upnpd"
108                         ]
109                 },
110                 "write": {
111                         "ubus": {
112                                 "juci.system": [
113                                         "init_action"
114                                 ]
115                         },
116                         "uci": [
117                                 "juci",
118                                 "minidlna", 
119                                 "upnpd"
120                         ]
121                 }
122         },
123
124         "admin": {
125                 "description": "Authentication and SSH settings",
126                 "read": {
127                         "ubus": {
128                                 "juci.system": [
129                                         "sshkeys_get", 
130                                         "upgrade_test", 
131                                         "upgrade_clean", 
132                                         "upgrade_check", 
133                                         "upgrade_start"
134                                 ], 
135                                 "asterisk": [
136                                         "status"
137                                 ], 
138                                 "asterisk.call_log": [
139                                         "list",
140                                         "sshkeys_get"
141                                 ], 
142                                 "juci.broadcom.wps": [
143                                         "genpin", 
144                                         "setpin",
145                                         "pbc",
146                                         "showpin",
147                                         "stapin", 
148                                         "status", 
149                                         "stop"
150                                 ], 
151                                 "router": [
152                                         "networks"
153                                 ], 
154                                 "network.interface": [
155                                         "dump"
156                                 ]
157                         },
158                         "uci": [
159                                 "dropbear", 
160                                 "boardpanel", 
161                                 "hosts",
162                                 "voice_client", 
163                                 "juci"
164                         ]
165                 },
166                 "write": {
167                         "ubus": {
168                                 "juci.system": [
169                                         "sshkeys_set",
170                                         "password_set"
171                                 ], 
172                                 "asterisk.call_log": [
173                                         "list"
174                                 ], 
175                                 "wps": [
176                                         "genpin", 
177                                         "setpin",
178                                         "pbc",
179                                         "showpin",
180                                         "stapin", 
181                                         "status",
182                                         "stop"
183                                 ]
184                         },
185                         "uci": [
186                                 "dropbear", 
187                                 "boardpanel", 
188                                 "hosts",
189                                 "voice_client", 
190                                 "juci"
191                         ]
192                 }
193         },
194
195         "users": {
196                 "description": "Guest login settings",
197                 "read": {
198                         "uci": [
199                                 "rpcd"
200                         ]
201                 },
202                 "write": {
203                         "uci": [
204                                 "rpcd"
205                         ]
206                 }
207         },
208
209         "software": {
210                 "description": "Package management",
211                 "read": {
212                         "ubus": {
213                                 "system": [
214                                         "info",
215                                         "board"
216                                 ],
217                                 "juci.opkg": [
218                                         "list",
219                                         "list_installed",
220                                         "find",
221                                         "config_get"
222                                 ]
223                         }
224                 },
225                 "write": {
226                         "ubus": {
227                                 "juci.opkg": [
228                                         "install",
229                                         "remove",
230                                         "update",
231                                         "config_set"
232                                 ]
233                         }
234                 }
235         },
236
237         "upgrade": {
238                 "description": "Firmware upgrade",
239                 "read": {
240                         "ubus": {
241                                 "juci.sysupgrade": [
242                                         "test"
243                                 ]
244                         }
245                 },
246                 "write": {
247                         "juci-io": [
248                                 "upload"
249                         ],
250                         "ubus": {
251                                 "juci.sysupgrade": [
252                                         "start",
253                                         "clean"
254                                 ], 
255                                 "juci.system": [
256                                         "reboot"
257                                 ]
258                         }
259                 }
260         },
261
262         "backup": {
263                 "description": "Backup and Restore",
264                 "read": {
265                         "juci-io": [
266                                 "backup"
267                         ],
268                         "ubus": {
269                                 "juci.system": [
270                                         "backup_config_get",
271                                         "backup_list"
272                                 ]
273                         }
274                 },
275                 "write": {
276                         "ubus": {
277                                 "juci.system": [
278                                         "backup_clean",
279                                         "backup_config_set",
280                                         "backup_restore",
281                                         "reboot"
282                                 ]
283                         }
284                 }
285         },
286
287         "startup": {
288                 "description": "System boot settings",
289                 "read": {
290                         "ubus": {
291                                 "juci.system": [
292                                         "init_list",
293                                         "rclocal_get"
294                                 ]
295                         }
296                 },
297                 "write": {
298                         "ubus": {
299                                 "juci.system": [
300                                         "init_action",
301                                         "rclocal_set"
302                                 ]
303                         }
304                 }
305         },
306
307         "cron": {
308                 "description": "Crontab management",
309                 "read": {
310                         "ubus": {
311                                 "juci.system": [
312                                         "crontab_get"
313                                 ]
314                         }
315                 },
316                 "write": {
317                         "ubus": {
318                                 "juci.system": [
319                                         "crontab_set"
320                                 ]
321                         }
322                 }
323         },
324
325         "leds": {
326                 "description": "Hardware LED configuration",
327                 "read": {
328                         "ubus": {
329                                 "network.device": [
330                                         "status"
331                                 ],
332                                 "juci.system": [
333                                         "led_list",
334                                         "usb_list"
335                                 ]
336                         },
337                         "uci": [
338                                 "system"
339                         ]
340                 },
341                 "write": {
342                         "uci": [
343                                 "system"
344                         ]
345                 }
346         },
347
348         "diagnostics": {
349                 "description": "Network diagnostic tools",
350                 "read": {
351                         "ubus": {
352                                 "juci.network": [
353                                         "ping",
354                                         "ping6",
355                                         "traceroute",
356                                         "traceroute6",
357                                         "nslookup"
358                                 ]
359                         }
360                 }
361         },
362
363         "hostnames": {
364                 "description": "Host entry management",
365                 "read": {
366                         "uci": [
367                                 "dhcp"
368                         ]
369                 },
370                 "write": {
371                         "uci": [
372                                 "dhcp"
373                         ]
374                 }
375         },
376
377         "network": {
378                 "description": "Network, switch and routing configuration",
379                 "read": {
380                         "ubus": {
381                                 "network": [
382                                         "get_proto_handlers"
383                                 ],
384                                 "network.device": [
385                                         "status"
386                                 ],
387                                 "network.interface": [
388                                         "dump"
389                                 ],
390                                 "network.wireless": [
391                                         "status"
392                                 ],
393                                 "juci.network": [
394                                         "switch_list",
395                                         "switch_info",
396                                         "switch_status",
397                                         "device_list", 
398                                         "conntrack_table", 
399                                         "dslstats"
400                                 ],
401                                 "juci.network.bwmon": [
402                                         "devices",
403                                         "statistics"
404                                 ], 
405                                 "router": [ "radios" ]
406                         },
407                         "uci": [
408                                 "network",
409                                 "wireless",
410                                 "broadcom", 
411                                 "ddns",
412                                 "layer2_interface_adsl", 
413                                 "layer2_interface_vdsl",
414                                 "layer2_interface_ethernet",
415                                 "layer2_interface_vlan",
416                                 "samba"
417                         ]
418                 },
419                 "write": {
420                         "uci": [
421                                 "network",
422                                 "wireless",
423                                 "layer2_interface_adsl", 
424                                 "layer2_interface_vdsl",
425                                 "layer2_interface_ethernet",
426                                 "layer2_interface_vlan",
427                                 "samba"
428                         ]
429                 }
430         },
431         
432         "wireless": {
433                 "description": "Wireless configuration", 
434                 "read": {
435                         "uci": [
436                                 "wireless"
437                         ]
438                 }, 
439                 "write": {
440                         "uci": [
441                                 "wireless", 
442                                 "ddns"
443                         ]
444                 }
445         }, 
446         "firewall": {
447                 "description": "Firewall configuration",
448                 "read": {
449                         "uci": [
450                                 "firewall"
451                         ]
452                 },
453                 "write": {
454                         "uci": [
455                                 "firewall"
456                         ]
457                 }
458         }
459 }