This function authorizes a remote MySQL® host to access the account's databases.
Important:
When you disable the MySQL role and remote MySQL is not already configured, the system disables this function.
required | string or string or string or string The remote MySQL server's hostname or IP address. You may use the following IP address formats:
Example: host=192.168.1.6 |
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --user=username Mysql add_host host='192.168.1.6'
{- "apiversion": 3,
- "func": "add_host",
- "module": "Mysql",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}