Last updated 1 year ago
Ports from a pipeline.
OK
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();
[ { "id": "123e4567-e89b-12d3-a456-426614174000", "protocol": "tcp", "endpoint": "text", "pluginID": "forward.0", "pluginName": "forward", "pluginAlias": "myforwardinput", "createdAt": "2024-05-11T02:54:44.578Z", "updatedAt": "2024-05-11T02:54:44.578Z" } ]
Create port within a pipeline. Ports can automatically be parsed from a config file, but this action allows you to programatically add more.
Created
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();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "pluginID": "forward.0", "pluginName": "forward", "pluginAlias": "myforwardinput", "createdAt": "2024-05-11T02:54:44.578Z" }