Bỏ qua, tới nội dung
Dymini Panel
v0.19.1
Mục lục

Catalog

Trong trang này

Servers, projects, environments, and services

List remote builder candidates, including disabled servers, and unclaimed waiting jobs

GET/api/v1/builders

Phản hồi

  • 200 List remote builder candidates, including disabled servers, and unclaimed waiting jobsBuilderInventory
    • buildersBuilderView[]bắt buộc

      Remote servers, including disabled candidates that can be enabled with PATCH.

      BuilderView[]
      • active_jobsinteger (int64)bắt buộc
      • archstring | null
      • buildxbooleanbắt buộc
      • cache_bytesinteger (int64)bắt buộc

        Last reported cache catalog, also available while the builder is offline.

      • cache_limit_bytesinteger (int64)bắt buộc
      • descriptionstringbắt buộc
      • drainingbooleanbắt buộc
      • enabledbooleanbắt buộc
      • idstring (uuid)bắt buộc
      • last_seenstring | null (date-time)
      • max_jobsinteger (int32)bắt buộc
      • namestringbắt buộc
      • nixpacksbooleanbắt buộc
      • onlinebooleanbắt buộc
      • pausedbooleanbắt buộc
      • queued_jobsinteger (int64)bắt buộc

        Queued jobs explicitly targeting this builder. Auto jobs are not reserved yet.

      • versionstring | null
    • waiting_jobsBuilderJob[]bắt buộc

      Unclaimed jobs; auto placement has no builder assignment until it is claimed.

      BuilderJob[]
      • builder_idstring | null (uuid)
      • cancel_requestedbooleanbắt buộc
      • created_atstring (date-time)bắt buộc
      • deployment_idstring (uuid)bắt buộc
      • disconnect_retriesinteger (int32)bắt buộc
      • finished_atstring | null (date-time)
      • idstring (uuid)bắt buộc
      • service_idstring (uuid)bắt buộc
      • service_namestringbắt buộc
      • started_atstring | null (date-time)
      • statusstringbắt buộc

Create a builder with no workloads; assigning a workload later also makes it a deploy target. Installer uses --builder --no-edge

POST/api/v1/builders

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

CreateBuilder

  • descriptionstring | null
  • namestringbắt buộc

Phản hồi

  • 201 Create a builder with no workloads; assigning a workload later also makes it a deploy target. Installer uses --builder --no-edgeCreatedBuilder
    • expires_atstring (date-time)bắt buộc
    • join_commandstringbắt buộc
    • join_tokenstringbắt buộc
    • serverBuilderViewbắt buộc
      BuilderView
      • active_jobsinteger (int64)bắt buộc
      • archstring | null
      • buildxbooleanbắt buộc
      • cache_bytesinteger (int64)bắt buộc

        Last reported cache catalog, also available while the builder is offline.

      • cache_limit_bytesinteger (int64)bắt buộc
      • descriptionstringbắt buộc
      • drainingbooleanbắt buộc
      • enabledbooleanbắt buộc
      • idstring (uuid)bắt buộc
      • last_seenstring | null (date-time)
      • max_jobsinteger (int32)bắt buộc
      • namestringbắt buộc
      • nixpacksbooleanbắt buộc
      • onlinebooleanbắt buộc
      • pausedbooleanbắt buộc
      • queued_jobsinteger (int64)bắt buộc

        Queued jobs explicitly targeting this builder. Auto jobs are not reserved yet.

      • versionstring | null

Configure builder mode on an existing remote server; max_jobs is 1 to 32, cache_limit_bytes is non-negative

PATCH/api/v1/builders/{id}

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

UpdateBuilder

  • cache_limit_bytesinteger | null (int64)
  • drainingboolean | null
  • enabledboolean | null
  • max_jobsinteger | null (int32)
  • pausedboolean | null

Phản hồi

  • 200 Configure builder mode on an existing remote server; max_jobs is 1 to 32, cache_limit_bytes is non-negativeBuilderView
    • active_jobsinteger (int64)bắt buộc
    • archstring | null
    • buildxbooleanbắt buộc
    • cache_bytesinteger (int64)bắt buộc

      Last reported cache catalog, also available while the builder is offline.

    • cache_limit_bytesinteger (int64)bắt buộc
    • descriptionstringbắt buộc
    • drainingbooleanbắt buộc
    • enabledbooleanbắt buộc
    • idstring (uuid)bắt buộc
    • last_seenstring | null (date-time)
    • max_jobsinteger (int32)bắt buộc
    • namestringbắt buộc
    • nixpacksbooleanbắt buộc
    • onlinebooleanbắt buộc
    • pausedbooleanbắt buộc
    • queued_jobsinteger (int64)bắt buộc

      Queued jobs explicitly targeting this builder. Auto jobs are not reserved yet.

    • versionstring | null

List the last reported builder cache catalog, including while offline

GET/api/v1/builders/{id}/cache

Phản hồi

  • 200 List the last reported builder cache catalog, including while offlineBuilderCacheEntry[]
    • cache_keystringbắt buộc
    • created_atstring (date-time)bắt buộc
    • last_used_atstring (date-time)bắt buộc
    • service_idstring (uuid)bắt buộc
    • service_namestringbắt buộc
    • size_bytesinteger (int64)bắt buộc

Clear builder caches. Query: service_id (optional UUID), key (optional); no filters clears all inactive caches. Builder must be connected

DELETE/api/v1/builders/{id}/cache

Phản hồi

  • 200 Clear builder caches. Query: service_id (optional UUID), key (optional); no filters clears all inactive caches. Builder must be connectedBuilderCachePruned
    • entriesBuilderCacheEntry[]bắt buộc
      BuilderCacheEntry[]
      • cache_keystringbắt buộc
      • created_atstring (date-time)bắt buộc
      • last_used_atstring (date-time)bắt buộc
      • service_idstring (uuid)bắt buộc
      • service_namestringbắt buộc
      • size_bytesinteger (int64)bắt buộc
    • reclaimed_bytesinteger (int64)bắt buộc
    • remaining_bytesinteger (int64)bắt buộc

Evict builder caches by LRU down to its configured limit; active service caches are protected

POST/api/v1/builders/{id}/cache/prune

Phản hồi

  • 200 Evict builder caches by LRU down to its configured limit; active service caches are protectedBuilderCachePruned
    • entriesBuilderCacheEntry[]bắt buộc
      BuilderCacheEntry[]
      • cache_keystringbắt buộc
      • created_atstring (date-time)bắt buộc
      • last_used_atstring (date-time)bắt buộc
      • service_idstring (uuid)bắt buộc
      • service_namestringbắt buộc
      • size_bytesinteger (int64)bắt buộc
    • reclaimed_bytesinteger (int64)bắt buộc
    • remaining_bytesinteger (int64)bắt buộc

List running and recent builder jobs (up to 100), including jobs waiting for this selected builder

GET/api/v1/builders/{id}/jobs

Phản hồi

  • 200 List running and recent builder jobs (up to 100), including jobs waiting for this selected builderBuilderJob[]
    • builder_idstring | null (uuid)
    • cancel_requestedbooleanbắt buộc
    • created_atstring (date-time)bắt buộc
    • deployment_idstring (uuid)bắt buộc
    • disconnect_retriesinteger (int32)bắt buộc
    • finished_atstring | null (date-time)
    • idstring (uuid)bắt buộc
    • service_idstring (uuid)bắt buộc
    • service_namestringbắt buộc
    • started_atstring | null (date-time)
    • statusstringbắt buộc

Delete an environment

DELETE/api/v1/environments/{id}

Phản hồi

  • 204 Delete an environment

List an environment's services

GET/api/v1/environments/{id}/services

Phản hồi

  • 200 List an environment's servicesServiceView[]
    • created_atstring (date-time)bắt buộc
    • environment_idstring (uuid)bắt buộc
    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • namestringbắt buộc
    • server_idstring (uuid)bắt buộc
    • specanybắt buộc
    • statusstringbắt buộc

Create a service

POST/api/v1/environments/{id}/services

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

CreateService

  • kindstringbắt buộc
  • namestringbắt buộc
  • server_idstring (uuid)bắt buộc
  • specany

Phản hồi

  • 201 Create a serviceServiceView
    • created_atstring (date-time)bắt buộc
    • environment_idstring (uuid)bắt buộc
    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • namestringbắt buộc
    • server_idstring (uuid)bắt buộc
    • specanybắt buộc
    • statusstringbắt buộc

List projects

GET/api/v1/projects

Phản hồi

  • 200 List projectsProjectView[]
    • created_atstring (date-time)bắt buộc
    • descriptionstringbắt buộc
    • idstring (uuid)bắt buộc
    • namestringbắt buộc

Create a project

POST/api/v1/projects

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

CreateProject

  • descriptionstring | null
  • namestringbắt buộc

Phản hồi

  • 201 Create a projectProjectView
    • created_atstring (date-time)bắt buộc
    • descriptionstringbắt buộc
    • idstring (uuid)bắt buộc
    • namestringbắt buộc

Get a project

GET/api/v1/projects/{id}

Phản hồi

  • 200 Get a projectProjectView
    • created_atstring (date-time)bắt buộc
    • descriptionstringbắt buộc
    • idstring (uuid)bắt buộc
    • namestringbắt buộc

Rename or describe a project

PATCH/api/v1/projects/{id}

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

CreateProject

  • descriptionstring | null
  • namestringbắt buộc

Phản hồi

  • 200 Rename or describe a projectProjectView
    • created_atstring (date-time)bắt buộc
    • descriptionstringbắt buộc
    • idstring (uuid)bắt buộc
    • namestringbắt buộc

Delete a project and its environments

DELETE/api/v1/projects/{id}

Phản hồi

  • 204 Delete a project and its environments

List a project's environments

GET/api/v1/projects/{id}/environments

Phản hồi

  • 200 List a project's environmentsEnvironmentView[]
    • descriptionstringbắt buộc
    • idstring (uuid)bắt buộc
    • namestringbắt buộc
    • project_idstring (uuid)bắt buộc

Create an environment

POST/api/v1/projects/{id}/environments

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

CreateEnvironment

  • descriptionstring | null
  • namestringbắt buộc

Phản hồi

  • 201 Create an environmentEnvironmentView
    • descriptionstringbắt buộc
    • idstring (uuid)bắt buộc
    • namestringbắt buộc
    • project_idstring (uuid)bắt buộc

List servers

GET/api/v1/servers

Phản hồi

  • 200 List serversServerView[]
    • agent_versionstring | null
    • auto_prunebooleanbắt buộc

      Remove dangling images and build cache once a day.

    • cpu_countinteger | null (int32)
    • created_atstring (date-time)bắt buộc
    • descriptionstringbắt buộc
    • docker_versionstring | null
    • enrolled_atstring | null (date-time)

      When the agent last exchanged a join token for a certificate.

    • hostnamestring | null

      Hostname the agent reported.

    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • last_heartbeat_atstring | null (date-time)
    • last_pruned_atstring | null (date-time)
    • memory_bytesinteger | null (int64)
    • namestringbắt buộc
    • os_infostring | null
    • public_ipstring | null
    • statusstringbắt buộc
    • telemetry_droppedinteger (int64)bắt buộc

      Telemetry items the agent discarded because its buffer was full.

Add a server; remote servers get a one-time join command

POST/api/v1/servers

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

CreateServer

  • descriptionstring | null
  • kindstringbắt buộc
  • namestringbắt buộc
  • public_ipstring | null

Phản hồi

  • 201 Add a server; remote servers get a one-time join commandCreatedServer
    • agent_versionstring | null
    • auto_prunebooleanbắt buộc

      Remove dangling images and build cache once a day.

    • cpu_countinteger | null (int32)
    • created_atstring (date-time)bắt buộc
    • descriptionstringbắt buộc
    • docker_versionstring | null
    • enrolled_atstring | null (date-time)

      When the agent last exchanged a join token for a certificate.

    • hostnamestring | null

      Hostname the agent reported.

    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • last_heartbeat_atstring | null (date-time)
    • last_pruned_atstring | null (date-time)
    • memory_bytesinteger | null (int64)
    • namestringbắt buộc
    • os_infostring | null
    • public_ipstring | null
    • statusstringbắt buộc
    • telemetry_droppedinteger (int64)bắt buộc

      Telemetry items the agent discarded because its buffer was full.

    • join_commandstring | null
    • join_tokenstring | null

Update a server's name, description, IP, or auto-prune

PATCH/api/v1/servers/{id}

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

UpdateServer

  • auto_pruneboolean | null

    Prune dangling images and build cache once a day.

  • descriptionstring | null
  • namestring | null
  • public_ipstring | null

Phản hồi

  • 200 Update a server's name, description, IP, or auto-pruneServerView
    • agent_versionstring | null
    • auto_prunebooleanbắt buộc

      Remove dangling images and build cache once a day.

    • cpu_countinteger | null (int32)
    • created_atstring (date-time)bắt buộc
    • descriptionstringbắt buộc
    • docker_versionstring | null
    • enrolled_atstring | null (date-time)

      When the agent last exchanged a join token for a certificate.

    • hostnamestring | null

      Hostname the agent reported.

    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • last_heartbeat_atstring | null (date-time)
    • last_pruned_atstring | null (date-time)
    • memory_bytesinteger | null (int64)
    • namestringbắt buộc
    • os_infostring | null
    • public_ipstring | null
    • statusstringbắt buộc
    • telemetry_droppedinteger (int64)bắt buộc

      Telemetry items the agent discarded because its buffer was full.

Delete a server and revoke its agent certificate

DELETE/api/v1/servers/{id}

Phản hồi

  • 204 Delete a server and revoke its agent certificate

Issue a new join token for a remote server (valid for one hour)

POST/api/v1/servers/{id}/join-token

Phản hồi

  • 200 Issue a new join token for a remote server (valid for one hour)JoinToken
    • expires_atstring (date-time)bắt buộc
    • join_commandstringbắt buộc
    • join_tokenstringbắt buộc

Refresh Docker and OS facts for a server

POST/api/v1/servers/{id}/probe

Phản hồi

  • 200 Refresh Docker and OS facts for a serverServerView
    • agent_versionstring | null
    • auto_prunebooleanbắt buộc

      Remove dangling images and build cache once a day.

    • cpu_countinteger | null (int32)
    • created_atstring (date-time)bắt buộc
    • descriptionstringbắt buộc
    • docker_versionstring | null
    • enrolled_atstring | null (date-time)

      When the agent last exchanged a join token for a certificate.

    • hostnamestring | null

      Hostname the agent reported.

    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • last_heartbeat_atstring | null (date-time)
    • last_pruned_atstring | null (date-time)
    • memory_bytesinteger | null (int64)
    • namestringbắt buộc
    • os_infostring | null
    • public_ipstring | null
    • statusstringbắt buộc
    • telemetry_droppedinteger (int64)bắt buộc

      Telemetry items the agent discarded because its buffer was full.

All services with their project and environment

GET/api/v1/services

Phản hồi

  • 200 All services with their project and environmentServiceSummary[]
    • environment_idstring (uuid)bắt buộc
    • environment_namestringbắt buộc
    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • namestringbắt buộc
    • project_idstring (uuid)bắt buộc
    • project_namestringbắt buộc
    • server_idstring (uuid)bắt buộc
    • statusstringbắt buộc

Get a service

GET/api/v1/services/{id}

Phản hồi

  • 200 Get a serviceServiceView
    • created_atstring (date-time)bắt buộc
    • environment_idstring (uuid)bắt buộc
    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • namestringbắt buộc
    • server_idstring (uuid)bắt buộc
    • specanybắt buộc
    • statusstringbắt buộc

Update a service

PATCH/api/v1/services/{id}

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

UpdateService

  • server_idstring | null (uuid)
  • specany

Phản hồi

  • 200 Update a serviceServiceView
    • created_atstring (date-time)bắt buộc
    • environment_idstring (uuid)bắt buộc
    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • namestringbắt buộc
    • server_idstring (uuid)bắt buộc
    • specanybắt buộc
    • statusstringbắt buộc

Delete a service and its containers

DELETE/api/v1/services/{id}

Phản hồi

  • 204 Delete a service and its containers

List environment variables; secret values are masked

GET/api/v1/services/{id}/env

Phản hồi

  • 200 List environment variables; secret values are maskedEnvVarView[]
    • is_build_secretbooleanbắt buộc
    • keystringbắt buộc
    • lengthinteger (int32)bắt buộc

      Characters in the saved value, so a typo or a truncated paste shows without revealing it.

    • updated_atstring (date-time)bắt buộc

      When the value was last written.

Set an environment variable

PUT/api/v1/services/{id}/env

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

PutEnvVar

  • is_build_secretbooleanbắt buộc
  • keystringbắt buộc
  • valuestringbắt buộc

Phản hồi

  • 204 Set an environment variable

Preview or save many variables from the text of a .env file

POST/api/v1/services/{id}/env/import

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

ImportEnv

  • dry_runboolean

    Only report what would change; save nothing.

  • is_build_secretboolean
  • textstringbắt buộc

    The text of a .env file: KEY=value lines, # comments, quotes.

Phản hồi

  • 200 Preview or save many variables from the text of a .env fileImportEnvResult
    • appliedbooleanbắt buộc

      The values were saved. False for a dry run or when the text has errors.

    • entriesImportEnvEntry[]bắt buộc
      ImportEnvEntry[]
      • keystringbắt buộc
      • lengthinteger (int32)bắt buộc
      • statusstringbắt buộc

        new, changed, or unchanged compared with what is saved.

    • errorsImportEnvError[]bắt buộc
      ImportEnvError[]
      • lineinteger (int32)bắt buộc
      • messagestringbắt buộc

Delete an environment variable

DELETE/api/v1/services/{id}/env/{key}

Phản hồi

  • 204 Delete an environment variable

Check a typed value against the saved one without revealing it

POST/api/v1/services/{id}/env/{key}/verify

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

VerifyEnvVar

  • is_build_secretboolean
  • valuestringbắt buộc

Phản hồi

  • 200 Check a typed value against the saved one without revealing itVerifyEnvResult
    • matchesbooleanbắt buộc

      The value typed matches the saved one exactly.

Agent binaries and checksums

GET/downloads/{file}

Phản hồi

  • 200 Agent binaries and checksums

Agent install script (text/x-shellscript)

GET/install-agent.sh

Phản hồi

  • 200 Agent install script (text/x-shellscript)