Request
Example
GET /api/1.1/zone_templates.xml
GET /api/1.1/zone_templates.xml?per_page=100&page=1
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
<zone-templates type="array">
<zone-template>
<created-at type="datetime">2010-01-26T07:43:14Z</created-at>
<custom-nameservers></custom-nameservers>
<custom-ns type="boolean">false</custom-ns>
<default-ttl type="integer">900</default-ttl>
<hostmaster nil="true"></hostmaster>
<id type="integer">12345678</id>
<name>Some Template</name>
<notes>notes about the template</notes>
<ns-type>pri_sec</ns-type>
<nx-ttl nil="true"/>
<ns1 nil="true"/>
<slave-nameservers/>
<updated-at type="datetime">2010-01-26T07:51:26Z</updated-at>
</zone-template>
</zone-templates>
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 is 10, only 10 entries will be returned but X-Query-Count will show 12 so that you know there are more results remaining.
