Retrieve the logs of a past, in-progress, or active deployment. If a component name is specified, the logs will be limited to only that component. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
app_id |
string | True | The app ID | |
deployment_id |
string | True | The deployment ID | |
follow |
boolean | False | Whether the logs should follow live updates. | |
type |
string | True | The type of logs to retrieve - BUILD: Build-time logs - DEPLOY: Deploy-time logs - RUN: Live run-time logs - RUN_RESTARTED: Logs of crashed/restarted instances during runtime |
UNSPECIFIED |
pod_connection_timeout |
string | False | An optional time duration to wait if the underlying component instance is not immediately available. Default: 3m . |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
get_resp = client.apps.get_logs_aggregate(app_id="b6bdf840", deployment_id="a6adf840")
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.