Request Packet Structure
A request XML packet adding a new domain template to Plesk database includes the add 'operation' node:
<packet version="1.4.1.0">
<domain-template>
<add>
…
</add>
</domain-template>
</packet>
The add node is presented by type DomainTemplateAddInputType (domain_template.xsd). Its graphical representation is as follows:
|
|

|
- The name node is required. It specifies the name of the domain template. Data type: string.
- The client_id node is optional. It is used if the domain template is created by Plesk Administrator for a certain client. Data type: id_type (integer).
- The client-login node is optional. It is used if the domain template is created by Plesk Administrator for a certain client. Data type: string.
- The mail node is optional. It specifies a collection of email preferences that will be assigned to a new domain created using this template. Data type: MailPreferences complex type (
plesk_mailname.xsd). See the structure of this node in the Mailing settingstopic.
|
- The limits node is optional. It specifies a collection of limits that will be set for new domains created using this template. Data type: domainLimits complex type (
plesk_domain.xsd). See the structure of this node in the Limits topic. - The log-rotation node is optional. It is used to turn on/off rotation of log files related to a domain created using this template. Data type: LogRotationType complex type (
domain_template.xsd). See the structure of this node in the Log rotation settings topic. - The preferences node is optional. It is used to specify a collection of preferences for new domains created using this template. Data type: DomainTemplatePreferecesType complex type (
domain_template.xsd). See the structure of this node in the Preferences topic. - The hosting node is optional. Specifies physical hosting settings for new domains created using this template. Data type: DomainTemplatePHostingPreferences complex type (
domain_template.xsd). See the structure of this node in the Hosting settings topic.
|