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.
uapi --output=jsonpretty \ --user=username \ Mysql \ get_restrictions
{- "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
}
}