HostDelete

From NETIM
(Difference between revisions)
Jump to: navigation, search
(Pushed from Centre de support - FranceDNS.)
 
Line 1: Line 1:
[[Category:Fonctions]]
+
[[Category:Functions]]
 
{| class="wikitable" style="width: 200px;"
 
{| class="wikitable" style="width: 200px;"
! Version
+
! Release
! Exécution
+
! Runtime
 
|-
 
|-
|API > 1.33|| Asynchrone
+
|API > 1.33|| Asynchronous
 
|}
 
|}
  
Line 10: Line 10:
 
'''Description'''
 
'''Description'''
  
Supprime un host auprès du registre
+
Delete an Host at the registry
  
 
  int hostDelete(string idSession, string host)
 
  int hostDelete(string idSession, string host)
  
  
'''Liste des paramètres'''
+
'''Parameters'''
 
{| class="wikitable" style="width: 800px;"
 
{| class="wikitable" style="width: 800px;"
 
! Format
 
! Format
Line 22: Line 22:
 
! Notes
 
! Notes
 
|-
 
|-
|style="width: 100;" | string (32)|| style="width: 100;" | idSession || style="width: 200;" | Identifiant de la session || style="width: 400;" |
+
|style="width: 100;" | string (32)|| style="width: 100;" | idSession || style="width: 200;" | Session ID || style="width: 400;" |
 
|-
 
|-
|string (255)|| host || Nom du host à supprimer||
+
|string (255)|| host || hostname to be deleted||
 
|}
 
|}
  
  
'''Valeurs de retour'''
+
'''Return'''
  
  Un numéro d'opération
+
  A tracking ID
  
  
 
'''Notes'''
 
'''Notes'''
  
  Un host ne peut être supprimé que si plus aucun nom de domaine n'utilise ce dernier.
+
  A host can only be deleted if no domain names use it.
  
  
== Exemples ==
+
== Examples ==
  
''' Langage PHP '''
+
''' PHP '''
 
<source lang="php">
 
<source lang="php">
 
<?php  
 
<?php  
Line 65: Line 65:
  
  
''' Langage JAVA'''
+
''' JAVA'''
 
<source lang="java">
 
<source lang="java">
 
DRSServiceLocator service = new DRSServiceLocator();  
 
DRSServiceLocator service = new DRSServiceLocator();  

Revision as of 17:31, 17 July 2013

Release Runtime
API > 1.33 Asynchronous


Description

Delete an Host at the registry

int hostDelete(string idSession, string host)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) host hostname to be deleted


Return

A tracking ID


Notes

A host can only be deleted if no domain names use it.


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://drs.netim.com/1.4/DRS.wsdl"); 
$host = "xxx.example.com"; 
 
try 
{ 
      $idSession = $clientSOAP>login("XXXX", "XXXX", "EN"); 
      $trackingID = $clientSOAP>hostDelete($idSession, $host); 
 
      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 host = "xxx.example.com" 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      trackingID = port.hostDelete(idSession, host); 
      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