Files

Pipeline files

Files from a pipeline.

GEThttps://cloud-api.calyptia.com/v1/aggregator_pipelines/{pipelineID}/files
Authorization
Path parameters
pipelineID*string (uuid)
Query parameters
Response

OK

Body
id*string (uuid)
processingRuleID*nullable string (uuid)
name*string
Example: "myfile"
contents*string (byte)
encrypted*boolean
createdAt*string (date-time)
updatedAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/aggregator_pipelines/{pipelineID}/files', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "processingRuleID": "123e4567-e89b-12d3-a456-426614174000",
    "name": "myfile",
    "contents": "Ynl0ZXM=",
    "encrypted": false,
    "createdAt": "2024-10-16T08:45:40.089Z",
    "updatedAt": "2024-10-16T08:45:40.089Z"
  }
]

Create pipeline file

Create file within a pipeline. The given name is unique within the pipeline. These files can be referenced by their name within a fluentbit configuration file like so {{files.thename}}. Use them to share common stuff like parsers.

POSThttps://cloud-api.calyptia.com/v1/aggregator_pipelines/{pipelineID}/files
Authorization
Path parameters
pipelineID*string (uuid)
Body
name*string
Example: "newfile"
contents*string (byte)
encrypted*boolean
Response

Created

Body
id*string (uuid)
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/aggregator_pipelines/{pipelineID}/files', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "name": "newfile",
      "contents": "Ynl0ZXM=",
      "encrypted": false
    }),
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2024-10-16T08:45:40.089Z"
}