Port by ID.
OK
"tcp"
The kind/type of the service associated to this port.
"forward.0"
"forward"
"myforwardinput"
const response = await fetch('https://cloud-api.calyptia.com/v1/pipeline_ports/{portID}', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "protocol": "tcp", "kind": "LoadBalancer", "frontendPort": 0, "backendPort": 0, "endpoint": "text", "pluginID": "forward.0", "pluginName": "forward", "pluginAlias": "myforwardinput", "createdAt": "2024-12-22T05:33:28.662Z", "updatedAt": "2024-12-22T05:33:28.662Z" }
Delete port by its ID.
No Content
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 port by its ID.
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();