Creating Host

Host is a computer that is connected to a network and used for site publication. In Plesk Sitebuilder, each host is given a unique name that cannot be empty. This section describes how to add a host to Plesk Sitebuilder hosts pool using Integration API.

Before adding a host, make sure that the host meets all requirements specified in the Setting Up and Maintaining Sitebuilder>Specifying Host Used for Publishing Sites>Requirements to Host section of Sitebuilder 4.1 Administrator's Guide.

Hosts are managed by methods of web service HostWebService. The method that adds a host to the hosts pool is called CreateHost. This method can be invoked only by administrators or resellers. To add a host, you should specify name of the host, host IP address or DNS name and settings of the SMTP server from which notifications to the site users will be sent. For details on input and output parameters of the method, refer to the Web services>HostWebService>CreateHost section of Plesk Sitebuilder 4.1 Integration API Reference.

The section is illustrated with code samples written in PHP and ASP. To integrate Plesk Sitebuilder with your applications using PHP, refer to the PHP section. Otherwise, refer to the ASP section.

In this section:

PHP

ASP