v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Mysql
User Management

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.

get/Mysql/get_restrictions

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "get_restrictions",
  "module": "Mysql",
  "result": {
    "data": {
      "max_database_name_length": 64,
      "max_username_length": 16,
      "prefix": "user_"
    },
    "status": 1
  }
}