Incus network-load-balancers API

The network-load-balancers API from Incus — 4 operation(s) for network-load-balancers.

Operations 8

GET /1.0/networks/{networkName}/load-balancers Get the network address of load balancers #
POST /1.0/networks/{networkName}/load-balancers Add a network load balancer #
DELETE /1.0/networks/{networkName}/load-balancers/{listenAddress} Delete the network address load balancer #
GET /1.0/networks/{networkName}/load-balancers/{listenAddress} Get the network address load balancer #
PATCH /1.0/networks/{networkName}/load-balancers/{listenAddress} Partially update the network address load balancer #
PUT /1.0/networks/{networkName}/load-balancers/{listenAddress} Update the network address load balancer #
GET /1.0/networks/{networkName}/load-balancers/{listenAddress}/state Get the network address load balancer state #
GET /1.0/networks/{networkName}/load-balancers?recursion=1 Get the network address load balancers #

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/incus-network-load-balancers-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

incus-network-load-balancers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: lxc-devel@lists.linuxcontainers.org
    name: Incus upstream
    url: https://github.com/lxc/incus
  description: 'This is the REST API used by all Incus clients.

    Internal endpoints aren''t included in this documentation.


    The Incus API is available over both a local unix+http and remote https API.

    Authentication for local users relies on group membership and access to the unix socket.

    For remote users, the default authentication method is TLS client

    certificates.'
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  title: Incus external REST certificates Network Load Balancers API
  version: '1.0'
tags:
- name: network-load-balancers
paths:
  /1.0/networks/{networkName}/load-balancers:
    get:
      description: Returns a list of network address load balancers (URLs).
      operationId: network_load_balancers_get
      parameters:
      - description: Network name
        in: path
        name: networkName
        required: true
        schema:
          type: string
      - description: Project name
        example: default
        in: query
        name: project
        schema:
          type: string
      - description: Collection filter
        example: default
        in: query
        name: filter
        schema:
          type: string
      responses:
        '200':
          description: API endpoints
          content:
            application/json:
              schema:
                description: Sync response
                properties:
                  metadata:
                    description: List of endpoints
                    example: "[\n  \"/1.0/networks/mybr0/load-balancers/192.0.2.1\",\n  \"/1.0/networks/mybr0/load-balancers/192.0.2.2\"\n]"
                    items:
                      type: string
                    type: array
                  status:
                    description: Status description
                    example: Success
                    type: string
                  status_code:
                    description: Status code
                    example: 200
                    type: integer
                  type:
                    description: Response type
                    example: sync
                    type: string
                type: object
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      summary: Get the network address of load balancers
      tags:
      - network-load-balancers
    post:
      description: Creates a new network load balancer.
      operationId: network_load_balancers_post
      parameters:
      - description: Network name
        in: path
        name: networkName
        required: true
        schema:
          type: string
      - description: Project name
        example: default
        in: query
        name: project
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/EmptySyncResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      summary: Add a network load balancer
      tags:
      - network-load-balancers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkLoadBalancersPost'
        description: Load Balancer
        required: true
  /1.0/networks/{networkName}/load-balancers/{listenAddress}:
    delete:
      description: Removes the network address load balancer.
      operationId: network_load_balancer_delete
      parameters:
      - description: Network name
        in: path
        name: networkName
        required: true
        schema:
          type: string
      - description: Listen address
        in: path
        name: listenAddress
        required: true
        schema:
          type: string
      - description: Project name
        example: default
        in: query
        name: project
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/EmptySyncResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      summary: Delete the network address load balancer
      tags:
      - network-load-balancers
    get:
      description: Gets a specific network address load balancer.
      operationId: network_load_balancer_get
      parameters:
      - description: Network name
        in: path
        name: networkName
        required: true
        schema:
          type: string
      - description: Listen address
        in: path
        name: listenAddress
        required: true
        schema:
          type: string
      - description: Project name
        example: default
        in: query
        name: project
        schema:
          type: string
      responses:
        '200':
          description: Load Balancer
          content:
            application/json:
              schema:
                description: Sync response
                properties:
                  metadata:
                    $ref: '#/components/schemas/NetworkLoadBalancer'
                  status:
                    description: Status description
                    example: Success
                    type: string
                  status_code:
                    description: Status code
                    example: 200
                    type: integer
                  type:
                    description: Response type
                    example: sync
                    type: string
                type: object
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      summary: Get the network address load balancer
      tags:
      - network-load-balancers
    patch:
      description: Updates a subset of the network address load balancer configuration.
      operationId: network_load_balancer_patch
      parameters:
      - description: Network name
        in: path
        name: networkName
        required: true
        schema:
          type: string
      - description: Listen address
        in: path
        name: listenAddress
        required: true
        schema:
          type: string
      - description: Project name
        example: default
        in: query
        name: project
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/EmptySyncResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '412':
          $ref: '#/components/responses/PreconditionFailed'
        '500':
          $ref: '#/components/responses/InternalServerError'
      summary: Partially update the network address load balancer
      tags:
      - network-load-balancers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkLoadBalancerPut'
        description: Address load balancer configuration
        required: true
    put:
      description: Updates the entire network address load balancer configuration.
      operationId: network_load_balancer_put
      parameters:
      - description: Network name
        in: path
        name: networkName
        required: true
        schema:
          type: string
      - description: Listen address
        in: path
        name: listenAddress
        required: true
        schema:
          type: string
      - description: Project name
        example: default
        in: query
        name: project
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/EmptySyncResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '412':
          $ref: '#/components/responses/PreconditionFailed'
        '500':
          $ref: '#/components/responses/InternalServerError'
      summary: Update the network address load balancer
      tags:
      - network-load-balancers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkLoadBalancerPut'
        description: Address load balancer configuration
        required: true
  /1.0/networks/{networkName}/load-balancers/{listenAddress}/state:
    get:
      description: Get the current state of a specific network address load balancer.
      operationId: network_load_balancer_state_get
      parameters:
      - description: Network name
        in: path
        name: networkName
        required: true
        schema:
          type: string
      - description: Listen address
        in: path
        name: listenAddress
        required: true
        schema:
          type: string
      - description: Project name
        example: default
        in: query
        name: project
        schema:
          type: string
      responses:
        '200':
          description: Load Balancer state
          content:
            application/json:
              schema:
                description: Sync response
                properties:
                  metadata:
                    $ref: '#/components/schemas/NetworkLoadBalancerState'
                  status:
                    description: Status description
                    example: Success
                    type: string
                  status_code:
                    description: Status code
                    example: 200
                    type: integer
                  type:
                    description: Response type
                    example: sync
                    type: string
                type: object
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      summary: Get the network address load balancer state
      tags:
      - network-load-balancers
  /1.0/networks/{networkName}/load-balancers?recursion=1:
    get:
      description: Returns a list of network address load balancers (structs).
      operationId: network_load_balancer_get_recursion1
      parameters:
      - description: Network name
        in: path
        name: networkName
        required: true
        schema:
          type: string
      - description: Project name
        example: default
        in: query
        name: project
        schema:
          type: string
      - description: Collection filter
        example: default
        in: query
        name: filter
        schema:
          type: string
      responses:
        '200':
          description: API endpoints
          content:
            application/json:
              schema:
                description: Sync response
                properties:
                  metadata:
                    description: List of network address load balancers
                    items:
                      $ref: '#/components/schemas/NetworkLoadBalancer'
                    type: array
                  status:
                    description: Status description
                    example: Success
                    type: string
                  status_code:
                    description: Status code
                    example: 200
                    type: integer
                  type:
                    description: Response type
                    example: sync
                    type: string
                type: object
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
      summary: Get the network address load balancers
      tags:
      - network-load-balancers
components:
  responses:
    PreconditionFailed:
      description: Precondition Failed
      content:
        application/json:
          schema:
            properties:
              error:
                example: precondition failed
                type: string
                x-go-name: Error
              error_code:
                example: 412
                format: int64
                type: integer
                x-go-name: ErrorCode
              type:
                example: error
                type: string
                x-go-name: Type
            type: object
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            properties:
              error:
                example: not authorized
                type: string
                x-go-name: Error
              error_code:
                example: 403
                format: int64
                type: integer
                x-go-name: ErrorCode
              type:
                example: error
                type: string
                x-go-name: Type
            type: object
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            properties:
              error:
                example: internal server error
                type: string
                x-go-name: Error
              error_code:
                example: 500
                format: int64
                type: integer
                x-go-name: ErrorCode
              type:
                example: error
                type: string
                x-go-name: Type
            type: object
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            properties:
              error:
                example: bad request
                type: string
                x-go-name: Error
              error_code:
                example: 400
                format: int64
                type: integer
                x-go-name: ErrorCode
              type:
                example: error
                type: string
                x-go-name: Type
            type: object
    EmptySyncResponse:
      description: Empty sync response
      content:
        application/json:
          schema:
            properties:
              status:
                example: Success
                type: string
                x-go-name: Status
              status_code:
                example: 200
                format: int64
                type: integer
                x-go-name: StatusCode
              type:
                example: sync
                type: string
                x-go-name: Type
            type: object
  schemas:
    NetworkLoadBalancer:
      description: NetworkLoadBalancer used for displaying a network load balancer
      properties:
        backends:
          description: Backends (optional)
          items:
            $ref: '#/components/schemas/NetworkLoadBalancerBackend'
          type: array
          x-go-name: Backends
        config:
          description: Load balancer configuration map (refer to doc/network-load-balancers.md)
          example:
            user.mykey: foo
          type: object
          x-go-name: Config
        description:
          description: Description of the load balancer listen IP
          example: My public IP load balancer
          type: string
          x-go-name: Description
        listen_address:
          description: The listen address of the load balancer
          example: 192.0.2.1
          type: string
          x-go-name: ListenAddress
        location:
          description: What cluster member this record was found on
          example: server01
          type: string
          x-go-name: Location
        ports:
          description: Port forwards (optional)
          items:
            $ref: '#/components/schemas/NetworkLoadBalancerPort'
          type: array
          x-go-name: Ports
      type: object
      x-go-package: github.com/lxc/incus/v7/shared/api
    NetworkLoadBalancerBackend:
      description: NetworkLoadBalancerBackend represents a target backend specification in a network load balancer
      properties:
        description:
          description: Description of the load balancer backend
          example: C1 webserver
          type: string
          x-go-name: Description
        name:
          description: Name of the load balancer backend
          example: c1-http
          type: string
          x-go-name: Name
        target_address:
          description: TargetAddress to forward ListenPorts to
          example: 198.51.100.2
          type: string
          x-go-name: TargetAddress
        target_port:
          description: TargetPort(s) to forward ListenPorts to (allows for many-to-one)
          example: 80,81,8080-8090
          type: string
          x-go-name: TargetPort
      type: object
      x-go-package: github.com/lxc/incus/v7/shared/api
    NetworkLoadBalancersPost:
      description: NetworkLoadBalancersPost represents the fields of a new network load balancer
      properties:
        backends:
          description: Backends (optional)
          items:
            $ref: '#/components/schemas/NetworkLoadBalancerBackend'
          type: array
          x-go-name: Backends
        config:
          description: Load balancer configuration map (refer to doc/network-load-balancers.md)
          example:
            user.mykey: foo
          type: object
          x-go-name: Config
        description:
          description: Description of the load balancer listen IP
          example: My public IP load balancer
          type: string
          x-go-name: Description
        listen_address:
          description: The listen address of the load balancer
          example: 192.0.2.1
          type: string
          x-go-name: ListenAddress
        ports:
          description: Port forwards (optional)
          items:
            $ref: '#/components/schemas/NetworkLoadBalancerPort'
          type: array
          x-go-name: Ports
      type: object
      x-go-package: github.com/lxc/incus/v7/shared/api
    NetworkLoadBalancerPort:
      description: NetworkLoadBalancerPort represents a port specification in a network load balancer
      properties:
        description:
          description: Description of the load balancer port
          example: My web server load balancer
          type: string
          x-go-name: Description
        listen_port:
          description: ListenPort(s) of load balancer (comma delimited ranges)
          example: 80,81,8080-8090
          type: string
          x-go-name: ListenPort
        protocol:
          description: Protocol for load balancer port (either tcp or udp)
          example: tcp
          type: string
          x-go-name: Protocol
        target_backend:
          description: TargetBackend backend names to load balance ListenPorts to
          example:
          - c1-http
          - c2-http
          items:
            type: string
          type: array
          x-go-name: TargetBackend
      type: object
      x-go-package: github.com/lxc/incus/v7/shared/api
    NetworkLoadBalancerStateBackendHealthPort:
      properties:
        port:
          format: int64
          type: integer
          x-go-name: Port
        protocol:
          type: string
          x-go-name: Protocol
        status:
          type: string
          x-go-name: Status
      title: NetworkLoadBalancerStateBackendHealthPort represents the health status of a particular load-balancer backend port.
      type: object
      x-go-package: github.com/lxc/incus/v7/shared/api
    NetworkLoadBalancerPut:
      description: NetworkLoadBalancerPut represents the modifiable fields of a network load balancer
      properties:
        backends:
          description: Backends (optional)
          items:
            $ref: '#/components/schemas/NetworkLoadBalancerBackend'
          type: array
          x-go-name: Backends
        config:
          description: Load balancer configuration map (refer to doc/network-load-balancers.md)
          example:
            user.mykey: foo
          type: object
          x-go-name: Config
        description:
          description: Description of the load balancer listen IP
          example: My public IP load balancer
          type: string
          x-go-name: Description
        ports:
          description: Port forwards (optional)
          items:
            $ref: '#/components/schemas/NetworkLoadBalancerPort'
          type: array
          x-go-name: Ports
      type: object
      x-go-package: github.com/lxc/incus/v7/shared/api
    NetworkLoadBalancerStateBackendHealth:
      description: NetworkLoadBalancerStateBackendHealth represents the health of a particular load-balancer backend
      properties:
        address:
          type: string
          x-go-name: Address
        ports:
          items:
            $ref: '#/components/schemas/NetworkLoadBalancerStateBackendHealthPort'
          type: array
          x-go-name: Ports
      type: object
      x-go-package: github.com/lxc/incus/v7/shared/api
    NetworkLoadBalancerState:
      description: NetworkLoadBalancerState is used for showing current state of a load balancer
      properties:
        backend_health:
          additionalProperties:
            $ref: '#/components/schemas/NetworkLoadBalancerStateBackendHealth'
          type: object
          x-go-name: BackendHealth
      type: object
      x-go-package: github.com/lxc/incus/v7/shared/api