Request Samples

For request packets retrieving server preferences, refer to the section Getting Server Information.

Response Samples

An XML response packet retrieving server preferences of Plesk for Linux may look as follows:

<packet>
<server>
<get>
   <result>
      <status>ok</status>
      <prefs>
         <stat_ttl>4</stat_ttl>
         <traffic_accounting>3</traffic_accounting>
         <restart_apache_interval>86400</restart_apache_interval>
         <apache_pipelog>true</apache_pipelog>
         <ftp_over_ssl>enabled</ftp_over_ssl>
         <aps_force_updates>false</aps_force_updates>
         <aps_suggest_updates>true</aps_suggest_updates>
      </prefs>
   </result>
</get>
</server>
</packet>

This packet is received from the server where both inbound and outbound traffic is included to server traffic statistics, which is stored for 4 months. Also, Apache is restarted every 24 hours. Apache uses piped logging. The Plesk FTP server allows both FTP and FTPS (using SSL/TLS protocol) connections. APS applications server-wide force updates are turned off, but by default updates are turned off for newly installed apps.

An XML response packet retrieving server preferences of Plesk for Windows may look as follows:

<packet>
<server>
<get>
   <result>
      <status>ok</status>
      <prefs>
         <stat_ttl>6</stat_ttl>
         <traffic_accounting>2</traffic_accounting>
         <ftp_over_ssl>required</ftp_over_ssl>
         <mail_notifications>true</mail_notifications>
         <smtp_host>127.0.0.1</smtp_host>
         <smtp_port>25</smtp_port>
         <smtp_tls>false</smtp_tls>
         <aps_force_updates>false</aps_force_updates>
         <aps_suggest_updates>false</aps_suggest_updates>
      </prefs>
   </result>
</get>
</server>
</packet>

This packet is received from the server where only outbound traffic is calculated, and the traffic statistics is stored for 6 months. The local Plesk mail server is used to send notifications and mail generated by scripts, and the Plesk FTP server allows only FTPS (using SSL/TLS protocol) connections. APS applications server-wide force updates are turned off, and by default updates are turned off for newly installed apps.