This function lists the server's databases.
Warning:
On most servers, this function returns a large amount of output. We strongly suggest that you filter and sort the output.
Important:
When you disable the MySQL/MariaDB and PostgreSQL roles and remote MySQL is not already configured, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ list_databases
{- "data": {
- "payload": [
- {
- "cpuser": "example",
- "engine": "postgresql",
- "name": "example_db0"
}
]
}, - "metadata": {
- "command": "list_databases",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}