REST API v1.1 - Managed DNS

Zones - List all zones

Request

Example
GET /api/1.1/zones.xml

GET /api/1.1/zones.xml?per_page=25&page=2
Notes

There are two optional parameters: page=# and per_page=#. page defaults to 1 (and starts at 1, not 0). per_page defaults to 100 but should be specified exactly if a change of the default value will cause your application to fail. The maximum value for per_page is 1000.

Response

Example header
X-Query-Count: 12
Example body
<zones type="array">
  <zone>
    <created-at type="datetime">2008-12-07T02:40:02Z</created-at>
    <custom-nameservers nil="true"/>
    <custom-ns type="boolean">false</custom-ns> 
    <default-ttl type="integer">600</default-ttl>
    <domain>example.com</domain>
    <hostmaster nil="true"/> 
    <id type="integer">12345678</id>
    <notes nil="true"/>
    <ns1 nil="true"/>
    <ns-type>pri_sec</ns-type>
    <nx-ttl nil="true"/> 
    <slave-nameservers nil="true"/>
    <updated-at type="datetime">2008-12-07T02:40:02Z</updated-at>
  </zone>
</zones>
Notes

X-Query-Count will contain the total number of results, including those that didn’t fit inside this response. For example, if there are 12 results and per_page (above) is 10, only 10 entries will be returned but X-Query-Count will show 12 so that you know there are more results remaining.