summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0005_post_shell_output.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-11-19 13:53:53 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-11-26 16:48:41 +0100
commita801e788e8f7cb3ee186e7b315ca61a949625bdc (patch)
treea0d75cca0e39c8359766cc007a382a79eec97600 /tests/units/test_0005_post_shell_output.py
parent64bbc0cf3faa59bec875ebe889c591958b4e8f11 (diff)
#915 Add folders to scope
The database represents rooms groups and computers groups scope sets with "grupos" (groups) and "gruposordenadores" (computers groups) tables respectively. With this commit, ogServer abstracts both sets and offers them though the API as the set "folder". "grupos" table do not only group rooms, it can group other elements of the database. You can see which kind of elements groups looking at the column "tipo". This commit often refers "rooms group" as group and "computers group" as computers. Request: GET /scopes NO BODY Response 200 OK { "scope": [ { "name": "center1", "type": "center", "id": 1, "scope": [ { "name": "folder1", "type": "folder", "id": 1, "scope": [ { "name": "folder2", "type": "folder", "id": 2, "scope": [] }, { "name": "room1", "type": "room", "id": 2, "scope": [ { "name": "folder3", "type": "folder", "id": 3, "scope": [ { "name": "folder4", "type": "folder", "id": 4, "scope": [] }, { "name": "computer1", "type": "computer", "id": 8, "scope": [], "ip": "192.168.56.12" } ] }, { "name": "computer2", "type": "computer", "id": 7, "scope": [], "ip": "172.18.0.71" } ] } ] }, { "name": "room2", "type": "room", "id": 1, "scope": [] } ] } ] }
Diffstat (limited to 'tests/units/test_0005_post_shell_output.py')
0 files changed, 0 insertions, 0 deletions