GET
/
dns
/
v2
/
zones
/
{zoneName}
/
rrsets
curl --request GET \
  --url https://api.gcore.com/dns/v2/zones/{zoneName}/rrsets \
  --header 'Authorization: <api-key>'
{
  "rrsets": [
    {
      "filter_set_id": 123,
      "meta": {},
      "name": "sub.example.com",
      "pickers": [
        {
          "limit": 123,
          "strict": true,
          "type": "geodns"
        }
      ],
      "resource_records": [
        {
          "content": [
            "1.1.1.1"
          ],
          "enabled": true,
          "id": 42,
          "meta": {
            "continents": [
              "europe",
              "asia"
            ],
            "countries": [
              "us",
              "gb",
              "lu"
            ],
            "ip": [
              "192.168.15.150/25",
              "2003:de:2016::/48"
            ]
          }
        }
      ],
      "ttl": 123,
      "type": "A",
      "updated_at": "2023-11-07T05:31:56Z",
      "warning": "<string>",
      "warnings": [
        {
          "key": "<string>",
          "message": "<string>"
        }
      ]
    }
  ],
  "total_amount": 123
}

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

Path Parameters

zoneName
string
required

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

Response

200
application/json

ListRRSetResponse

The response is of type object.

GET
/
dns
/
v2
/
zones
/
{zoneName}
/
rrsets
curl --request GET \
  --url https://api.gcore.com/dns/v2/zones/{zoneName}/rrsets \
  --header 'Authorization: <api-key>'
{
  "rrsets": [
    {
      "filter_set_id": 123,
      "meta": {},
      "name": "sub.example.com",
      "pickers": [
        {
          "limit": 123,
          "strict": true,
          "type": "geodns"
        }
      ],
      "resource_records": [
        {
          "content": [
            "1.1.1.1"
          ],
          "enabled": true,
          "id": 42,
          "meta": {
            "continents": [
              "europe",
              "asia"
            ],
            "countries": [
              "us",
              "gb",
              "lu"
            ],
            "ip": [
              "192.168.15.150/25",
              "2003:de:2016::/48"
            ]
          }
        }
      ],
      "ttl": 123,
      "type": "A",
      "updated_at": "2023-11-07T05:31:56Z",
      "warning": "<string>",
      "warnings": [
        {
          "key": "<string>",
          "message": "<string>"
        }
      ]
    }
  ],
  "total_amount": 123
}

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

Path Parameters

zoneName
string
required

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

Response

200
application/json

ListRRSetResponse

The response is of type object.