Add a new virtual host. Receives name, port and template and returns a single virtual hostelement with the same information.
Version: 1.6
Required Permissions: Read-only
HTTP method: POST
Supported by Editions: Zend Server
Request Parameters:
| 
                     Parameter  | 
                
                     Type  | 
                
                     Required  | 
                
                     Description  | 
            
| 
                     name  | 
                
                     String  | 
                
                     Yes  | 
                
                     Name of virtual host.  | 
            
| 
                     port  | 
                
                     Integer  | 
                
                     Yes  | 
                
                     Port of virtual host.  | 
            
| 
                     template  | 
                
                     String  | 
                
                     No  | 
                
                     Template of the virtual hostsettings according to the web server configuration options.  | 
            
| 
                     forceCreate  | 
                
                     Boolean  | 
                
                     No  | 
                
                     Force the creation of a virtual host, even if it fails syntax validation. Default: FALSE  | 
            
Expected Response Code: 200 OK - For more information see Response Format.
Response Type: vhost
Possible Action Specific Error Codes:
| 
                     HTTP Code  | 
                
                     Error Code  | 
                
                     Description  | 
            
| 
                     406  | 
                
                     serverConfigurationError  | 
                
                     The template provided as virtual hostconfiguration has failed syntax or staging checks. A detailed message will appear to explain the failure.  | 
            
| 
                     
                          | 
                
                    Request
 Response
  |