Bỏ qua, tới nội dung
Dymini Panel
v0.16.0-main.8d0b6a9
Mục lục
Đây là tài liệu của bản thử nghiệm (v0.16.0-main.8d0b6a9).Xem bản mới nhất

Source

Trong trang này

Git providers, webhooks, and builds

Cancel a queued or running build

POST/api/v1/build-queue/{id}/cancel

Phản hồi

  • 204 Cancel a queued or running build

List Git providers without secrets

GET/api/v1/git-providers

Phản hồi

  • 200 List Git providers without secretsGitProviderView[]
    • accountstring | null

      GitHub account that installed the app.

    • app_slugstring | null

      Slug of a GitHub App created from the panel.

    • created_atstring (date-time)bắt buộc
    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • namestringbắt buộc
    • statusstringbắt buộc

      ready, or pending_install for a GitHub App that is not installed yet.

Save a git provider

POST/api/v1/git-providers

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

CreateGitProvider

  • app_idstring | null
  • installation_idstring | null
  • kindstringbắt buộc
  • namestringbắt buộc
  • private_key_pemstring | null
  • tokenstring | null

Phản hồi

  • 201 Save a git providerGitProviderView
    • accountstring | null

      GitHub account that installed the app.

    • app_slugstring | null

      Slug of a GitHub App created from the panel.

    • created_atstring (date-time)bắt buộc
    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • namestringbắt buộc
    • statusstringbắt buộc

      ready, or pending_install for a GitHub App that is not installed yet.

Delete a Git provider

DELETE/api/v1/git-providers/{id}

Phản hồi

  • 204 Delete a Git provider

Branches of a repository the GitHub App can read (?repo=), default branch first

GET/api/v1/git-providers/{id}/branches

Phản hồi

  • 200 Branches of a repository the GitHub App can read (?repo=), default branch firstGithubBranchesView
    • branchesstring[]bắt buộc
    • default_branchstringbắt buộc

Compose files found in a repository branch (?repo=&branch=)

GET/api/v1/git-providers/{id}/compose-files

Phản hồi

  • 200 Compose files found in a repository branch (?repo=&branch=)GithubComposeFilesView
    • filesstring[]bắt buộc

      Paths of compose files in the repository, shortest first.

A fresh GitHub link to install or reconfigure the app (admin, write)

POST/api/v1/git-providers/{id}/install-link

Phản hồi

  • 200 A fresh GitHub link to install or reconfigure the app (admin, write)InstallLink
    • install_urlstringbắt buộc

Repositories the GitHub App installation can read

GET/api/v1/git-providers/{id}/repositories

Phản hồi

  • 200 Repositories the GitHub App installation can readGithubRepoView[]
    • default_branchstringbắt buộc
    • full_namestringbắt buộc

      owner/name.

    • privatebooleanbắt buộc
    • urlstringbắt buộc

      HTTPS clone address to use as the repository.

Accept push events from a GitHub App and build the services that use the repository

POST/api/v1/git-providers/{id}/webhook

Phản hồi

  • 202 Accept push events from a GitHub App and build the services that use the repository

Exchange the code GitHub returned for the new app and save it as a provider (admin, write)

POST/api/v1/github-app/complete

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

CompleteGithubApp

  • codestringbắt buộc
  • statestringbắt buộc

Phản hồi

  • 201 Exchange the code GitHub returned for the new app and save it as a provider (admin, write)GithubAppCreated
    • install_urlstringbắt buộc

      Send the browser here to install the new app.

    • providerGitProviderViewbắt buộc
      GitProviderView
      • accountstring | null

        GitHub account that installed the app.

      • app_slugstring | null

        Slug of a GitHub App created from the panel.

      • created_atstring (date-time)bắt buộc
      • idstring (uuid)bắt buộc
      • kindstringbắt buộc
      • namestringbắt buộc
      • statusstringbắt buộc

        ready, or pending_install for a GitHub App that is not installed yet.

Record the installation GitHub reported for an app created here (admin, write)

POST/api/v1/github-app/installed

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

GithubAppInstalled

  • installation_idstringbắt buộc
  • statestring | null

    From the install link. Without it, the panel looks for the pending app the installation belongs to.

Phản hồi

  • 200 Record the installation GitHub reported for an app created here (admin, write)GitProviderView
    • accountstring | null

      GitHub account that installed the app.

    • app_slugstring | null

      Slug of a GitHub App created from the panel.

    • created_atstring (date-time)bắt buộc
    • idstring (uuid)bắt buộc
    • kindstringbắt buộc
    • namestringbắt buộc
    • statusstringbắt buộc

      ready, or pending_install for a GitHub App that is not installed yet.

Start creating a GitHub App: the manifest and the github.com form address (admin, write)

POST/api/v1/github-app/manifest

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

StartGithubApp

  • namestring | null

    Name of the app. Defaults to Dymini-Panel- and four random characters.

  • organizationstring | null

    Create the app under this organization instead of your own account.

Phản hồi

  • 200 Start creating a GitHub App: the manifest and the github.com form address (admin, write)GithubAppManifest
    • action_urlstringbắt buộc

      Where the browser POSTs the manifest. It already carries the state.

    • manifeststringbắt buộc

      The manifest as JSON text, for a form field named manifest.

    • webhookbooleanbắt buộc

      False when the panel's address is private, so GitHub cannot deliver pushes.

Dymini Panel Image dashboard: setup status, push and build statistics, per-service usage, recent pushes, and signed-in CLI clients

GET/api/v1/image-store/overview

Phản hồi

  • 200 Dymini Panel Image dashboard: setup status, push and build statistics, per-service usage, recent pushes, and signed-in CLI clientsImageStoreOverview
    • buildsBuildTotalsbắt buộc
      BuildTotals
      • builds_30dinteger (int64)bắt buộc

        Builds the panel ran from Git in the last 30 days.

      • failed_30dinteger (int64)bắt buộc
      • image_deploy_failures_30dinteger (int64)bắt buộc
      • image_deploys_30dinteger (int64)bắt buộc

        Deployments rolled out from a Dymini Panel Image in the last 30 days.

      • queuedinteger (int64)bắt buộc
      • runninginteger (int64)bắt buộc
      • succeeded_30dinteger (int64)bắt buộc
    • clientsImageClient[]bắt buộc
      ImageClient[]
      • auth_methodstringbắt buộc

        browser or device_code.

      • created_atstring (date-time)bắt buộc
      • expires_atstring | null (date-time)
      • idstring (uuid)bắt buộc
      • last_used_atstring | null (date-time)
      • namestringbắt buộc
      • scopesstring[]bắt buộc
      • user_emailstringbắt buộc
    • dailyImageDay[]bắt buộc
      ImageDay[]
      • buildsinteger (int64)bắt buộc
      • bytesinteger (int64)bắt buộc
      • daystring (date)bắt buộc
      • failed_buildsinteger (int64)bắt buộc
      • image_deploysinteger (int64)bắt buộc
      • pushesinteger (int64)bắt buộc
    • destinationImageStoreDestination | null
      ImageStoreDestination | null

      Một trong:

      • ImageStoreDestination
        • bucketstringbắt buộc
        • endpointstring | null
        • idstring (uuid)bắt buộc
        • namestringbắt buộc
        • regionstringbắt buộc
      • null
    • recent_pushesRecentImagePush[]bắt buộc
      RecentImagePush[]
      • compressionstringbắt buộc
      • created_atstring (date-time)bắt buộc
      • git_shastring | null
      • idstring (uuid)bắt buộc
      • pathstringbắt buộc
      • pushed_bystring | null
      • r2_presentbooleanbắt buộc
      • service_idstring (uuid)bắt buộc
      • size_bytesinteger (int64)bắt buộc
      • tagstringbắt buộc
    • servicesImageServiceStat[]bắt buộc
      ImageServiceStat[]
      • auto_deploybooleanbắt buộc
      • imagesinteger (int64)bắt buộc
      • last_push_atstring | null (date-time)
      • last_tagstring | null
      • pathstringbắt buộc

        project/environment/service.

      • r2_bytesinteger (int64)bắt buộc
      • r2_imagesinteger (int64)bắt buộc
      • service_idstring (uuid)bắt buộc
    • settingsImageStoreSettingsViewbắt buộc
      ImageStoreSettingsView
      • bucketstring | null
      • destination_idstring | null (uuid)
      • destination_namestring | null
      • path_prefixstringbắt buộc
      • r2_keep_countinteger | null (int32)
      • r2_keep_daysinteger | null (int32)
      • updated_atstring (date-time)bắt buộc
    • setupImageSetupStep[]bắt buộc
      ImageSetupStep[]
      • detailstringbắt buộc
      • keystringbắt buộc

        bucket, retention, client, first_push, or auto_deploy.

      • statestringbắt buộc

        ok, todo, or optional (not done, but nothing is broken).

    • totalsImageTotalsbắt buộc
      ImageTotals
      • imagesinteger (int64)bắt buộc

        Versions on record, on R2 or already pruned.

      • pruned_imagesinteger (int64)bắt buộc

        Versions pruned from the bucket by retention.

      • pushed_bytes_30dinteger (int64)bắt buộc
      • pushes_24hinteger (int64)bắt buộc
      • pushes_30dinteger (int64)bắt buộc
      • pushes_7dinteger (int64)bắt buộc
      • r2_bytesinteger (int64)bắt buộc

        Bytes the bucket holds for Dymini Panel Images.

      • r2_imagesinteger (int64)bắt buộc

        Versions that can still be deployed from the bucket.

      • servicesinteger (int64)bắt buộc

Dymini Panel Image store settings (Cloudflare R2 / S3 destination and default retention)

GET/api/v1/image-store/settings

Phản hồi

  • 200 Dymini Panel Image store settings (Cloudflare R2 / S3 destination and default retention)ImageStoreSettingsView
    • bucketstring | null
    • destination_idstring | null (uuid)
    • destination_namestring | null
    • path_prefixstringbắt buộc
    • r2_keep_countinteger | null (int32)
    • r2_keep_daysinteger | null (int32)
    • updated_atstring (date-time)bắt buộc

Configure the Cloudflare R2 / S3 destination and default retention for Dymini Panel Images

PUT/api/v1/image-store/settings

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

UpdateImageStoreSettings

  • destination_idstring | null (uuid)
  • path_prefixstring | null
  • r2_keep_countinteger | null (int32)
  • r2_keep_daysinteger | null (int32)

Phản hồi

  • 200 Configure the Cloudflare R2 / S3 destination and default retention for Dymini Panel ImagesImageStoreSettingsView
    • bucketstring | null
    • destination_idstring | null (uuid)
    • destination_namestring | null
    • path_prefixstringbắt buộc
    • r2_keep_countinteger | null (int32)
    • r2_keep_daysinteger | null (int32)
    • updated_atstring (date-time)bắt buộc

Check the Dymini Panel Image bucket by writing, reading, and deleting a probe object

POST/api/v1/image-store/test

Phản hồi

  • 200 Check the Dymini Panel Image bucket by writing, reading, and deleting a probe objectTestResult
    • messagestringbắt buộc
    • okbooleanbắt buộc

Queue a git build

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

Phản hồi

  • 202 Queue a git buildBuildAccepted
    • deployment_idstring (uuid)bắt buộc
    • queue_idstring (uuid)bắt buộc

List a service's builds

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

Phản hồi

  • 200 List a service's buildsBuildQueueView[]
    • cancel_requestedbooleanbắt buộc
    • created_atstring (date-time)bắt buộc
    • deployment_idstring (uuid)bắt buộc
    • idstring (uuid)bắt buộc
    • statusstringbắt buộc

Get a service's Dymini Panel Image auto-deploy and R2 retention policy

GET/api/v1/services/{id}/image-policy

Phản hồi

  • 200 Get a service's Dymini Panel Image auto-deploy and R2 retention policyServiceImagePolicyView
    • image_auto_deploybooleanbắt buộc
    • image_r2_keep_countinteger | null (int32)
    • image_r2_keep_daysinteger | null (int32)
    • service_idstring (uuid)bắt buộc

Set whether pushed Dymini Panel Images deploy immediately or notify only, plus R2 retention

PUT/api/v1/services/{id}/image-policy

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

UpdateServiceImagePolicy

  • image_auto_deploybooleanbắt buộc
  • image_r2_keep_countinteger | null (int32)
  • image_r2_keep_daysinteger | null (int32)

Phản hồi

  • 200 Set whether pushed Dymini Panel Images deploy immediately or notify only, plus R2 retentionServiceImagePolicyView
    • image_auto_deploybooleanbắt buộc
    • image_r2_keep_countinteger | null (int32)
    • image_r2_keep_daysinteger | null (int32)
    • service_idstring (uuid)bắt buộc

List Dymini Panel Image versions pushed for a service and their Cloudflare R2 presence

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

Phản hồi

  • 200 List Dymini Panel Image versions pushed for a service and their Cloudflare R2 presenceDyminiPanelImageView[]
    • compressionstringbắt buộc
    • created_atstring (date-time)bắt buộc
    • destination_idstring | null (uuid)
    • git_shastring | null
    • idstring (uuid)bắt buộc
    • image_refstringbắt buộc
    • object_keystringbắt buộc
    • pushed_bystring | null (uuid)
    • r2_presentbooleanbắt buộc
    • service_idstring (uuid)bắt buộc
    • sha256stringbắt buộc
    • size_bytesinteger (int64)bắt buộc
    • tagstringbắt buộc

Push a locally built Docker image archive to Cloudflare R2, prune old R2 objects, and optionally deploy

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

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

PushImageRequest

  • archive_base64string | null
  • compressionstring | null
  • deployboolean | null
  • expected_sha256string | null
  • git_shastring | null
  • image_refstring | null
  • r2_keep_countinteger | null (int32)
  • tagstringbắt buộc

Phản hồi

  • 201 Push a locally built Docker image archive to Cloudflare R2, prune old R2 objects, and optionally deployPushedImageResponse
    • auto_deploybooleanbắt buộc
    • deploy_errorstring | null
    • deployedbooleanbắt buộc
    • deploymentDeploymentView | null
      DeploymentView | null

      Một trong:

      • DeploymentView
        • created_atstring (date-time)bắt buộc
        • errorstring | null
        • finished_atstring | null (date-time)
        • idstring (uuid)bắt buộc
        • image_refstring | null
        • logsstringbắt buộc

          The end of the log (at most 200 000 characters); see logs_truncated.

        • logs_truncatedbooleanbắt buộc

          The log is longer than logs; the whole text is at /api/v1/services/{id}/deployments/{deployment}/logs.

        • service_idstring (uuid)bắt buộc
        • started_atstring | null (date-time)
        • statusstringbắt buộc
        • triggerstringbắt buộc
      • null
    • imageDyminiPanelImageViewbắt buộc
      DyminiPanelImageView
      • compressionstringbắt buộc
      • created_atstring (date-time)bắt buộc
      • destination_idstring | null (uuid)
      • git_shastring | null
      • idstring (uuid)bắt buộc
      • image_refstringbắt buộc
      • object_keystringbắt buộc
      • pushed_bystring | null (uuid)
      • r2_presentbooleanbắt buộc
      • service_idstring (uuid)bắt buộc
      • sha256stringbắt buộc
      • size_bytesinteger (int64)bắt buộc
      • tagstringbắt buộc
    • pruned_tagsstring[]bắt buộc

Deploy the latest or specified Dymini Panel Image stored in Cloudflare R2

POST/api/v1/services/{id}/images/deploy

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

DeployDyminiPanelImageRequest

  • image_idstring | null (uuid)
  • tagstring | null

Phản hồi

  • 202 Deploy the latest or specified Dymini Panel Image stored in Cloudflare R2DeploymentView
    • created_atstring (date-time)bắt buộc
    • errorstring | null
    • finished_atstring | null (date-time)
    • idstring (uuid)bắt buộc
    • image_refstring | null
    • logsstringbắt buộc

      The end of the log (at most 200 000 characters); see logs_truncated.

    • logs_truncatedbooleanbắt buộc

      The log is longer than logs; the whole text is at /api/v1/services/{id}/deployments/{deployment}/logs.

    • service_idstring (uuid)bắt buộc
    • started_atstring | null (date-time)
    • statusstringbắt buộc
    • triggerstringbắt buộc

Delete a Dymini Panel Image from Cloudflare R2 and/or version history

DELETE/api/v1/services/{id}/images/{image_id}

Phản hồi

  • 204 Delete a Dymini Panel Image from Cloudflare R2 and/or version history

Deploy a specific Dymini Panel Image version from Cloudflare R2

POST/api/v1/services/{id}/images/{image_id}/deploy

Phản hồi

  • 202 Deploy a specific Dymini Panel Image version from Cloudflare R2DeploymentView
    • created_atstring (date-time)bắt buộc
    • errorstring | null
    • finished_atstring | null (date-time)
    • idstring (uuid)bắt buộc
    • image_refstring | null
    • logsstringbắt buộc

      The end of the log (at most 200 000 characters); see logs_truncated.

    • logs_truncatedbooleanbắt buộc

      The log is longer than logs; the whole text is at /api/v1/services/{id}/deployments/{deployment}/logs.

    • service_idstring (uuid)bắt buộc
    • started_atstring | null (date-time)
    • statusstringbắt buộc
    • triggerstringbắt buộc

Get a service's Git source

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

Phản hồi

  • 200 Get a service's Git sourceSourceView
    • branchstringbắt buộc
    • buildServiceBuildSettingsbắt buộc
      ServiceBuildSettings
      • builder_idstring | null (uuid)
      • fallbackstring

        panel or wait when no eligible builder is available.

      • placementstring

        panel, auto, or builder (requires builder_id).

      • test_commandstring | null

        Shell command run inside the built image with Docker's default network.

      • timeout_secsinteger (int32)
    • contextstringbắt buộc
    • dockerfilestringbắt buộc
    • has_webhook_secretbooleanbắt buộc
    • preview_pull_requestsbooleanbắt buộc

      Open pull requests against this branch get their own copy of the service.

    • provider_idstring (uuid)bắt buộc
    • public_keystring | null
    • publish_dirstringbắt buộc
    • repostringbắt buộc
    • strategystringbắt buộc
    • webhook_secretstring | null

Set the git source

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

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

UpdateSource

  • branchstringbắt buộc
  • buildServiceBuildSettings | null
    ServiceBuildSettings | null

    Một trong:

    • ServiceBuildSettings
      • builder_idstring | null (uuid)
      • fallbackstring

        panel or wait when no eligible builder is available.

      • placementstring

        panel, auto, or builder (requires builder_id).

      • test_commandstring | null

        Shell command run inside the built image with Docker's default network.

      • timeout_secsinteger (int32)
    • null
  • contextstring | null
  • dockerfilestring | null
  • preview_pull_requestsboolean | null

    Open pull requests against this branch get their own copy of the service.

  • provider_idstring (uuid)bắt buộc
  • publish_dirstring | null
  • repostringbắt buộc
  • strategystringbắt buộc

Phản hồi

  • 200 Set the git sourceSourceView
    • branchstringbắt buộc
    • buildServiceBuildSettingsbắt buộc
      ServiceBuildSettings
      • builder_idstring | null (uuid)
      • fallbackstring

        panel or wait when no eligible builder is available.

      • placementstring

        panel, auto, or builder (requires builder_id).

      • test_commandstring | null

        Shell command run inside the built image with Docker's default network.

      • timeout_secsinteger (int32)
    • contextstringbắt buộc
    • dockerfilestringbắt buộc
    • has_webhook_secretbooleanbắt buộc
    • preview_pull_requestsbooleanbắt buộc

      Open pull requests against this branch get their own copy of the service.

    • provider_idstring (uuid)bắt buộc
    • public_keystring | null
    • publish_dirstringbắt buộc
    • repostringbắt buộc
    • strategystringbắt buộc
    • webhook_secretstring | null

Accept a git push webhook

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

Phản hồi

  • 202 Accept a git push webhook