Node gen_setup
This node is used in the add request packets to set general properties for the newly created domain account. This node does not have its own type, it is defined within the parent node and has the following structure:

- The name node is required. It specifies the domain name. Data type: string.
- The client_id node is optional. It specifies the owner of the new domain account (Plesk client) when the domain is created by Plesk Administrator. If the domain account is created by Plesk client, the node should not be specified. Data type: integer. Is not supported since protocol version 1.6.0.0. Use owner-id, owner-login, or owner-admin node instead.
- The owner-id node is optional. It specifies ID of the domain owner when the domain is created by Plesk Administrator or Plesk reseller. Data type: integer. Supported since protocol version 1.6.0.0.
- The owner-login node is optional. It specifies the login name of the domain owner when the domain is created by Plesk Administrator or Plesk reseller. Data type: string. Supported since protocol version 1.6.0.0.
Note: If the information about owner is omitted, the domain account belongs to the user who issued the request.
- The htype node is optional. It specifies one of the following hosting types: virtual hosting, standard forwarding, frame forwarding, none. Data type: string. Allowed values: vrt_hst | std_fwd | frm_fwd | none.
Note: If you specify this node, you should also include the hosting node into the request packet.
- The ip_address node is required. It specifies the IP address associated with the domain. Data type: ip_address (
common.xsd). - The status node is optional. It specifies the status of the created domain. Data type: string. Allowed values: 0 | 16 | 64. Meanings: 0 - active, 16 - disabled by Plesk Administrator, 32 - disabled by Plesk reseller, 64 - disabled by a client.
The following packet creates a domain and sets all necessary general information for it:
<packet version="1.4.2.0">
<domain>
<add>
<gen_setup>
<name>example.com</name>
<htype>vrt_hst</htype>
<ip_address>192.0.2.11</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<ftp_login>c4u7dwbc2y8</ftp_login>
<ftp_password>qweqwe</ftp_password>
<ip_address>192.0.2.54</ip_address>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>