Accounts
Account Management

Validate MySQL Configuration file

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

get/has_mycnf_for_cpuser

Request

  • Base URL
    https://whm-server.tld:2087/json-api
  • Auth
    HTTP basic

Query parameters

userstring required
Example:user

The cPanel account username.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "has_mycnf_for_cpuser": 1
  },
  "metadata": {
    "command": "has_mycnf_for_cpuser",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.