ci.runs.logsA finished run’s log as text, or only its failed steps
The same lines as `gh run view --log` / `--log-failed` against the GitHub-compatible API. A failed job is one that failed or timed out; a cancelled job is not.
Request syntax
GET /ci/api/runs/{runId}/logsPath parameters
runIdRequiredstring
Constraints: uuid
Query parameters
failedOptionalenum
true: only the failed steps of failed jobs, as `gh run view --log-failed` prints them; false or omitted: every step of every job that ran
One of:
true,false
Response
200 with text/plain: one line per log line, `<job>\t<step>\t<timestamp> <text>`, jobs in run order and steps in job order; a job whose lines carry no step is printed under `UNKNOWN STEP`. Empty when nothing failed (with failed=true). 409 while the run is still in progress; 404 when it is not in this organization; 403, recorded in the audit log, without ci:GetRunLogs.
The response is the raw content with its own content type, not JSON.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow ci:GetRunLogs on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud ci runs logs runIdcurl -X GET "https://console.platform.deutschecloud.app/ci/api/runs/runId/logs" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY"import { DcloudClient } from '@dcloud/sdk';
const client = new DcloudClient();
const result = await client.ci.runs.logs({ runId: "runId" });from dcloud import Client
client = Client()
result = client.ci.runs.logs(run_id="runId")Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_ci_runs_logs.