Skip to main content
GET
/
dnszone
/
{zoneId}
/
records
/
scan
Get the latest DNS record scan result for a DNS Zone
curl --request GET \
  --url https://api.bunny.net/dnszone/{zoneId}/records/scan \
  --header 'AccessKey: <api-key>'
{
  "JobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "ZoneId": 123,
  "Domain": "<string>",
  "AccountId": "<string>",
  "Status": "Pending",
  "CreatedAt": "2023-11-07T05:31:56Z",
  "CompletedAt": "2023-11-07T05:31:56Z",
  "Records": [
    {
      "IsProxied": true,
      "Name": "<string>",
      "Type": "A",
      "Ttl": 123,
      "Value": "<string>",
      "Priority": 123,
      "Weight": 123,
      "Port": 123
    }
  ],
  "Error": "<string>"
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

zoneId
integer<int64>
required

The DNS Zone ID

Response

Latest DNS record scan job details

JobId
string<uuid>
required
ZoneId
integer<int64> | null
Domain
string | null
AccountId
string | null
Status
enum<string>

0 = Pending
1 = InProgress
2 = Completed
3 = Failed

Available options:
Pending,
InProgress,
Completed,
Failed
Example:

"Pending"

CreatedAt
string<date-time>
CompletedAt
string<date-time> | null
Records
object[] | null
Error
string | null