From Openprovider API documentation
Module DNS template > Retrieve
Module
| DNS template
|
Command name
| retrieveTemplateDnsRequest
|
Use
| Retrieves information about an existing DNS zone template
|
Input
|
|
Output
|
|
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('retrieveTemplateDnsRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
'id' => 5562,
));
Raw XML
Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<credentials>
<username>username</username>
<password>password</password>
</credentials>
<retrieveTemplateDnsRequest>
<id>5562</id>
</retrieveTemplateDnsRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<reply>
<code>0</code>
<desc></desc>
<data>
<id>5562</id>
<name>Default</name>
<records>
<array>
<item>
<id>63581</id>
<name></name>
<type>A</type>
<value>213.193.110.246</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63583</id>
<name>intranet</name>
<type>A</type>
<value>1.0.0.0</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63582</id>
<name>mail</name>
<type>A</type>
<value>213.193.110.246</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63584</id>
<name>www</name>
<type>CNAME</type>
<value>%domain%</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63585</id>
<name></name>
<type>MX</type>
<value>mail.%domain%</value>
<ttl>86400</ttl>
<priority>123</priority>
</item>
<item>
<id>63586</id>
<name></name>
<type>SPF</type>
<value>"v=spf1 a mx ip4:77.74.50.63 ~all"</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
</array>
</records>
</data>
</reply>
</openXML>