Performance settings are defined by the performance node. This node is specified by complex type DomainPerformanceType (plesk_domain.xsd) . This type is structured as follows:

image-0

  • The bandwidth node is optional. It restricts the network use by the specified value (Kb/sec) for the subscription created using this service plan. Data type: integer. If set to -1, the bandwidth is unlimited.
  • The max_connections node is optional. It restricts the number of connections by the specified value for the subscription created using this service plan. Data type: integer. If set to -1, the number of connections is unlimited.

The following sample packet creates a service plan and defines performance settings for subscriptions that will be created using this service plan:

<packet>
<service-plan>
<add>
   <name>base_plan</name>
   <gen_setup>
      <name>newsubscription.com</name>
      <owner-id>1234</owner-id>
      <ip_address>123.123.123.123</ip_address>
   </gen_setup>
   <performance>
      <bandwidth>1000</bandwidth>
      <max_connections>-1</max_connections>
   </performance>
</add>
</service-plan>
</packet>

Note: When creating request packets, put nodes and elements in the order they follow in the packet structure.