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 |
uapi --output=jsonpretty \ --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
}
}