Request Packet Structure and Samples

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

<packet>
  <server>
    <get>
      ...
    </get>
  </server>
</packet>

 

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

server_admin-domain-list






 

To retrieve specific server 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>
  <server>
    <get>
       <key/>
       <components/>
    </get>
  </server>
</packet>

 

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

<packet>
  <server>
    <get>
       <gen_info/>
       <stat/>
       <prefs/>
    </get>
  </server>
</packet>

To retrieve the list of administrator's domains, send the following request packet:

<packet>
  <server>
    <get>
       <admin-domain-list/>
    </get>
  </server>
</packet>