REST API v1.1 - Managed DNS

Host templates - Overview and Fields

Host Templates are the host records that are attached to a zone template. Accordingly, they’re very similar to Hosts:

Host : Zone :: Host Template : Zone Template

Fields

created-at
Initial creation time of this resource. (readonly)
data
See Hosts Overview. In addition, for all host-types except SPF, TXT, and URL, an @ will be replaced by the domain name when the template is inherited by a domain (for example, “mail.@” becomes “mail.domain.com”). (required; read/write)
host-type
DNS host record type; see Hosts Overview. (required; read/write)
hostname
Any part of a domain in front of the domain itself (aka a subdomain). For example, for a fully qualified domain name of ‘www.example.com’, where the zone domain is ‘example.com’, the hostname would be ‘www’. If there isn’t any hostname in front of the domain name, this should be set as nil or left out. Wildcard hostnames are supported (eg: ‘*’ or ‘*.subdomain’). (optional; read/write)
id
Unique ID for this host template. (readonly)
notes
Notes about the host template. (optional; read/write)
priority
Indicates the relative priority of two or more of certain host-types, such as MX or SRV. For example, this may be set to 10 for a primary mail server and 20 for a backup server.
ttl
TTL (time-to-live), in seconds. If nil, the record uses the default-ttl value from the zone. (optional; read/write)
updated-at
Last update time of this resource. (readonly)
zone-template-id
ID of the template to which this record is attached. (readonly)