WAPI – příkaz dns-domains-list

  WAPI (API interface), WDNS

Parameters

Command does not accept any parameters.

Return Values

  • 1000 = OK

Return Data

This command returns a list of domains in the following form:

  • domain
    • name – domain name
    • status – domain status
    • type – domainy type is DNS(primary/secondary)

Example of use

XML query:

<request>
 <user>tester</user>
 <auth>d48a7fbc4fa5a99ffd45b490105ca38ecf35b319</auth>
 <command>dns-domains-list</command>
</request>

XML response:

<response>
 <code>1000</code>
 <result>OK</result>
 <timestamp>1291039686</timestamp>
 <svTRID>1291039686.4940.27902.1</svTRID>
 <command>dns-domains-list</command>
 <data>
  <domain>
   <name>example.cz</name>
   <type>primary</type>
   <status>active</status>
  </domain>
  <domain>
   <name>example.com</name>
   <type>primary</type>
   <status>active</status>
  </domain>
 </data>
</response>