DomainZoneCreate
From NETIM
(Difference between revisions)
Line 79: | Line 79: | ||
try | try | ||
{ | { | ||
− | $idSession = $clientSOAP-> | + | $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); |
$trackingID = $clientSOAP->domainZoneCreate($idSession, "netim.com", "www", "A", "192.168.0.1", $structOptionsZone); | $trackingID = $clientSOAP->domainZoneCreate($idSession, "netim.com", "www", "A", "192.168.0.1", $structOptionsZone); | ||
Line 91: | Line 91: | ||
if (isset($idSession)) | if (isset($idSession)) | ||
{ | { | ||
− | $clientSOAP-> | + | $clientSOAP->sessionClose($idSession); |
} | } | ||
?> | ?> | ||
Line 107: | Line 107: | ||
{ | { | ||
DRSPortType port = service.getDRSPort(); | DRSPortType port = service.getDRSPort(); | ||
− | idSession = port. | + | idSession = port.sessionOpen("XXXX", "XXXX", "EN"); |
trackingID = port.domainZoneCreate(idSession, "netim.com", "www", "A", "192.168.0.1", structOptionsZone); | trackingID = port.domainZoneCreate(idSession, "netim.com", "www", "A", "192.168.0.1", structOptionsZone); | ||
System.out.println(trackingID); | System.out.println(trackingID); | ||
− | port. | + | port.sessionClose(idSession); |
} | } | ||
catch (RemoteException re) | catch (RemoteException re) |
Revision as of 15:37, 27 February 2017
Release | Runtime |
---|---|
API >= 2.0 | Synchronous |
Description
Creates a DNS record into the domain zonefile
int domainZoneCreate(string idSession, string domain, string subdomain, string type, string value, StructOptionsZone options)
Parameters
Format | Variable | Description | Notes |
---|---|---|---|
string (32) | idSession | Session ID | |
string (255) | domain | Domain name | |
string (255) | subdomain | Sub domain | |
string | type | Type of DNS record | A / AAAA / MX / CNAME / TXT / NS / SRV |
string (150) | value | Value of the new DNS record | |
StructOptionsZone | options | Settings of the new DNS record |
List of DNS record types and acceptable values
Type | Value |
---|---|
A | IPv4 Address |
AAAA | IPv6 Address |
MX | fully qualified domain name of the mailserver |
CNAME | fully qualified domain name |
NS | fully qualified domain name of the DNS server |
Return
A tracking number
Notes
none
Examples
PHP
<?php $clientSOAP = new SoapClient("http://URL.wsdl"); $structOptionsZone = array(); try { $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); $trackingID = $clientSOAP->domainZoneCreate($idSession, "netim.com", "www", "A", "192.168.0.1", $structOptionsZone); echo($trackingID); } catch(SoapFault $fault) { echo "Exception : " .$fault->getMessage(). "\n"; } if (isset($idSession)) { $clientSOAP->sessionClose($idSession); } ?>
JAVA
DRSServiceLocator service = new DRSServiceLocator(); String idSession; int trackingID; StructOptionsZone structOptionsZone = new StructOptionsZone(); try { DRSPortType port = service.getDRSPort(); idSession = port.sessionOpen("XXXX", "XXXX", "EN"); trackingID = port.domainZoneCreate(idSession, "netim.com", "www", "A", "192.168.0.1", structOptionsZone); System.out.println(trackingID); port.sessionClose(idSession); } catch (RemoteException re) { System.out.println(re.getMessage()); } catch (ServiceException se) { se.printStackTrace(); }
Release | Runtime |
---|---|
API > 1.0 | Synchronous |
Description
Creates a DNS record into the domain zonefile
int domainZoneCreate(string idSession, string domain, string subdomain, string type, string value, StructOptionsZone options)
Parameters
Format | Variable | Description | Notes |
---|---|---|---|
string (32) | idSession | Session ID | |
string (255) | domain | Domain name | |
string (255) | subdomain | Sub domain | |
string | type | Type of DNS record | A / AAAA / MX / CNAME / TXT / NS / SRV |
string (150) | value | Value of the new DNS record | |
StructOptionsZone | options | Settings of the new DNS record |
List of DNS record types and acceptable values
Type | Value |
---|---|
A | IPv4 Address |
AAAA | IPv6 Address |
MX | fully qualified domain name of the mailserver |
CNAME | fully qualified domain name |
NS | fully qualified domain name of the DNS server |
Return
A tracking number
Notes
none
Examples
PHP
<?php $clientSOAP = new SoapClient("http://URL.wsdl"); $structOptionsZone = array(); try { $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); $trackingID = $clientSOAP->domainZoneCreate($idSession, "netim.com", "www", "A", "192.168.0.1", $structOptionsZone); 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; StructOptionsZone structOptionsZone = new StructOptionsZone(); try { DRSPortType port = service.getDRSPort(); idSession = port.login("XXXX", "XXXX", "EN"); trackingID = port.domainZoneCreate(idSession, "netim.com", "www", "A", "192.168.0.1", structOptionsZone); System.out.println(trackingID); port.logout(idSession); } catch (RemoteException re) { System.out.println(re.getMessage()); } catch (ServiceException se) { se.printStackTrace(); }