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
.
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