Overview
The start process begins the transfer session. Use the same process for both the root
and transfer sessions.
In these examples, the following statements are true:
- You have two servers:
remote.example.com
andhostname.example.com
- You logged in to the local server with the
cpsess##########
security token. - The
example
account ownsexample.com,
and you want to transfer it from the remote server to the local server. - The
example.com
domain is123,456,789
bytes. - You want to transfer the
package1
package from the remote server to the local server. - The
root
password for the remote server isluggage12345
Start the transfer session
After you add all of the transfer items to the transfer session, start the transfer session with the start_transfer_session f
unction, as in the following examples:
https://hostname.example.com:2087/cpsess##########/json-api/start_transfer_session?api.version=1&transfer_session_id=exampleservercopya20140206192428NtyW
include_once '../xmlapi.php'; $ip = getenv('REMOTE_HOST'); $root_user = getenv('REMOTE_USER'); $root_pass = getenv('REMOTE_PASSWORD'); $xmlapi = new xmlapi($ip , $root_user , $root_pass); $xmlapi->set_output('json'); $settings = array('api.version'=>1, 'transfer_session_id'=>'remoteexamplecomnoroo20140501194105g7qG'); $_result = $xmlapi->xmlapi_query('start_transfer_session' , $settings); print $_result;
The function returns the process ID that handles the transfer session:
Additional documentation
Content by label
There is no content with the specified labels