summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0027_get_hardware.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-17 14:19:39 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-17 17:15:27 +0200
commite9a8f467f1d805348df66c6a4bee1d145fdd85db (patch)
tree215b505fb5ad060eceb2524ccda25c262d38373a /tests/units/test_0027_get_hardware.py
parente62a55ae37bfdb2aba86696dde5bc27555dd5cf8 (diff)
rest: add GET,POST /image/restrict
Allow to restrict image to scope: POST /image/restrict { "image" : 49, "scopes" : [ 1,3 ] } response: 200 OK This restricts image with ID 49 to scopes 1 and 3. You can also fetch the current list of restrictions: GET /image/restrict { "image" : 49 } response: 200 OK { "image" : 49, "scopes" : [ 1,3 ] } Existing limitations in this interface: - Only restriction of image to center is possible at this moment. - This is only used by ogCP to validate if this is possible, no existing code in the ogserver uses this to restrict POST image/restore. This is a usability feature.
Diffstat (limited to 'tests/units/test_0027_get_hardware.py')
0 files changed, 0 insertions, 0 deletions