Deployments

GetDeploymentLogs

Retrieves execution logs for a Pulumi Deployments run. Supports two retrieval modes: streaming mode and step mode. In streaming mode, omit job/step parameters and use the continuationToken to incrementally fetch logs from the beginning through completion. Each response includes a nextToken field; continue requesting with this token until nextToken is absent, indicating all logs have been retrieved. In step mode, specify job and step indices to retrieve logs for a specific step within a specific job, with offset and count parameters for pagination within that step's logs. In step mode, count must be between 1 and 499 (default 100), and the response includes a nextOffset field for fetching subsequent pages. Log lines include timestamps and the log line content.

Note that this serves two endpoints:

  • /{orgName}/{projectName}/{stackName}/deployments/{deploymentId}/logs
  • /admin/deployments/{deploymentId}/logs

The former requires stack deployment read permissions. The latter requires site administrator privileges.

get/api/stacks/{orgName}/{projectName}/{stackName}/deployments/{deploymentId}/logs

Request

  • Base URL: https://api.pulumi.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.pulumi.com/api/stacks/{orgName}/{projectName}/{stackName}/deployments/{deploymentId}/logs
  • Auth: none declared

Path parameters

orgNamestring required

The organization name

projectNamestring required

The project name

stackNamestring required

The stack name

deploymentIdstring required

The deployment identifier

Query parameters

continuationTokenstring

Continuation token for streaming logs; use nextToken from the previous response to fetch subsequent log entries

countinteger

Number of log lines to return (1-499, default 100)

jobinteger

Zero-based job index to retrieve logs for

offsetinteger

Zero-based line offset within the step logs

stepinteger

Zero-based step index within the specified job

Response

OK

__typestring required

Changes

No recorded changes to this operation across all 1 revision of this API.