MaxScale Admin User Resource
Overview
Admin users represent administrative users that are able to query and change MaxScale's configuration.
Resource Operations
Get network user
GET /v1/users/:name
GET /v1/users/inet/:nameGet a single network user. The :name in the URI must be a valid network user name.
Response
Status: 200 OK
{
"data": {
"attributes": {
"account": "admin",
"created": "Fri, 25 Jul 2025 15:43:46 GMT",
"last_login": "Fri, 25 Jul 2025 15:44:03 GMT",
"last_update": null,
"name": "admin",
"permissions": [
"admin",
"edit",
"view",
"sql"
]
},
"id": "admin",
"links": {
"self": "http://localhost:8989/v1/users/admin/"
},
"type": "users"
},
"links": {
"self": "http://localhost:8989/v1/users/admin/"
}
}Get all network users
Get all network users.
Response
Status: 200 OK
Get all users
Get all administrative users.
Response
Status: 200 OK
Create a network user
Create a new network user. The request body must define at least the following fields.
data.idThe username.
data.attributes.passwordThe password for this user.
data.attributes.roleordata.attributes.accountThe role that this user account uses. The set of available roles can be retrieved with
GET /v1/roles. The old fixed set of roles that older versions of MaxScale used are also read from theaccountfield, if used. If both theroleand theaccountfield are present, the value of therolefield is used.
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.
Response
Delete a network user
The :name part of the URI must be a valid user name.
Response
Update a network user
Update network user. The following fields can be modified:
data.attributes.passwordChanges the password for this user.
data.attributes.roleordata.attributes.accountChanges the role for this user. If both fields are defined, the value of
roleis used.
Modifying a user requires administrative privileges.
Here is an example request body that updates the password.
Response
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

