REST API v1.1 - Managed DNS

Zone templates - Get a template

This response is similar to List all templates with the addition of host-templates-count and possibly host-templates. As long as there are no more than 300 host templates, they will be returned. If there are more, the host-templates array will be left out. host-templates-count will always be returned.

Request

Example
GET /api/1.1/zone_templates/12345678.xml

Response

Example body
<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>
  <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-templates>
  <host-templates-count type="integer">1</host-templates-count>
  <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>
  <ns1 nil="true"></ns1>
  <nx-ttl nil="true"></nx-ttl>
  <slave-nameservers></slave-nameservers>
  <updated-at type="datetime">2010-01-26T07:51:26Z</updated-at>
</zone-template>