Skip to content
Dymini Panel
v0.13.0
Menu
You are reading the docs of v0.13.0.Go to the latest version

Catalog

On this page

Servers, projects, environments, and services

Delete an environment

DELETE/api/v1/environments/{id}

Responses

  • 204 Delete an environment

List an environment's services

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

Responses

  • 200 List an environment's servicesServiceView[]
    • created_atstring (date-time)required
    • environment_idstring (uuid)required
    • idstring (uuid)required
    • kindstringrequired
    • namestringrequired
    • server_idstring (uuid)required
    • specanyrequired
    • statusstringrequired

Create a service

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

Request bodyapplication/json

CreateService

  • kindstringrequired
  • namestringrequired
  • server_idstring (uuid)required
  • specany

Responses

  • 201 Create a serviceServiceView
    • created_atstring (date-time)required
    • environment_idstring (uuid)required
    • idstring (uuid)required
    • kindstringrequired
    • namestringrequired
    • server_idstring (uuid)required
    • specanyrequired
    • statusstringrequired

List projects

GET/api/v1/projects

Responses

  • 200 List projectsProjectView[]
    • created_atstring (date-time)required
    • descriptionstringrequired
    • idstring (uuid)required
    • namestringrequired

Create a project

POST/api/v1/projects

Request bodyapplication/json

CreateProject

  • descriptionstring | null
  • namestringrequired

Responses

  • 201 Create a projectProjectView
    • created_atstring (date-time)required
    • descriptionstringrequired
    • idstring (uuid)required
    • namestringrequired

Get a project

GET/api/v1/projects/{id}

Responses

  • 200 Get a projectProjectView
    • created_atstring (date-time)required
    • descriptionstringrequired
    • idstring (uuid)required
    • namestringrequired

Rename or describe a project

PATCH/api/v1/projects/{id}

Request bodyapplication/json

CreateProject

  • descriptionstring | null
  • namestringrequired

Responses

  • 200 Rename or describe a projectProjectView
    • created_atstring (date-time)required
    • descriptionstringrequired
    • idstring (uuid)required
    • namestringrequired

Delete a project and its environments

DELETE/api/v1/projects/{id}

Responses

  • 204 Delete a project and its environments

List a project's environments

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

Responses

  • 200 List a project's environmentsEnvironmentView[]
    • descriptionstringrequired
    • idstring (uuid)required
    • namestringrequired
    • project_idstring (uuid)required

Create an environment

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

Request bodyapplication/json

CreateEnvironment

  • descriptionstring | null
  • namestringrequired

Responses

  • 201 Create an environmentEnvironmentView
    • descriptionstringrequired
    • idstring (uuid)required
    • namestringrequired
    • project_idstring (uuid)required

List servers

GET/api/v1/servers

Responses

  • 200 List serversServerView[]
    • agent_versionstring | null
    • auto_prunebooleanrequired

      Remove dangling images and build cache once a day.

    • cpu_countinteger | null (int32)
    • created_atstring (date-time)required
    • descriptionstringrequired
    • 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)required
    • kindstringrequired
    • last_heartbeat_atstring | null (date-time)
    • last_pruned_atstring | null (date-time)
    • memory_bytesinteger | null (int64)
    • namestringrequired
    • os_infostring | null
    • public_ipstring | null
    • statusstringrequired
    • telemetry_droppedinteger (int64)required

      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

Request bodyapplication/json

CreateServer

  • descriptionstring | null
  • kindstringrequired
  • namestringrequired
  • public_ipstring | null

Responses

  • 201 Add a server; remote servers get a one-time join commandCreatedServer
    • agent_versionstring | null
    • auto_prunebooleanrequired

      Remove dangling images and build cache once a day.

    • cpu_countinteger | null (int32)
    • created_atstring (date-time)required
    • descriptionstringrequired
    • 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)required
    • kindstringrequired
    • last_heartbeat_atstring | null (date-time)
    • last_pruned_atstring | null (date-time)
    • memory_bytesinteger | null (int64)
    • namestringrequired
    • os_infostring | null
    • public_ipstring | null
    • statusstringrequired
    • telemetry_droppedinteger (int64)required

      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}

Request bodyapplication/json

UpdateServer

  • auto_pruneboolean | null

    Prune dangling images and build cache once a day.

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

Responses

  • 200 Update a server's name, description, IP, or auto-pruneServerView
    • agent_versionstring | null
    • auto_prunebooleanrequired

      Remove dangling images and build cache once a day.

    • cpu_countinteger | null (int32)
    • created_atstring (date-time)required
    • descriptionstringrequired
    • 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)required
    • kindstringrequired
    • last_heartbeat_atstring | null (date-time)
    • last_pruned_atstring | null (date-time)
    • memory_bytesinteger | null (int64)
    • namestringrequired
    • os_infostring | null
    • public_ipstring | null
    • statusstringrequired
    • telemetry_droppedinteger (int64)required

      Telemetry items the agent discarded because its buffer was full.

Delete a server and revoke its agent certificate

DELETE/api/v1/servers/{id}

Responses

  • 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

Responses

  • 200 Issue a new join token for a remote server (valid for one hour)JoinToken
    • expires_atstring (date-time)required
    • join_commandstringrequired
    • join_tokenstringrequired

Refresh Docker and OS facts for a server

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

Responses

  • 200 Refresh Docker and OS facts for a serverServerView
    • agent_versionstring | null
    • auto_prunebooleanrequired

      Remove dangling images and build cache once a day.

    • cpu_countinteger | null (int32)
    • created_atstring (date-time)required
    • descriptionstringrequired
    • 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)required
    • kindstringrequired
    • last_heartbeat_atstring | null (date-time)
    • last_pruned_atstring | null (date-time)
    • memory_bytesinteger | null (int64)
    • namestringrequired
    • os_infostring | null
    • public_ipstring | null
    • statusstringrequired
    • telemetry_droppedinteger (int64)required

      Telemetry items the agent discarded because its buffer was full.

All services with their project and environment

GET/api/v1/services

Responses

  • 200 All services with their project and environmentServiceSummary[]
    • environment_idstring (uuid)required
    • environment_namestringrequired
    • idstring (uuid)required
    • kindstringrequired
    • namestringrequired
    • project_idstring (uuid)required
    • project_namestringrequired
    • server_idstring (uuid)required
    • statusstringrequired

Get a service

GET/api/v1/services/{id}

Responses

  • 200 Get a serviceServiceView
    • created_atstring (date-time)required
    • environment_idstring (uuid)required
    • idstring (uuid)required
    • kindstringrequired
    • namestringrequired
    • server_idstring (uuid)required
    • specanyrequired
    • statusstringrequired

Update a service

PATCH/api/v1/services/{id}

Request bodyapplication/json

UpdateService

  • server_idstring | null (uuid)
  • specany

Responses

  • 200 Update a serviceServiceView
    • created_atstring (date-time)required
    • environment_idstring (uuid)required
    • idstring (uuid)required
    • kindstringrequired
    • namestringrequired
    • server_idstring (uuid)required
    • specanyrequired
    • statusstringrequired

Delete a service and its containers

DELETE/api/v1/services/{id}

Responses

  • 204 Delete a service and its containers

List environment variables; secret values are masked

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

Responses

  • 200 List environment variables; secret values are maskedEnvVarView[]
    • is_build_secretbooleanrequired
    • keystringrequired
    • lengthinteger (int32)required

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

    • updated_atstring (date-time)required

      When the value was last written.

Set an environment variable

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

Request bodyapplication/json

PutEnvVar

  • is_build_secretbooleanrequired
  • keystringrequired
  • valuestringrequired

Responses

  • 204 Set an environment variable

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

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

Request bodyapplication/json

ImportEnv

  • dry_runboolean

    Only report what would change; save nothing.

  • is_build_secretboolean
  • textstringrequired

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

Responses

  • 200 Preview or save many variables from the text of a .env fileImportEnvResult
    • appliedbooleanrequired

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

    • entriesImportEnvEntry[]required
      ImportEnvEntry[]
      • keystringrequired
      • lengthinteger (int32)required
      • statusstringrequired

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

    • errorsImportEnvError[]required
      ImportEnvError[]
      • lineinteger (int32)required
      • messagestringrequired

Delete an environment variable

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

Responses

  • 204 Delete an environment variable

Check a typed value against the saved one without revealing it

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

Request bodyapplication/json

VerifyEnvVar

  • is_build_secretboolean
  • valuestringrequired

Responses

  • 200 Check a typed value against the saved one without revealing itVerifyEnvResult
    • matchesbooleanrequired

      The value typed matches the saved one exactly.

Agent binaries and checksums

GET/downloads/{file}

Responses

  • 200 Agent binaries and checksums

Agent install script (text/x-shellscript)

GET/install-agent.sh

Responses

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