Bỏ qua, tới nội dung
Dymini Panel
v0.16.1
Mục lục
Bạn đang xem tài liệu của v0.16.1.Xem bản mới nhất

System

Trong trang này

Process health, version, settings export, panel backups, and self-update

Health

GET/api/health

Phản hồi

  • 200 HealthHealthResponse
    • productstringbắt buộc
    • statusstringbắt buộc
    • versionstringbắt buộc

List the built-in Dymini Panel guides of this panel version

GET/api/v1/docs

Phản hồi

  • 200 List the built-in Dymini Panel guides of this panel versionDocSummary[]
    • namestringbắt buộc

      Pass this to the read call, for example cli.

    • titlestringbắt buộc
GET/api/v1/docs/search

Phản hồi

  • 200 Search the Dymini Panel documentation of this panel version. Query: q (required), limit (default 5, max 20)DocSearchResponse
    • querystringbắt buộc
    • resultsDocHit[]bắt buộc
      DocHit[]
      • namestringbắt buộc
      • scoreinteger (int32)bắt buộc

        Higher is a better match.

      • sectionstringbắt buộc

        The heading the match is under.

      • snippetstringbắt buộc
      • titlestringbắt buộc
    • versionstringbắt buộc

      Version of the panel the guides belong to.

Read one Dymini Panel guide as Markdown by name, as listed by the docs list or search

GET/api/v1/docs/{name}

Phản hồi

  • 200 Read one Dymini Panel guide as Markdown by name, as listed by the docs list or searchDocPage
    • contentstringbắt buộc

      The whole guide as Markdown.

    • namestringbắt buộc
    • titlestringbắt buộc
    • versionstringbắt buộc

Load of the panel host, held and running builds, and how the panel is protected

GET/api/v1/load

Phản hồi

  • 200 Load of the panel host, held and running builds, and how the panel is protectedLoadView
    • buildsBuildLoadbắt buộc
      BuildLoad
      • concurrencyinteger (int32)bắt buộc

        Builds that may run at the same time on one server.

      • holdstring | null

        Why queued builds wait: paused, busy, or critical; None when they may start.

      • oldest_queued_atstring | null (date-time)
      • queuedinteger (int64)bắt buộc
      • runninginteger (int64)bắt buộc
      • stack_actionsinteger (int64)bắt buộc

        Compose stack actions running now.

      • stack_buildsinteger (int64)bắt buộc

        Of those, the ones that build images on the panel host.

    • guardGuardViewbắt buộc

      What the guard sees now.

      GuardView
      • critical_memory_percentnumber (double)bắt buộc

        Available memory below which running builds are stopped, in percent.

      • errorstring | null

        Why the host could not be read, when it could not.

      • holdingbooleanbắt buộc

        New builds wait now: paused, or the guard holds them.

      • last_stopped_atstring | null (date-time)
      • levelGuardLevelbắt buộc

        How loaded the host is.

        "ok" · "busy" · "critical"
        GuardLevel

        "ok" · "busy" · "critical"

      • pressureHostPressure | null
        HostPressure | null

        Một trong:

        • HostPressure
          • cpu_countinteger (int32)bắt buộc
          • cpu_percentnumber (double)bắt buộc

            Busy CPU time since the previous sample, 0–100 for the whole machine.

          • cpu_pressurenumber | null (double)

            Share of the last 10 s some task waited for CPU (PSI), when the kernel reports it.

          • io_pressurenumber | null (double)

            Share of the last 10 s some task waited for disk or network I/O (PSI).

          • load1number (double)bắt buộc
          • load15number (double)bắt buộc
          • load5number (double)bắt buộc
          • memory_available_bytesinteger (int64)bắt buộc

            Memory the kernel can hand out without swapping (MemAvailable).

          • memory_pressurenumber | null (double)

            Share of the last 10 s some task waited for memory (PSI).

          • memory_stallnumber | null (double)

            Share of the last 10 s every task waited for memory (PSI full): the host was thrashing.

          • memory_total_bytesinteger (int64)bắt buộc
          • swap_free_bytesinteger (int64)bắt buộc
          • swap_total_bytesinteger (int64)bắt buộc
        • null
      • reasonsGuardReason[]bắt buộc

        Why the level is not ok; empty when it is.

        GuardReason[]
        • codestringbắt buộc
        • limitnumber (double)bắt buộc

          The threshold it crossed, in percent.

        • valuenumber (double)bắt buộc

          The measured value, in percent.

      • sampled_atstring | null (date-time)
      • settingsGuardSettingsbắt buộc

        Load guard settings, stored in panel_settings.

        GuardSettings
        • builds_pausedbooleanbắt buộc

          An admin paused every new build.

        • cpu_percentinteger (int32)bắt buộc

          New builds wait while CPU stays above this share.

        • enabledbooleanbắt buộc

          Hold and stop builds when the host is overloaded.

        • memory_reserve_percentinteger (int32)bắt buộc

          New builds wait while free memory is below this share; running builds stop below half of it.

      • sincestring | null (date-time)

        When the level last changed.

      • stopped_buildsinteger (int64)bắt buộc

        Builds and stack actions the guard stopped since the panel started.

    • protectionProtectionView[]bắt buộc

      How the panel, its database and Traefik are protected from apps.

      ProtectionView[]
      • cpu_sharesinteger (int64)bắt buộc
      • memory_reservation_bytesinteger (int64)bắt buộc
      • namestringbắt buộc
      • oom_score_adjinteger (int64)bắt buộc
      • presentbooleanbắt buộc

        The container exists on this host.

      • protectedbooleanbắt buộc

        Kept away from the OOM killer and ahead of apps for CPU.

      • rolestringbắt buộc

        panel, database, or proxy.

Cancel queued builds and stop running builds on the panel host (admin, write)

POST/api/v1/load/cancel-builds

Phản hồi

  • 200 Cancel queued builds and stop running builds on the panel host (admin, write)BuildsCancelled
    • queuedinteger (int64)bắt buộc

      Queued builds that will not run.

    • runninginteger (int64)bắt buộc

      Running builds and stack builds that were asked to stop.

Pause or resume every new build (admin, write)

POST/api/v1/load/pause

Nội dung gửi lênapplication/json

PauseBuilds

  • pausedbooleanbắt buộc

Phản hồi

  • 200 Pause or resume every new build (admin, write)LoadView
    • buildsBuildLoadbắt buộc
      BuildLoad
      • concurrencyinteger (int32)bắt buộc

        Builds that may run at the same time on one server.

      • holdstring | null

        Why queued builds wait: paused, busy, or critical; None when they may start.

      • oldest_queued_atstring | null (date-time)
      • queuedinteger (int64)bắt buộc
      • runninginteger (int64)bắt buộc
      • stack_actionsinteger (int64)bắt buộc

        Compose stack actions running now.

      • stack_buildsinteger (int64)bắt buộc

        Of those, the ones that build images on the panel host.

    • guardGuardViewbắt buộc

      What the guard sees now.

      GuardView
      • critical_memory_percentnumber (double)bắt buộc

        Available memory below which running builds are stopped, in percent.

      • errorstring | null

        Why the host could not be read, when it could not.

      • holdingbooleanbắt buộc

        New builds wait now: paused, or the guard holds them.

      • last_stopped_atstring | null (date-time)
      • levelGuardLevelbắt buộc

        How loaded the host is.

        "ok" · "busy" · "critical"
        GuardLevel

        "ok" · "busy" · "critical"

      • pressureHostPressure | null
        HostPressure | null

        Một trong:

        • HostPressure
          • cpu_countinteger (int32)bắt buộc
          • cpu_percentnumber (double)bắt buộc

            Busy CPU time since the previous sample, 0–100 for the whole machine.

          • cpu_pressurenumber | null (double)

            Share of the last 10 s some task waited for CPU (PSI), when the kernel reports it.

          • io_pressurenumber | null (double)

            Share of the last 10 s some task waited for disk or network I/O (PSI).

          • load1number (double)bắt buộc
          • load15number (double)bắt buộc
          • load5number (double)bắt buộc
          • memory_available_bytesinteger (int64)bắt buộc

            Memory the kernel can hand out without swapping (MemAvailable).

          • memory_pressurenumber | null (double)

            Share of the last 10 s some task waited for memory (PSI).

          • memory_stallnumber | null (double)

            Share of the last 10 s every task waited for memory (PSI full): the host was thrashing.

          • memory_total_bytesinteger (int64)bắt buộc
          • swap_free_bytesinteger (int64)bắt buộc
          • swap_total_bytesinteger (int64)bắt buộc
        • null
      • reasonsGuardReason[]bắt buộc

        Why the level is not ok; empty when it is.

        GuardReason[]
        • codestringbắt buộc
        • limitnumber (double)bắt buộc

          The threshold it crossed, in percent.

        • valuenumber (double)bắt buộc

          The measured value, in percent.

      • sampled_atstring | null (date-time)
      • settingsGuardSettingsbắt buộc

        Load guard settings, stored in panel_settings.

        GuardSettings
        • builds_pausedbooleanbắt buộc

          An admin paused every new build.

        • cpu_percentinteger (int32)bắt buộc

          New builds wait while CPU stays above this share.

        • enabledbooleanbắt buộc

          Hold and stop builds when the host is overloaded.

        • memory_reserve_percentinteger (int32)bắt buộc

          New builds wait while free memory is below this share; running builds stop below half of it.

      • sincestring | null (date-time)

        When the level last changed.

      • stopped_buildsinteger (int64)bắt buộc

        Builds and stack actions the guard stopped since the panel started.

    • protectionProtectionView[]bắt buộc

      How the panel, its database and Traefik are protected from apps.

      ProtectionView[]
      • cpu_sharesinteger (int64)bắt buộc
      • memory_reservation_bytesinteger (int64)bắt buộc
      • namestringbắt buộc
      • oom_score_adjinteger (int64)bắt buộc
      • presentbooleanbắt buộc

        The container exists on this host.

      • protectedbooleanbắt buộc

        Kept away from the OOM killer and ahead of apps for CPU.

      • rolestringbắt buộc

        panel, database, or proxy.

Set the load guard thresholds and builds at the same time (admin, write)

PUT/api/v1/load/settings

Nội dung gửi lênapplication/json

UpdateGuard

  • build_concurrencyinteger | null (int32)

    1 to 8 builds at the same time on one server.

  • cpu_percentinteger (int32)bắt buộc

    50 to 100: new builds wait while CPU stays above this.

  • enabledbooleanbắt buộc

    Hold and stop builds when the panel host is overloaded.

  • memory_reserve_percentinteger (int32)bắt buộc

    5 to 50: new builds wait while less memory than this is free.

Phản hồi

  • 200 Set the load guard thresholds and builds at the same time (admin, write)LoadView
    • buildsBuildLoadbắt buộc
      BuildLoad
      • concurrencyinteger (int32)bắt buộc

        Builds that may run at the same time on one server.

      • holdstring | null

        Why queued builds wait: paused, busy, or critical; None when they may start.

      • oldest_queued_atstring | null (date-time)
      • queuedinteger (int64)bắt buộc
      • runninginteger (int64)bắt buộc
      • stack_actionsinteger (int64)bắt buộc

        Compose stack actions running now.

      • stack_buildsinteger (int64)bắt buộc

        Of those, the ones that build images on the panel host.

    • guardGuardViewbắt buộc

      What the guard sees now.

      GuardView
      • critical_memory_percentnumber (double)bắt buộc

        Available memory below which running builds are stopped, in percent.

      • errorstring | null

        Why the host could not be read, when it could not.

      • holdingbooleanbắt buộc

        New builds wait now: paused, or the guard holds them.

      • last_stopped_atstring | null (date-time)
      • levelGuardLevelbắt buộc

        How loaded the host is.

        "ok" · "busy" · "critical"
        GuardLevel

        "ok" · "busy" · "critical"

      • pressureHostPressure | null
        HostPressure | null

        Một trong:

        • HostPressure
          • cpu_countinteger (int32)bắt buộc
          • cpu_percentnumber (double)bắt buộc

            Busy CPU time since the previous sample, 0–100 for the whole machine.

          • cpu_pressurenumber | null (double)

            Share of the last 10 s some task waited for CPU (PSI), when the kernel reports it.

          • io_pressurenumber | null (double)

            Share of the last 10 s some task waited for disk or network I/O (PSI).

          • load1number (double)bắt buộc
          • load15number (double)bắt buộc
          • load5number (double)bắt buộc
          • memory_available_bytesinteger (int64)bắt buộc

            Memory the kernel can hand out without swapping (MemAvailable).

          • memory_pressurenumber | null (double)

            Share of the last 10 s some task waited for memory (PSI).

          • memory_stallnumber | null (double)

            Share of the last 10 s every task waited for memory (PSI full): the host was thrashing.

          • memory_total_bytesinteger (int64)bắt buộc
          • swap_free_bytesinteger (int64)bắt buộc
          • swap_total_bytesinteger (int64)bắt buộc
        • null
      • reasonsGuardReason[]bắt buộc

        Why the level is not ok; empty when it is.

        GuardReason[]
        • codestringbắt buộc
        • limitnumber (double)bắt buộc

          The threshold it crossed, in percent.

        • valuenumber (double)bắt buộc

          The measured value, in percent.

      • sampled_atstring | null (date-time)
      • settingsGuardSettingsbắt buộc

        Load guard settings, stored in panel_settings.

        GuardSettings
        • builds_pausedbooleanbắt buộc

          An admin paused every new build.

        • cpu_percentinteger (int32)bắt buộc

          New builds wait while CPU stays above this share.

        • enabledbooleanbắt buộc

          Hold and stop builds when the host is overloaded.

        • memory_reserve_percentinteger (int32)bắt buộc

          New builds wait while free memory is below this share; running builds stop below half of it.

      • sincestring | null (date-time)

        When the level last changed.

      • stopped_buildsinteger (int64)bắt buộc

        Builds and stack actions the guard stopped since the panel started.

    • protectionProtectionView[]bắt buộc

      How the panel, its database and Traefik are protected from apps.

      ProtectionView[]
      • cpu_sharesinteger (int64)bắt buộc
      • memory_reservation_bytesinteger (int64)bắt buộc
      • namestringbắt buộc
      • oom_score_adjinteger (int64)bắt buộc
      • presentbooleanbắt buộc

        The container exists on this host.

      • protectedbooleanbắt buộc

        Kept away from the OOM killer and ahead of apps for CPU.

      • rolestringbắt buộc

        panel, database, or proxy.

Panel version, schema version, and pg_dump availability (admin)

GET/api/v1/system

Phản hồi

  • 200 Panel version, schema version, and pg_dump availability (admin)SystemInfo
    • known_schemainteger (int64)bắt buộc

      Highest migration this binary carries.

    • pg_dumpstring | null

      pg_dump --version, or None when it cannot run.

    • schemainteger (int64)bắt buộc

      Highest applied schema migration.

    • versionstringbắt buộc

Download an encrypted panel backup: database dump and master key (admin, write)

POST/api/v1/system/backup

Nội dung gửi lênapplication/json

PanelBackupRequest

  • include_historyboolean

    Also include log lines, metric samples, and sessions.

  • passphrasestringbắt buộc

    At least 12 characters. Needed to restore; it is not stored.

Phản hồi

  • 200 Download an encrypted panel backup: database dump and master key (admin, write)

Download the panel configuration as JSON, without secrets (admin)

GET/api/v1/system/settings-export

Phản hồi

  • 200 Download the panel configuration as JSON, without secrets (admin)

Update status: versions, last release check, components, and history (admin)

GET/api/v1/system/updates

Phản hồi

  • 200 Update status: versions, last release check, components, and history (admin)UpdateOverview
    • apply_blockerstring | null

      Why "Update now" is unavailable, if it is.

    • auto_updatebooleanbắt buộc
    • channelstringbắt buộc

      stable or prerelease.

    • componentsComponentStatus[]bắt buộc
      ComponentStatus[]
      • agent_outdatedbooleanbắt buộc
      • agent_versionstring | null
      • cache_imagestring | null
      • cache_outdatedbooleanbắt buộc
      • kindstringbắt buộc
      • onlinebooleanbắt buộc
      • server_idstring (uuid)bắt buộc
      • server_namestringbắt buộc
    • current_versionstringbắt buộc
    • historyUpdateHistoryEntry[]bắt buộc
      UpdateHistoryEntry[]
      • componentstringbắt buộc
      • finished_atstring | null (date-time)
      • from_versionstring | null
      • idstring (uuid)bắt buộc
      • logsstringbắt buộc
      • server_idstring | null (uuid)
      • server_namestring | null
      • started_atstring (date-time)bắt buộc
      • statusstringbắt buộc
      • to_versionstringbắt buộc
    • last_checkUpdateCheck | null
      UpdateCheck | null

      Một trong:

      • UpdateCheck
        • channelstringbắt buộc
        • checked_atstring (date-time)bắt buộc
        • currentstringbắt buộc
        • errorstring | null
        • latestReleaseInfo | null
          ReleaseInfo | null

          Một trong:

          • ReleaseInfo
            • html_urlstring | null
            • namestring | null
            • notesstring | null
            • published_atstring | null
            • versionstringbắt buộc
          • null
        • pendingReleaseInfo[]

          Every release between the installed version and latest, oldest first, latest included: what an update installs, with each release's notes.

          ReleaseInfo[]
          • html_urlstring | null
          • namestring | null
          • notesstring | null
          • published_atstring | null
          • versionstringbắt buộc
        • verifiedbooleanbắt buộc

          The latest release's signature and checksums were verified.

      • null
    • maintenance_windowstring | null

      HH:MM-HH:MM in UTC; automatic updates wait for it. Empty means any time.

    • repositorystringbắt buộc
    • signing_keybooleanbắt buộc

      A release signing key is configured, so verified releases can be applied.

    • target_cache_imagestring | null

      Cache image for this panel version, from its signed release.

Back up, then update the panel to the latest verified release with rollback (admin, write)

POST/api/v1/system/updates/apply

Phản hồi

  • 202 Back up, then update the panel to the latest verified release with rollback (admin, write)UpdateStarted
    • history_idstring (uuid)bắt buộc

Check GitHub for a newer signed release now (admin, write)

POST/api/v1/system/updates/check

Phản hồi

  • 200 Check GitHub for a newer signed release now (admin, write)UpdateCheck
    • channelstringbắt buộc
    • checked_atstring (date-time)bắt buộc
    • currentstringbắt buộc
    • errorstring | null
    • latestReleaseInfo | null
      ReleaseInfo | null

      Một trong:

      • ReleaseInfo
        • html_urlstring | null
        • namestring | null
        • notesstring | null
        • published_atstring | null
        • versionstringbắt buộc
      • null
    • pendingReleaseInfo[]

      Every release between the installed version and latest, oldest first, latest included: what an update installs, with each release's notes.

      ReleaseInfo[]
      • html_urlstring | null
      • namestring | null
      • notesstring | null
      • published_atstring | null
      • versionstringbắt buộc
    • verifiedbooleanbắt buộc

      The latest release's signature and checksums were verified.

Update outdated agents and caches to this panel's version (admin, write)

POST/api/v1/system/updates/components

Phản hồi

  • 202 Update outdated agents and caches to this panel's version (admin, write)ComponentsStarted
    • queuedintegerbắt buộc

      Agents and caches queued for an update.

Set the update channel, auto-update, and maintenance window (admin, write)

PUT/api/v1/system/updates/settings

Nội dung gửi lênapplication/json

UpdateSettings

  • auto_updatebooleanbắt buộc
  • channelstringbắt buộc

    stable or prerelease.

  • maintenance_windowstring | null

Phản hồi

  • 200 Set the update channel, auto-update, and maintenance window (admin, write)UpdateOverview
    • apply_blockerstring | null

      Why "Update now" is unavailable, if it is.

    • auto_updatebooleanbắt buộc
    • channelstringbắt buộc

      stable or prerelease.

    • componentsComponentStatus[]bắt buộc
      ComponentStatus[]
      • agent_outdatedbooleanbắt buộc
      • agent_versionstring | null
      • cache_imagestring | null
      • cache_outdatedbooleanbắt buộc
      • kindstringbắt buộc
      • onlinebooleanbắt buộc
      • server_idstring (uuid)bắt buộc
      • server_namestringbắt buộc
    • current_versionstringbắt buộc
    • historyUpdateHistoryEntry[]bắt buộc
      UpdateHistoryEntry[]
      • componentstringbắt buộc
      • finished_atstring | null (date-time)
      • from_versionstring | null
      • idstring (uuid)bắt buộc
      • logsstringbắt buộc
      • server_idstring | null (uuid)
      • server_namestring | null
      • started_atstring (date-time)bắt buộc
      • statusstringbắt buộc
      • to_versionstringbắt buộc
    • last_checkUpdateCheck | null
      UpdateCheck | null

      Một trong:

      • UpdateCheck
        • channelstringbắt buộc
        • checked_atstring (date-time)bắt buộc
        • currentstringbắt buộc
        • errorstring | null
        • latestReleaseInfo | null
          ReleaseInfo | null

          Một trong:

          • ReleaseInfo
            • html_urlstring | null
            • namestring | null
            • notesstring | null
            • published_atstring | null
            • versionstringbắt buộc
          • null
        • pendingReleaseInfo[]

          Every release between the installed version and latest, oldest first, latest included: what an update installs, with each release's notes.

          ReleaseInfo[]
          • html_urlstring | null
          • namestring | null
          • notesstring | null
          • published_atstring | null
          • versionstringbắt buộc
        • verifiedbooleanbắt buộc

          The latest release's signature and checksums were verified.

      • null
    • maintenance_windowstring | null

      HH:MM-HH:MM in UTC; automatic updates wait for it. Empty means any time.

    • repositorystringbắt buộc
    • signing_keybooleanbắt buộc

      A release signing key is configured, so verified releases can be applied.

    • target_cache_imagestring | null

      Cache image for this panel version, from its signed release.