{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contabo/json-schema/contabo-list-dns-zone-records-response-schema.json",
  "title": "ListDnsZoneRecordsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contabo-dns-api-openapi.yml#/components/schemas/ListDnsZoneRecordsResponse",
  "type": "object",
  "properties": {
    "_pagination": {
      "description": "Data about pagination like how many results, pages, page size.",
      "allOf": [
        {
          "$ref": "#/$defs/PaginationMeta"
        }
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DnsZoneRecordResponse"
      }
    },
    "_links": {
      "allOf": [
        {
          "$ref": "#/$defs/Links"
        }
      ]
    }
  },
  "required": [
    "_pagination",
    "data",
    "_links"
  ],
  "$defs": {
    "DnsZoneRecordResponse": {
      "type": "object",
      "properties": {
        "tenantId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer tenant id"
        },
        "customerId": {
          "type": "string",
          "minLength": 1,
          "description": "Your customer number"
        },
        "recordId": {
          "type": "number",
          "description": "RecordId"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "description": "Name, if empty the zone name will be used"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "description": "Type"
        },
        "ttl": {
          "type": "number",
          "description": "TTL"
        },
        "prio": {
          "type": "number",
          "description": "Prio"
        },
        "data": {
          "type": "string",
          "minLength": 1,
          "description": "Data"
        },
        "port": {
          "type": "number",
          "description": "Port"
        },
        "weight": {
          "type": "number",
          "description": "Weight"
        },
        "flag": {
          "type": "number",
          "description": "Flag"
        },
        "tag": {
          "type": "string",
          "description": "Tag"
        }
      },
      "required": [
        "tenantId",
        "customerId",
        "recordId",
        "name",
        "type",
        "ttl",
        "prio",
        "data",
        "port",
        "weight",
        "flag",
        "tag"
      ]
    },
    "Links": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to current resource."
        },
        "first": {
          "type": "string",
          "description": "Link to first page, if applicable."
        },
        "previous": {
          "type": "string",
          "description": "Link to previous page, if applicable."
        },
        "next": {
          "type": "string",
          "description": "Link to next page, if applicable."
        },
        "last": {
          "type": "string",
          "description": "Link to last page, if applicable."
        }
      },
      "required": [
        "self",
        "first",
        "last"
      ]
    },
    "PaginationMeta": {
      "type": "object",
      "properties": {
        "size": {
          "type": "number",
          "description": "Number of elements per page."
        },
        "totalElements": {
          "type": "number",
          "description": "Number of overall matched elements."
        },
        "totalPages": {
          "type": "number",
          "description": "Overall number of pages."
        },
        "page": {
          "type": "number",
          "description": "Current number of page."
        }
      },
      "required": [
        "size",
        "totalElements",
        "totalPages",
        "page"
      ]
    }
  }
}