If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.
Property:storagenasrights rest.lua
BoxMatrix >> Webinterface >> storagenasrights_rest.lua | @ BoxMatrix - IRC-Chat - Translate: de es fr it nl pl |
News | Selectors | Models | Accessories | Components | Environment | Config | Commands | System | Webif | Software | Develop | Lexicon | Community | Project | Media |
UI-Structure | UI-Modules | HTML-Files | XML-Files | Lua-Scripts | Javascript | Browser | SSI-Files | SSI-Directives | HTML-Text | Event-Text | Help-Pages | CSS-Files | Graphics | Research |
Lua-Script
Lua-Script: | storagenasrights_rest.lua - type Script | Wiki | Freetz | IPPF | whmf | AVM | Web |
Location: | Webinterface >> Lua-Scripts - Origin: AVM | ||||||
Path: | Release: /usr/rest_api Lab+Rel: /usr/rest_api | ||||||
Properties: | Size: 10.8k - 12.2k - Firmware: 7.39 - 8.00 | ||||||
Function: | REST-API module for NAS access permissions |
Goto: Functions - Dependencies - Model-Matrix - SMW-Browser
Details
storagenasrights_rest.lua is the REST-API Module for managing NAS access permissions.
It is loaded by rest_config.lua and provides the storagenasrights
endpoint which is accessible by:
GET /api/v0/storagenasrights # get table of directories with rights POST /api/v0/storagenasrights # post directories with their authorization
- Lexicon: REST-API
- Commands: scgi_server
- Ports: Port-8187-tcp
- UI-Mods: webui
- API-Root: api.lua
- Includes: api_generic.lua, rest_config.lua, security.lua, espresso.lua
- Includes: rest_api_const.lua, response.lua, error.lua, avmluamessages.lua
- Includes: uimod.lua, api_generic_filter.lua, resource.lua
- Modules: storagenasrights_rest.lua, webusb_rest.lua
- Modules: calllog_rest.lua, faxjournal_rest.lua, phonebook_rest.lua
- Modules: smarthome_rest.lua, boxnotify_rest.lua
- Develop: obl_fboxname.lua, dev_debug.lua, landevice.lua
- Develop: query_tree.lua, fake_modules.lua, obl.lua
Functions
The function names of scripts often help to understand function blocks (and show gaps in the docs). fw 7.50 functions:
$ grep -e '^function' -e '^local function' /usr/rest_api/storagenasrights_rest.lua # returns the ressources table for get and post methods. function storagenasrights_rest.getRestRessources(rootPath) # Helpfunction for listquery, local function parse_rows(qs) # Create and return multiquery Table with key and value local function listquery(querystring) # Read nas directories with authorization. local function read_dirs() # Read rights from nas directories for authorizationead rights from boxusers. local function read_access(dir) # Read rights from nas directories for authorization local function hasUserInternetAccess(uid) # Get table from directories with rights local function get_storagedirs() # response.send(dirs) table from directories with rights # GET /api/v0/storagenasrights function storagenasrights_rest.get_storagedirs() # Add rights entry for nas storages. local function add_entry(current_dir_node, currdir, username, saveset, new_ids) # Add nas directory for authorization. local function add_dir(currdir, saveset, new_ids) # Get username. local function getUsername(uid) # Get nas authorization for nas for user. local function hasUserNasRights(uid) # Get nas access from internet for user. local function isRightsForInternetValide(access ,uid) # Checks whether the path value appears more than once. local function is_double(query, set) # Checked is path in table a doublet. local function is_path_doublet(set) # Sortiert Access nach Aufbau / Verschachtelung des Baums. local function sortAccess(access) # Handler function to post directories with his authorization. # POST /api/v0/storagenasrights function storagenasrights_rest.save_storagedirs()
Dependencies
Daily updated index of all dependencies of this script. Last update: 2024-11-14 08:31 GMT.
A *
in the Mod
column marks info from Supportdata-Probes, which will always stay incomplete.
If an Object
includes itself then this is a file with the same name but another Path
and the dependencies are merged.
Relation | Typ | Object | Mod | Firmware | Info | Origin |
---|---|---|---|---|---|---|
Accesses | uimod | boxusers | 38 | 7.39 - 8.00 | FritzBox-Users | AVM |
Accesses | uimod | storagedirectories | 38 | 7.39 - 8.00 | Storage directories and access permissions | AVM |
Requires | lua | response.lua | 38 | 7.39 - 8.00 | REST-API Response API | AVM |
Requires | lua | rest_api_const.lua | 38 | 7.39 - 8.00 | REST-API Const Tables | AVM |
Includes | js | box.js | 38 | 7.39 - 8.00 | TODO | AVM |
5 dependencies for this script |
Model-Matrix
Daily updated index of the presence, path and size of this script for each model. Last update: 2024-11-14 06:51 GMT.
Showing all models using this script. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl)
label in the Model
column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.
Model | Firmware | Path | Size/Bytes |
---|---|---|---|
FRITZ!Box 4040 | 7.39 - 8.00 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 4050 | 7.58 - 7.90 | /usr/rest_api | 11.9k - 12.2k |
FRITZ!Box 4060 | 7.39 - 7.90 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 5530 Fiber (main) | 7.39 - 8.00 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 5590 Fiber (main) | 7.39 - 8.00 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 5590 Fiber (prx) | 7.70 - 8.00 | /usr/rest_api | 11.9k - 12.2k |
FRITZ!Box 5690 Pro (main) | 7.62 - 7.90 | /usr/rest_api | 11.9k - 12.2k |
FRITZ!Box 6490 Cable (atom) | 7.39 - 7.51 | /usr/rest_api | 11.6k - 11.9k |
FRITZ!Box 6590 Cable (atom) | 7.39 - 7.51 | /usr/rest_api | 11.6k - 11.7k |
FRITZ!Box 6591 Cable (arm) | 8.00 | /usr/rest_api | 12.2k |
FRITZ!Box 6591 Cable (atom) | 7.39 - 8.00 | /usr/rest_api | 10.8k - 12.2k |
FRITZ!Box 6660 Cable (arm) | 7.90 - 8.00 | /usr/rest_api | 12.2k |
FRITZ!Box 6660 Cable (atom) | 7.39 - 8.00 | /usr/rest_api | 10.8k - 12.2k |
FRITZ!Box 6670 Cable (arm) | 7.90 | /usr/rest_api | 12.2k |
FRITZ!Box 6670 Cable (atom) | 7.61 - 7.90 | /usr/rest_api | 11.9k - 12.2k |
FRITZ!Box 6690 Cable (arm) | 7.90 | /usr/rest_api | 12.2k |
FRITZ!Box 6690 Cable (atom) | 7.39 - 7.90 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 6820 LTE v1 (main) | 7.51 | /usr/rest_api | 11.7k |
FRITZ!Box 6820 LTE v2 (main) | 7.51 | /usr/rest_api | 11.7k |
FRITZ!Box 6820 LTE v3 (main) | 7.51 - 7.57 | /usr/rest_api | 11.7k - 11.9k |
FRITZ!Box 6850 LTE | 7.39 - 7.90 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 6850 5G | 7.39 - 7.90 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 6890 LTE (main) | 7.39 - 7.57 | /usr/rest_api | 10.8k - 11.9k |
FRITZ!Box 6890 LTE v1 (main) | 7.39 - 7.57 | /usr/rest_api | 10.8k - 11.9k |
FRITZ!Box 6890 LTE v2 (main) | 7.39 - 7.57 | /usr/rest_api | 10.8k - 11.9k |
FRITZ!Box 7490 (main) | 7.51 | /usr/rest_api | 11.6k - 11.9k |
FRITZ!Box 7510 | 7.39 - 8.00 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 7520 | 7.39 - 8.00 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 7520 v2 (main) | 7.39 - 8.00 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 7530 | 7.39 - 8.00 | /usr/rest_api | 10.8k - 12.2k |
FRITZ!Box 7530 AX | 7.39 - 8.00 | /usr/rest_api | 11.6k - 12.2k |
FRITZ!Box 7583 (main) | 7.50 - 7.59 | /usr/rest_api | 11.6k - 11.9k |
FRITZ!Box 7583 VDSL (main) | 7.59 - 8.00 | /usr/rest_api | 11.9k - 12.2k |
FRITZ!Box 7590 (main) | 7.39 - 8.00 | /usr/rest_api | 10.8k - 12.2k |
FRITZ!Box 7590 AX (main) | 7.39 - 8.00 | /usr/rest_api | 10.8k - 12.2k |
FRITZ!Box 7690 | 7.61 - 7.90 | /usr/rest_api | 11.9k - 12.2k |
FRITZ!Repeater 2400 | 7.39 | /usr/rest_api | 11.7k |
FRITZ!Powerline 1240 AX | 7.57 - 7.58 | /usr/rest_api | 11.9k |
38 models use this script |