v1

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

Return MySQL user routines

This function returns a database user's MySQL® routines.

Important:

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

get/Mysql/list_routines

Query parameters

database_userstring
Example:db_user

The database user for whom to return MySQL routines. If you don't specify a database user, this function returns the MySQL routines for all database users.

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": "list_routines",
  "module": "Mysql",
  "result": {
    "data": [
      "cptest_newdb.hello",
      "cptest_newdb.my_routine"
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}