models

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DatabaseImportSourceUpload = "upload"
	DatabaseImportSourceS3     = "s3"
	DatabaseImportSourceServer = "server"
)

Database import sources accepted by POST .../imports.

View Source
const (
	ResourceStatusRunning = "running"
	ResourceStatusStopped = "stopped"
	ResourceStatusError   = "error"
)

ResourceStatus constants

View Source
const (
	ServerRoleDeployment = "deployment"
	ServerRoleBuild      = "build"
	ServerRoleBoth       = "both"
)

Server roles accepted by the API's server_role field.

View Source
const (
	ServerRegistrySourceAuths       = "auths"
	ServerRegistrySourceCredHelpers = "credHelpers"
)

Registry credential sources reported by the server registries API.

View Source
const (
	ServerRegistryStatusLoggedIn         = "Logged in"
	ServerRegistryStatusCredentialHelper = "Credential helper" //nolint:gosec // G101: status label, not a credential
	ServerRegistryStatusNotLoggedIn      = "Not logged in"
)

Registry login statuses shown in table output.

Variables

View Source
var AuditEventSources = []string{"all", "ui", "api", "mcp", "webhook", "system", "scheduler"}

AuditEventSources lists the accepted values of the audit-events "source" filter.

View Source
var IntegrationTokenProviders = []string{"doppler", "infisical", "vault"}

IntegrationTokenProviders lists the secret manager providers accepted by POST /security/integration-tokens.

ServerRoles lists the valid server_role values.

Functions

func ParseAndFormatLogs

func ParseAndFormatLogs(logsJSON string, showHidden bool) (string, error)

ParseAndFormatLogs parses the JSON logs string and formats it as human-readable text

Types

type AllowRuleRow added in v1.7.0

type AllowRuleRow struct {
	Host      string `json:"host"`
	Namespace string `json:"namespace"`
	ID        string `json:"id"`
	Src       string `json:"src"`
	Dst       string `json:"dst"`
	Proto     string `json:"proto,omitempty"`
	Port      int    `json:"port,omitempty"`
	Comment   string `json:"comment,omitempty"`
}

AllowRuleRow is a table-friendly row for `coolify firewall list`.

type AppDestinationAttachRequest added in v1.7.0

type AppDestinationAttachRequest struct {
	DestinationUUID string `json:"destination_uuid"`
}

type Application

type Application struct {
	// Table-visible fields
	UUID          string  `json:"uuid"`
	Name          string  `json:"name"`
	Description   *string `json:"description,omitempty"`
	Status        string  `json:"status"`
	FQDN          *string `json:"fqdn,omitempty"`
	GitRepository *string `json:"git_repository,omitempty"`
	GitBranch     *string `json:"git_branch,omitempty"`
	BuildPack     *string `json:"build_pack,omitempty"`
	PortsExposes  *string `json:"ports_exposes,omitempty"`

	// Git extended (JSON-only)
	GitCommitSHA *string `json:"git_commit_sha,omitempty" table:"-"`
	GitFullURL   *string `json:"git_full_url,omitempty" table:"-"`

	// Build configuration (JSON-only)
	InstallCommand   *string `json:"install_command,omitempty" table:"-"`
	BuildCommand     *string `json:"build_command,omitempty" table:"-"`
	StartCommand     *string `json:"start_command,omitempty" table:"-"`
	BaseDirectory    *string `json:"base_directory,omitempty" table:"-"`
	PublishDirectory *string `json:"publish_directory,omitempty" table:"-"`
	StaticImage      *string `json:"static_image,omitempty" table:"-"`

	// Docker configuration (JSON-only)
	Dockerfile               *string `json:"dockerfile,omitempty" table:"-"`
	DockerfileLocation       *string `json:"dockerfile_location,omitempty" table:"-"`
	DockerRegistryImageName  *string `json:"docker_registry_image_name,omitempty" table:"-"`
	DockerRegistryImageTag   *string `json:"docker_registry_image_tag,omitempty" table:"-"`
	DockerCompose            *string `json:"docker_compose,omitempty" table:"-"`
	DockerComposeRaw         *string `json:"docker_compose_raw,omitempty" table:"-"`
	DockerComposeLocation    *string `json:"docker_compose_location,omitempty" table:"-"`
	CustomDockerRunOptions   *string `json:"custom_docker_run_options,omitempty" table:"-"`
	CustomLabels             *string `json:"custom_labels,omitempty" table:"-"`
	CustomNginxConfiguration *string `json:"custom_nginx_configuration,omitempty" table:"-"`

	// Networking (JSON-only)
	PortsMappings      *string `json:"ports_mappings,omitempty" table:"-"`
	Domains            *string `json:"domains,omitempty" table:"-"`
	Redirect           *string `json:"redirect,omitempty" table:"-"`
	PreviewURLTemplate *string `json:"preview_url_template,omitempty" table:"-"`

	// Health checks (JSON-only)
	HealthCheckEnabled      *bool   `json:"health_check_enabled,omitempty" table:"-"`
	HealthCheckPath         *string `json:"health_check_path,omitempty" table:"-"`
	HealthCheckPort         *string `json:"health_check_port,omitempty" table:"-"`
	HealthCheckHost         *string `json:"health_check_host,omitempty" table:"-"`
	HealthCheckMethod       *string `json:"health_check_method,omitempty" table:"-"`
	HealthCheckScheme       *string `json:"health_check_scheme,omitempty" table:"-"`
	HealthCheckReturnCode   *int    `json:"health_check_return_code,omitempty" table:"-"`
	HealthCheckResponseText *string `json:"health_check_response_text,omitempty" table:"-"`
	HealthCheckInterval     *int    `json:"health_check_interval,omitempty" table:"-"`
	HealthCheckTimeout      *int    `json:"health_check_timeout,omitempty" table:"-"`
	HealthCheckRetries      *int    `json:"health_check_retries,omitempty" table:"-"`
	HealthCheckStartPeriod  *int    `json:"health_check_start_period,omitempty" table:"-"`

	// Resource limits (JSON-only)
	LimitsCPUs              *string `json:"limits_cpus,omitempty" table:"-"`
	LimitsCPUShares         *int    `json:"limits_cpu_shares,omitempty" table:"-"`
	LimitsCPUSet            *string `json:"limits_cpuset,omitempty" table:"-"`
	LimitsMemory            *string `json:"limits_memory,omitempty" table:"-"`
	LimitsMemoryReservation *string `json:"limits_memory_reservation,omitempty" table:"-"`
	LimitsMemorySwap        *string `json:"limits_memory_swap,omitempty" table:"-"`
	LimitsMemorySwappiness  *int    `json:"limits_memory_swappiness,omitempty" table:"-"`

	// Deployment hooks (JSON-only)
	PreDeploymentCommand           *string `json:"pre_deployment_command,omitempty" table:"-"`
	PreDeploymentCommandContainer  *string `json:"pre_deployment_command_container,omitempty" table:"-"`
	PostDeploymentCommand          *string `json:"post_deployment_command,omitempty" table:"-"`
	PostDeploymentCommandContainer *string `json:"post_deployment_command_container,omitempty" table:"-"`

	// Webhook secrets (JSON-only)
	ManualWebhookSecretGitHub    *string `json:"manual_webhook_secret_github,omitempty" table:"-" sensitive:"true"`
	ManualWebhookSecretGitLab    *string `json:"manual_webhook_secret_gitlab,omitempty" table:"-" sensitive:"true"`
	ManualWebhookSecretBitbucket *string `json:"manual_webhook_secret_bitbucket,omitempty" table:"-" sensitive:"true"`
	ManualWebhookSecretGitea     *string `json:"manual_webhook_secret_gitea,omitempty" table:"-" sensitive:"true"`

	// Misc (JSON-only)
	WatchPaths    *string `json:"watch_paths,omitempty" table:"-"`
	SwarmReplicas *int    `json:"swarm_replicas,omitempty" table:"-"`
	ConfigHash    *string `json:"config_hash,omitempty" table:"-"`

	// Nested settings (JSON-only)
	Settings *ApplicationSettings `json:"settings,omitempty" table:"-"`

	// Hidden fields (not in JSON or table output)
	ID            int    `json:"-" table:"-"`
	EnvironmentID *int   `json:"-" table:"-"`
	DestinationID *int   `json:"-" table:"-"`
	SourceID      *int   `json:"-" table:"-"`
	PrivateKeyID  *int   `json:"-" table:"-"`
	CreatedAt     string `json:"-" table:"-"`
	UpdatedAt     string `json:"-" table:"-"`
}

Application represents a Coolify application

type ApplicationCreateDeployKeyRequest added in v1.4.0

type ApplicationCreateDeployKeyRequest struct {
	ApplicationSettingsRequest

	// Required fields
	ProjectUUID    string `json:"project_uuid"`
	ServerUUID     string `json:"server_uuid"`
	PrivateKeyUUID string `json:"private_key_uuid"`
	GitRepository  string `json:"git_repository"`
	GitBranch      string `json:"git_branch"`
	BuildPack      string `json:"build_pack"`
	PortsExposes   string `json:"ports_exposes"`

	// Environment (one of these is required)
	EnvironmentName *string `json:"environment_name,omitempty"`
	EnvironmentUUID *string `json:"environment,omitempty"`

	// Optional fields (same as public)
	Name                   *string               `json:"name,omitempty"`
	Description            *string               `json:"description,omitempty"`
	Domains                *string               `json:"domains,omitempty"`
	DockerComposeDomains   []DockerComposeDomain `json:"docker_compose_domains,omitempty"`
	InstantDeploy          *bool                 `json:"instant_deploy,omitempty"`
	GitCommitSHA           *string               `json:"git_commit_sha,omitempty"`
	DestinationUUID        *string               `json:"destination_uuid,omitempty"`
	BuildCommand           *string               `json:"build_command,omitempty"`
	StartCommand           *string               `json:"start_command,omitempty"`
	InstallCommand         *string               `json:"install_command,omitempty"`
	BaseDirectory          *string               `json:"base_directory,omitempty"`
	PublishDirectory       *string               `json:"publish_directory,omitempty"`
	PortsMappings          *string               `json:"ports_mappings,omitempty"`
	CustomDockerRunOptions *string               `json:"custom_docker_run_options,omitempty"`
	CustomLabels           *string               `json:"custom_labels,omitempty"`
	DockerfileTargetBuild  *string               `json:"dockerfile_target_build,omitempty"`
	HealthCheckEnabled     *bool                 `json:"health_check_enabled,omitempty"`
	HealthCheckPath        *string               `json:"health_check_path,omitempty"`
	HealthCheckPort        *string               `json:"health_check_port,omitempty"`
	HealthCheckMethod      *string               `json:"health_check_method,omitempty"`
	LimitsCPUs             *string               `json:"limits_cpus,omitempty"`
	LimitsMemory           *string               `json:"limits_memory,omitempty"`
	Tags                   []string              `json:"tags,omitempty"`
}

ApplicationCreateDeployKeyRequest for POST /applications/private-deploy-key Creates an application from a private repository using SSH deploy key

type ApplicationCreateDockerImageRequest added in v1.4.0

type ApplicationCreateDockerImageRequest struct {
	ApplicationSettingsRequest

	// Required fields
	ProjectUUID             string `json:"project_uuid"`
	ServerUUID              string `json:"server_uuid"`
	DockerRegistryImageName string `json:"docker_registry_image_name"`
	PortsExposes            string `json:"ports_exposes"`

	// Environment (one of these is required)
	EnvironmentName *string `json:"environment_name,omitempty"`
	EnvironmentUUID *string `json:"environment,omitempty"`

	// Optional fields
	Name                   *string  `json:"name,omitempty"`
	Description            *string  `json:"description,omitempty"`
	Domains                *string  `json:"domains,omitempty"`
	InstantDeploy          *bool    `json:"instant_deploy,omitempty"`
	DestinationUUID        *string  `json:"destination_uuid,omitempty"`
	DockerRegistryImageTag *string  `json:"docker_registry_image_tag,omitempty"`
	PortsMappings          *string  `json:"ports_mappings,omitempty"`
	CustomDockerRunOptions *string  `json:"custom_docker_run_options,omitempty"`
	CustomLabels           *string  `json:"custom_labels,omitempty"`
	DockerfileTargetBuild  *string  `json:"dockerfile_target_build,omitempty"`
	HealthCheckEnabled     *bool    `json:"health_check_enabled,omitempty"`
	HealthCheckPath        *string  `json:"health_check_path,omitempty"`
	HealthCheckPort        *string  `json:"health_check_port,omitempty"`
	HealthCheckMethod      *string  `json:"health_check_method,omitempty"`
	LimitsCPUs             *string  `json:"limits_cpus,omitempty"`
	LimitsMemory           *string  `json:"limits_memory,omitempty"`
	Tags                   []string `json:"tags,omitempty"`
}

ApplicationCreateDockerImageRequest for POST /applications/dockerimage Creates an application from a pre-built Docker image

type ApplicationCreateDockerfileRequest added in v1.4.0

type ApplicationCreateDockerfileRequest struct {
	ApplicationSettingsRequest

	// Required fields
	ProjectUUID string `json:"project_uuid"`
	ServerUUID  string `json:"server_uuid"`
	Dockerfile  string `json:"dockerfile"`

	// Environment (one of these is required)
	EnvironmentName *string `json:"environment_name,omitempty"`
	EnvironmentUUID *string `json:"environment,omitempty"`

	// Optional fields
	Name                   *string  `json:"name,omitempty"`
	Description            *string  `json:"description,omitempty"`
	Domains                *string  `json:"domains,omitempty"`
	InstantDeploy          *bool    `json:"instant_deploy,omitempty"`
	DestinationUUID        *string  `json:"destination_uuid,omitempty"`
	PortsExposes           *string  `json:"ports_exposes,omitempty"`
	PortsMappings          *string  `json:"ports_mappings,omitempty"`
	CustomDockerRunOptions *string  `json:"custom_docker_run_options,omitempty"`
	CustomLabels           *string  `json:"custom_labels,omitempty"`
	DockerfileTargetBuild  *string  `json:"dockerfile_target_build,omitempty"`
	HealthCheckEnabled     *bool    `json:"health_check_enabled,omitempty"`
	HealthCheckPath        *string  `json:"health_check_path,omitempty"`
	HealthCheckPort        *string  `json:"health_check_port,omitempty"`
	HealthCheckMethod      *string  `json:"health_check_method,omitempty"`
	LimitsCPUs             *string  `json:"limits_cpus,omitempty"`
	LimitsMemory           *string  `json:"limits_memory,omitempty"`
	Tags                   []string `json:"tags,omitempty"`
}

ApplicationCreateDockerfileRequest for POST /applications/dockerfile Creates an application from a custom Dockerfile

type ApplicationCreateGitHubAppRequest added in v1.4.0

type ApplicationCreateGitHubAppRequest struct {
	ApplicationSettingsRequest

	// Required fields
	ProjectUUID   string `json:"project_uuid"`
	ServerUUID    string `json:"server_uuid"`
	GitHubAppUUID string `json:"github_app_uuid"`
	GitRepository string `json:"git_repository"`
	GitBranch     string `json:"git_branch"`
	BuildPack     string `json:"build_pack"`
	PortsExposes  string `json:"ports_exposes"`

	// Environment (one of these is required)
	EnvironmentName *string `json:"environment_name,omitempty"`
	EnvironmentUUID *string `json:"environment,omitempty"`

	// Optional fields (same as public)
	Name                   *string               `json:"name,omitempty"`
	Description            *string               `json:"description,omitempty"`
	Domains                *string               `json:"domains,omitempty"`
	DockerComposeDomains   []DockerComposeDomain `json:"docker_compose_domains,omitempty"`
	InstantDeploy          *bool                 `json:"instant_deploy,omitempty"`
	GitCommitSHA           *string               `json:"git_commit_sha,omitempty"`
	DestinationUUID        *string               `json:"destination_uuid,omitempty"`
	BuildCommand           *string               `json:"build_command,omitempty"`
	StartCommand           *string               `json:"start_command,omitempty"`
	InstallCommand         *string               `json:"install_command,omitempty"`
	BaseDirectory          *string               `json:"base_directory,omitempty"`
	PublishDirectory       *string               `json:"publish_directory,omitempty"`
	PortsMappings          *string               `json:"ports_mappings,omitempty"`
	CustomDockerRunOptions *string               `json:"custom_docker_run_options,omitempty"`
	CustomLabels           *string               `json:"custom_labels,omitempty"`
	DockerfileTargetBuild  *string               `json:"dockerfile_target_build,omitempty"`
	HealthCheckEnabled     *bool                 `json:"health_check_enabled,omitempty"`
	HealthCheckPath        *string               `json:"health_check_path,omitempty"`
	HealthCheckPort        *string               `json:"health_check_port,omitempty"`
	HealthCheckMethod      *string               `json:"health_check_method,omitempty"`
	LimitsCPUs             *string               `json:"limits_cpus,omitempty"`
	LimitsMemory           *string               `json:"limits_memory,omitempty"`
	Tags                   []string              `json:"tags,omitempty"`
}

ApplicationCreateGitHubAppRequest for POST /applications/private-github-app Creates an application from a private repository using GitHub App authentication

type ApplicationCreatePublicRequest added in v1.4.0

type ApplicationCreatePublicRequest struct {
	ApplicationSettingsRequest

	// Required fields
	ProjectUUID   string `json:"project_uuid"`
	ServerUUID    string `json:"server_uuid"`
	GitRepository string `json:"git_repository"`
	GitBranch     string `json:"git_branch"`
	BuildPack     string `json:"build_pack"` // nixpacks, static, dockerfile, dockercompose
	PortsExposes  string `json:"ports_exposes"`

	// Environment (one of these is required)
	EnvironmentName *string `json:"environment_name,omitempty"`
	EnvironmentUUID *string `json:"environment,omitempty"`

	// Optional fields
	Name                   *string               `json:"name,omitempty"`
	Description            *string               `json:"description,omitempty"`
	Domains                *string               `json:"domains,omitempty"`
	DockerComposeDomains   []DockerComposeDomain `json:"docker_compose_domains,omitempty"`
	InstantDeploy          *bool                 `json:"instant_deploy,omitempty"`
	GitCommitSHA           *string               `json:"git_commit_sha,omitempty"`
	DestinationUUID        *string               `json:"destination_uuid,omitempty"`
	BuildCommand           *string               `json:"build_command,omitempty"`
	StartCommand           *string               `json:"start_command,omitempty"`
	InstallCommand         *string               `json:"install_command,omitempty"`
	BaseDirectory          *string               `json:"base_directory,omitempty"`
	PublishDirectory       *string               `json:"publish_directory,omitempty"`
	PortsMappings          *string               `json:"ports_mappings,omitempty"`
	CustomDockerRunOptions *string               `json:"custom_docker_run_options,omitempty"`
	CustomLabels           *string               `json:"custom_labels,omitempty"`
	DockerfileTargetBuild  *string               `json:"dockerfile_target_build,omitempty"`

	// Health checks
	HealthCheckEnabled *bool   `json:"health_check_enabled,omitempty"`
	HealthCheckPath    *string `json:"health_check_path,omitempty"`
	HealthCheckPort    *string `json:"health_check_port,omitempty"`
	HealthCheckMethod  *string `json:"health_check_method,omitempty"`

	// Resource limits
	LimitsCPUs   *string  `json:"limits_cpus,omitempty"`
	LimitsMemory *string  `json:"limits_memory,omitempty"`
	Tags         []string `json:"tags,omitempty"`
}

ApplicationCreatePublicRequest for POST /applications/public Creates an application from a public git repository

type ApplicationInProject

type ApplicationInProject struct {
	ID          int     `json:"-" table:"-"`
	UUID        string  `json:"uuid"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Status      string  `json:"status"`
}

ApplicationInProject represents a simplified application within an environment

type ApplicationLifecycleResponse

type ApplicationLifecycleResponse struct {
	Message        string  `json:"message"`
	DeploymentUUID *string `json:"deployment_uuid,omitempty"`
}

ApplicationLifecycleResponse represents the response from lifecycle operations

type ApplicationListItem

type ApplicationListItem struct {
	UUID        string  `json:"uuid"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Status      string  `json:"status"`
	GitBranch   *string `json:"git_branch,omitempty"`
	FQDN        *string `json:"fqdn,omitempty"`
}

ApplicationListItem represents a simplified application for list view

type ApplicationLogsResponse

type ApplicationLogsResponse struct {
	Logs string `json:"logs"`
}

ApplicationLogsResponse represents the response from logs endpoint

type ApplicationMoveRequest added in v1.7.0

type ApplicationMoveRequest struct {
	EnvironmentUUID string `json:"environment_uuid"`
}

ApplicationMoveRequest identifies the target environment for an application move.

type ApplicationMoveResponse added in v1.7.0

type ApplicationMoveResponse struct {
	Message         string `json:"message"`
	UUID            string `json:"uuid"`
	ProjectUUID     string `json:"project_uuid"`
	EnvironmentUUID string `json:"environment_uuid"`
}

ApplicationMoveResponse describes the application's new organizational location.

type ApplicationPreview added in v1.9.0

type ApplicationPreview struct {
	UUID                   string                 `json:"uuid"`
	PullRequestID          int                    `json:"pull_request_id"`
	Status                 string                 `json:"status"`
	Domains                *string                `json:"domains"`
	GitType                *string                `json:"git_type"`
	DockerRegistryImageTag *string                `json:"docker_registry_image_tag"`
	PullRequestHTMLURL     *string                `json:"pull_request_html_url"`
	DockerComposeDomains   []PreviewComposeDomain `json:"docker_compose_domains" table:"-"`
	DomainPortOverrides    map[string]int         `json:"domain_port_overrides" table:"-"`
	LastOnlineAt           *string                `json:"last_online_at" table:"-"`
	CreatedAt              string                 `json:"created_at" table:"-"`
	UpdatedAt              string                 `json:"updated_at" table:"-"`
}

ApplicationPreview represents a preview deployment of an application.

type ApplicationPreviewCreateRequest added in v1.9.0

type ApplicationPreviewCreateRequest struct {
	PullRequestID      int     `json:"pull_request_id"`
	PullRequestHTMLURL *string `json:"pull_request_html_url,omitempty"`
	GitType            *string `json:"git_type,omitempty"`
	Commit             *string `json:"commit,omitempty"`
	DockerTag          *string `json:"docker_tag,omitempty"`
	Force              *bool   `json:"force,omitempty"`
	InstantDeploy      *bool   `json:"instant_deploy,omitempty"`
}

ApplicationPreviewCreateRequest opens (or redeploys) a preview deployment.

type ApplicationPreviewDeploymentResponse added in v1.9.0

type ApplicationPreviewDeploymentResponse struct {
	Message        string             `json:"message"`
	DeploymentUUID *string            `json:"deployment_uuid"`
	Preview        ApplicationPreview `json:"preview"`
}

ApplicationPreviewDeploymentResponse is returned when a preview deployment is opened.

type ApplicationPreviewDomainsUpdateRequest added in v1.9.0

type ApplicationPreviewDomainsUpdateRequest struct {
	Domains              *string               `json:"domains,omitempty"`
	DockerComposeDomains []DockerComposeDomain `json:"docker_compose_domains,omitempty"`
	ForceDomainOverride  *bool                 `json:"force_domain_override,omitempty"`
}

ApplicationPreviewDomainsUpdateRequest replaces the domains of a preview deployment.

type ApplicationPreviewDomainsUpdateResponse added in v1.9.0

type ApplicationPreviewDomainsUpdateResponse struct {
	UUID                 string                 `json:"uuid"`
	PullRequestID        int                    `json:"pull_request_id"`
	Domains              *string                `json:"domains"`
	DockerComposeDomains []PreviewComposeDomain `json:"docker_compose_domains" table:"-"`
	DomainPortOverrides  map[string]int         `json:"domain_port_overrides" table:"-"`
}

ApplicationPreviewDomainsUpdateResponse is returned after preview domains are replaced.

type ApplicationSecretManager added in v1.10.0

type ApplicationSecretManager struct {
	IntegrationTokenUUID string         `json:"integration_token_uuid"`
	Provider             string         `json:"provider"`
	Settings             map[string]any `json:"settings"`
}

ApplicationSecretManager is the secret manager configuration of an application.

type ApplicationSecretManagerRequest added in v1.10.0

type ApplicationSecretManagerRequest struct {
	IntegrationTokenUUID string         `json:"integration_token_uuid"`
	Settings             map[string]any `json:"settings,omitempty"`
}

ApplicationSecretManagerRequest is the body for PATCH /applications/{uuid}/secret-manager.

type ApplicationSettings added in v1.5.0

type ApplicationSettings struct {
	ID                               int     `json:"-" table:"-"`
	ApplicationID                    int     `json:"-" table:"-"`
	IsStatic                         *bool   `json:"is_static,omitempty"`
	IsGitSubmodulesEnabled           *bool   `json:"is_git_submodules_enabled,omitempty"`
	IsGitLFSEnabled                  *bool   `json:"is_git_lfs_enabled,omitempty"`
	IsAutoDeployEnabled              *bool   `json:"is_auto_deploy_enabled,omitempty"`
	IsForceHTTPSEnabled              *bool   `json:"is_force_https_enabled,omitempty"`
	IsDebugEnabled                   *bool   `json:"is_debug_enabled,omitempty"`
	IsPreviewDeploymentsEnabled      *bool   `json:"is_preview_deployments_enabled,omitempty"`
	IsLogDrainEnabled                *bool   `json:"is_log_drain_enabled,omitempty"`
	IsGPUEnabled                     *bool   `json:"is_gpu_enabled,omitempty"`
	GPUDriver                        *string `json:"gpu_driver,omitempty"`
	GPUCount                         *string `json:"gpu_count,omitempty"`
	GPUDeviceIDs                     *string `json:"gpu_device_ids,omitempty"`
	GPUOptions                       *string `json:"gpu_options,omitempty"`
	IsIncludeTimestamps              *bool   `json:"is_include_timestamps,omitempty"`
	IsSwarmOnlyWorkerNodes           *bool   `json:"is_swarm_only_worker_nodes,omitempty"`
	IsRawComposeDeploymentEnabled    *bool   `json:"is_raw_compose_deployment_enabled,omitempty"`
	IsBuildServerEnabled             *bool   `json:"is_build_server_enabled,omitempty"`
	IsConsistentContainerNameEnabled *bool   `json:"is_consistent_container_name_enabled,omitempty"`
	IsGzipEnabled                    *bool   `json:"is_gzip_enabled,omitempty"`
	IsStripPrefixEnabled             *bool   `json:"is_stripprefix_enabled,omitempty"`
	ConnectToDockerNetwork           *bool   `json:"connect_to_docker_network,omitempty"`
	CustomInternalName               *string `json:"custom_internal_name,omitempty"`
	IsContainerLabelEscapeEnabled    *bool   `json:"is_container_label_escape_enabled,omitempty"`
	IsEnvSortingEnabled              *bool   `json:"is_env_sorting_enabled,omitempty"`
	IsContainerLabelReadonlyEnabled  *bool   `json:"is_container_label_readonly_enabled,omitempty"`
	IsPreserveRepositoryEnabled      *bool   `json:"is_preserve_repository_enabled,omitempty"`
	DisableBuildCache                *bool   `json:"disable_build_cache,omitempty"`
	IsSPA                            *bool   `json:"is_spa,omitempty"`
	IsGitShallowCloneEnabled         *bool   `json:"is_git_shallow_clone_enabled,omitempty"`
	IsPRDeploymentsPublicEnabled     *bool   `json:"is_pr_deployments_public_enabled,omitempty"`
	UseBuildSecrets                  *bool   `json:"use_build_secrets,omitempty"`
	InjectBuildArgsToDockerfile      *bool   `json:"inject_build_args_to_dockerfile,omitempty"`
	IncludeSourceCommitInBuild       *bool   `json:"include_source_commit_in_build,omitempty"`
	DockerImagesToKeep               *int    `json:"docker_images_to_keep,omitempty"`
	StopGracePeriod                  *int    `json:"stop_grace_period,omitempty"`
	CreatedAt                        string  `json:"-" table:"-"`
	UpdatedAt                        string  `json:"-" table:"-"`
}

ApplicationSettings represents the settings for a Coolify application

type ApplicationSettingsRequest added in v1.7.0

type ApplicationSettingsRequest struct {
	DisableBuildCache                *bool   `json:"disable_build_cache,omitempty"`
	DockerImagesToKeep               *int    `json:"docker_images_to_keep,omitempty"`
	IncludeSourceCommitInBuild       *bool   `json:"include_source_commit_in_build,omitempty"`
	InjectBuildArgsToDockerfile      *bool   `json:"inject_build_args_to_dockerfile,omitempty"`
	IsEnvSortingEnabled              *bool   `json:"is_env_sorting_enabled,omitempty"`
	IsGitLFSEnabled                  *bool   `json:"is_git_lfs_enabled,omitempty"`
	IsGitShallowCloneEnabled         *bool   `json:"is_git_shallow_clone_enabled,omitempty"`
	IsGitSubmodulesEnabled           *bool   `json:"is_git_submodules_enabled,omitempty"`
	IsGzipEnabled                    *bool   `json:"is_gzip_enabled,omitempty"`
	IsPRDeploymentsPublicEnabled     *bool   `json:"is_pr_deployments_public_enabled,omitempty"`
	IsPreviewDeploymentsEnabled      *bool   `json:"is_preview_deployments_enabled,omitempty"`
	IsRawComposeDeploymentEnabled    *bool   `json:"is_raw_compose_deployment_enabled,omitempty"`
	IsStripPrefixEnabled             *bool   `json:"is_stripprefix_enabled,omitempty"`
	StopGracePeriod                  *int    `json:"stop_grace_period,omitempty"`
	UseBuildSecrets                  *bool   `json:"use_build_secrets,omitempty"`
	IsLogDrainEnabled                *bool   `json:"is_log_drain_enabled,omitempty"`
	IsGPUEnabled                     *bool   `json:"is_gpu_enabled,omitempty"`
	GPUDriver                        *string `json:"gpu_driver,omitempty"`
	GPUCount                         *string `json:"gpu_count,omitempty"`
	GPUDeviceIDs                     *string `json:"gpu_device_ids,omitempty"`
	GPUOptions                       *string `json:"gpu_options,omitempty"`
	IsConsistentContainerNameEnabled *bool   `json:"is_consistent_container_name_enabled,omitempty"`
	CustomInternalName               *string `json:"custom_internal_name,omitempty"`
}

ApplicationSettingsRequest contains settings added to application create and update requests.

type ApplicationUpdateRequest

type ApplicationUpdateRequest struct {
	ApplicationSettingsRequest

	Name                 *string               `json:"name,omitempty"`
	Description          *string               `json:"description,omitempty"`
	GitBranch            *string               `json:"git_branch,omitempty"`
	GitRepository        *string               `json:"git_repository,omitempty"`
	GitCommitSHA         *string               `json:"git_commit_sha,omitempty"`
	Domains              *string               `json:"domains,omitempty"`
	DockerComposeDomains []DockerComposeDomain `json:"docker_compose_domains,omitempty"`
	BuildCommand         *string               `json:"build_command,omitempty"`
	StartCommand         *string               `json:"start_command,omitempty"`
	InstallCommand       *string               `json:"install_command,omitempty"`
	BaseDirectory        *string               `json:"base_directory,omitempty"`
	PublishDirectory     *string               `json:"publish_directory,omitempty"`
	BuildPack            *string               `json:"build_pack,omitempty"`
	PortsExposes         *string               `json:"ports_exposes,omitempty"`
	PortsMappings        *string               `json:"ports_mappings,omitempty"`
	PreviewURLTemplate   *string               `json:"preview_url_template,omitempty"`
	MaxRestartCount      *int                  `json:"max_restart_count,omitempty"`

	// Docker configuration
	Dockerfile              *string `json:"dockerfile,omitempty"`
	DockerfileTargetBuild   *string `json:"dockerfile_target_build,omitempty"`
	DockerRegistryImageName *string `json:"docker_registry_image_name,omitempty"`
	DockerRegistryImageTag  *string `json:"docker_registry_image_tag,omitempty"`
	CustomDockerRunOptions  *string `json:"custom_docker_run_options,omitempty"`
	CustomLabels            *string `json:"custom_labels,omitempty"`

	// Health checks
	HealthCheckEnabled      *bool   `json:"health_check_enabled,omitempty"`
	HealthCheckPath         *string `json:"health_check_path,omitempty"`
	HealthCheckPort         *string `json:"health_check_port,omitempty"`
	HealthCheckHost         *string `json:"health_check_host,omitempty"`
	HealthCheckMethod       *string `json:"health_check_method,omitempty"`
	HealthCheckScheme       *string `json:"health_check_scheme,omitempty"`
	HealthCheckReturnCode   *int    `json:"health_check_return_code,omitempty"`
	HealthCheckResponseText *string `json:"health_check_response_text,omitempty"`
	HealthCheckInterval     *int    `json:"health_check_interval,omitempty"`
	HealthCheckTimeout      *int    `json:"health_check_timeout,omitempty"`
	HealthCheckRetries      *int    `json:"health_check_retries,omitempty"`
	HealthCheckStartPeriod  *int    `json:"health_check_start_period,omitempty"`

	// Resource limits
	LimitsCPUs              *string `json:"limits_cpus,omitempty"`
	LimitsCPUShares         *int    `json:"limits_cpu_shares,omitempty"`
	LimitsCPUSet            *string `json:"limits_cpuset,omitempty"`
	LimitsMemory            *string `json:"limits_memory,omitempty"`
	LimitsMemoryReservation *string `json:"limits_memory_reservation,omitempty"`
	LimitsMemorySwap        *string `json:"limits_memory_swap,omitempty"`
	LimitsMemorySwappiness  *int    `json:"limits_memory_swappiness,omitempty"`

	// Deployment hooks
	PreDeploymentCommand           *string `json:"pre_deployment_command,omitempty"`
	PreDeploymentCommandContainer  *string `json:"pre_deployment_command_container,omitempty"`
	PostDeploymentCommand          *string `json:"post_deployment_command,omitempty"`
	PostDeploymentCommandContainer *string `json:"post_deployment_command_container,omitempty"`

	// Misc
	Redirect   *string `json:"redirect,omitempty"`
	WatchPaths *string `json:"watch_paths,omitempty"`
	IsStatic   *bool   `json:"is_static,omitempty"`
}

ApplicationUpdateRequest represents the request to update an application All fields are optional - only provided fields will be updated

type ApplyOutput added in v1.7.0

type ApplyOutput struct {
	Results  []ApplyResultRow  `json:"results"`
	Verified []VerifyResultRow `json:"verified"`
}

ApplyOutput is the structured JSON output for the apply command.

type ApplyResultRow added in v1.7.0

type ApplyResultRow struct {
	Server string `json:"server"`
	Action string `json:"action"`
	Status string `json:"status"`
	Detail string `json:"detail,omitempty"`
}

ApplyResultRow is a table-friendly row for the apply result output.

type AuditEvent added in v1.10.0

type AuditEvent struct {
	ID           int     `json:"id" table:"-"`
	TeamID       *int    `json:"team_id,omitempty" table:"-"`
	CreatedAt    string  `json:"created_at"`
	Event        string  `json:"event" table:"-"`
	Source       string  `json:"source"`
	Action       string  `json:"action"`
	Level        string  `json:"level"`
	ActorType    *string `json:"actor_type,omitempty" table:"-"`
	ActorID      *int    `json:"actor_id,omitempty" table:"-"`
	ActorName    *string `json:"actor_name,omitempty"`
	ResourceType *string `json:"resource_type,omitempty"`
	ResourceUUID *string `json:"resource_uuid,omitempty" table:"-"`
	ResourceName *string `json:"resource_name,omitempty"`
	Description  *string `json:"description,omitempty"`

	ActorEmail     *string `json:"actor_email,omitempty" table:"-"`
	ActorTokenID   *int    `json:"actor_token_id,omitempty" table:"-"`
	ActorTokenName *string `json:"actor_token_name,omitempty" table:"-"`
	Metadata       any     `json:"metadata,omitempty" table:"-"`
	Changes        any     `json:"changes,omitempty" table:"-"`
	IPAddress      *string `json:"ip_address,omitempty" table:"-"`
	UserAgent      *string `json:"user_agent,omitempty" table:"-"`
}

AuditEvent is one entry of the team audit log (GET /audit-events). Sensitive fields are only returned for tokens with read:sensitive or root.

type AuditEventListOptions added in v1.10.0

type AuditEventListOptions struct {
	PerPage int
	Page    int
	Search  string
	Action  string
	Source  string
}

AuditEventListOptions holds the query filters of GET /audit-events. Zero values are omitted from the query string.

type AuditEventPage added in v1.10.0

type AuditEventPage struct {
	CurrentPage int          `json:"current_page"`
	Data        []AuditEvent `json:"data"`
	PerPage     int          `json:"per_page"`
	LastPage    int          `json:"last_page"`
	Total       int          `json:"total"`
}

AuditEventPage is a page of audit events, newest first.

type CloudInitScript added in v1.7.0

type CloudInitScript struct {
	UUID      string  `json:"uuid"`
	Name      string  `json:"name"`
	Script    *string `json:"script,omitempty" sensitive:"true"`
	CreatedAt string  `json:"created_at" table:"-"`
	UpdatedAt string  `json:"updated_at" table:"-"`
}

CloudInitScript is a team cloud-init template.

type CloudInitScriptCreateRequest added in v1.7.0

type CloudInitScriptCreateRequest struct {
	Name   string `json:"name"`
	Script string `json:"script"`
}

type CloudInitScriptUpdateRequest added in v1.7.0

type CloudInitScriptUpdateRequest struct {
	Name   *string `json:"name,omitempty"`
	Script *string `json:"script,omitempty"`
}

type CloudProvider added in v1.7.0

type CloudProvider string
const (
	CloudProviderHetzner      CloudProvider = "hetzner"
	CloudProviderDigitalOcean CloudProvider = "digitalocean"
	CloudProviderVultr        CloudProvider = "vultr"
)

func (CloudProvider) Valid added in v1.7.0

func (p CloudProvider) Valid() bool

type CloudToken added in v1.7.0

type CloudToken struct {
	UUID         string        `json:"uuid"`
	Name         string        `json:"name"`
	Provider     CloudProvider `json:"provider"`
	Token        *string       `json:"token,omitempty" sensitive:"true"`
	TeamID       int           `json:"team_id" table:"-"`
	ServersCount int           `json:"servers_count"`
	CreatedAt    string        `json:"created_at" table:"-"`
	UpdatedAt    string        `json:"updated_at" table:"-"`
}

type CloudTokenCreateRequest added in v1.7.0

type CloudTokenCreateRequest struct {
	Provider CloudProvider `json:"provider"`
	Token    string        `json:"token" sensitive:"true" table:"-"`
	Name     string        `json:"name"`
}

type CloudTokenUpdateRequest added in v1.7.0

type CloudTokenUpdateRequest struct {
	Name string `json:"name"`
}

type CloudTokenValidation added in v1.7.0

type CloudTokenValidation struct {
	Valid   bool   `json:"valid"`
	Message string `json:"message"`
}

type ContainerRow added in v1.7.0

type ContainerRow struct {
	Host      string `json:"host"`
	Namespace string `json:"namespace"`
	ID        string `json:"id"`
	Name      string `json:"name"`
	IP        string `json:"ip"`
}

ContainerRow is a table-friendly row for `coolify firewall containers`.

type Database

type Database struct {
	ID          int     `json:"-" table:"-"`
	UUID        string  `json:"uuid"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Image       *string `json:"image,omitempty"`
	Status      string  `json:"status"`
	Type        string  `json:"type"` // postgresql, mysql, mongodb, redis, etc.

	// Network configuration
	IsPublic   *bool `json:"is_public,omitempty"`
	PublicPort *int  `json:"public_port,omitempty"`

	// Resource limits (hidden from CLI output)
	LimitsMemory            *string `json:"limits_memory,omitempty" table:"-"`
	LimitsMemorySwap        *string `json:"limits_memory_swap,omitempty" table:"-"`
	LimitsMemorySwappiness  *int    `json:"limits_memory_swappiness,omitempty" table:"-"`
	LimitsMemoryReservation *string `json:"limits_memory_reservation,omitempty" table:"-"`
	LimitsCpus              *string `json:"limits_cpus,omitempty" table:"-"`
	LimitsCpuset            *string `json:"limits_cpuset,omitempty" table:"-"`
	LimitsCPUShares         *int    `json:"limits_cpu_shares,omitempty" table:"-"`

	// PostgreSQL specific
	PostgresUser           *string `json:"postgres_user,omitempty" table:"-"`
	PostgresPassword       *string `json:"postgres_password,omitempty" table:"-"`
	PostgresDB             *string `json:"postgres_db,omitempty" table:"-"`
	PostgresInitdbArgs     *string `json:"postgres_initdb_args,omitempty" table:"-"`
	PostgresHostAuthMethod *string `json:"postgres_host_auth_method,omitempty" table:"-"`
	PostgresConf           *string `json:"postgres_conf,omitempty" table:"-"`

	// MySQL specific
	MysqlRootPassword *string `json:"mysql_root_password,omitempty" table:"-"`
	MysqlPassword     *string `json:"mysql_password,omitempty" table:"-"`
	MysqlUser         *string `json:"mysql_user,omitempty" table:"-"`
	MysqlDatabase     *string `json:"mysql_database,omitempty" table:"-"`
	MysqlConf         *string `json:"mysql_conf,omitempty" table:"-"`

	// MariaDB specific
	MariadbRootPassword *string `json:"mariadb_root_password,omitempty" table:"-"`
	MariadbPassword     *string `json:"mariadb_password,omitempty" table:"-"`
	MariadbUser         *string `json:"mariadb_user,omitempty" table:"-"`
	MariadbDatabase     *string `json:"mariadb_database,omitempty" table:"-"`
	MariadbConf         *string `json:"mariadb_conf,omitempty" table:"-"`

	// MongoDB specific
	MongoInitdbRootUsername *string `json:"mongo_initdb_root_username,omitempty" table:"-"`
	MongoInitdbRootPassword *string `json:"mongo_initdb_root_password,omitempty" table:"-"`
	MongoInitdbDatabase     *string `json:"mongo_initdb_database,omitempty" table:"-"`
	MongoConf               *string `json:"mongo_conf,omitempty" table:"-"`

	// Redis specific
	RedisPassword *string `json:"redis_password,omitempty" table:"-"`
	RedisConf     *string `json:"redis_conf,omitempty" table:"-"`

	// KeyDB specific
	KeydbPassword *string `json:"keydb_password,omitempty" table:"-"`
	KeydbConf     *string `json:"keydb_conf,omitempty" table:"-"`

	// Clickhouse specific
	ClickhouseAdminUser     *string `json:"clickhouse_admin_user,omitempty" table:"-"`
	ClickhouseAdminPassword *string `json:"clickhouse_admin_password,omitempty" table:"-"`

	// Dragonfly specific
	DragonflyPassword *string `json:"dragonfly_password,omitempty" table:"-"`

	// SQLite specific
	SqliteDatabases *string `json:"sqlite_databases,omitempty" table:"-"`

	// Relationship IDs - internal database IDs (hidden from output)
	ServerID      *int `json:"-" table:"-"`
	EnvironmentID *int `json:"-" table:"-"`
	ProjectID     *int `json:"-" table:"-"`

	// Metadata
	CreatedAt string `json:"-" table:"-"`
	UpdatedAt string `json:"-" table:"-"`
}

Database represents a standalone Coolify database

type DatabaseBackup

type DatabaseBackup struct {
	ID                                       int      `json:"-" table:"-"`
	UUID                                     string   `json:"uuid"`
	Description                              *string  `json:"description,omitempty"`
	Enabled                                  *bool    `json:"enabled,omitempty"`
	Frequency                                *string  `json:"frequency,omitempty"`
	SaveS3                                   *bool    `json:"save_s3,omitempty"`
	S3StorageID                              *int     `json:"-" table:"-"`
	DatabasesToBackup                        *string  `json:"databases_to_backup,omitempty"`
	DumpAll                                  *bool    `json:"dump_all,omitempty"`
	DatabaseBackupRetentionAmountLocally     *int     `json:"database_backup_retention_amount_locally,omitempty"`
	DatabaseBackupRetentionDaysLocally       *int     `json:"database_backup_retention_days_locally,omitempty"`
	DatabaseBackupRetentionMaxStorageLocally *float64 `json:"database_backup_retention_max_storage_locally,omitempty"`
	DatabaseBackupRetentionAmountS3          *int     `json:"database_backup_retention_amount_s3,omitempty"`
	DatabaseBackupRetentionDaysS3            *int     `json:"database_backup_retention_days_s3,omitempty"`
	DatabaseBackupRetentionMaxStorageS3      *float64 `json:"database_backup_retention_max_storage_s3,omitempty"`
	DatabaseType                             *string  `json:"database_type,omitempty" table:"-"`
	DatabaseID                               *int     `json:"-" table:"-"`
	TeamID                                   *int     `json:"-" table:"-"`
	Timeout                                  *int     `json:"timeout,omitempty"`
	DisableLocalBackup                       *bool    `json:"disable_local_backup,omitempty"`
	CreatedAt                                string   `json:"-" table:"-"`
	UpdatedAt                                string   `json:"-" table:"-"`
}

DatabaseBackup represents a scheduled database backup configuration

type DatabaseBackupCreateRequest

type DatabaseBackupCreateRequest struct {
	Frequency                                *string  `json:"frequency,omitempty"`
	Enabled                                  *bool    `json:"enabled,omitempty"`
	SaveS3                                   *bool    `json:"save_s3,omitempty"`
	S3StorageUUID                            *string  `json:"s3_storage_uuid,omitempty"`
	DatabasesToBackup                        *string  `json:"databases_to_backup,omitempty"`
	DumpAll                                  *bool    `json:"dump_all,omitempty"`
	DatabaseBackupRetentionAmountLocally     *int     `json:"database_backup_retention_amount_locally,omitempty"`
	DatabaseBackupRetentionDaysLocally       *int     `json:"database_backup_retention_days_locally,omitempty"`
	DatabaseBackupRetentionMaxStorageLocally *float64 `json:"database_backup_retention_max_storage_locally,omitempty"`
	DatabaseBackupRetentionAmountS3          *int     `json:"database_backup_retention_amount_s3,omitempty"`
	DatabaseBackupRetentionDaysS3            *int     `json:"database_backup_retention_days_s3,omitempty"`
	DatabaseBackupRetentionMaxStorageS3      *float64 `json:"database_backup_retention_max_storage_s3,omitempty"`
	Timeout                                  *int     `json:"timeout,omitempty"`
	DisableLocalBackup                       *bool    `json:"disable_local_backup,omitempty"`
}

DatabaseBackupCreateRequest represents the request to create a backup configuration

type DatabaseBackupExecution

type DatabaseBackupExecution struct {
	UUID      string  `json:"uuid"`
	Filename  *string `json:"filename,omitempty"`
	Size      *int    `json:"size,omitempty"`
	Status    *string `json:"status,omitempty"`
	Message   *string `json:"message,omitempty"`
	CreatedAt string  `json:"-" table:"-"`
}

DatabaseBackupExecution represents a single backup execution

type DatabaseBackupExecutionsResponse

type DatabaseBackupExecutionsResponse struct {
	Executions []DatabaseBackupExecution `json:"executions"`
}

DatabaseBackupExecutionsResponse represents the response containing backup executions

type DatabaseBackupResponse

type DatabaseBackupResponse struct {
	Message string `json:"message"`
}

DatabaseBackupResponse represents a generic backup operation response

type DatabaseBackupUpdateRequest

type DatabaseBackupUpdateRequest struct {
	SaveS3                                   *bool    `json:"save_s3,omitempty"`
	S3StorageUUID                            *string  `json:"s3_storage_uuid,omitempty"`
	BackupNow                                *bool    `json:"backup_now,omitempty"`
	Enabled                                  *bool    `json:"enabled,omitempty"`
	DatabasesToBackup                        *string  `json:"databases_to_backup,omitempty"`
	DumpAll                                  *bool    `json:"dump_all,omitempty"`
	Frequency                                *string  `json:"frequency,omitempty"`
	DatabaseBackupRetentionAmountLocally     *int     `json:"database_backup_retention_amount_locally,omitempty"`
	DatabaseBackupRetentionDaysLocally       *int     `json:"database_backup_retention_days_locally,omitempty"`
	DatabaseBackupRetentionMaxStorageLocally *float64 `json:"database_backup_retention_max_storage_locally,omitempty"`
	DatabaseBackupRetentionAmountS3          *int     `json:"database_backup_retention_amount_s3,omitempty"`
	DatabaseBackupRetentionDaysS3            *int     `json:"database_backup_retention_days_s3,omitempty"`
	DatabaseBackupRetentionMaxStorageS3      *float64 `json:"database_backup_retention_max_storage_s3,omitempty"`
}

DatabaseBackupUpdateRequest represents the request to update a backup configuration

type DatabaseCreateRequest

type DatabaseCreateRequest struct {
	ServerUUID      string   `json:"server_uuid"`
	ProjectUUID     string   `json:"project_uuid"`
	EnvironmentName *string  `json:"environment_name,omitempty"`
	EnvironmentUUID *string  `json:"environment_uuid,omitempty"`
	DestinationUUID *string  `json:"destination_uuid,omitempty"`
	InstantDeploy   *bool    `json:"instant_deploy,omitempty"`
	Tags            []string `json:"tags,omitempty"`

	// Common fields
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Image       *string `json:"image,omitempty"`
	IsPublic    *bool   `json:"is_public,omitempty"`
	PublicPort  *int    `json:"public_port,omitempty"`

	// Resource limits (hidden from CLI output)
	LimitsMemory            *string `json:"limits_memory,omitempty" table:"-"`
	LimitsMemorySwap        *string `json:"limits_memory_swap,omitempty" table:"-"`
	LimitsMemorySwappiness  *int    `json:"limits_memory_swappiness,omitempty" table:"-"`
	LimitsMemoryReservation *string `json:"limits_memory_reservation,omitempty" table:"-"`
	LimitsCpus              *string `json:"limits_cpus,omitempty" table:"-"`
	LimitsCpuset            *string `json:"limits_cpuset,omitempty" table:"-"`
	LimitsCPUShares         *int    `json:"limits_cpu_shares,omitempty" table:"-"`

	// PostgreSQL specific
	PostgresUser           *string `json:"postgres_user,omitempty"`
	PostgresPassword       *string `json:"postgres_password,omitempty"`
	PostgresDB             *string `json:"postgres_db,omitempty" table:"-"`
	PostgresInitdbArgs     *string `json:"postgres_initdb_args,omitempty"`
	PostgresHostAuthMethod *string `json:"postgres_host_auth_method,omitempty"`
	PostgresConf           *string `json:"postgres_conf,omitempty"`

	// MySQL specific
	MysqlRootPassword *string `json:"mysql_root_password,omitempty"`
	MysqlPassword     *string `json:"mysql_password,omitempty"`
	MysqlUser         *string `json:"mysql_user,omitempty"`
	MysqlDatabase     *string `json:"mysql_database,omitempty" table:"-"`
	MysqlConf         *string `json:"mysql_conf,omitempty"`

	// MariaDB specific
	MariadbRootPassword *string `json:"mariadb_root_password,omitempty"`
	MariadbPassword     *string `json:"mariadb_password,omitempty"`
	MariadbUser         *string `json:"mariadb_user,omitempty"`
	MariadbDatabase     *string `json:"mariadb_database,omitempty" table:"-"`
	MariadbConf         *string `json:"mariadb_conf,omitempty"`

	// MongoDB specific
	MongoInitdbRootUsername *string `json:"mongo_initdb_root_username,omitempty"`
	MongoInitdbRootPassword *string `json:"mongo_initdb_root_password,omitempty"`
	MongoInitdbDatabase     *string `json:"mongo_initdb_database,omitempty" table:"-"`
	MongoConf               *string `json:"mongo_conf,omitempty"`

	// Redis specific
	RedisPassword *string `json:"redis_password,omitempty"`
	RedisConf     *string `json:"redis_conf,omitempty"`

	// KeyDB specific
	KeydbPassword *string `json:"keydb_password,omitempty"`
	KeydbConf     *string `json:"keydb_conf,omitempty"`

	// Clickhouse specific
	ClickhouseAdminUser     *string `json:"clickhouse_admin_user,omitempty"`
	ClickhouseAdminPassword *string `json:"clickhouse_admin_password,omitempty"`

	// Dragonfly specific
	DragonflyPassword *string `json:"dragonfly_password,omitempty"`

	// SQLite specific: comma-separated database file names
	SqliteDatabases *string `json:"sqlite_databases,omitempty"`
}

DatabaseCreateRequest represents the base request to create a database

type DatabaseEnvBulkUpdateRequest added in v1.5.0

type DatabaseEnvBulkUpdateRequest struct {
	Data []DatabaseEnvironmentVariableCreateRequest `json:"data"`
}

DatabaseEnvBulkUpdateRequest represents the request to bulk update database environment variables

type DatabaseEnvBulkUpdateResponse added in v1.5.0

type DatabaseEnvBulkUpdateResponse []DatabaseEnvironmentVariable

DatabaseEnvBulkUpdateResponse represents the response from database bulk update

type DatabaseEnvironmentVariable added in v1.5.0

type DatabaseEnvironmentVariable struct {
	ID             int     `json:"-" table:"-"`
	UUID           string  `json:"uuid"`
	Key            string  `json:"key"`
	Value          string  `json:"value" sensitive:"true"`
	IsBuildTime    bool    `json:"is_buildtime"`
	IsLiteralValue bool    `json:"is_literal"`
	IsShownOnce    bool    `json:"is_shown_once"`
	IsRuntime      bool    `json:"is_runtime"`
	IsShared       bool    `json:"is_shared"`
	Comment        *string `json:"comment,omitempty"`
	RealValue      *string `json:"real_value,omitempty" sensitive:"true"`
	DatabaseID     *int    `json:"-" table:"-"`
	CreatedAt      string  `json:"-" table:"-"`
	UpdatedAt      string  `json:"-" table:"-"`
}

DatabaseEnvironmentVariable represents an environment variable for a database

type DatabaseEnvironmentVariableCreateRequest added in v1.5.0

type DatabaseEnvironmentVariableCreateRequest struct {
	Key         string  `json:"key"`
	Value       string  `json:"value"`
	IsLiteral   *bool   `json:"is_literal,omitempty"`
	IsMultiline *bool   `json:"is_multiline,omitempty"`
	IsShownOnce *bool   `json:"is_shown_once,omitempty"`
	Comment     *string `json:"comment,omitempty"`
}

DatabaseEnvironmentVariableCreateRequest represents the request to create a database environment variable

type DatabaseEnvironmentVariableUpdateRequest added in v1.5.0

type DatabaseEnvironmentVariableUpdateRequest struct {
	Key         *string `json:"key,omitempty"`
	Value       *string `json:"value,omitempty"`
	IsLiteral   *bool   `json:"is_literal,omitempty"`
	IsMultiline *bool   `json:"is_multiline,omitempty"`
	IsShownOnce *bool   `json:"is_shown_once,omitempty"`
	Comment     *string `json:"comment,omitempty"`
}

DatabaseEnvironmentVariableUpdateRequest represents the request to update a database environment variable

type DatabaseImportRequest added in v1.10.0

type DatabaseImportRequest struct {
	Source            string  `json:"source"`
	UploadID          *string `json:"upload_id,omitempty"`
	S3StorageUUID     *string `json:"s3_storage_uuid,omitempty"`
	Path              *string `json:"path,omitempty"`
	DumpAll           *bool   `json:"dump_all,omitempty"`
	ReplaceExisting   *bool   `json:"replace_existing,omitempty"`
	KeepOwners        *bool   `json:"keep_owners,omitempty"`
	RestoreMysqlUsers *bool   `json:"restore_mysql_users,omitempty"`
	SqliteDatabase    *string `json:"sqlite_database,omitempty"`
}

DatabaseImportRequest starts an import (POST .../imports). Source is one of "upload" (needs UploadID), "s3" (needs S3StorageUUID + Path) or "server" (needs Path on the database's server).

type DatabaseImportStarted added in v1.10.0

type DatabaseImportStarted struct {
	ID        int    `json:"id"`
	Status    string `json:"status"`
	Message   string `json:"message"`
	StatusURL string `json:"status_url" table:"-"`
}

DatabaseImportStarted is the 202 response of POST .../imports.

type DatabaseImportStatus added in v1.10.0

type DatabaseImportStatus struct {
	ID         int     `json:"id"`
	Status     string  `json:"status"`
	ExitCode   *int    `json:"exit_code"`
	Output     *string `json:"output" table:"-"`
	CreatedAt  string  `json:"created_at"`
	UpdatedAt  string  `json:"updated_at"`
	FinishedAt *string `json:"finished_at"`
}

DatabaseImportStatus is the response of GET .../imports/{activity_id}. Output is only returned for tokens that can read sensitive data.

func (*DatabaseImportStatus) IsTerminal added in v1.10.0

func (s *DatabaseImportStatus) IsTerminal() bool

IsTerminal reports whether the import has stopped running.

func (*DatabaseImportStatus) Succeeded added in v1.10.0

func (s *DatabaseImportStatus) Succeeded() bool

Succeeded reports whether the import finished successfully.

type DatabaseImportUpload added in v1.10.0

type DatabaseImportUpload struct {
	UploadID string `json:"upload_id"`
	Filename string `json:"filename"`
	MimeType string `json:"mime_type"`
	Size     int64  `json:"size"`
}

DatabaseImportUpload is the response of a completed backup upload (POST .../imports/uploads).

type DatabaseLifecycleResponse

type DatabaseLifecycleResponse struct {
	Message string `json:"message"`
}

DatabaseLifecycleResponse represents the response from lifecycle operations

type DatabaseUpdateRequest

type DatabaseUpdateRequest struct {
	Name        *string `json:"name,omitempty"`
	Image       *string `json:"image,omitempty"`
	Description *string `json:"description,omitempty"`
	IsPublic    *bool   `json:"is_public,omitempty"`
	PublicPort  *int    `json:"public_port,omitempty"`

	// Resource limits
	LimitsMemory *string `json:"limits_memory,omitempty"`
	LimitsCpus   *string `json:"limits_cpus,omitempty"`

	// SQLite specific
	SqliteDatabases *string `json:"sqlite_databases,omitempty"`
}

DatabaseUpdateRequest represents the request to update a database Only common configuration fields that make sense to update after creation

type DeployRequest added in v1.6.0

type DeployRequest struct {
	UUID          string  `json:"uuid"`
	Force         *bool   `json:"force,omitempty"`
	PullRequestID *int    `json:"pull_request_id,omitempty"`
	DockerTag     *string `json:"docker_tag,omitempty"`
}

DeployRequest represents the request to trigger a deployment.

type DeployResponse

type DeployResponse struct {
	Message        string `json:"message"`
	DeploymentUUID string `json:"deployment_uuid,omitempty"`
}

DeployResponse wraps deployment trigger responses

type Deployment

type Deployment struct {
	ID              int     `json:"id" table:"-"`
	UUID            string  `json:"deployment_uuid"`
	ApplicationID   *string `json:"application_id,omitempty" table:"-"`
	ApplicationName *string `json:"application_name,omitempty"`
	ServerName      *string `json:"server_name,omitempty"`
	Status          string  `json:"status"`
	Commit          *string `json:"commit,omitempty"`
	CommitMessage   *string `json:"commit_message,omitempty" table:"-"`
	// Additional fields from API that we want to ignore
	DeploymentURL *string `json:"deployment_url,omitempty" table:"-"`
	FinishedAt    *string `json:"finished_at,omitempty" table:"-"`
	Logs          *string `json:"logs,omitempty" table:"-"`
	CreatedAt     *string `json:"created_at,omitempty" table:"-"`
	UpdatedAt     *string `json:"updated_at,omitempty" table:"-"`
}

Deployment represents a deployment operation

type Destination added in v1.7.0

type Destination struct {
	UUID       string `json:"uuid"`
	Name       string `json:"name"`
	Network    string `json:"network"`
	Type       string `json:"type"`
	ServerUUID string `json:"server_uuid"`
	CreatedAt  string `json:"created_at" table:"-"`
	UpdatedAt  string `json:"updated_at" table:"-"`
}

Destination represents a Docker network attached to a server.

type DestinationCreateRequest added in v1.7.0

type DestinationCreateRequest struct {
	Name    string `json:"name,omitempty"`
	Network string `json:"network"`
	Type    string `json:"type,omitempty"`
}

type DestinationUpdateRequest added in v1.7.0

type DestinationUpdateRequest struct {
	Name string `json:"name"`
}

type DigitalOceanServerCreateRequest added in v1.7.0

type DigitalOceanServerCreateRequest struct {
	CloudProviderTokenUUID string `json:"cloud_provider_token_uuid"`
	Region                 string `json:"region"`
	Size                   string `json:"size"`
	Image                  any    `json:"image"`
	Name                   string `json:"name,omitempty"`
	PrivateKeyUUID         string `json:"private_key_uuid"`
	EnableIPv6             bool   `json:"enable_ipv6"`
	Monitoring             bool   `json:"monitoring"`
	DigitalOceanSSHKeyIDs  []int  `json:"digitalocean_ssh_key_ids,omitempty"`
	CloudInitScript        string `json:"cloud_init_script,omitempty"`
	InstantValidate        bool   `json:"instant_validate"`
}

type DigitalOceanServerCreateResponse added in v1.7.0

type DigitalOceanServerCreateResponse struct {
	UUID                  string `json:"uuid"`
	DigitalOceanDropletID int    `json:"digitalocean_droplet_id"`
	IP                    string `json:"ip" sensitive:"true"`
}

type DockerCleanupSettings added in v1.7.0

type DockerCleanupSettings struct {
	DockerCleanupFrequency           string `json:"docker_cleanup_frequency"`
	DockerCleanupThreshold           int    `json:"docker_cleanup_threshold"`
	ForceDockerCleanup               bool   `json:"force_docker_cleanup"`
	DeleteUnusedVolumes              bool   `json:"delete_unused_volumes"`
	DeleteUnusedNetworks             bool   `json:"delete_unused_networks"`
	DisableApplicationImageRetention bool   `json:"disable_application_image_retention"`
}

type DockerCleanupUpdateRequest added in v1.7.0

type DockerCleanupUpdateRequest struct {
	DockerCleanupFrequency           *string `json:"docker_cleanup_frequency,omitempty"`
	DockerCleanupThreshold           *int    `json:"docker_cleanup_threshold,omitempty"`
	ForceDockerCleanup               *bool   `json:"force_docker_cleanup,omitempty"`
	DeleteUnusedVolumes              *bool   `json:"delete_unused_volumes,omitempty"`
	DeleteUnusedNetworks             *bool   `json:"delete_unused_networks,omitempty"`
	DisableApplicationImageRetention *bool   `json:"disable_application_image_retention,omitempty"`
}

type DockerComposeDomain added in v1.7.0

type DockerComposeDomain struct {
	Name   string `json:"name"`
	Domain string `json:"domain"`
}

DockerComposeDomain assigns one or more URLs to a Docker Compose service.

type Domain

type Domain struct {
	IP      string   `json:"ip"`
	Domains []string `json:"domains"`
}

Domain represents a domain configuration

type Environment

type Environment struct {
	ID           int                    `json:"-" table:"-"`
	UUID         string                 `json:"uuid"`
	Name         string                 `json:"name"`
	Description  *string                `json:"description,omitempty"`
	Applications []ApplicationInProject `json:"applications,omitempty"`
	CreatedAt    string                 `json:"-" table:"-"`
	UpdatedAt    string                 `json:"-" table:"-"`
}

Environment within a project

type EnvironmentCreateRequest added in v1.7.0

type EnvironmentCreateRequest struct {
	Name string `json:"name"`
}

EnvironmentCreateRequest for creating an environment in a project

type EnvironmentDetails added in v1.10.0

type EnvironmentDetails struct {
	ID           int                   `json:"id" table:"-"`
	UUID         string                `json:"uuid"`
	Name         string                `json:"name"`
	Description  *string               `json:"description,omitempty"`
	ProjectID    int                   `json:"project_id" table:"-"`
	CreatedAt    string                `json:"created_at" table:"-"`
	UpdatedAt    string                `json:"updated_at" table:"-"`
	Applications []EnvironmentResource `json:"applications" table:"-"`
	Postgresqls  []EnvironmentResource `json:"postgresqls" table:"-"`
	Redis        []EnvironmentResource `json:"redis" table:"-"`
	Mongodbs     []EnvironmentResource `json:"mongodbs" table:"-"`
	Mysqls       []EnvironmentResource `json:"mysqls" table:"-"`
	Mariadbs     []EnvironmentResource `json:"mariadbs" table:"-"`
	Services     []EnvironmentResource `json:"services" table:"-"`
}

EnvironmentDetails is an environment with its resources (GET /projects/{uuid}/{environment_name_or_uuid}).

func (*EnvironmentDetails) ResourceRows added in v1.10.0

func (e *EnvironmentDetails) ResourceRows() []EnvironmentResourceRow

ResourceRows flattens every resource of the environment into typed rows.

type EnvironmentResource added in v1.10.0

type EnvironmentResource struct {
	ID          int     `json:"id" table:"-"`
	UUID        string  `json:"uuid"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Status      string  `json:"status"`
}

EnvironmentResource is the summary of a resource inside an environment.

type EnvironmentResourceRow added in v1.10.0

type EnvironmentResourceRow struct {
	Type   string `json:"type"`
	UUID   string `json:"uuid"`
	Name   string `json:"name"`
	Status string `json:"status"`
}

EnvironmentResourceRow is a flattened, typed resource row for table output.

type EnvironmentUpdateRequest added in v1.7.0

type EnvironmentUpdateRequest struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

type EnvironmentVariable

type EnvironmentVariable struct {
	ID             int     `json:"-" table:"-"`
	UUID           string  `json:"uuid"`
	Key            string  `json:"key"`
	Value          string  `json:"value" sensitive:"true"`
	IsBuildTime    bool    `json:"is_buildtime"`
	IsPreview      bool    `json:"is_preview"`
	IsLiteralValue bool    `json:"is_literal"`
	IsShownOnce    bool    `json:"is_shown_once"`
	IsRuntime      bool    `json:"is_runtime"`
	IsShared       bool    `json:"is_shared"`
	Comment        *string `json:"comment,omitempty"`
	RealValue      *string `json:"real_value,omitempty" sensitive:"true"`
	ApplicationID  *int    `json:"-" table:"-"`
	CreatedAt      string  `json:"-" table:"-"`
	UpdatedAt      string  `json:"-" table:"-"`
}

EnvironmentVariable represents an environment variable for an application

type EnvironmentVariableCreateRequest

type EnvironmentVariableCreateRequest struct {
	Key         string  `json:"key"`
	Value       string  `json:"value"`
	IsBuildTime *bool   `json:"is_buildtime,omitempty"`
	IsPreview   *bool   `json:"is_preview,omitempty"`
	IsLiteral   *bool   `json:"is_literal,omitempty"`
	IsMultiline *bool   `json:"is_multiline,omitempty"`
	IsRuntime   *bool   `json:"is_runtime,omitempty"`
	Comment     *string `json:"comment,omitempty"`
}

EnvironmentVariableCreateRequest represents the request to create an environment variable

type EnvironmentVariableUpdateRequest

type EnvironmentVariableUpdateRequest struct {
	Key         *string `json:"key,omitempty"`
	Value       *string `json:"value,omitempty"`
	IsBuildTime *bool   `json:"is_buildtime,omitempty"`
	IsPreview   *bool   `json:"is_preview,omitempty"`
	IsLiteral   *bool   `json:"is_literal,omitempty"`
	IsMultiline *bool   `json:"is_multiline,omitempty"`
	IsRuntime   *bool   `json:"is_runtime,omitempty"`
	Comment     *string `json:"comment,omitempty"`
}

EnvironmentVariableUpdateRequest represents the request to update an environment variable

type FileStorage added in v1.5.0

type FileStorage struct {
	ID                     int     `json:"id"`
	UUID                   string  `json:"uuid"`
	FsPath                 string  `json:"fs_path"`
	MountPath              string  `json:"mount_path"`
	Content                *string `json:"content,omitempty"`
	IsDirectory            bool    `json:"is_directory"`
	IsBasedOnGit           bool    `json:"is_based_on_git"`
	IsPreviewSuffixEnabled bool    `json:"is_preview_suffix_enabled"`
	Chown                  *string `json:"chown,omitempty"`
	Chmod                  *string `json:"chmod,omitempty"`
	ResourceType           string  `json:"resource_type" table:"-"`
	ResourceID             int     `json:"resource_id" table:"-"`
}

FileStorage represents a file storage for an application

type FirewallAllowOutput added in v1.7.0

type FirewallAllowOutput struct {
	Rules []AllowRuleRow `json:"rules"`
}

FirewallAllowOutput is the JSON output for `firewall allow` / `revoke`.

type FirewallContainersOutput added in v1.7.0

type FirewallContainersOutput struct {
	Containers []ContainerRow `json:"containers"`
	Errors     []string       `json:"errors,omitempty"`
}

FirewallContainersOutput is the JSON output for `firewall containers`.

type FirewallListOutput added in v1.7.0

type FirewallListOutput struct {
	Rules  []AllowRuleRow `json:"rules"`
	Errors []string       `json:"errors,omitempty"`
}

FirewallListOutput is the JSON output for `firewall list`.

type FlexibleFloat64 added in v1.9.0

type FlexibleFloat64 float64

FlexibleFloat64 accepts JSON numbers and quoted numeric strings.

func (*FlexibleFloat64) UnmarshalJSON added in v1.9.0

func (f *FlexibleFloat64) UnmarshalJSON(data []byte) error

type GitHubApp

type GitHubApp struct {
	ID             int     `json:"id" table:"-"`
	UUID           string  `json:"uuid"`
	Name           string  `json:"name"`
	Organization   *string `json:"organization,omitempty"`
	APIURL         string  `json:"api_url"`
	HTMLURL        string  `json:"html_url"`
	CustomUser     string  `json:"custom_user"`
	CustomPort     int     `json:"custom_port"`
	AppID          int     `json:"app_id" table:"-"`
	InstallationID int     `json:"installation_id" table:"-"`
	ClientID       string  `json:"client_id" table:"-"`
	PrivateKeyID   int     `json:"private_key_id" table:"-"`
	IsSystemWide   bool    `json:"is_system_wide" table:"-"`
	TeamID         int     `json:"team_id" table:"-"`
}

GitHubApp represents a GitHub App integration

type GitHubAppCreateRequest

type GitHubAppCreateRequest struct {
	Name           string  `json:"name"`
	Organization   *string `json:"organization,omitempty"`
	APIURL         *string `json:"api_url,omitempty"`
	HTMLURL        string  `json:"html_url"`
	CustomUser     *string `json:"custom_user,omitempty"`
	CustomPort     *int    `json:"custom_port,omitempty"`
	AppID          int     `json:"app_id"`
	InstallationID int     `json:"installation_id"`
	ClientID       string  `json:"client_id"`
	ClientSecret   string  `json:"client_secret" sensitive:"true"`
	WebhookSecret  *string `json:"webhook_secret,omitempty" sensitive:"true"`
	PrivateKeyUUID string  `json:"private_key_uuid"`
	IsSystemWide   *bool   `json:"is_system_wide,omitempty"`
}

GitHubAppCreateRequest represents a request to create a GitHub App

type GitHubAppUpdateRequest

type GitHubAppUpdateRequest struct {
	Name           *string `json:"name,omitempty"`
	Organization   *string `json:"organization,omitempty"`
	APIURL         *string `json:"api_url,omitempty"`
	HTMLURL        *string `json:"html_url,omitempty"`
	CustomUser     *string `json:"custom_user,omitempty"`
	CustomPort     *int    `json:"custom_port,omitempty"`
	AppID          *int    `json:"app_id,omitempty"`
	InstallationID *int    `json:"installation_id,omitempty"`
	ClientID       *string `json:"client_id,omitempty"`
	ClientSecret   *string `json:"client_secret,omitempty" sensitive:"true"`
	WebhookSecret  *string `json:"webhook_secret,omitempty" sensitive:"true"`
	PrivateKeyUUID *string `json:"private_key_uuid,omitempty"`
	IsSystemWide   *bool   `json:"is_system_wide,omitempty"`
}

GitHubAppUpdateRequest represents a request to update a GitHub App

type GitHubBranch

type GitHubBranch struct {
	Name      string `json:"name"`
	Protected bool   `json:"protected"`
}

GitHubBranch represents a branch from GitHub

type GitHubRepository

type GitHubRepository struct {
	ID       int    `json:"id"`
	Name     string `json:"name"`
	FullName string `json:"full_name"`
	Private  bool   `json:"private"`
	HTMLURL  string `json:"html_url"`
	CloneURL string `json:"clone_url"`
}

GitHubRepository represents a repository from GitHub

type GitLabApp added in v1.7.0

type GitLabApp struct {
	ID           int     `json:"id"`
	UUID         string  `json:"uuid"`
	Name         string  `json:"name"`
	APIURL       string  `json:"api_url"`
	HTMLURL      string  `json:"html_url"`
	CustomUser   string  `json:"custom_user"`
	CustomPort   int     `json:"custom_port"`
	ClientID     *string `json:"client_id,omitempty"`
	GroupName    *string `json:"group_name,omitempty"`
	RedirectURI  *string `json:"redirect_uri,omitempty"`
	IsSystemWide bool    `json:"is_system_wide" table:"-"`
	IsPublic     bool    `json:"is_public" table:"-"`
	TeamID       int     `json:"team_id" table:"-"`
}

GitLabApp represents a GitLab App (OAuth source) integration

type GitLabAppCreateRequest added in v1.7.0

type GitLabAppCreateRequest struct {
	Name         string  `json:"name"`
	HTMLURL      string  `json:"html_url"`
	APIURL       *string `json:"api_url,omitempty"`
	CustomUser   *string `json:"custom_user,omitempty"`
	CustomPort   *int    `json:"custom_port,omitempty"`
	GroupName    *string `json:"group_name,omitempty"`
	ClientID     *string `json:"client_id,omitempty"`
	ClientSecret *string `json:"client_secret,omitempty" sensitive:"true"`
	WebhookToken *string `json:"webhook_token,omitempty" sensitive:"true"`
	RedirectURI  *string `json:"redirect_uri,omitempty"`
	IsSystemWide *bool   `json:"is_system_wide,omitempty"`
}

GitLabAppCreateRequest represents a request to create a GitLab App

type GitLabAppUpdateRequest added in v1.7.0

type GitLabAppUpdateRequest struct {
	Name         *string `json:"name,omitempty"`
	HTMLURL      *string `json:"html_url,omitempty"`
	APIURL       *string `json:"api_url,omitempty"`
	CustomUser   *string `json:"custom_user,omitempty"`
	CustomPort   *int    `json:"custom_port,omitempty"`
	GroupName    *string `json:"group_name,omitempty"`
	ClientID     *string `json:"client_id,omitempty"`
	ClientSecret *string `json:"client_secret,omitempty" sensitive:"true"`
	WebhookToken *string `json:"webhook_token,omitempty" sensitive:"true"`
	RedirectURI  *string `json:"redirect_uri,omitempty"`
	IsSystemWide *bool   `json:"is_system_wide,omitempty"`
}

GitLabAppUpdateRequest represents a request to update a GitLab App

type GitLabAppUpdateResponse added in v1.7.0

type GitLabAppUpdateResponse struct {
	Message string    `json:"message"`
	Data    GitLabApp `json:"data"`
}

GitLabAppUpdateResponse is the API response for PATCH /gitlab-apps/{id}

type HetznerFirewall added in v1.7.0

type HetznerFirewall struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type HetznerImage added in v1.7.0

type HetznerImage struct {
	ID           int    `json:"id"`
	Name         string `json:"name"`
	Description  string `json:"description"`
	Type         string `json:"type"`
	OSFlavor     string `json:"os_flavor"`
	OSVersion    string `json:"os_version"`
	Architecture string `json:"architecture"`
}

type HetznerLocation added in v1.7.0

type HetznerLocation struct {
	ID          int     `json:"id"`
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Country     string  `json:"country"`
	City        string  `json:"city"`
	Latitude    float64 `json:"latitude"`
	Longitude   float64 `json:"longitude"`
}

type HetznerNetwork added in v1.7.0

type HetznerNetwork struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	IPRange string `json:"ip_range"`
}

type HetznerPrice added in v1.7.0

type HetznerPrice struct {
	Location     string          `json:"location"`
	PriceHourly  HetznerPriceNet `json:"price_hourly"`
	PriceMonthly HetznerPriceNet `json:"price_monthly"`
}

type HetznerPriceNet added in v1.7.0

type HetznerPriceNet struct {
	Net   string `json:"net"`
	Gross string `json:"gross"`
}

type HetznerServerCreateRequest added in v1.7.0

type HetznerServerCreateRequest struct {
	CloudProviderTokenUUID string `json:"cloud_provider_token_uuid"`
	Location               string `json:"location"`
	ServerType             string `json:"server_type"`
	Image                  int    `json:"image"`
	Name                   string `json:"name,omitempty"`
	PrivateKeyUUID         string `json:"private_key_uuid"`
	EnableIPv4             bool   `json:"enable_ipv4"`
	EnableIPv6             bool   `json:"enable_ipv6"`
	EnableBackups          bool   `json:"enable_backups"`
	HetznerSSHKeyIDs       []int  `json:"hetzner_ssh_key_ids,omitempty"`
	HetznerFirewallIDs     []int  `json:"hetzner_firewall_ids,omitempty"`
	HetznerNetworkIDs      []int  `json:"hetzner_network_ids,omitempty"`
	CloudInitScript        string `json:"cloud_init_script,omitempty"`
	InstantValidate        bool   `json:"instant_validate"`
}

type HetznerServerCreateResponse added in v1.7.0

type HetznerServerCreateResponse struct {
	UUID            string `json:"uuid"`
	HetznerServerID int    `json:"hetzner_server_id"`
	IP              string `json:"ip" sensitive:"true"`
}

type HetznerServerType added in v1.7.0

type HetznerServerType struct {
	ID          int            `json:"id"`
	Name        string         `json:"name"`
	Description string         `json:"description"`
	Cores       int            `json:"cores"`
	Memory      float64        `json:"memory"`
	Disk        int            `json:"disk"`
	Prices      []HetznerPrice `json:"prices" table:"-"`
}

type IntegrationTokenCreateRequest added in v1.10.0

type IntegrationTokenCreateRequest struct {
	Provider string         `json:"provider"`
	Name     string         `json:"name"`
	Token    string         `json:"token"`
	Metadata map[string]any `json:"metadata,omitempty"`
}

IntegrationTokenCreateRequest is the body for POST /security/integration-tokens.

type LogEntry

type LogEntry struct {
	Command   *string `json:"command"`
	Output    string  `json:"output"`
	Type      string  `json:"type"`
	Timestamp string  `json:"timestamp"`
	Hidden    bool    `json:"hidden"`
	Batch     int     `json:"batch"`
	Order     int     `json:"order,omitempty"`
}

LogEntry represents a single log entry from a deployment

type LogsResponse added in v1.7.0

type LogsResponse struct {
	Logs string `json:"logs"`
}

LogsResponse represents container logs returned by resource log endpoints.

type MoveResourceRequest added in v1.7.0

type MoveResourceRequest struct {
	EnvironmentUUID string `json:"environment_uuid"`
}

MoveResourceRequest identifies the target environment for a resource move.

type MoveResourceResponse added in v1.7.0

type MoveResourceResponse struct {
	Message         string `json:"message"`
	UUID            string `json:"uuid"`
	ProjectUUID     string `json:"project_uuid"`
	EnvironmentUUID string `json:"environment_uuid"`
}

MoveResourceResponse represents a successful resource move.

type PersistentStorage added in v1.5.0

type PersistentStorage struct {
	ID                     int     `json:"id" table:"-"`
	UUID                   string  `json:"uuid"`
	Name                   string  `json:"name"`
	MountPath              string  `json:"mount_path"`
	HostPath               *string `json:"host_path,omitempty"`
	IsPreviewSuffixEnabled bool    `json:"is_preview_suffix_enabled"`
	IsReadOnly             bool    `json:"is_readonly"`
	ResourceType           string  `json:"resource_type" table:"-"`
	ResourceID             int     `json:"resource_id" table:"-"`
}

PersistentStorage represents a persistent volume for an application

type PlanActionRow added in v1.7.0

type PlanActionRow struct {
	Server string `json:"server"`
	Action string `json:"action"`
	Detail string `json:"detail"`
}

PlanActionRow is a table-friendly row for the plan output.

type PlanOutput added in v1.7.0

type PlanOutput struct {
	Servers  []string         `json:"servers"`
	Intent   string           `json:"intent,omitempty"`
	Actions  []PlanActionRow  `json:"actions"`
	Skipped  []PlanSkippedRow `json:"skipped,omitempty"`
	Warnings []string         `json:"warnings,omitempty"`
}

PlanOutput is the structured JSON output for the plan command.

type PlanSkippedRow added in v1.7.0

type PlanSkippedRow struct {
	Server string `json:"server"`
	Action string `json:"action"`
	Reason string `json:"reason"`
}

PlanSkippedRow is a table-friendly row for actions the intent filter suppressed (shown in the plan preview so operators can see what would have run and why).

type PreviewComposeDomain added in v1.9.0

type PreviewComposeDomain struct {
	Name     string  `json:"name"`
	Domain   *string `json:"domain"`
	Redirect *string `json:"redirect,omitempty"`
}

PreviewComposeDomain is the domain of one Docker Compose service in a preview deployment.

type PrivateKey

type PrivateKey struct {
	ID          int     `json:"-" table:"-"`
	UUID        string  `json:"uuid"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	PublicKey   string  `json:"public_key" sensitive:"true"`
	PrivateKey  string  `json:"private_key" sensitive:"true"`
}

PrivateKey represents an SSH private key

type PrivateKeyCreateRequest

type PrivateKeyCreateRequest struct {
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	PrivateKey  string  `json:"private_key"`
}

PrivateKeyCreateRequest for creating keys

type PrivateKeyUpdateRequest added in v1.7.0

type PrivateKeyUpdateRequest struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	PrivateKey  string  `json:"private_key"`
}

PrivateKeyUpdateRequest for updating keys

type Project

type Project struct {
	UUID         string        `json:"uuid"`
	Name         string        `json:"name"`
	Description  *string       `json:"description,omitempty"`
	Environments []Environment `json:"environments,omitempty"`
}

Project represents a Coolify project

type ProjectCreateRequest

type ProjectCreateRequest struct {
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
}

ProjectCreateRequest for creating projects

type ProjectUpdateRequest added in v1.7.0

type ProjectUpdateRequest struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

ProjectUpdateRequest for patching a project

type ProviderOption added in v1.7.0

type ProviderOption map[string]any

DigitalOcean and Vultr option responses intentionally preserve provider fields.

type ProviderSSHKey added in v1.7.0

type ProviderSSHKey struct {
	ID          any    `json:"id"`
	Name        string `json:"name"`
	Fingerprint string `json:"fingerprint"`
	PublicKey   string `json:"public_key" sensitive:"true"`
}

type ProxyConfigurationRequest added in v1.7.0

type ProxyConfigurationRequest struct {
	Configuration string `json:"configuration"`
}

type Resource

type Resource struct {
	ID     int    `json:"-" table:"-"`
	UUID   string `json:"uuid"`
	Name   string `json:"name"`
	Type   string `json:"type"`
	Status string `json:"status"`
}

Resource represents any deployable resource

type ResourceCloneRequest added in v1.7.0

type ResourceCloneRequest struct {
	DestinationUUID string  `json:"destination_uuid"`
	Name            *string `json:"name,omitempty"`
	CloneVolumes    *bool   `json:"clone_volumes,omitempty"`
}

type ResourceCloneResponse added in v1.7.0

type ResourceCloneResponse struct {
	UUID string `json:"uuid"`
}

type Response

type Response struct {
	Message string `json:"message,omitempty"`
	Error   string `json:"error,omitempty"`
	UUID    string `json:"uuid,omitempty"`
}

Response wraps common API response fields

type RollbackRequest added in v1.7.0

type RollbackRequest struct {
	Commit string `json:"commit"`
}

type S3Storage added in v1.7.0

type S3Storage struct {
	UUID        string  `json:"uuid"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Endpoint    string  `json:"endpoint"`
	Bucket      string  `json:"bucket"`
	Region      string  `json:"region"`
	Key         *string `json:"key,omitempty" sensitive:"true"`
	Secret      *string `json:"secret,omitempty" sensitive:"true"`
	IsUsable    *bool   `json:"is_usable,omitempty"`
	TeamID      int     `json:"team_id" table:"-"`
	CreatedAt   string  `json:"created_at" table:"-"`
	UpdatedAt   string  `json:"updated_at" table:"-"`
}

S3Storage represents a team S3/compatible storage destination.

type S3StorageCreateRequest added in v1.7.0

type S3StorageCreateRequest struct {
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Endpoint    string  `json:"endpoint"`
	Bucket      string  `json:"bucket"`
	Region      string  `json:"region"`
	Key         string  `json:"key"`
	Secret      string  `json:"secret"`
	IsUsable    *bool   `json:"is_usable,omitempty"`
}

type S3StorageUpdateRequest added in v1.7.0

type S3StorageUpdateRequest struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Endpoint    *string `json:"endpoint,omitempty"`
	Bucket      *string `json:"bucket,omitempty"`
	Region      *string `json:"region,omitempty"`
	Key         *string `json:"key,omitempty"`
	Secret      *string `json:"secret,omitempty"`
	IsUsable    *bool   `json:"is_usable,omitempty"`
}

type S3StorageValidation added in v1.7.0

type S3StorageValidation struct {
	Valid   bool   `json:"valid"`
	Message string `json:"message"`
}

type ScheduledTask added in v1.7.0

type ScheduledTask struct {
	ID        int     `json:"id,omitempty" table:"-"`
	UUID      string  `json:"uuid"`
	Enabled   bool    `json:"enabled"`
	Name      string  `json:"name"`
	Command   string  `json:"command"`
	Frequency string  `json:"frequency"`
	Container *string `json:"container,omitempty"`
	Timeout   int     `json:"timeout"`
	CreatedAt string  `json:"created_at" table:"-"`
	UpdatedAt string  `json:"updated_at" table:"-"`
}

ScheduledTask represents a Coolify application or service scheduled task.

type ScheduledTaskCreateRequest added in v1.7.0

type ScheduledTaskCreateRequest struct {
	Name      string  `json:"name"`
	Command   string  `json:"command"`
	Frequency string  `json:"frequency"`
	Container *string `json:"container,omitempty"`
	Timeout   *int    `json:"timeout,omitempty"`
	Enabled   *bool   `json:"enabled,omitempty"`
}

ScheduledTaskCreateRequest is the body for creating a scheduled task.

type ScheduledTaskExecution added in v1.7.0

type ScheduledTaskExecution struct {
	UUID       string           `json:"uuid"`
	Status     string           `json:"status"`
	Message    *string          `json:"message,omitempty"`
	RetryCount int              `json:"retry_count"`
	Duration   *FlexibleFloat64 `json:"duration,omitempty"`
	StartedAt  *string          `json:"started_at,omitempty"`
	FinishedAt *string          `json:"finished_at,omitempty"`
	CreatedAt  string           `json:"created_at" table:"-"`
	UpdatedAt  string           `json:"updated_at" table:"-"`
}

ScheduledTaskExecution represents a single run of a scheduled task.

type ScheduledTaskUpdateRequest added in v1.7.0

type ScheduledTaskUpdateRequest struct {
	Name      *string `json:"name,omitempty"`
	Command   *string `json:"command,omitempty"`
	Frequency *string `json:"frequency,omitempty"`
	Container *string `json:"container,omitempty"`
	Timeout   *int    `json:"timeout,omitempty"`
	Enabled   *bool   `json:"enabled,omitempty"`
}

ScheduledTaskUpdateRequest is the body for updating a scheduled task. All fields are optional; the API requires at least one field.

type Server

type Server struct {
	ID       int      `json:"-" table:"-"`
	UUID     string   `json:"uuid"`
	Name     string   `json:"name"`
	IP       string   `json:"ip" sensitive:"true"`
	User     string   `json:"user" sensitive:"true"`
	Port     int      `json:"port" sensitive:"true"`
	Settings Settings `json:"settings" table:"-"`
}

Server represents a Coolify server

type ServerCreateRequest

type ServerCreateRequest struct {
	Name            string `json:"name"`
	IP              string `json:"ip"`
	Port            int    `json:"port"`
	User            string `json:"user"`
	PrivateKeyUUID  string `json:"private_key_uuid"`
	ServerRole      string `json:"server_role,omitempty"`
	InstantValidate bool   `json:"instant_validate"`
}

ServerCreateRequest for creating servers

type ServerProxySettings added in v1.7.0

type ServerProxySettings struct {
	ProxyType           string  `json:"proxy_type"`
	Status              string  `json:"status"`
	RedirectEnabled     bool    `json:"redirect_enabled"`
	RedirectURL         *string `json:"redirect_url,omitempty"`
	GenerateExactLabels bool    `json:"generate_exact_labels"`
	Configuration       *string `json:"configuration,omitempty" table:"-"`
}

type ServerProxyUpdateRequest added in v1.7.0

type ServerProxyUpdateRequest struct {
	RedirectEnabled     *bool   `json:"redirect_enabled,omitempty"`
	RedirectURL         *string `json:"redirect_url,omitempty"`
	GenerateExactLabels *bool   `json:"generate_exact_labels,omitempty"`
	ProxyType           *string `json:"proxy_type,omitempty"`
}

type ServerRegistriesResponse added in v1.9.0

type ServerRegistriesResponse struct {
	Registries []ServerRegistry `json:"registries"`
	Error      *string          `json:"error"`
}

ServerRegistriesResponse is the response of GET /servers/{uuid}/registries.

type ServerRegistry added in v1.9.0

type ServerRegistry struct {
	Registry string               `json:"registry"`
	LoggedIn bool                 `json:"logged_in"`
	Source   *string              `json:"source"`
	Username *string              `json:"username"`
	UsedBy   []ServerRegistryUser `json:"used_by"`
}

ServerRegistry is a Docker registry a server is logged in to or that its resources use. Credentials are never returned by the API, only the username.

type ServerRegistryLoginRequest added in v1.9.0

type ServerRegistryLoginRequest struct {
	Registry string `json:"registry"`
	Username string `json:"username"`
	Password string `json:"password"`
}

ServerRegistryLoginRequest is the body of POST /servers/{uuid}/registries.

type ServerRegistryRow added in v1.9.0

type ServerRegistryRow struct {
	Registry string `json:"registry"`
	Status   string `json:"status"`
	Username string `json:"username"`
	UsedBy   string `json:"used_by"`
}

ServerRegistryRow is the table view of a ServerRegistry. Username is masked by the command unless sensitive output is requested, so empty usernames stay empty instead of showing a mask.

type ServerRegistryUser added in v1.9.0

type ServerRegistryUser struct {
	Type string  `json:"type"`
	Name string  `json:"name"`
	Link *string `json:"link"`
}

ServerRegistryUser is a resource on the server that pulls from or pushes to a registry.

type ServerResource added in v1.10.0

type ServerResource struct {
	ID        int    `json:"id" table:"-"`
	UUID      string `json:"uuid"`
	Name      string `json:"name"`
	Type      string `json:"type"`
	Status    string `json:"status"`
	CreatedAt string `json:"created_at" table:"-"`
	UpdatedAt string `json:"updated_at" table:"-"`
}

ServerResource is a resource deployed on a server (GET /servers/{uuid}/resources)

type ServerUpdateRequest added in v1.7.0

type ServerUpdateRequest struct {
	Name                                 *string `json:"name,omitempty"`
	Description                          *string `json:"description,omitempty"`
	IP                                   *string `json:"ip,omitempty"`
	Port                                 *int    `json:"port,omitempty"`
	User                                 *string `json:"user,omitempty"`
	PrivateKeyUUID                       *string `json:"private_key_uuid,omitempty"`
	ServerRole                           *string `json:"server_role,omitempty"`
	InstantValidate                      *bool   `json:"instant_validate,omitempty"`
	ProxyType                            *string `json:"proxy_type,omitempty"`
	ConcurrentBuilds                     *int    `json:"concurrent_builds,omitempty"`
	DynamicTimeout                       *int    `json:"dynamic_timeout,omitempty"`
	DeploymentQueueLimit                 *int    `json:"deployment_queue_limit,omitempty"`
	ServerDiskUsageNotificationThreshold *int    `json:"server_disk_usage_notification_threshold,omitempty"`
	ServerDiskUsageCheckFrequency        *string `json:"server_disk_usage_check_frequency,omitempty"`
	ConnectionTimeout                    *int    `json:"connection_timeout,omitempty"`
	IsTerminalEnabled                    *bool   `json:"is_terminal_enabled,omitempty"`
}

ServerUpdateRequest for patching servers. Only non-nil fields are sent.

type ServerValidationRequest added in v1.7.0

type ServerValidationRequest struct {
	Install bool `json:"install"`
}

ServerValidationRequest configures server validation behavior.

type Service

type Service struct {
	ID          int     `json:"-" table:"-"`
	UUID        string  `json:"uuid"`
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`
	Status      string  `json:"status"`

	// Relationship IDs - internal database IDs (hidden from output)
	ServerID      *int `json:"-" table:"-"`
	EnvironmentID *int `json:"-" table:"-"`
	ProjectID     *int `json:"-" table:"-"`

	// Docker configuration (hidden from table output)
	DockerCompose    *string `json:"docker_compose,omitempty" table:"-"`
	DockerComposeRaw *string `json:"docker_compose_raw,omitempty" table:"-"`

	// Additional metadata
	CreatedAt string `json:"-" table:"-"`
	UpdatedAt string `json:"-" table:"-"`

	// Nested resources
	Applications []ServiceApplication `json:"applications,omitempty"`
	Databases    []ServiceDatabase    `json:"databases,omitempty"`
}

Service represents a Coolify one-click service

type ServiceApplication

type ServiceApplication struct {
	ID                   int     `json:"-" table:"-"`
	UUID                 string  `json:"uuid"`
	Name                 string  `json:"name"`
	HumanName            *string `json:"human_name,omitempty"`
	Description          *string `json:"description,omitempty"`
	Fqdn                 *string `json:"fqdn,omitempty"`
	Ports                *string `json:"ports,omitempty" table:"-"`
	Exposes              *string `json:"exposes,omitempty" table:"-"`
	Status               *string `json:"status,omitempty"`
	ServiceID            *int    `json:"service_id,omitempty" table:"-"`
	ExcludeFromStatus    *bool   `json:"exclude_from_status,omitempty" table:"-"`
	RequiredFqdn         *bool   `json:"required_fqdn,omitempty" table:"-"`
	Image                *string `json:"image,omitempty" table:"-"`
	IsLogDrainEnabled    *bool   `json:"is_log_drain_enabled,omitempty" table:"-"`
	IsIncludeTimestamps  *bool   `json:"is_include_timestamps,omitempty" table:"-"`
	IsGzipEnabled        *bool   `json:"is_gzip_enabled,omitempty" table:"-"`
	IsStripprefixEnabled *bool   `json:"is_stripprefix_enabled,omitempty" table:"-"`
	LastOnlineAt         *string `json:"last_online_at,omitempty" table:"-"`
	IsMigrated           *bool   `json:"is_migrated,omitempty" table:"-"`
	CreatedAt            string  `json:"created_at,omitempty" table:"-"`
	UpdatedAt            string  `json:"updated_at,omitempty" table:"-"`
	DeletedAt            *string `json:"deleted_at,omitempty" table:"-"`
}

ServiceApplication represents an application within a service

type ServiceApplicationUpdateRequest added in v1.7.0

type ServiceApplicationUpdateRequest struct {
	URL                  *string `json:"url,omitempty"`
	HumanName            *string `json:"human_name,omitempty"`
	Description          *string `json:"description,omitempty"`
	Image                *string `json:"image,omitempty"`
	ExcludeFromStatus    *bool   `json:"exclude_from_status,omitempty"`
	IsLogDrainEnabled    *bool   `json:"is_log_drain_enabled,omitempty"`
	IsGzipEnabled        *bool   `json:"is_gzip_enabled,omitempty"`
	IsStripprefixEnabled *bool   `json:"is_stripprefix_enabled,omitempty"`
}

ServiceApplicationUpdateRequest represents mutable service application fields.

type ServiceCreateRequest

type ServiceCreateRequest struct {
	Type            string   `json:"type"`
	Name            *string  `json:"name,omitempty"`
	Description     *string  `json:"description,omitempty"`
	ServerUUID      string   `json:"server_uuid"`
	ProjectUUID     string   `json:"project_uuid"`
	EnvironmentName string   `json:"environment_name,omitempty"`
	EnvironmentUUID *string  `json:"environment,omitempty"`
	InstantDeploy   *bool    `json:"instant_deploy,omitempty"`
	DockerCompose   *string  `json:"docker_compose,omitempty"`
	Destination     *string  `json:"destination_uuid,omitempty"`
	Tags            []string `json:"tags,omitempty"`
}

ServiceCreateRequest represents the request to create a service

type ServiceDatabase

type ServiceDatabase struct {
	ID                  int     `json:"-" table:"-"`
	UUID                string  `json:"uuid"`
	Name                string  `json:"name"`
	HumanName           *string `json:"human_name,omitempty"`
	Description         *string `json:"description,omitempty"`
	Type                *string `json:"type,omitempty"`
	Status              *string `json:"status,omitempty"`
	Image               *string `json:"image,omitempty" table:"-"`
	Ports               *string `json:"ports,omitempty" table:"-"`
	Exposes             *string `json:"exposes,omitempty" table:"-"`
	ExcludeFromStatus   *bool   `json:"exclude_from_status,omitempty" table:"-"`
	IsLogDrainEnabled   *bool   `json:"is_log_drain_enabled,omitempty" table:"-"`
	IsIncludeTimestamps *bool   `json:"is_include_timestamps,omitempty" table:"-"`
	IsPublic            *bool   `json:"is_public,omitempty"`
	PublicPort          *int    `json:"public_port,omitempty"`
	PublicPortTimeout   *int    `json:"public_port_timeout,omitempty" table:"-"`
	LastOnlineAt        *string `json:"last_online_at,omitempty" table:"-"`
	CustomType          *string `json:"custom_type,omitempty" table:"-"`
	CreatedAt           string  `json:"created_at,omitempty" table:"-"`
	UpdatedAt           string  `json:"updated_at,omitempty" table:"-"`
	DeletedAt           *string `json:"deleted_at,omitempty" table:"-"`
}

ServiceDatabase represents a database within a service

type ServiceDatabaseUpdateRequest added in v1.7.0

type ServiceDatabaseUpdateRequest struct {
	HumanName         *string `json:"human_name,omitempty"`
	Description       *string `json:"description,omitempty"`
	Image             *string `json:"image,omitempty"`
	ExcludeFromStatus *bool   `json:"exclude_from_status,omitempty"`
	IsLogDrainEnabled *bool   `json:"is_log_drain_enabled,omitempty"`
	IsPublic          *bool   `json:"is_public,omitempty"`
	PublicPort        *int    `json:"public_port,omitempty"`
	PublicPortTimeout *int    `json:"public_port_timeout,omitempty"`
}

ServiceDatabaseUpdateRequest represents mutable service database fields.

type ServiceEnvBulkUpdateRequest added in v1.3.0

type ServiceEnvBulkUpdateRequest struct {
	Data []ServiceEnvironmentVariableCreateRequest `json:"data"`
}

ServiceEnvBulkUpdateRequest represents the request to bulk update service environment variables

type ServiceEnvBulkUpdateResponse added in v1.3.0

type ServiceEnvBulkUpdateResponse []ServiceEnvironmentVariable

ServiceEnvBulkUpdateResponse represents the response from service bulk update

type ServiceEnvironmentVariable added in v1.3.0

type ServiceEnvironmentVariable struct {
	ID             int     `json:"-" table:"-"`
	UUID           string  `json:"uuid"`
	Key            string  `json:"key"`
	Value          string  `json:"value" sensitive:"true"`
	IsBuildTime    bool    `json:"is_buildtime"`
	IsLiteralValue bool    `json:"is_literal"`
	IsShownOnce    bool    `json:"is_shown_once"`
	IsRuntime      bool    `json:"is_runtime"`
	IsShared       bool    `json:"is_shared"`
	Comment        *string `json:"comment,omitempty"`
	RealValue      *string `json:"real_value,omitempty" sensitive:"true"`
	ServiceID      *int    `json:"-" table:"-"`
	CreatedAt      string  `json:"-" table:"-"`
	UpdatedAt      string  `json:"-" table:"-"`
}

ServiceEnvironmentVariable represents an environment variable for a service Services don't have preview deployments, so IsPreview is excluded from output

type ServiceEnvironmentVariableCreateRequest added in v1.3.0

type ServiceEnvironmentVariableCreateRequest struct {
	Key         string  `json:"key"`
	Value       string  `json:"value"`
	IsBuildTime *bool   `json:"is_build_time,omitempty"`
	IsLiteral   *bool   `json:"is_literal,omitempty"`
	IsMultiline *bool   `json:"is_multiline,omitempty"`
	IsRuntime   *bool   `json:"is_runtime,omitempty"`
	Comment     *string `json:"comment,omitempty"`
}

ServiceEnvironmentVariableCreateRequest represents the request to create a service environment variable

type ServiceEnvironmentVariableUpdateRequest added in v1.3.0

type ServiceEnvironmentVariableUpdateRequest struct {
	Key         *string `json:"key,omitempty"`
	Value       *string `json:"value,omitempty"`
	IsBuildTime *bool   `json:"is_build_time,omitempty"`
	IsLiteral   *bool   `json:"is_literal,omitempty"`
	IsMultiline *bool   `json:"is_multiline,omitempty"`
	IsRuntime   *bool   `json:"is_runtime,omitempty"`
	Comment     *string `json:"comment,omitempty"`
}

ServiceEnvironmentVariableUpdateRequest represents the request to update a service environment variable

type ServiceLifecycleResponse

type ServiceLifecycleResponse struct {
	Message string `json:"message"`
}

ServiceLifecycleResponse represents the response from lifecycle operations

type ServiceStorageCreateRequest added in v1.5.0

type ServiceStorageCreateRequest struct {
	Type         string  `json:"type"`          // "persistent" or "file"
	MountPath    string  `json:"mount_path"`    // required
	ResourceUUID string  `json:"resource_uuid"` // required for services
	Name         *string `json:"name,omitempty"`
	HostPath     *string `json:"host_path,omitempty"`
	Content      *string `json:"content,omitempty"`
	IsDirectory  *bool   `json:"is_directory,omitempty"`
	FsPath       *string `json:"fs_path,omitempty"`
}

ServiceStorageCreateRequest represents the request to create a storage for services Services require resource_uuid to identify which sub-resource the storage belongs to

type ServiceUpdateRequest

type ServiceUpdateRequest struct {
	Name          *string `json:"name,omitempty"`
	Description   *string `json:"description,omitempty"`
	DockerCompose *string `json:"docker_compose,omitempty"`
}

ServiceUpdateRequest represents the request to update a service

type Settings

type Settings struct {
	IsReachable bool   `json:"is_reachable"`
	IsUsable    bool   `json:"is_usable"`
	ServerRole  string `json:"server_role,omitempty"`
}

Settings for server

type SharedEnvCreateRequest added in v1.7.0

type SharedEnvCreateRequest struct {
	Key         string  `json:"key"`
	Value       string  `json:"value"`
	IsLiteral   *bool   `json:"is_literal,omitempty"`
	IsMultiline *bool   `json:"is_multiline,omitempty"`
	IsShownOnce *bool   `json:"is_shown_once,omitempty"`
	Comment     *string `json:"comment,omitempty"`
}

type SharedEnvCreateResponse added in v1.7.0

type SharedEnvCreateResponse struct {
	ID int `json:"id"`
}

type SharedEnvUpdateRequest added in v1.7.0

type SharedEnvUpdateRequest struct {
	Key         *string `json:"key,omitempty"`
	Value       *string `json:"value,omitempty"`
	IsLiteral   *bool   `json:"is_literal,omitempty"`
	IsMultiline *bool   `json:"is_multiline,omitempty"`
	IsShownOnce *bool   `json:"is_shown_once,omitempty"`
	Comment     *string `json:"comment,omitempty"`
}

type SharedEnvironmentVariable added in v1.7.0

type SharedEnvironmentVariable struct {
	ID          int     `json:"id"`
	Key         string  `json:"key"`
	Value       *string `json:"value,omitempty" sensitive:"true"`
	IsLiteral   bool    `json:"is_literal"`
	IsMultiline bool    `json:"is_multiline"`
	IsShownOnce bool    `json:"is_shown_once"`
	Comment     *string `json:"comment,omitempty"`
	Type        string  `json:"type,omitempty" table:"-"`
	CreatedAt   string  `json:"created_at" table:"-"`
	UpdatedAt   string  `json:"updated_at" table:"-"`
}

SharedEnvironmentVariable is a hierarchical shared env (team/project/environment/server).

type StorageCreateRequest added in v1.5.0

type StorageCreateRequest struct {
	Type        string  `json:"type"`       // "persistent" or "file"
	MountPath   string  `json:"mount_path"` // required
	Name        *string `json:"name,omitempty"`
	HostPath    *string `json:"host_path,omitempty"`
	Content     *string `json:"content,omitempty"`
	IsDirectory *bool   `json:"is_directory,omitempty"`
	FsPath      *string `json:"fs_path,omitempty"`
}

StorageCreateRequest represents the request to create a storage for applications and databases

type StorageListItem added in v1.5.0

type StorageListItem struct {
	ID                     int    `json:"id" table:"-"`
	UUID                   string `json:"uuid"`
	Type                   string `json:"type"`
	Name                   string `json:"name"`
	MountPath              string `json:"mount_path"`
	HostPath               string `json:"host_path,omitempty"`
	IsPreviewSuffixEnabled bool   `json:"is_preview_suffix_enabled"`
	Content                string `json:"content,omitempty" table:"-"`
}

StorageListItem is a unified view of both storage types for table output

func MergeStorages added in v1.5.0

func MergeStorages(resp StoragesResponse) []StorageListItem

MergeStorages converts a StoragesResponse into a unified list of StorageListItem

type StorageUpdateRequest added in v1.5.0

type StorageUpdateRequest struct {
	// Required fields
	Type string `json:"type"` // "persistent" or "file"

	// Identifier (uuid preferred, id deprecated)
	UUID *string `json:"uuid,omitempty"`
	ID   *int    `json:"id,omitempty"`

	// Optional fields
	IsPreviewSuffixEnabled *bool   `json:"is_preview_suffix_enabled,omitempty"`
	Name                   *string `json:"name,omitempty"`
	MountPath              *string `json:"mount_path,omitempty"`
	HostPath               *string `json:"host_path,omitempty"`
	Content                *string `json:"content,omitempty"`
}

StorageUpdateRequest represents the request to update a storage

type StoragesResponse added in v1.5.0

type StoragesResponse struct {
	PersistentStorages []PersistentStorage `json:"persistent_storages"`
	FileStorages       []FileStorage       `json:"file_storages"`
}

StoragesResponse represents the API response for listing storages

type Tag added in v1.7.0

type Tag struct {
	UUID      string `json:"uuid"`
	Name      string `json:"name"`
	CreatedAt string `json:"created_at" table:"-"`
	UpdatedAt string `json:"updated_at" table:"-"`
}

Tag represents a team-scoped resource tag.

type TagCreateRequest added in v1.7.0

type TagCreateRequest struct {
	Name string `json:"name"`
}

type TagUpdateRequest added in v1.7.0

type TagUpdateRequest struct {
	Name string `json:"name"`
}

type Team

type Team struct {
	ID                           int     `json:"id"`
	Name                         string  `json:"name"`
	Description                  *string `json:"description,omitempty"`
	PersonalTeam                 bool    `json:"personal_team"`
	CreatedAt                    string  `json:"created_at" table:"-"`
	UpdatedAt                    string  `json:"updated_at" table:"-"`
	ShowBoarding                 bool    `json:"show_boarding" `
	CustomServerLimit            *string `json:"custom_server_limit,omitempty" table:"-"`
	IsBuildServerFallbackEnabled *bool   `json:"is_build_server_fallback_enabled,omitempty"`
}

Team represents a Coolify team

type TeamMember

type TeamMember struct {
	ID                   int     `json:"id"`
	Name                 string  `json:"name"`
	Email                string  `json:"email" sensitive:"true"`
	EmailVerifiedAt      *string `json:"email_verified_at,omitempty" table:"-"`
	Role                 *string `json:"role,omitempty"`
	CreatedAt            string  `json:"created_at" table:"-"`
	UpdatedAt            string  `json:"updated_at" table:"-"`
	TwoFactorConfirmedAt *string `json:"two_factor_confirmed_at,omitempty" table:"-"`
	ForcePasswordReset   bool    `json:"force_password_reset"`
	MarketingEmails      bool    `json:"marketing_emails"`
}

TeamMember represents a member of a team

type TeamUpdateRequest added in v1.10.0

type TeamUpdateRequest struct {
	IsBuildServerFallbackEnabled bool `json:"is_build_server_fallback_enabled"`
}

TeamUpdateRequest is the body for PATCH /team (the team bound to the API token).

type Timestamps

type Timestamps struct {
	CreatedAt string `json:"-" table:"-"`
	UpdatedAt string `json:"-" table:"-"`
}

Timestamps for created/updated times

type UUID

type UUID struct {
	UUID string `json:"uuid"`
}

UUID is a common UUID field

type VerifyResultRow added in v1.7.0

type VerifyResultRow struct {
	Server      string `json:"server"`
	WireGuardIP string `json:"wireguard_ip"`
	PeerCount   int    `json:"peer_count"`
	Status      string `json:"status"`
}

VerifyResultRow is a table-friendly row for post-apply verification.

type VolumeBackupScheduleRequest added in v1.7.0

type VolumeBackupScheduleRequest struct {
	Frequency                  string   `json:"frequency"`
	Enabled                    *bool    `json:"enabled,omitempty"`
	SaveS3                     *bool    `json:"save_s3,omitempty"`
	DisableLocalBackup         *bool    `json:"disable_local_backup,omitempty"`
	StopDuringBackup           *bool    `json:"stop_during_backup,omitempty"`
	S3StorageUUID              *string  `json:"s3_storage_uuid,omitempty"`
	RetentionAmountLocally     *int     `json:"retention_amount_locally,omitempty"`
	RetentionDaysLocally       *int     `json:"retention_days_locally,omitempty"`
	RetentionMaxStorageLocally *float64 `json:"retention_max_storage_locally,omitempty"`
	RetentionAmountS3          *int     `json:"retention_amount_s3,omitempty"`
	RetentionDaysS3            *int     `json:"retention_days_s3,omitempty"`
	RetentionMaxStorageS3      *float64 `json:"retention_max_storage_s3,omitempty"`
	Timeout                    *int     `json:"timeout,omitempty"`
}

VolumeBackupScheduleRequest is the body for PUT .../storages/{uuid}/backups.

type VultrServerCreateRequest added in v1.7.0

type VultrServerCreateRequest struct {
	CloudProviderTokenUUID string   `json:"cloud_provider_token_uuid"`
	Region                 string   `json:"region"`
	Plan                   string   `json:"plan"`
	OSID                   int      `json:"os_id"`
	Name                   string   `json:"name,omitempty"`
	PrivateKeyUUID         string   `json:"private_key_uuid"`
	EnableIPv6             bool     `json:"enable_ipv6"`
	DisablePublicIPv4      bool     `json:"disable_public_ipv4"`
	VultrSSHKeyIDs         []string `json:"vultr_ssh_key_ids,omitempty"`
	CloudInitScript        string   `json:"cloud_init_script,omitempty"`
	InstantValidate        bool     `json:"instant_validate"`
}

type VultrServerCreateResponse added in v1.7.0

type VultrServerCreateResponse struct {
	UUID            string `json:"uuid"`
	VultrInstanceID string `json:"vultr_instance_id"`
	IP              string `json:"ip" sensitive:"true"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL