curl --request POST \
--url https://api.bunny.net/dnszone \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"Domain": "<string>",
"Records": [
{
"Type": "A",
"Ttl": 123,
"Value": "<string>",
"Name": "<string>",
"Weight": 123,
"Priority": 123,
"Flags": 127,
"Tag": "<string>",
"Port": 123,
"PullZoneId": 123,
"ScriptId": 123,
"Accelerated": true,
"MonitorType": "None",
"GeolocationLatitude": 123,
"GeolocationLongitude": 123,
"LatencyZone": "<string>",
"SmartRoutingType": "None",
"Disabled": true,
"EnviromentalVariables": [
{
"Name": "<string>",
"Value": "<string>"
}
],
"Comment": "<string>",
"AutoSslIssuance": true
}
]
}
'curl --request POST \
--url https://api.bunny.net/dnszone \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"Domain": "<string>",
"Records": [
{
"Type": "A",
"Ttl": 123,
"Value": "<string>",
"Name": "<string>",
"Weight": 123,
"Priority": 123,
"Flags": 127,
"Tag": "<string>",
"Port": 123,
"PullZoneId": 123,
"ScriptId": 123,
"Accelerated": true,
"MonitorType": "None",
"GeolocationLatitude": 123,
"GeolocationLongitude": 123,
"LatencyZone": "<string>",
"SmartRoutingType": "None",
"Disabled": true,
"EnviromentalVariables": [
{
"Name": "<string>",
"Value": "<string>"
}
],
"Comment": "<string>",
"AutoSslIssuance": true
}
]
}
'API Access Key authorization header
The DNS Zone was successfuly added
Was this page helpful?