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.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/installable_mysql_versions
Request samples
whmapi1 --output=jsonpretty \
  installable_mysql_versions
Response samples
application/json
{
  • "data": {
    • "versions": [
      • {
        • "server": "mariadb",
        • "version": "10.0"
        }
      ]
    },
  • "metadata": {
    • "command": "installable_mysql_versions",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}