systemd Configuration API

The Configuration API from systemd — 11 operation(s) for configuration.

Operations 11

PUT /links/{ifindex}/dns Set DNS Servers On A Link #
PUT /links/{ifindex}/dnssec Set DNSSEC Mode On A Link #
PUT /links/{ifindex}/dns-over-tls Set DNS-over-TLS Mode On A Link #
POST /manager/reload Reload Manager Configuration #
POST /manager/reexecute Reexecute The Manager #
POST /manager/enable Enable Unit Files #
POST /manager/disable Disable Unit Files #
POST /manager/mask Mask Unit Files #
POST /manager/unmask Unmask Unit Files #
POST /manager/set-default-target Set The Default Boot Target #
GET /manager/default-target Get The Default Boot Target #

Documentation

Specifications

Other Resources

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/systemd-configuration-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

systemd-configuration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: systemd-hostnamed (org.freedesktop.hostname1) Boot Configuration API
  version: '1.0'
  summary: D-Bus API of systemd-hostnamed modeled as REST operations.
  description: 'Documentation/contract artifact for the `org.freedesktop.hostname1` D-Bus interface on the

    system bus. Manages the system hostname (static, transient, pretty), chassis type, deployment,

    location, icon name, and other machine info.

    '
  license:
    name: LGPL-2.1-or-later
    url: https://github.com/systemd/systemd/blob/main/LICENSES/LGPL-2.1-or-later.txt
servers:
- url: dbus://system/org.freedesktop.hostname1
tags:
- name: Configuration
paths:
  /links/{ifindex}/dns:
    parameters:
    - name: ifindex
      in: path
      required: true
      schema:
        type: integer
    put:
      tags:
      - Configuration
      operationId: SetLinkDNS
      summary: Set DNS Servers On A Link
      description: Mirrors `SetLinkDNS(ifindex, servers)`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                servers:
                  type: array
                  items:
                    type: object
                    properties:
                      family:
                        type: integer
                      address:
                        type: array
                        items:
                          type: integer
      responses:
        '204':
          description: Updated.
  /links/{ifindex}/dnssec:
    parameters:
    - name: ifindex
      in: path
      required: true
      schema:
        type: integer
    put:
      tags:
      - Configuration
      operationId: SetLinkDNSSEC
      summary: Set DNSSEC Mode On A Link
      description: Mirrors `SetLinkDNSSEC(ifindex, mode)`. Mode is `yes`, `no`, or `allow-downgrade`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                mode:
                  type: string
                  enum:
                  - true
                  - false
                  - allow-downgrade
      responses:
        '204':
          description: Updated.
  /links/{ifindex}/dns-over-tls:
    parameters:
    - name: ifindex
      in: path
      required: true
      schema:
        type: integer
    put:
      tags:
      - Configuration
      operationId: SetLinkDNSOverTLS
      summary: Set DNS-over-TLS Mode On A Link
      description: Mirrors `SetLinkDNSOverTLS(ifindex, mode)`. Mode is `yes`, `no`, or `opportunistic`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                mode:
                  type: string
                  enum:
                  - true
                  - false
                  - opportunistic
      responses:
        '204':
          description: Updated.
  /manager/reload:
    post:
      tags:
      - Configuration
      operationId: Reload
      summary: Reload Manager Configuration
      description: Reloads all unit files from disk without restarting services. Mirrors `Reload()`.
      responses:
        '204':
          description: Reloaded.
  /manager/reexecute:
    post:
      tags:
      - Configuration
      operationId: Reexecute
      summary: Reexecute The Manager
      description: Re-executes the systemd binary in-place, preserving state. Mirrors `Reexecute()`.
      responses:
        '204':
          description: Reexecuted.
  /manager/enable:
    post:
      tags:
      - Configuration
      operationId: EnableUnitFiles
      summary: Enable Unit Files
      description: Creates the symlinks that make units start at boot. Mirrors `EnableUnitFiles(files, runtime, force)`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    type: string
                runtime:
                  type: boolean
                force:
                  type: boolean
      responses:
        '200':
          description: Carries-install info and change set.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /manager/disable:
    post:
      tags:
      - Configuration
      operationId: DisableUnitFiles
      summary: Disable Unit Files
      description: Removes the symlinks that make units start at boot. Mirrors `DisableUnitFiles(files, runtime)`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    type: string
                runtime:
                  type: boolean
      responses:
        '200':
          description: Change set.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /manager/mask:
    post:
      tags:
      - Configuration
      operationId: MaskUnitFiles
      summary: Mask Unit Files
      description: Symlinks units to /dev/null so they cannot be started. Mirrors `MaskUnitFiles(files, runtime, force)`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    type: string
                runtime:
                  type: boolean
                force:
                  type: boolean
      responses:
        '200':
          description: Change set.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /manager/unmask:
    post:
      tags:
      - Configuration
      operationId: UnmaskUnitFiles
      summary: Unmask Unit Files
      description: Reverses MaskUnitFiles. Mirrors `UnmaskUnitFiles(files, runtime)`.
      responses:
        '200':
          description: Change set.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /manager/set-default-target:
    post:
      tags:
      - Configuration
      operationId: SetDefaultTarget
      summary: Set The Default Boot Target
      description: Mirrors `SetDefaultTarget(target, force)`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                target:
                  type: string
                force:
                  type: boolean
      responses:
        '200':
          description: Change set.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /manager/default-target:
    get:
      tags:
      - Configuration
      operationId: GetDefaultTarget
      summary: Get The Default Boot Target
      description: Mirrors `GetDefaultTarget()`.
      responses:
        '200':
          description: Target unit name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  target:
                    type: string