Skip to main content
Unary · Environment Automations Creates a new automation service for an environment. Use this method to:
  • Set up long-running services
  • Configure service triggers
  • Define service dependencies
  • Specify runtime environments

Examples

  • Create basic service: Creates a simple service with start command.
  • Create Docker-based service: Creates a service running in a specific container.

Endpoint

Send a Bearer token as described in Authentication. If your organization uses a custom management-plane domain, replace https://app.ona.com with that domain.

Request example

Request

gitpod.v1.CreateServiceRequest

Response

gitpod.v1.CreateServiceResponse
An AutomationTrigger represents a trigger for an automation action. The manual field shows a start button in the UI for manually triggering the automation. The post_machine_start field indicates that the automation should be triggered after the machine has started, before the devcontainer is ready. This is used for machine-level services like security agents that need to start early. The post_environment_start field indicates that the automation should be triggered after the environment has started (devcontainer ready). The post_devcontainer_start field indicates that the automation should be triggered after the dev container has started. The prebuild field starts the automation during a prebuild of an environment. This phase does not have user secrets available. The before_snapshot field triggers the automation after all prebuild tasks complete but before the snapshot is taken. This is used for tasks that need to run last during prebuilds, such as IDE warmup. Note: The before_snapshot trigger can only be used with tasks, not services.gitpod.v1.AutomationTrigger
EnvironmentVariableItem represents an environment variable that can be set either from a literal value or from a secret reference.gitpod.v1.EnvironmentVariableItem
gitpod.v1.RunsOn
gitpod.v1.Service
gitpod.v1.ServiceMetadata
gitpod.v1.ServiceSpec
gitpod.v1.ServiceSpec.Commands
gitpod.v1.ServiceStatus
gitpod.v1.Subject