API

JobLogChunk

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs/{job_id}/log_chunks create Success
GET /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs/{job_id}/log_chunks list CI job log chunks

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

job_log_chunks, err := client.JobLogChunk(nil).List(map[string]any{"job_id": "example", "pipeline_id": "example", "run_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(job_log_chunks)
created, err := client.JobLogChunk(nil).Create(map[string]any{"job_id": "example", "pipeline_id": "example", "run_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local job_log_chunks, err = client:JobLogChunk():list({ job_id = "example", pipeline_id = "example", run_id = "example" })
local created, err = client:JobLogChunk():create({ job_id = "example", pipeline_id = "example", run_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$job_log_chunks = $client->JobLogChunk()->list(["job_id" => "example", "pipeline_id" => "example", "run_id" => "example"]);
$created = $client->JobLogChunk()->create(["job_id" => "example", "pipeline_id" => "example", "run_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

job_log_chunks = client.JobLogChunk().list({"job_id": "example", "pipeline_id": "example", "run_id": "example"})
created = client.JobLogChunk().create({ "job_id": "example", "pipeline_id": "example", "run_id": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

job_log_chunks = client.JobLogChunk.list({ "job_id" => "example", "pipeline_id" => "example", "run_id" => "example" })
created = client.JobLogChunk.create({ "job_id" => "example", "pipeline_id" => "example", "run_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const job_log_chunks = await client.JobLogChunk().list({ job_id: "example", pipeline_id: "example", run_id: "example" })
const created = await client.JobLogChunk().create({ job_id: "example", pipeline_id: "example", run_id: "example" })

Fields

Field Type Required Description
byte_size integer Yes Byte Size
ci_job_id one,string,null Yes Ci Job Id
ci_pipeline_run_id one,string,null Yes Ci Pipeline Run Id
ci_step_id one,string,null Yes Ci Step Id
content string Yes Content
content_format string Yes Content Format
created_at string Yes Created At
id string Yes Id
organization_id string Yes Organization Id
sequence_number integer Yes Sequence Number
stream string Yes Stream
updated_at string Yes Updated At

create

POST /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs/{job_id}/log_chunks

Operation ID: post_api_v1_ci_pipelines_pipeline_id_runs_run_id_jobs_job_id_log_chunks.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
pipeline_id path string Yes
run_id path string Yes
job_id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

list

GET /api/v1/ci/pipelines/{pipeline_id}/runs/{run_id}/jobs/{job_id}/log_chunks

Operation ID: api_v1_pipeline_run_job_log_chunks.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
pipeline_id path string Yes
run_id path string Yes
job_id path string Yes
after_sequence query integer No Return only chunks with a sequence number greater than this.

Responses

200: CI job log chunks

application/json

Property Type Required Description
job object Yes
job.active boolean Yes
job.allow_failure boolean Yes
job.cache_archive_observations object No Bounded server response history; it does not confirm runner extraction or test-result reuse.
job.cache_archive_observations.events array of object Yes
job.cache_archive_observations.events[].attempt integer Yes
job.cache_archive_observations.events[].cache_entry_id string No
job.cache_archive_observations.events[].elapsed_ms number Yes
job.cache_archive_observations.events[].label string Yes
job.cache_archive_observations.events[].native_publication_id string No
job.cache_archive_observations.events[].observed_at string (date-time) Yes
job.cache_archive_observations.events[].outcome enum: miss, archive_missing, exact_response, prefix_response, published_exact_response, published_prefix_response, ... Yes
job.cache_archive_observations.events[].response_bytes integer Yes
job.cache_archive_observations.events[].source_commit_id string No
job.cache_archive_observations.events[].source_run_id string No
job.cache_archive_observations.events[].source_url string No
job.cache_archive_observations.omitted_count integer Yes
job.ci_pipeline_run_id string Yes
job.ci_runner_id string Yes
job.created_at string (date-time) Yes
job.dependencies_csv string Yes
job.display_id integer Yes
job.environment_csv string Yes
job.execution_order integer Yes
job.exit_code integer Yes
job.failed boolean Yes
job.finished_at string (date-time) Yes
job.id string Yes
job.kind string Yes
job.name string Yes
job.number integer Yes
job.organization_id string Yes
job.queued_at string (date-time) Yes
job.retry_number integer Yes
job.reuse object No
job.reuse.source_job_id string Yes
job.reuse.source_run_id string Yes
job.reuse.source_url string Yes
job.runner_label_selector string Yes
job.slug string Yes
job.started_at string (date-time) Yes
job.status string Yes
job.status_label string Yes
job.status_state enum: active, successful, failed, canceled, blocked, skipped, ... Yes
job.status_tone enum: success, danger, warning, default Yes
job.timeout_seconds integer Yes
job.updated_at string (date-time) Yes
job_status string Yes
log_chunks array of object Yes
log_chunks[].byte_size integer Yes
log_chunks[].ci_job_id string Yes
log_chunks[].ci_pipeline_run_id string Yes
log_chunks[].ci_step_id string Yes
log_chunks[].content string Yes
log_chunks[].content_format string Yes
log_chunks[].created_at string (date-time) Yes
log_chunks[].id string Yes
log_chunks[].organization_id string Yes
log_chunks[].sequence_number integer Yes
log_chunks[].stream string Yes
log_chunks[].updated_at string (date-time) Yes
pagination object No
steps array of object Yes
steps[].active boolean Yes
steps[].cache_request object No
steps[].cache_request.key string Yes
steps[].cache_request.output_id string Yes
steps[].cache_request.paths array of string Yes
steps[].cache_request.restore_keys array of string Yes
steps[].ci_job_id string Yes
steps[].command string Yes
steps[].created_at string (date-time) Yes
steps[].execution_order integer Yes
steps[].exit_code integer Yes
steps[].failed boolean Yes
steps[].finished_at string (date-time) Yes
steps[].id string Yes
steps[].name string Yes
steps[].observed_finished_at string (date-time) No When the API first accepted a terminal update. Includes transport effects; not a runner-local command duration.
steps[].observed_started_at string (date-time) No When the API first accepted a running update. Independent of the runner clock; absent or null for older and unobserved steps.
steps[].organization_id string Yes
steps[].retry_number integer Yes
steps[].secret_refs object Yes
steps[].shell string Yes
steps[].slug string Yes
steps[].started_at string (date-time) Yes
steps[].status string Yes
steps[].status_label string Yes
steps[].status_state enum: active, successful, failed, canceled, blocked, skipped, ... Yes
steps[].status_tone enum: success, danger, warning, default Yes
steps[].updated_at string (date-time) Yes
steps[].working_directory string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway