HostingSetPreference

From NETIM
(Difference between revisions)
Jump to: navigation, search
 
Line 39: Line 39:
 
! Notes
 
! Notes
 
|-
 
|-
|style="width: 100px;" | Hold || style="width: 150px;" | Status|| style="width: 150px" | 0 ou 1  || style="width: 300px" | if status is 0 then the hosting is put offline
+
|style="width: 100px;" | Hold || style="width: 150px;" | Status|| style="width: 150px" | 0 or 1  || style="width: 300px" | if status is 0 then the hosting is put offline
 
|-
 
|-
 
|PanelPassword || Password of the webinterface || string (12) ||
 
|PanelPassword || Password of the webinterface || string (12) ||
Line 45: Line 45:
 
|Langue || Language of the webinterface|| string (2) ||
 
|Langue || Language of the webinterface|| string (2) ||
 
|-
 
|-
|auto_renew|| Autorenewal feature|| 0 ou 1 ||
+
|auto_renew|| Autorenewal feature|| 0 or 1 ||
 
|-
 
|-
|to_be_renewed|| Renewal feature|| 0 ou 1 ||
+
|to_be_renewed|| Renewal feature|| 0 or 1 ||
 
|}
 
|}
  

Latest revision as of 15:22, 25 January 2021

Release Runtime
API > 1.4 Asynchronous


Description

Sets new settings for the hosting

int hostingSetPreference(string idSession, string fqdn, string code, string value)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) fqdn hostname Fully qualified domain name
string (50) code Setting to be updated see list below
string value New value for the setting see list below

List of settings and acceptable values

Setting Description Value Notes
Hold Status 0 or 1 if status is 0 then the hosting is put offline
PanelPassword Password of the webinterface string (12)
Langue Language of the webinterface string (2)
auto_renew Autorenewal feature 0 or 1
to_be_renewed Renewal feature 0 or 1


Return

A tracking ID


Notes

None

[edit] Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
$hosting = "example.com"; 
$codePref = "auto_renew"; 
$value = "1"; 
$additional = ""; 
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); 
      $trackingID = $clientSOAP->hostingSetPreference($idSession, $hosting, $codePref, $value, $additional); 
 
      echo($trackingID); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->logout($idSession); 
} 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
int trackingID; 
String hosting = "example.com"; 
String codePref = "auto_renew"; 
String value = "1"; 
String additional = ""; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      trackingID = port.hostingSetPreference(idSession, hosting, hosting, codePref, value, additional); 
      System.out.println(trackingID); 
 
      port.logout(idSession); 
} 
catch (RemoteException re) 
{ 
      System.out.println(re.getMessage()); 
} 
catch (ServiceException se) 
{ 
      se.printStackTrace(); 
}
Personal tools
Namespaces

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