<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 1999-2022. Plesk International GmbH. All rights reserved. -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:include schemaLocation="plesk_common.xsd"/>
	<xs:complexType name="keyType">
		<xs:annotation>
			<xs:documentation>Server license key info</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="property" type="KeyPropertyType" maxOccurs="unbounded"/>
			<xs:element name="content" type="xs:base64Binary"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="serverGenInfoType">
		<xs:annotation>
			<xs:documentation>Server general info</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="server_name" type="string"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="serverPassword">
		<xs:annotation>
			<xs:documentation>Server Admin Password</xs:documentation>
		</xs:annotation>
		<xs:restriction base="string">
			<xs:minLength value="5"/>
			<xs:maxLength value="14"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="componentsType">
		<xs:annotation>
			<xs:documentation>Server componets info</xs:documentation>
		</xs:annotation>
		<xs:choice maxOccurs="unbounded">
			<xs:element name="component">
				<xs:complexType>
					<xs:all>
						<xs:element name="name">
							<xs:annotation>
								<xs:documentation>Component Name</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="string">
									<xs:minLength value="1"/>
									<xs:maxLength value="255"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="version">
							<xs:annotation>
								<xs:documentation>Component Version</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="string">
									<xs:minLength value="1"/>
									<xs:maxLength value="255"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="servicesState">
		<xs:annotation>
			<xs:documentation>Server services state</xs:documentation>
		</xs:annotation>
		<xs:choice minOccurs="0" maxOccurs="unbounded">
			<xs:element name="srv">
				<xs:complexType>
					<xs:all>
						<xs:element name="id">
							<xs:annotation>
								<xs:documentation>Service ID</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="string">
									<xs:minLength value="1"/>
									<xs:maxLength value="255"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="title">
							<xs:annotation>
								<xs:documentation>Service Title</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="string">
									<xs:minLength value="1"/>
									<xs:maxLength value="255"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="state">
							<xs:annotation>
								<xs:documentation>Service State</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="string">
									<xs:minLength value="1"/>
									<xs:maxLength value="255"/>
									<xs:enumeration value="running"/>
									<xs:enumeration value="stopped"/>
									<xs:enumeration value="none"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="error" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Optional Error</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="string">
									<xs:minLength value="1"/>
									<xs:maxLength value="255"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="serverPrefs">
		<xs:annotation>
			<xs:documentation>Server preferences</xs:documentation>
		</xs:annotation>
		<xs:all>
			<xs:element name="stat_ttl" type="int" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Time-To-Live for traffic statistics (months)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="traffic_accounting" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Traffic accounting type, bit mask, 1=in, 2=out</xs:documentation>
					<xs:documentation>Time-To-Live for traffic statistics (months)</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="int">
						<xs:enumeration value="1">
							<xs:annotation>
								<xs:documentation source="in">in</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="2">
							<xs:annotation>
								<xs:documentation>out</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="3">
							<xs:annotation>
								<xs:documentation>in+out</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="restart_apache_interval" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Restart apache interval (secs), not for Win</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="int"/>
				</xs:simpleType>
			</xs:element>
		</xs:all>
	</xs:complexType>
	<xs:complexType name="serverSessionSetup">
		<xs:annotation>
			<xs:documentation>Server Session Setup</xs:documentation>
		</xs:annotation>
		<xs:all>
			<xs:element name="login_timeout" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Login Timout/Session iddle Period ( minutes )</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="int">
						<xs:minInclusive value="1"/>
						<xs:maxInclusive value="99999"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:all>
	</xs:complexType>
	<xs:complexType name="statType">
		<xs:annotation>
			<xs:documentation>Server statistics info</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="objects" type="objectsStatType">
				<xs:annotation>
					<xs:documentation>Logical objects usage</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="version" type="versionStatType">
				<xs:annotation>
					<xs:documentation>Server version info</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="other" type="otherStatType">
				<xs:annotation>
					<xs:documentation>Misc server stats</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="load_avg" type="load_avgStatType">
				<xs:annotation>
					<xs:documentation>Server load</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="mem" type="memStatType">
				<xs:annotation>
					<xs:documentation>Memory usage</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="swap" type="swapStatType">
				<xs:annotation>
					<xs:documentation>Swap usage</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="diskspace" type="diskspaceStatType">
				<xs:annotation>
					<xs:documentation>Disk usage</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="objectsStatType">
		<xs:annotation>
			<xs:documentation>Objects statistics</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="clients" type="unsignedInt" default="0"/>
			<xs:element name="domains" type="unsignedInt" default="0"/>
			<xs:element name="active_domains" type="unsignedInt" default="0"/>
			<xs:element name="mail_boxes" type="unsignedInt" default="0"/>
			<xs:element name="mail_redirects" type="unsignedInt" default="0"/>
			<xs:element name="mail_groups" type="unsignedInt" default="0"/>
			<xs:element name="mail_responders" type="unsignedInt" default="0"/>
			<xs:element name="web_users" type="unsignedInt" default="0"/>
			<xs:element name="databases" type="unsignedInt" default="0"/>
			<xs:element name="database_users" type="unsignedInt" default="0"/>
			<xs:element name="problem_clients" type="unsignedInt" default="0"/>
			<xs:element name="problem_domains" type="unsignedInt" default="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="versionStatType">
		<xs:annotation>
			<xs:documentation>Server versions</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="plesk_name">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:whiteSpace value="collapse"/>
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="plesk_version">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:whiteSpace value="collapse"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="plesk_os">
				<xs:annotation>
					<xs:documentation>f.e. "RedHat","FedoraCore"</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:whiteSpace value="collapse"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="plesk_os_version">
				<xs:annotation>
					<xs:documentation>f.e. "9.0"</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:whiteSpace value="collapse"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="plesk_build">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:whiteSpace value="collapse"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="os_release">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:whiteSpace value="collapse"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="veid" type="xs:integer" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="otherStatType">
		<xs:annotation>
			<xs:documentation>Misc server stats</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="cpu" type="string"/>
			<xs:element name="uptime" type="unsignedInt"/>
			<xs:element name="inside_vz" type="boolean"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="load_avgStatType">
		<xs:annotation>
			<xs:documentation>Server loads</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="l1" type="double" default="0"/>
			<xs:element name="l5" type="double" default="0"/>
			<xs:element name="l15" type="double" default="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="memStatType">
		<xs:annotation>
			<xs:documentation>Memory usage</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="total" type="size"/>
			<xs:element name="used" type="size"/>
			<xs:element name="free" type="size"/>
			<xs:element name="shared" type="size"/>
			<xs:element name="buffer" type="size"/>
			<xs:element name="cached" type="size"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="swapStatType">
		<xs:annotation>
			<xs:documentation>Swap usage</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="total" type="size"/>
			<xs:element name="used" type="size"/>
			<xs:element name="free" type="size"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="diskspaceStatType">
		<xs:annotation>
			<xs:documentation>Disk usage</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="device" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Partotions or devices</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="name">
							<xs:annotation>
								<xs:documentation>Partition or device name</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:minLength value="1"/>
									<xs:whiteSpace value="collapse"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:element>
						<xs:element name="total" type="size"/>
						<xs:element name="used" type="size"/>
						<xs:element name="free" type="size"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="adminType">
		<xs:annotation>
			<xs:documentation>Admin info</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:sequence minOccurs="0">
				<xs:element name="admin_cname" type="string"/>
				<xs:element name="admin_pname" type="string"/>
				<xs:element name="admin_phone" type="string"/>
				<xs:element name="admin_fax" type="string"/>
				<xs:element name="admin_email" type="emailType"/>
				<xs:element name="admin_address" type="string"/>
				<xs:element name="admin_city" type="string"/>
				<xs:element name="admin_state" type="string"/>
				<xs:element name="admin_pcode" type="zipcodeType"/>
				<xs:element name="admin_country" type="string"/>
				<xs:element name="send_announce" type="boolean" default="false"/>
			</xs:sequence>
			<xs:sequence>
				<xs:element name="uid" type="string" minOccurs="0">
					<xs:annotation>
						<xs:documentation>SSO UID</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="global-login" type="string" minOccurs="0">
					<xs:annotation>
						<xs:documentation>SSO global login</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="interfacesType">
		<xs:annotation>
			<xs:documentation>Network interfaces</xs:documentation>
		</xs:annotation>
		<xs:sequence minOccurs="0" maxOccurs="unbounded">
			<xs:element name="interface" type="netInterface"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="shellType">
		<xs:annotation>
			<xs:documentation>Server shell</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="name" type="string"/>
			<xs:element name="path" type="string"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="srvOpType">
		<xs:annotation>
			<xs:documentation>Service operation</xs:documentation>
		</xs:annotation>
		<xs:restriction base="string">
			<xs:enumeration value="start"/>
			<xs:enumeration value="stop"/>
			<xs:enumeration value="restart"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="srvIdType">
		<xs:annotation>
			<xs:documentation>Service ID</xs:documentation>
		</xs:annotation>
		<xs:restriction base="string"/>
	</xs:simpleType>
	<xs:complexType name="initialSetupType">
		<xs:annotation>
			<xs:documentation>Data required for initial Plesk server setup</xs:documentation>
		</xs:annotation>
		<xs:all>
			<xs:element name="admin" type="adminType">
				<xs:annotation>
					<xs:documentation>Server administrator data</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="password" type="serverPassword">
				<xs:annotation>
					<xs:documentation>New Plesk server administrator password to be set on the server</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="server_name" type="string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Full hostname to be set on the server</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:all>
	</xs:complexType>
	<xs:simpleType name="miscPropertyNameType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="aeParamsType">
		<xs:sequence>
			<xs:element name="host" type="xs:string"/>
			<xs:element name="user" type="xs:string"/>
			<xs:element name="password" type="xs:string"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="KeyPropertyType">
		<xs:sequence>
			<xs:element name="name"/>
			<xs:element name="value" type="xs:anySimpleType"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
