Pipeline logs

Pipeline log

Pipeline log by ID.

GEThttps://cloud-api.calyptia.com/v1/pipeline_logs/{pipelineLogID}
Authorization
Path parameters
pipelineLogID*string (uuid)
Response

OK

Body
id*string (uuid)
pipelineID*string (uuid)
logs*string
lines*integer
status*PipelineLogStatus (enum)

The status of a pipeline log, if NEW hasn't been updated from the cluster. If DONE, logs have been retrieved from the cluster.

NEWDONE
createdAt*string (date-time)
updatedAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/pipeline_logs/{pipelineLogID}', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "pipelineID": "123e4567-e89b-12d3-a456-426614174000",
  "logs": "text",
  "status": "NEW",
  "createdAt": "2024-10-16T08:52:02.794Z",
  "updatedAt": "2024-10-16T08:52:02.794Z"
}

Delete Pipeline Log

Delete a log given its ID.

DELETEhttps://cloud-api.calyptia.com/v1/pipeline_logs/{pipelineLogID}
Authorization
Path parameters
pipelineLogID*string (uuid)
Response

OK

Body
deleted*boolean
deletedAt*nullable string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/pipeline_logs/{pipelineLogID}', {
    method: 'DELETE',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "deleted": false,
  "deletedAt": "2024-10-16T08:52:02.794Z"
}

Update Pipeline Log

Update a log given its ID. The log will be updated with the given logs blob of text.

PATCHhttps://cloud-api.calyptia.com/v1/pipeline_logs/{pipelineLogID}
Authorization
Path parameters
pipelineLogID*string (uuid)
Body
logsnullable string
linesnullable integer
statusnullable enum
NEWDONE
Response

OK

Body
updatedAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/pipeline_logs/{pipelineLogID}', {
    method: 'PATCH',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "updatedAt": "2024-10-16T08:52:02.794Z"
}