zones
Download a zone file
Changed onDownload the zonefile for an existing zone.
get/{account}/zones/{zone}/file
Request
- Base URLhttps://api.dnsimple.com/v2
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
accountinteger required
The account id
zonestring required
The zone name
Response
Successfully retrieved zone file.
Example response
{
"data": {
"zone": "$ORIGIN example.com.\n$TTL 1h\nexample.com. 3600 IN SOA ns1.dnsimple-edge.com. admin.dnsimple.com. 1453132552 86400 7200 604800 300\nexample.com. 3600 IN NS ns1.dnsimple-edge.com.\nexample.com. 3600 IN NS ns2.dnsimple-edge.net.\nexample.com. 3600 IN NS ns3.dnsimple-edge.io.\nexample.com. 3600 IN NS ns4.dnsimple-edge.org.\n"
}
}Changes
- info
the response property
became required for the status - info
the response property
/became required for the status - info
the response property
became required for the status
- info
- breaking
the response property
became optional for the status - breaking
the response property
/became optional for the status - breaking
the response property
became optional for the status
- breaking