Podman quadlets API

The quadlets API from Podman — 5 operation(s) for quadlets.

Operations 6

DELETE /libpod/quadlets Remove quadlet files (batch operation) #
POST /libpod/quadlets Install quadlet files #
DELETE /libpod/quadlets/{name} Remove a quadlet file #
GET /libpod/quadlets/{name}/exists Check if quadlet exists #
GET /libpod/quadlets/{name}/file Get quadlet file #
GET /libpod/quadlets/json List quadlets #

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/podman-quadlets-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

podman-quadlets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: podman@lists.podman.io
    name: Podman
    url: https://podman.io/community/
  description: 'This documentation describes the Podman v2.x+ RESTful API. It consists of a Docker-compatible

    API and a Libpod API providing support for Podman’s unique features such as pods.


    To start the service and keep it running for 5,000 seconds (-t 0 runs forever):


    podman system service -t 5000 &


    You can then use cURL on the socket using requests documented below.


    NOTE: if you install the package podman-docker, it will create a symbolic

    link for /run/docker.sock to /run/podman/podman.sock


    NOTE: Some fields in the API response JSON are encoded as omitempty, which means that

    if said field has a zero value, they will not be encoded in the API response. This

    is a feature to help reduce the size of the JSON responses returned via the API.


    NOTE: Due to the limitations of [go-swagger](https://github.com/go-swagger/go-swagger),

    some field values that have a complex type show up as null in the docs as well as in the

    API responses. This is because the zero value for the field type is null. The field

    description in the docs will state what type the field is expected to be for such cases.


    See podman-system-service(1) for more information.


    Quick Examples:


    ''podman info''


    curl --unix-socket /run/podman/podman.sock http://d/v6.0.0/libpod/info


    ''podman pull quay.io/containers/podman''


    curl -XPOST --unix-socket /run/podman/podman.sock -v ''http://d/v6.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman''


    ''podman list images''


    curl --unix-socket /run/podman/podman.sock -v ''http://d/v6.0.0/libpod/images/json'' | jq'
  license:
    name: Apache-2.0
    url: https://opensource.org/licenses/Apache-2.0
  termsOfService: https://github.com/containers/podman/blob/913caaa9b1de2b63692c9bae15120208194c9eb3/LICENSE
  title: supports a RESTful API for the Libpod library artifacts Quadlets API
  version: 5.0.0
  x-logo:
  - url: https://raw.githubusercontent.com/containers/libpod/main/logo/podman-logo.png
  - altText: Podman logo
servers:
- url: http://podman.io/
- url: https://podman.io/
tags:
- name: quadlets
paths:
  /libpod/quadlets:
    delete:
      description: 'Remove one or more quadlet files. Supports removing specific quadlets by name or all quadlets

        for the current user. Can force removal of running quadlets and control systemd reload behavior.

        '
      operationId: QuadletDeleteAllLibpod
      parameters:
      - description: Names of quadlets to remove (e.g., "myapp.container"). Required unless all=true
        in: query
        name: quadlets
        schema:
          type: array
          items:
            type: string
      - description: Remove all quadlets for the current user
        in: query
        name: all
        schema:
          type: boolean
          default: false
      - description: Remove running quadlets by stopping them first
        in: query
        name: force
        schema:
          type: boolean
          default: false
      - description: Do not error for quadlets that do not exist
        in: query
        name: ignore
        schema:
          type: boolean
          default: false
      - description: Reload systemd after removing quadlets
        in: query
        name: reload-systemd
        schema:
          type: boolean
          default: true
      responses:
        '200':
          $ref: '#/components/responses/quadletRemoveResponse'
        '400':
          $ref: '#/components/responses/badParamError'
        '500':
          $ref: '#/components/responses/internalError'
      summary: Remove quadlet files (batch operation)
      tags:
      - quadlets
    post:
      description: 'Install one or more files for a quadlet application. Each request should contain a single quadlet file

        and optionally more files such as containerfile, kube yaml or configuration files. Supports both tar

        archives and multipart form data uploads.

        '
      operationId: QuadletInstallLibpod
      parameters:
      - description: Replace the installation files even if the files already exists
        in: query
        name: replace
        schema:
          type: boolean
          default: false
      - description: Reload systemd after installing quadlets
        in: query
        name: reload-systemd
        schema:
          type: boolean
          default: true
      responses:
        '200':
          description: Quadlet installation report
          content:
            application/json:
              schema:
                properties:
                  InstalledQuadlets:
                    additionalProperties:
                      type: string
                    description: Map of source path to installed path for successfully installed quadlets
                    type: object
                  QuadletErrors:
                    additionalProperties:
                      type: string
                    description: Map of source path to error message for failed installations
                    type: object
                type: object
        '400':
          $ref: '#/components/responses/badParamError'
        '500':
          $ref: '#/components/responses/internalError'
      summary: Install quadlet files
      tags:
      - quadlets
      requestBody:
        content:
          application/x-tar:
            schema:
              format: binary
              type: string
          multipart/form-data:
            schema:
              format: binary
              type: string
        description: 'Quadlet files to install. Can be provided as:

          - application/x-tar: A tar archive containing one quadlet file and optionally additional files

          - multipart/form-data: One quadlet file as form data and optionally additional files

          '
  /libpod/quadlets/{name}:
    delete:
      description: 'Remove a quadlet file by name. Can force removal of running quadlets and control systemd reload behavior.

        '
      operationId: QuadletDeleteLibpod
      parameters:
      - description: the name of the quadlet with extension (e.g., "myapp.container")
        in: path
        name: name
        required: true
        schema:
          type: string
      - description: Remove running quadlet by stopping it first
        in: query
        name: force
        schema:
          type: boolean
          default: false
      - description: Do not error if the quadlet does not exist
        in: query
        name: ignore
        schema:
          type: boolean
          default: false
      - description: Reload systemd after removing the quadlet
        in: query
        name: reload-systemd
        schema:
          type: boolean
          default: true
      responses:
        '200':
          $ref: '#/components/responses/quadletRemoveResponse'
        '400':
          $ref: '#/components/responses/badParamError'
        '404':
          $ref: '#/components/responses/quadletNotFound'
        '500':
          $ref: '#/components/responses/internalError'
      summary: Remove a quadlet file
      tags:
      - quadlets
  /libpod/quadlets/{name}/exists:
    get:
      description: Check if a quadlet exists by name
      operationId: QuadletExistsLibpod
      parameters:
      - description: the name of the quadlet with extension (e.g., "myapp.container")
        in: path
        name: name
        required: true
        schema:
          type: string
      responses:
        '204':
          description: quadlet exists
        '404':
          $ref: '#/components/responses/quadletNotFound'
        '500':
          $ref: '#/components/responses/internalError'
      summary: Check if quadlet exists
      tags:
      - quadlets
  /libpod/quadlets/{name}/file:
    get:
      description: Get the contents of a Quadlet, displaying the file including all comments
      operationId: QuadletFileLibpod
      parameters:
      - description: the name of the quadlet with extension (e.g., "myapp.container")
        in: path
        name: name
        required: true
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/quadletFileResponse'
        '404':
          $ref: '#/components/responses/quadletNotFound'
        '500':
          $ref: '#/components/responses/internalError'
      summary: Get quadlet file
      tags:
      - quadlets
  /libpod/quadlets/json:
    get:
      description: Return a list of all quadlets.
      operationId: QuadletListLibpod
      parameters:
      - description: "JSON encoded value of the filters (a map[string][]string).\nSupported filters:\n  - name=<quadlet-name> Filter by quadlet name\n  - pod=<pod-quadlet> Filter by Pod= value (container quadlets only)\n"
        in: query
        name: filters
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/quadletListResponse'
        '500':
          $ref: '#/components/responses/internalError'
      summary: List quadlets
      tags:
      - quadlets
components:
  responses:
    quadletRemoveResponse:
      description: Quadlet remove
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/QuadletRemoveReport'
        application/octet-stream:
          schema:
            $ref: '#/components/schemas/QuadletRemoveReport'
        text/plain:
          schema:
            $ref: '#/components/schemas/QuadletRemoveReport'
    quadletListResponse:
      description: Quadlet list
      content:
        application/json:
          schema:
            items:
              $ref: '#/components/schemas/ListQuadlet'
            type: array
        application/octet-stream:
          schema:
            items:
              $ref: '#/components/schemas/ListQuadlet'
            type: array
        text/plain:
          schema:
            items:
              $ref: '#/components/schemas/ListQuadlet'
            type: array
    internalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorModel'
        application/octet-stream:
          schema:
            $ref: '#/components/schemas/ErrorModel'
        text/plain:
          schema:
            $ref: '#/components/schemas/ErrorModel'
    badParamError:
      description: Bad parameter in request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorModel'
        application/octet-stream:
          schema:
            $ref: '#/components/schemas/ErrorModel'
        text/plain:
          schema:
            $ref: '#/components/schemas/ErrorModel'
    quadletNotFound:
      description: No such quadlet
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorModel'
        application/octet-stream:
          schema:
            $ref: '#/components/schemas/ErrorModel'
        text/plain:
          schema:
            $ref: '#/components/schemas/ErrorModel'
    quadletFileResponse:
      description: Quadlet file
  schemas:
    QuadletRemoveReport:
      description: QuadletRemoveReport contains the results of an operation to remove obe or more quadlets
      properties:
        Errors:
          additionalProperties:
            type: string
            x-go-type: error
          description: Errors is a map of Quadlet name to error that occurred during removal.
          type: object
        Removed:
          description: Removed is a list of quadlets that were successfully removed
          items:
            type: string
          type: array
      type: object
      x-go-package: go.podman.io/podman/v6/pkg/domain/entities
    ListQuadlet:
      description: A ListQuadlet is a single Quadlet to be listed by `podman quadlet list`
      properties:
        App:
          description: 'If multiple quadlets were installed together they will belong

            to common App.'
          type: string
        Name:
          description: Name is the name of the Quadlet file
          type: string
        Path:
          description: Path to the Quadlet on disk
          type: string
        Pod:
          description: 'Pod is the pod Quadlet file referenced by Pod= in [Container]

            Empty for quadlet types that do not support Pod='
          type: string
        Status:
          description: 'What is the status of the Quadlet - if present in systemd, will be a

            systemd status, else will mention if the Quadlet has syntax errors'
          type: string
        UnitName:
          description: 'UnitName is the name of the systemd unit created from the Quadlet.

            May be empty if systemd has not be reloaded since it was installed.'
          type: string
      type: object
      x-go-package: go.podman.io/podman/v6/pkg/domain/entities
    ErrorModel:
      description: ErrorModel is used in remote connections with podman
      properties:
        cause:
          description: API root cause formatted for automated parsing
          example: API root cause
          type: string
          x-go-name: Because
        message:
          description: human error message, formatted for a human to read
          example: human error message
          type: string
          x-go-name: Message
        response:
          description: HTTP response code
          format: int64
          minimum: 400
          type: integer
          x-go-name: ResponseCode
      type: object
      x-go-package: go.podman.io/podman/v6/pkg/errorhandling