Link ssl certificate

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

Link a SSL certificate to a vhost.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “LinkSSLCert”.
  • params array
    {“fqdn”: fqdn of the vhost, “sslName”: ssl certificate’s name}.

An Object of type StructOperationResponse

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