/databases/status
0.1.0Unchanged since publicationGet MariaDB status and connection settings
databasesreadallThe response contains status, with the MariaDB installation and runtime state, the version when recorded, and the socket and hosts applications can use to connect. It also includes whether phpMyAdmin is active and its URL. A stopped server is reported through running and state in a 200 response.
For administrators, status also reports whether MariaDB and phpMyAdmin are enabled. If MariaDB is installed and enabled, unowned lists databases with no recorded owner and unknown_accounts lists MariaDB accounts unknown to UrbeStack. The response includes server_version when available and server_error if the query fails.
For resellers and customers, status omits both enabled fields and includes prefix, the caller's username followed by an underscore.
As a command
Run as root on the serverExample
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/databases/status" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"status": {
"enabled": true,
"hosts": [
"text"
],
"installed": true,
"prefix": "text",
"running": true,
"server_error": "text",
"server_version": "text",
"socket": "text",
"state": "up",
"unknown_accounts": [
"text"
],
"unowned": [
"text"
],
"version": "0.0.1"
}
}Errors
4 errors, each a status and a sentence400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication required404User '<family>' not foundurbestack.com/docs/api/get-databases-status/