Description

This function migrates your system from EasyApache 3 to EasyApache 4.

 To do this, the function calls the  /usr/local/cpanel/scripts/migrate_ea3_to_ea4 script with the --yrun, and --skip-blockers flags.


Examples 




https://hostname.example.com:2087/cpsess##########/json-api/ea4_migration?
api.version=1




https://hostname.example.com:2087/cpsess##########/xml-api/ea4_migration?
api.version=1 




whmapi1 ea4_migration




{  
   "data":{  
      "build":10111
   },
   "metadata":{  
      "version":1,
      "reason":"OK",
      "result":1,
      "command":"ea4_migration"
   }
}




<result>
    <data>
        <build>10111</build>
    </data>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>ea4_migration</command>
    </metadata>
</result> 



Parameters

This function does not accept parameters.

To revert your server from EA4 to EA3, call this function with the revert option. For example:

whmapi1 ea4_migration revert


Returns

ReturnTypeDescriptionPossible valuesExample
buildinteger

A valid Process ID (PID).

An integer value.10111