Return MySQL name length restrictions

This function lists a MySQL® database's name, username length restrictions, and database prefix.

Important:

When you disable the MySQL/MariaDB role and remote MySQL is not already configured, the system disables this function.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Mysql/get_restrictions
Request samples
uapi --output=jsonpretty \
  --user=username \
  Mysql \
  get_restrictions
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "get_restrictions",
  • "module": "Mysql",
  • "result": {
    • "data": {
      • "max_database_name_length": 64,
      • "max_username_length": 16,
      • "prefix": "user_"
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}