Response Samples

The request packet sent to Plesk is as follows:

<packet version="1.6.0.0">
<domain-template>
<get>
   <filter>
      <id>11</id>
      <id>12</id>
   </filter>
   <owner-login>tecnhnolux</owner-login>
</get>
</domain-template>
</packet>

 

This packet requests for the information about two domain templates specified by ID.

A positive response can look as follows:

<packet version="1.6.0.0">
<domain-template>
<get>
   <result>
      <status>ok</status>
      <id>11</id>
      <name>base_template</name>
      <mail>
          <webmail>true</webmail>
      </mail>
   </result>
   <result>
      <status>ok</status>
      <id>12</id>
      <name>quick_template</name>
      <limits>
          <disk_space>209715200</disk_space>
          <max_traffic>209715200</max_traffic>
          <max_db>50</max_db>
          <mysql_dbase_space>52428800</mysql_dbase_space>
          <expiration>63072000</expiration>
      </limits>
      <hosting>
          <vrt_hst>
              <ftp_quota>1000000</ftp_quota>
              <ssl>true</ssl>
              <php>true</php>
              <php_safe_mode>true</php_safe_mode>
              <ssi>true</ssi>
              <cgi>true</cgi>
              <mod_perl>true</mod_perl>
              <mod_python>true</mod_python>
              <webstat>webalizer</webstat>
              <errdocs>true</errdocs>
          </vrt_hst>
      </hosting>
   </result>
</get>
</domain-template>
</packet>

 

The base_template domain template holds the mailing settings only, while the quick_template domain template holds the limits and hosting settings.

A negative response can look as follows:

<packet version="1.6.0.0">
<domain-template>
<get>
   <result>
      <status>ok</status>
      <id>11</id>
      <name>base_template</name>
      <mail>
          <webmail>true</webmail>
      </mail>
   </result>
   <result>
      <status>error</status>
      <id>12</id>
      <errcode>1013</errcode>
      <errtext>Object not found.</errtext>
   </result>
</get>
</domain-template>
</packet>