Logo
Akamai APIs API Documentation

Get a version's master zone file

GET https://{{host}}/config-dns/v2/zones/:zone/versions/:uuid/zone-file

Downloads the record sets from a prior zone version in master zone file format. This applies to primary and secondary zones.

 

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



Curl
curl -X GET 'https://undefined/config-dns/v2/zones/:zone/versions/:uuid/zone-file?accountSwitchKey=' -H 'Accept: text/dns'

ENDPOINTS