List Pipelines
This example assumes using Instill; is in scope and apiKey contains your Instill API key.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | using var client = new InstillClient(apiKey);
GetAuthenticatedUserResponse userResponse = await client.Namespace.MgmtPublicServiceGetAuthenticatedUserAsync();
var namespaceName = $"namespaces/{userResponse.User.Id}";
ListPipelinesResponse response = await client.Pipeline.PipelinePublicServiceListPipelinesAsync(
parent: namespaceName);
foreach (var pipeline in response.Pipelines ?? [])
{
Console.WriteLine($"Pipeline: {pipeline.Name}");
Console.WriteLine($" ID: {pipeline.Id}");
Console.WriteLine($" Description: {pipeline.Description}");
Console.WriteLine();
}
|