Logs

Pipeline Logs

Logs from a pipeline with backward pagination.

GEThttps://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/logs
Authorization
Path parameters
pipelineID*string (uuid)

Parent pipeline ID.

Query parameters
Response

OK

Body
items*array of PipelineLog (object)
endCursor*nullable string
count*integer (int32)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/logs', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "items": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "pipelineID": "123e4567-e89b-12d3-a456-426614174000",
      "logs": "text",
      "status": "NEW",
      "createdAt": "2024-09-16T19:06:55.686Z",
      "updatedAt": "2024-09-16T19:06:55.686Z"
    }
  ],
  "endCursor": "text"
}

Create Pipeline Log

Create a new log within a pipeline. The log will be created with the given logs blob of text.

POSThttps://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/logs
Authorization
Path parameters
pipelineID*string (uuid)

Parent pipeline ID.

Body
logs*string
linesinteger
Response

Created

Body
id*string (uuid)
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/pipelines/{pipelineID}/logs', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "logs": "text"
    }),
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2024-09-16T19:06:55.686Z"
}