SslSetPreference

From NETIM
(Difference between revisions)
Jump to: navigation, search
 
Line 27: Line 27:
 
|string|| IDSSL|| SSL certificate ID|| ''SSL-XXXX-XX
 
|string|| IDSSL|| SSL certificate ID|| ''SSL-XXXX-XX
 
|-
 
|-
|string (50)|| codePref || Setting to be modified || ''auto_renew''
+
|string (50)|| codePref || Setting to be modified || ''auto_renew / to_be_renewed''
 
|-
 
|-
|string || value || New value of the Setting || ''string (1) for auto_renew''
+
|string || value || New value of the Setting || ''string (1) for auto_renew / to_be_renewed''
 
|}
 
|}
  
Line 55: Line 55:
 
       $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");  
 
       $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");  
 
       $clientSOAP->sslSetPreference($idSession, $IDSSL, "auto_renew", "1");  
 
       $clientSOAP->sslSetPreference($idSession, $IDSSL, "auto_renew", "1");  
 +
      $clientSOAP->sslSetPreference($idSession, $IDSSL, "to_be_renewed", "1");
 
}  
 
}  
 
catch(SoapFault $fault)  
 
catch(SoapFault $fault)  

Latest revision as of 15:21, 25 January 2021


Release Runtime
API >= 2.0 Synchronous

Description

Updates the settings of a SSL certificate. Currently, only the autorenew setting can be modified.

StructOperationResponse sslSetPreference(string idSession, string IDSSL, string codePref, string value)


Parameters

Format Variable Description Notes
string (32) IDSession Session ID
string IDSSL SSL certificate ID SSL-XXXX-XX
string (50) codePref Setting to be modified auto_renew / to_be_renewed
string value New value of the Setting string (1) for auto_renew / to_be_renewed


Return

A structure StructOperationResponse


Notes

None


[edit] Examples

Langage PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
$IDSSL = 'SSL-XXXX-XX';
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
      $clientSOAP->sslSetPreference($idSession, $IDSSL, "auto_renew", "1"); 
      $clientSOAP->sslSetPreference($idSession, $IDSSL, "to_be_renewed", "1"); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>
Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Shared Hosting
Old Hosting offers
SSL Certificates
Resellers
Affiliates
Contact Us
Miscellaneous