API Module Nameserver searchTemplateDnsRequest
From Openprovider API documentation
(Difference between revisions)
(Created page with '==Module DNS template > Search== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |DNS template |- style="background-color:#EEEEEE;" |'''Command nā¦') |
|||
| Line 13: | Line 13: | ||
|'''Input''' | |'''Input''' | ||
| | | | ||
| - | *limit | + | *limit ''default value: 100'' |
| - | *offset | + | *offset ''default value: 0'' |
| - | *withRecords | + | *withRecords ''default value: 1'' |
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
|'''Output''' | |'''Output''' | ||
Revision as of 08:44, 9 November 2010
Contents |
Module DNS template > Search
| Module | DNS template |
| Command name | searchTemplateDnsRequest |
| Use | Returns a list of DNS template objects matching search criteria |
| Input |
|
| Output | Result set of DNS template details:
|
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('searchTemplateDnsRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
));
Raw XML
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<credentials>
<username>username</username>
<password>password</password>
</credentials>
<searchTemplateDnsRequest />
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<reply>
< code>0</code>
<desc></desc>
<data>
<results>
<array>
<item>
<id>5120</id>
<name>Corporate Redirect</name>
<records>
<array>
<item>
<id>63573</id>
<name></name>
<type>A</type>
<value>213.193.220.146</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63574</id>
<name>www</name>
<type>CNAME</type>
<value>%domain%</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
</array>
</records>
</item>
<item>
<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>
</item>
<item>
<id>5936</id>
<name>Demo</name>
<records>
<array>
<item>
<id>63602</id>
<name></name>
<type>A</type>
<value>89.255.0.43</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63603</id>
<name>*</name>
<type>A</type>
<value>89.255.0.43</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63604</id>
<name></name>
<type>MX</type>
<value>mail.%domain%</value>
<ttl>86400</ttl>
<priority>10</priority>
</item>
</array>
</records>
</item>
<item>
<id>5638</id>
<name>Shared Hosting</name>
<records>
<array>
<item>
<id>63587</id>
<name></name>
<type>A</type>
<value>89.255.0.46</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63589</id>
<name>mail</name>
<type>A</type>
<value>89.255.0.53</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63588</id>
<name>www</name>
<type>A</type>
<value>89.255.0.46</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63591</id>
<name>ftp</name>
<type>CNAME</type>
<value>%domain%</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63592</id>
<name>webmail</name>
<type>CNAME</type>
<value>%domain%</value>
<ttl>86400</ttl>
<priority>0</priority>
</item>
<item>
<id>63590</id>
<name></name>
<type>MX</type>
<value>mail.%domain%</value>
<ttl>86400</ttl>
<priority>10</priority>
</item>
</array>
</records>
</item>
</array>
</results>
<total>4</total>
</data>
</reply>
</openXML>