dots.v2.apps.byApp_Id().jobs.byJob_name().invocations.byJob_invocation_id().logs.get()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.apps.byApp_Id(app_Id).jobs.byJob_name(job_name).invocations.byJob_invocation_id(job_invocation_id).logs.get(requestConfiguration?: RequestConfiguration<LogsRequestBuilderGetQueryParameters>): Promise<undefined | Apps_get_logs_response>

Description

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. If deployment is omitted the active deployment will be selected (if available). The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.

Parameters

Path Parameters

app_Id string required

Example: 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf

The app ID

job_name string required

Example: component

The job name to list job invocations for.

job_invocation_id string required

Example: 123e4567-e89b-12d3-a456-426

The ID of the job invocation to retrieve.

Query Parameters

deploymentId string optional

Example: 3aa4d20e-5527-4c00-b496-601fbd22520a

The deployment ID

follow boolean optional

Example: true

Whether the logs should follow live updates.

type string required

Example: JOB_INVOCATION

The type of logs to retrieve

podConnectionTimeout string optional

Example: 3m

An optional time duration to wait if the underlying component instance is not immediately available. Default: 3m.

tailLines string optional

Example: 100

The number of lines from the end of the logs to retrieve.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.apps
    .byApp_Id("4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf").jobs
    .byJob_name("component").invocations
    .byJob_invocation_id("123e4567-e89b-12d3-a456-426").logs.get({
    queryParameters: {
        type: "JOB_INVOCATION",
    },
});

Response Example

Show Response Example
{
  "live_url": "https://logs-example/build.log",
  "url": "https://logs/build.log",
  "historic_logs": [
    "https://logs-example/archive/build.log"
  ]
}

More Information

See /v2/apps/{app_id}/jobs/{job_name}/invocations/{job_invocation_id}/logs in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.