Ports

Pipeline ports

Ports from a pipeline.

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

OK

Body
id*string (uuid)
protocol*string
Example: "tcp"
kind*PipelinePortKind (enum)

The kind/type of the service associated to this port.

LoadBalancerClusterIPNodePort
frontendPort*integer (int32)
backendPort*integer (int32)
endpoint*string
pluginID*nullable string
Example: "forward.0"
pluginName*nullable string
Example: "forward"
pluginAlias*nullable string
Example: "myforwardinput"
createdAt*string (date-time)
updatedAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/aggregator_pipelines/{pipelineID}/ports', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "protocol": "tcp",
    "kind": "LoadBalancer",
    "endpoint": "text",
    "pluginID": "forward.0",
    "pluginName": "forward",
    "pluginAlias": "myforwardinput",
    "createdAt": "2024-09-08T02:33:36.395Z",
    "updatedAt": "2024-09-08T02:33:36.395Z"
  }
]

Create pipeline port

Create port within a pipeline. Ports can automatically be parsed from a config file, but this action allows you to programatically add more.

POSThttps://cloud-api.calyptia.com/v1/aggregator_pipelines/{pipelineID}/ports
Authorization
Path parameters
pipelineID*string (uuid)
Body
protocol*string
Example: "tcp"
frontendPort*integer (int32)
backendPort*integer (int32)
endpoint*string
kindPipelinePortKind (enum)

The kind/type of the service associated to this port.

LoadBalancerClusterIPNodePort
Response

Created

Body
id*string (uuid)
kindnullable string
pluginID*nullable string
Example: "forward.0"
pluginName*nullable string
Example: "forward"
pluginAlias*nullable string
Example: "myforwardinput"
createdAt*string (date-time)
Request
const response = await fetch('https://cloud-api.calyptia.com/v1/aggregator_pipelines/{pipelineID}/ports', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "protocol": "tcp",
      "endpoint": "text"
    }),
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "kind": "text",
  "pluginID": "forward.0",
  "pluginName": "forward",
  "pluginAlias": "myforwardinput",
  "createdAt": "2024-09-08T02:33:36.395Z"
}