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.
uapi --output=jsonpretty \ --user=username \ Mysql \ list_routines
{- "apiversion": 3,
- "func": "list_routines",
- "module": "Mysql",
- "result": {
- "data": [
- "cptest_newdb.hello",
- "cptest_newdb.my_routine"
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}