Limits

Client template limits and client limits are described by the same XML structures. The only difference between descriptions of these two objects is in names of types that define XML structures: The former is of clientLimits type, while the latter is of clientTemplateLimits type.

For details on client limits description, refer to the Limits and Permissions section.

Samples

In API RPC 1.5.0.0 and later versions, a packet that requests for creating a new client template and with a collection of limits can look as follows:

<packet version="1.5.0.0">
<client-template>
<add>
   <name>base_template</name>
   <limits>
      <limit>
         <name>disk_space</name>
         <value>209715200</value>
      </limit>
      <limit>
         <name>mysql_dbase_space</name>
         <value>52428800</value>
      </limit>
      <limit>
            <name>max_db</name>
            <value>50</value>
      </limit>
      <limit>
            <name>max_traffic</name>
            <value>52428800</value>
      </limit>
      <limit>
            <name>max_dom</name>
            <value>100</value>
      </limit>
      <limit>
            <name>max_dom_aliases</name>
            <value>5</value>
      </limit>
      <limit>
            <name>max_subdom</name>
            <value>400</value>
      </limit>
      <limit>
            <name>total_mboxes_ quota</name>
            <value>1000</value>
      </limit>
      <limit>
            <name>expiration</name>
            <value>63072000</value>
      </limit>
   </limits>
</add>
</client-template>
</packet>

 

In API RPC 1.4.2.0 and earlier versions, a packet that requests for creating a new client template and with a collection of limits can look as follows:

<packet version="1.4.2.0">
<client-template>
<add>
   <name>base_template</name>
   <limits>
      <disk_space>209715200</disk_space>
      <mysql_dbase_space>52428800</mysql_dbase_space>
      <max_db>50</max_db>
      <max_traffic>52428800</max_traffic>
      <max_dom>100</max_dom>
      <max_dom_aliases>5</max_dom_aliases>
      <max_subdom>400</max_subdom>
      <total_mboxes_ quota>1000</total_mboxes_quota>
      <expiration>63072000</expiration>
   </limits>
</add>
</client-template>
</packet>