v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Mysql
Remote Databases

Disable remote MySQL host access

This function removes a remote MySQL® host's access to the account's databases.

Important:

When you disable the MySQL role and remote MySQL is not already configured, the system disables this function.

get/Mysql/delete_host

Query parameters

hoststring required
Example:remote.example.com

The remote MySQL server's hostname, IP Address, or IP address range.

Note: You may use the following IP address formats:

192.168.1.6 — IP address. 192.168.%.% — Range with the percent (%) symbol as a wildcard. 192.168.0.0/16 — Range in CIDR format.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "delete_host",
  "module": "Mysql",
  "result": {
    "status": 1
  }
}