Skip to content

katasec/PulumiApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

A dotnet client for the Pulumi Service Rest API. Adding some methods as needed. Please check here or here to see what's been implemented. The client authenticates against your pulumi account using the credential file in ~/.pulumi/credentials.json.

Example 1: List All Stacks

var client = new PulumiApi.ApiClient();
var result = await client.ListStacks();

Console.WriteLine("Stacks in your account:");
result.Stacks?.ToList().ForEach(x =>
{
    Console.WriteLine($"- {x.OrgName}/{x.ProjectName}/{x.StackName}");
});

Sample output:

Stacks in your account:
- katasec/hello/dev
- katasec/azurecloudspace/dev
- katasec/ark-init/dev