mirror of https://git.48k.eu/ogserver
				
				
				
			| 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. | ||
|---|---|---|
| cfg | ||
| extras | ||
| src | ||
| tests | ||
| .gitignore | ||
| COPYING | ||
| INSTALL | ||
| Makefile.am | ||
| configure.ac | ||