Request Packet Structure and Samples

A request XML packet retrieving information on server and Plesk configuration contains the get operation node:

<packet version="1.4.2.0">
  <server>
    <get>
      ...
    </get>
  </server>
</packet>

 

The get node is presented by complex type getType (server_input.xsd) and structured as follows:

 

To retrieve all server information, send a request packet with empty get node, as follows:

<packet version="1.4.2.0">
  <server>
    <get/>
  </server>
</packet>

 

To retrieve a specific information, include the corresponding child nodes to your request. For example, to retrieve currently installed components and license key, send the following request packet:

<packet version="1.4.2.0">
  <server>
    <get>
       <key/>
       <components/>
    </get>
  </server>
</packet>

 

To retrieve server general information, statistics and preferences, send the following request packet:

<packet version="1.4.2.0">
  <server>
    <get>
       <gen_info/>
       <stat/>
       <prefs/>
    </get>
  </server>
</packet>