Skip to content
Ona Docs

StartService

environments.automations.services.start(ServiceStartParams**kwargs) -> object
POST/gitpod.v1.EnvironmentAutomationService/StartService

Starts an automation service. This call does not block until the service is started. This call will not error if the service is already running or has been started.

Use this method to:

  • Start stopped services
  • Resume service operations
  • Trigger service initialization

Examples

  • Start service:

    Starts a previously stopped service.

    id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
ParametersExpand Collapse
id: Optional[str]
formatuuid
ReturnsExpand Collapse
object

StartService

import os
from gitpod import Gitpod

client = Gitpod(
    bearer_token=os.environ.get("GITPOD_API_KEY"),  # This is the default and can be omitted
)
response = client.environments.automations.services.start(
    id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
)
print(response)
{}
Returns Examples
{}