GET
/
dns
/
v2
/
zones
curl --request GET \
  --url https://api.gcore.com/dns/v2/zones \
  --header 'Authorization: <api-key>'
{
  "total_amount": 123,
  "zones": [
    {
      "client_id": 123,
      "contact": "<string>",
      "dnssec_enabled": true,
      "expiry": 123,
      "id": 123,
      "meta": {},
      "name": "<string>",
      "nx_ttl": 123,
      "primary_server": "<string>",
      "records": [
        {
          "name": "<string>",
          "short_answers": [
            "<string>"
          ],
          "ttl": 123,
          "type": "<string>"
        }
      ],
      "refresh": 123,
      "retry": 123,
      "rrsets_amount": {
        "dynamic": {
          "healthcheck": 123,
          "total": 123
        },
        "static": 123,
        "total": 123
      },
      "serial": 123,
      "status": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

offset
integer

Amount of records to skip before beginning to write in response.

limit
integer

Max number of records in response

order_by
string

Field name to sort by

order_direction
enum<string>

Ascending or descending order

Available options:
asc,
desc
id
integer[]

to pass several ids id=1&id=3&id=5...

client_id
integer[]

to pass several client_ids client_id=1&client_id=3&client_id=5...

reseller_id
integer[]
iam_reseller_id
integer[]
name
string[]

to pass several names name=first&name=second...

case_sensitive
boolean
exact_match
boolean
enabled
boolean
status
string
dynamic
boolean

Zones with dynamic RRsets

healthcheck
boolean

Zones with RRsets that have healthchecks

updated_at_from
string
updated_at_to
string

Response

200
application/json

ListZoneResponse

The response is of type object.