Get a master zone file
GET https://{{host}}/config-dns/v2/zones/:zone/zone-file
Download this zone's record set data in master zone file format. Use the recipe below to get the master zone file. This operation applies to primary zones and secondary zones. See RFC 1035 section 5 and RFC 1034 section 3.6.1 for more information. AKAMAICDN
and AKAMAITLC
records can't be represented in this format, so they're displayed as comment lines.
Body
PARAM
Key | Datatype | Required | Description |
accountSwitchKey
|
string | (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys). |
HEADERS
Key | Datatype | Required | Description |
Accept
|
string |
RESPONSES
status OK
example.com. 10000 IN SOA ns1.akamaidns.com. webmaster.example.com. 1 28800 14400 2419200 86400 example.com. 10000 IN NS ns1.akamaidns.com. example.com. 10000 IN NS ns2.akamaidns.com. example.com. 300 IN A 10.0.0.1 example.com. 300 IN A 10.0.0.2 www.example.com. 300 IN A 10.0.0.1 www.example.com. 300 IN A 10.0.0.2 |
ENDPOINTS