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:
- 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>184.108.40.206</ip_address> </gen_setup> <performance> <bandwidth>1000</bandwidth> <max_connections>-1</max_connections> </performance> </add> </service-plan> </packet>
Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.
Leave your feedback on this topic here
If you have questions or need support, please visit the Plesk forum or contact your hosting provider.
The comments below are for feedback on the documentation only. No timely answers or help will be provided.