Validate MySQL Configuration file

This function checks whether a cPanel user's home directory contains a valid .my.cnf file.

SecurityBasicAuth
Request
query Parameters
user
required
string

The cPanel account username.

Example: user=user
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/has_mycnf_for_cpuser
Request samples
whmapi1 --output=jsonpretty \
  has_mycnf_for_cpuser \
  user='user'
Response samples
application/json
{
  • "data": {
    • "has_mycnf_for_cpuser": 1
    },
  • "metadata": {
    • "command": "has_mycnf_for_cpuser",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}