This node is used in the add request packets to set general properties for the newly created site. This node has the following structure:

image 66549

  • name, required

    It specifies a site name. Data type: string.

  • htype, 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.

  • status, optional

    It specifies the status of the created site. Data type: string. Allowed values: 0 | 8 | 16 | 64. Meanings: 0 - site is active, 8 - web service for the site is suspended by Administrator, 16 - site is disabled by Administrator, 32 - site is disabled by Reseller, 64 - site is disabled by a customer.

  • webspace-name, optional

    It defines the name of a subscription to which Plesk will assign a new site. Data type: string.

  • webspace-id, optional

    It defines the ID of a subscription to which Plesk will assign a new site. Data type: string.

  • webspace-guid, optional

    It defines the GUID of a subscription to which Plesk will assign a new site. Data type: string.

  • parent-site-id, optional

    It defines the ID of a parent domain to which Plesk will assign a new site, which will be subdomain of the specified parent domain. If Data type: integer.

  • parent-site-name, optional

    It defines the name of a parent domain to which Plesk will assign a new site, which will be subdomain of the specified parent domain. Data type: string.

  • parent-site-guid, optional

    It defines the GUID of a parent domain to which Plesk will assign a new site, which will be subdomain of the specified parent domain. Data type: string.

This sample demonstrates how to set the general information for a site:

<gen_setup>
   <name>example.com</name>
   <webspace-id>12</webspace-id>
</gen_setup>