Enable Let’s Encrypt

				
					StructOperationResponse WebHostingVhostUpdate(string $IDsession, string $id, string $action, array $params)

Enables Let’s Encrypt on a vhost.

REQUIRED


  • idSession
    string
    (32)
    Session ID.
  • id
    string
    Hosting ID.
  • action
    string
    Set to “EnableLetsEncrypt”.
  • params
    array
    {“fqdn”: fqdn of the vhost}.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("fqdn" => "test.wordpress.netim.com");
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingVhostUpdate($idSession, "NW1024", "EnableLetsEncrypt", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}
 
 

Need an API Client ?
Speed up your integration by using our API client for SOAP