Cilium Prefilter API

XDP prefilter CIDR management

Operations 3

GET /prefilter Cilium Get prefilter configuration #
PATCH /prefilter Cilium Update prefilter configuration #
DELETE /prefilter Cilium Delete prefilter entries #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cilium-prefilter-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cilium-prefilter-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cilium BGP Prefilter API
  description: The Cilium REST API provides access to the Cilium daemon and agent endpoints for managing Kubernetes network policy, security, and connectivity. The API is served by the cilium-agent process over a local Unix domain socket and HTTP interface. It covers endpoint management, identity management, policy configuration, IP address management, service configuration, BGP operations, and daemon health status.
  version: v1beta1
  contact:
    name: Cilium Community
    url: https://cilium.io/get-help/
  termsOfService: https://cilium.io/privacy/
servers:
- url: http://localhost/v1
  description: Local Cilium Agent (Unix socket or HTTP)
tags:
- name: Prefilter
  description: XDP prefilter CIDR management
paths:
  /prefilter:
    get:
      operationId: getPrefilterConfig
      summary: Cilium Get prefilter configuration
      description: Returns the current XDP prefilter configuration, including CIDR ranges that are configured for early packet dropping at the network driver level before reaching the Cilium BPF programs.
      tags:
      - Prefilter
      responses:
        '200':
          description: Prefilter configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Prefilter'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    patch:
      operationId: patchPrefilterConfig
      summary: Cilium Update prefilter configuration
      description: Updates the XDP prefilter CIDR list, adding or removing network ranges from the prefilter set for early traffic dropping.
      tags:
      - Prefilter
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrefilterSpec'
      responses:
        '200':
          description: Prefilter configuration updated
        '400':
          description: Invalid CIDR specification
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: deletePrefilterConfig
      summary: Cilium Delete prefilter entries
      description: Removes specific CIDR entries from the XDP prefilter configuration.
      tags:
      - Prefilter
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrefilterSpec'
      responses:
        '200':
          description: Prefilter entries deleted
        '400':
          description: Invalid CIDR specification
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Prefilter:
      type: object
      description: XDP prefilter configuration and statistics.
      properties:
        spec:
          $ref: '#/components/schemas/PrefilterSpec'
        status:
          $ref: '#/components/schemas/PrefilterStatus'
    PrefilterStatus:
      type: object
      description: Current state of the XDP prefilter.
      properties:
        count:
          type: integer
          format: int64
          description: Total number of CIDR entries in the prefilter.
        realized:
          $ref: '#/components/schemas/PrefilterSpec'
    PrefilterSpec:
      type: object
      description: Prefilter CIDR list specification.
      properties:
        deny:
          type: array
          items:
            type: string
          description: CIDR ranges to deny at the XDP layer.
        allow:
          type: array
          items:
            type: string
          description: CIDR ranges explicitly allowed (overrides deny).
    Error:
      type: string
      description: Human-readable error message.
externalDocs:
  description: Cilium API Documentation
  url: https://docs.cilium.io/en/stable/api/