MXS-2824: Document basic user privileges
The documentation was not clear on what the difference between admin and basic accounts is.
This commit is contained in:
parent
6306519e5e
commit
edb49d6f35
@ -195,6 +195,10 @@ following fields.
|
||||
* `data.attributes.account`
|
||||
* Set to `admin` for administrative users and `basic` to read-only users
|
||||
|
||||
Only admin accounts can perform POST, PUT, DELETE and PATCH requests. If a basic
|
||||
account performs one of the aforementioned request, the REST API will respond
|
||||
with a `401 Unauthorized` error.
|
||||
|
||||
Here is an example request body defining the network user _my-user_ with the
|
||||
password _my-password_ that is allowed to execute only read-only operations.
|
||||
|
||||
|
@ -319,7 +319,8 @@ exports.builder = function(yargs) {
|
||||
return yargs.epilog('The created user can be used with the MaxScale REST API as ' +
|
||||
'well as the MaxAdmin network interface. By default the created ' +
|
||||
'user will have read-only privileges. To make the user an ' +
|
||||
'administrative user, use the `--type=admin` option.')
|
||||
'administrative user, use the `--type=admin` option. ' +
|
||||
'Basic users can only perform `list` and `show` commands.')
|
||||
.usage('Usage: create user <name> <password>')
|
||||
}, function(argv) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user