Performance settings of the Web site hosted within the subscription are defined by the performance node. This node is specified by complex type DomainPerformanceType (plesk_domain.xsd
). This type is structured as follows:
The following sample packet creates a subscription and sets performance settings:
<packet version="1.6.3.0">
<webspace>
<add>
<gen_setup>
<name>newsite.com</name>
<owner-id>1234</owner-id>
<ip_address>192.0.2.123</ip_address>
</gen_setup>
<performance>
<bandwidth>1000</bandwidth>
<max_connections>20</max_connections>
</performance>
</add>
</webspace>
</packet>
To undo the performance settings for this subscription, send a packet as follows:
<packet version="1.6.3.0">
<webspace>
<set>
<filter>
<name>example.com</name>
</filter>
<values>
<performance>
<bandwidth>-1</bandwidth>
<max_connections>-1</max_connections>
</performance>
</values>
</set>
</webspace>
</packet>