Validate MySQL Configuration file

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

Authorizations:
query Parameters
user
required
string

The cPanel account username.

Example: user=user

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 has_mycnf_for_cpuser user='user'

Response samples

Content type
application/json
{
  • "data": {
    • "has_mycnf_for_cpuser": 1
    },
  • "metadata": {
    • "command": "has_mycnf_for_cpuser",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}