Update remote MySQL profile

This function updates one or more parameters for a remote MySQL® profile.

Note: This function requires the name parameter and one of more of the mysql_host , mysql_user, mysql_pass, mysql_port, or setup_via parameters.

SecurityBasicAuth
Request
query Parameters
name
required
string

The profile's name.

Example: name=MyProfile
string or string

The MySQL server's IP address or hostname.

Example: mysql_host=192.168.0.1
mysql_pass
string

The MySQL server's password.

Example: mysql_pass=12345luggage
mysql_port
integer [ 1 .. 65535 ]

The MySQL server's port.

Example: mysql_port=3306
mysql_user
string

The MySQL server's username.

Example: mysql_user=username
setup_via
string <= 255 characters

A description of the profile data.

Example: setup_via=Main terminal
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/remote_mysql_update_profile
Request samples
whmapi1 --output=jsonpretty \
  remote_mysql_update_profile \
  name='MyProfile'
Response samples
application/json
{
  • "data": {
    • "profile_details": {
      • "active": 0,
      • "mysql_host": "192.168.0.1",
      • "mysql_pass": "12345luggage",
      • "mysql_port": 3306,
      • "mysql_user": "username",
      • "setup_via": "Main terminal"
      },
    • "profile_saved": "MyProfile"
    },
  • "metadata": {
    • "command": "remote_mysql_update_profile",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}