Configuring Site Settings
The set operation lets you change settings of specified sites.
Request Packet Structure
A request XML packet that changes site settings should include the set operation node:
The set node does not have a separate type, it is nested within the complex type (
site.xsd). The set node has the following graphics representation:
It indicates sites to be updated with the specified information. Data type: siteFilterType (
site.xsd). To see the structure of this node, proceed to section Available Filters.
It contains a collection of settings that will be set for the filtered sites. Data type: none.
It specifies a collection of general site settings that will be set for the filtered sites. Data type: setSiteGenSetupType (
site.xsd). To see the structure of this node, proceed to section Node set/gen_setup.
It specifies a collection of preferences for the filtered sites. Data type: domainPrefs (
plesk_domain.xsd). To see the structure of this node, proceed to section Site Preferences.
It specifies hosting settings for the filtered sites. Data type: siteHostingAgentSet (
site.xsd). To see the structure of this node, proceed to section Hosting.
It specifies the amount of disk space allotted for email boxes and mailing lists on the filtered sites. Data type: none. To see the structure of this node, proceed to section Disk Space Usage.
Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.
Response Packet Structure
The set node of the response packet is structured as follows:
- The result node is optional. It wraps the result of the requested operation. It can be missing if some error occurs before the validation starts. Data type: resultFilterType (
- The status node is required. It returns the execution status of the operation. Data type: string. Allowed values: ok | error.
- The errcode node is optional. It is used to return the error code if the operation fails. Data type: unsignedInt.
- The errtext node is optional. Can be used to return an error message if the operation fails. Data type: string.
- The filter-id node is optional. If supported, it is always present and used to return the filtering rule set in the request packet. Data type: anySimple.
- The id node is optional. It is missing if the request packet fails before the validation on the server side. If present, this node identifies the site whose settings are updated. Data type: integer.
Below is an example of a request packet which sets hosting properties for domain sample3.tst (on Windows hosting):