Return available MySQL versions

This function lists all available versions of MySQL® and MariaDB.

Important:

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

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  installable_mysql_versions

Response samples

Content type
application/json
{
  • "data": {
    • "versions": [
      • {
        • "server": "mariadb",
        • "version": "10.0"
        }
      ]
    },
  • "metadata": {
    • "command": "installable_mysql_versions",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}