> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ankra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List the cluster's custom DNS zones

> The DNS zones this cluster serves with the organisation's own external-dns webhook credential, alongside the delegated zone Ankra serves itself. Ankra's own Avura token is pinned to Ankra's account, so ingress hosts on a zone the customer holds in their own provider account are dropped server-side and publish nothing. Declaring the zone here has Ankra render and own an external-dns deployment for it, pinned to that zone with its own txt owner id.



## OpenAPI

````yaml https://platform.ankra.app/openapi.json get /api/v1/clusters/{cluster_id}/custom-dns-zones
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/clusters/{cluster_id}/custom-dns-zones:
    get:
      tags:
        - Cluster
      summary: List the cluster's custom DNS zones
      description: >-
        The DNS zones this cluster serves with the organisation's own
        external-dns webhook credential, alongside the delegated zone Ankra
        serves itself. Ankra's own Avura token is pinned to Ankra's account, so
        ingress hosts on a zone the customer holds in their own provider account
        are dropped server-side and publish nothing. Declaring the zone here has
        Ankra render and own an external-dns deployment for it, pinned to that
        zone with its own txt owner id.
      operationId: list_cluster_custom_dns_zones_token
      parameters:
        - in: path
          name: cluster_id
          required: true
          schema:
            format: uuid4
            title: Cluster Id
            type: string
        - description: PAT organisation override.
          in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClusterCustomDNSZoneListResponse'
          description: The zones the cluster serves
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Invalid request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Unauthenticated
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Permission or CSRF check failed
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Resource not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Request validation failed
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Provider or internal failure
      security:
        - BearerAuth: []
components:
  schemas:
    ClusterCustomDNSZoneListResponse:
      properties:
        success:
          type: boolean
        zones:
          items:
            $ref: '#/components/schemas/ClusterCustomDNSZone'
          type: array
      required:
        - success
        - zones
      type: object
    ContractDetailError:
      example:
        detail: Cluster not found
      properties:
        detail:
          oneOf:
            - type: string
            - additionalProperties: true
              properties: {}
              type: object
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ClusterCustomDNSZone:
      properties:
        credential_name:
          description: The org-scoped dns_credential this zone is served with.
          type: string
        zone:
          description: The normalised zone name.
          type: string
      required:
        - zone
        - credential_name
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: PAT
      scheme: bearer
      type: http

````