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

# List whitelisted IP/CIDR entries



## OpenAPI

````yaml openapi/arc-gateway-control-plane.openapi.yaml get /v1/xdp/whitelist
openapi: 3.1.0
info:
  title: Arc Gateway Control Plane API
  version: 1.0.0
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  description: >
    OpenAPI for Arc Gateway control-plane HTTP endpoints implemented in
    `crates/arc-gateway/src/control.rs`.


    Authentication behavior:

    - If `control_plane.auth_token` is set, send `Authorization: Bearer
    <token>`.

    - If `control_plane.auth_token` is not set, only loopback clients are
    accepted.
servers:
  - url: http://127.0.0.1:22100
security:
  - bearerAuth: []
  - {}
tags:
  - name: status
    description: Node status and generation endpoints.
  - name: config
    description: Config fetch, long-poll, validation, and local apply endpoints.
  - name: cluster
    description: Cluster-level config push and circuit snapshot endpoints.
  - name: gossip
    description: Gossip membership, stats, and lifecycle endpoints.
  - name: xdp
    description: XDP status and map management endpoints.
paths:
  /v1/xdp/whitelist:
    get:
      tags:
        - xdp
      summary: List whitelisted IP/CIDR entries
      operationId: listXdpWhitelist
      parameters:
        - name: max
          in: query
          required: false
          schema:
            type: integer
            format: int32
            minimum: 1
            maximum: 65536
            default: 1024
      responses:
        '200':
          description: Whitelist entries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XdpWhitelistListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          description: XDP manager is not initialized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    XdpWhitelistListResponse:
      type: object
      required:
        - count
        - items
      properties:
        count:
          type: integer
          format: int32
        items:
          type: array
          items:
            $ref: '#/components/schemas/XdpWhitelistItem'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    XdpWhitelistItem:
      type: object
      required:
        - ip
        - prefix_len
      properties:
        ip:
          type: string
        prefix_len:
          type: integer
          format: int32
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: unauthorized
    InternalError:
      description: Internal error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque

````