rapi: Add new user option for querying
This was requested in issue 301. Before this patch, requests to “/2/query/*” and “/2/instances/*/console” would require authentication with a user with write access. Since that is not strictly necessary, a new user option named “read” is added. Console information can also be retrieved as a normal query, therefore the change applies there too. This was the first user option to be added after “write”, therefore quite a few changes were necessary. Documentation, including NEWS, is updated as well. Signed-off-by:Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
Showing
- NEWS 4 additions, 0 deletionsNEWS
- doc/rapi.rst 42 additions, 8 deletionsdoc/rapi.rst
- lib/rapi/__init__.py 6 additions, 0 deletionslib/rapi/__init__.py
- lib/rapi/rlib2.py 3 additions, 2 deletionslib/rapi/rlib2.py
- test/ganeti.server.rapi_unittest.py 73 additions, 60 deletionstest/ganeti.server.rapi_unittest.py
Loading
Please register or sign in to comment