import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)response = client.dns.zones.export( "zoneName",)print(response.raw_zone)
Copy
Ask AI
{ "raw_zone": "<string>"}
Zones
Export Zone (Alpha)
Export zone to bind9 format.
GET
/
dns
/
v2
/
zones
/
{zoneName}
/
export
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)response = client.dns.zones.export( "zoneName",)print(response.raw_zone)