Pipelines - Get multiple
- TypeScript
- Python
We have limited support for pipeline CRUD operations at this time. We hope to expand this in the future.
Get the pipelines associated with a given organization (through the supplied API key) using getPipelines()
. Filter the
pipeline output by certain parameters.
Get the pipelines associated with a given organization (through the supplied API key) using get_pipelines()
. Filter the
pipeline output by certain parameters.
Arguments
Return value
An array of Pipeline
objects. Consult the Pipeline
type below for more information.
Types
🛠️ Pipeline
The Pipeline
type represents the structure of a pipeline in TypeScript. Below are the properties that define a Pipeline
.
id
The unique identifier for the pipeline as a string.
createdAt
The timestamp when the pipeline was created as a string.
updatedAt
The timestamp when the pipeline was last updated as a string.
archivedAt?
The timestamp when the pipeline was archived as a string. This can be null
if the pipeline has not been archived.
labels
An array of strings representing the labels attached to the pipeline.
displayName?
The display name of the pipeline. This can be null
.
slug
The slug of the pipeline, used in URLs and as an identifier in the user interface.
organizationId
The identifier for the organization that owns the pipeline as a string.
branch?
The branch that the pipeline is associated with. This can be null
.
Examples
typescript
import {init ,getPipelines } from '@gentrace/core';init ({apiKey :process .env .GENTRACE_API_KEY ,});constpipelines = awaitgetPipelines ({label : 'example-label',slug : 'example-slug',});for (constpipeline ofpipelines ) {console .log ("Pipeline: ",pipeline .displayName ,pipeline .slug );}
python
import gentraceimport osgentrace.init(api_key=os.getenv("GENTRACE_API_KEY"))pipelines = gentrace.get_pipelines()for pipeline in pipelines:print(pipeline.get("id"), pipeline.get("displayName"))