Pipeline ports

Pipeline port

Port by ID.

GEThttps://cloud-api.calyptia.com/v1/pipeline_ports/{portID}
Authorization
Path parameters
portID*string (uuid)
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/pipeline_ports/{portID}', {
    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-11-21T10:00:20.172Z",
  "updatedAt": "2024-11-21T10:00:20.172Z"
}

Delete pipeline port

Delete port by its ID.

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

No Content

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/pipeline_ports/{portID}', {
    method: 'DELETE',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();

Update pipeline port

Update port by its ID.

PATCHhttps://cloud-api.calyptia.com/v1/pipeline_ports/{portID}
Authorization
Path parameters
portID*string (uuid)
Body
protocolnullable string
Example: "tcp"
frontendPortnullable integer (int32)
backendPortnullable integer (int32)
endpointnullable string
Response

No Content

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/pipeline_ports/{portID}', {
    method: 'PATCH',
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();