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.
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
The organization name
The project name
The stack name
The deployment identifier
Query parameters
Continuation token for streaming logs; use nextToken from the previous response to fetch subsequent log entries
Number of log lines to return (1-499, default 100)
Zero-based job index to retrieve logs for
Zero-based line offset within the step logs
Zero-based step index within the specified job
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.