REST API v1.1 - Managed DNS

Host templates - List host templates

Request

Example
GET /api/1.1/zone_templates/12345678/host_templates.xml?per_page=100&page=1

GET /api/1.1/host_templates.xml?zone_template_id=12345678
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
<host-templates type="array">
  <host-template>
    <created-at type="datetime">2010-01-27T07:37:05Z</created-at>
    <data>10.10.10.10</data>
    <host-type>A</host-type>
    <hostname>www</hostname>
    <id type="integer">23456789</id>
    <notes nil="true"/>
    <priority nil="true"></priority>
    <ttl nil="true"></ttl>
    <updated-at type="datetime">2010-01-27T07:37:05Z</updated-at>
    <zone-template-id type="integer">12345678</zone-template-id>
  </host-template>
<host-template>
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.