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*number (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-11-21T12:26:23.415Z",
      "updatedAt": "2024-11-21T12:26:23.415Z"
    }
  ],
  "endCursor": "text",
  "count": 0
}

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-11-21T12:26:23.415Z"
}